diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 52d8493..d4d07dd 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,622 +2,374 @@ .gitignore .travis.yml README.md -docs/AddApnsPushConfigurationData.md -docs/AddApnsPushConfigurationResponse.md -docs/AddApnsPushConfigurationResponsePushConfigurationsInner.md -docs/AddEmojiCategoriesResponse.md -docs/AddEmojiCategoriesResponseEmojiCategoriesInner.md -docs/AddEmojisData.md -docs/AddEmojisResponse.md -docs/AddExtraDataToMessageData.md -docs/AddExtraDataToMessageResponse.md -docs/AddFcmPushConfigurationData.md -docs/AddFcmPushConfigurationResponse.md -docs/AddFcmPushConfigurationResponsePushConfigurationsInner.md -docs/AddHmsPushConfigurationData.md -docs/AddHmsPushConfigurationResponse.md -docs/AddHmsPushConfigurationResponsePushConfigurationsInner.md -docs/AddIpToWhitelistData.md -docs/AddIpToWhitelistResponse.md -docs/AddReactionToAMessageData.md -docs/AddReactionToAMessageResponse.md -docs/AddRegistrationOrDeviceTokenData.md -docs/AddRegistrationOrDeviceTokenResponse.md +docs/AcceptAnInvitationRequest.md +docs/AddARegistrationOrDeviceTokenRequest.md +docs/AddARegistrationOrDeviceTokenResponse.md +docs/AddExtraDataToAMessageRequest.md +docs/AddExtraDataToAMessageResponse.md docs/AnnouncementApi.md -docs/ApplicationApi.md -docs/BanFromChannelsWithCustomChannelTypesData.md -docs/BanUsersInChannelsWithCustomChannelTypeData.md -docs/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.md -docs/Blob.md -docs/BlockUserData.md -docs/BlockUserResponse.md +docs/BlockAUserRequest.md +docs/BlockAUserResponse.md docs/BotApi.md -docs/ChoosePushNotificationContentTemplateResponse.md -docs/ChooseWhichEventsToSubscribeToData.md -docs/ChooseWhichEventsToSubscribeToResponse.md -docs/ChooseWhichEventsToSubscribeToResponseWebhook.md -docs/ConfigureAutoEventData.md -docs/ConfigureAutoEventDataAutoEventMessage.md -docs/CreateBotData.md -docs/CreateBotResponse.md -docs/CreateBotResponseBot.md -docs/CreateChannelMetacounterData.md -docs/CreateChannelMetadataData.md -docs/CreateChannelMetadataResponse.md -docs/CreateUserData.md -docs/CreateUserMetadataData.md -docs/CreateUserMetadataResponse.md -docs/CreateUserTokenData.md +docs/CheckIfMemberResponse.md +docs/ChooseAPushNotificationContentTemplateRequest.md +docs/ChooseAPushNotificationContentTemplateResponse.md +docs/CreateABotRequest.md +docs/CreateABotResponse.md +docs/CreateABotResponseBot.md +docs/CreateABotResponseBotStyle.md +docs/CreateAChannelMetadataRequest.md +docs/CreateAChannelMetadataResponse.md +docs/CreateAGroupChannelRequest.md +docs/CreateAUserRequest.md +docs/CreateAnOpenChannelRequest.md +docs/CreateUserTokenRequest.md docs/CreateUserTokenResponse.md -docs/CustomTypeListBannedUsersResponse.md -docs/DataExportApi.md -docs/DeleteAllowedIpsFromWhitelistResponse.md -docs/DeleteApnsCertificateByIdResponse.md -docs/EnableReactionsData.md -docs/EnableReactionsResponse.md -docs/File.md -docs/Function.md -docs/GcAcceptInvitationData.md -docs/GcBanUserData.md -docs/GcBanUserResponse.md -docs/GcCheckIfMemberByIdResponse.md -docs/GcCreateChannelData.md -docs/GcDeclineInvitationData.md -docs/GcFreezeChannelData.md -docs/GcHideOrArchiveChannelData.md -docs/GcInviteAsMembersData.md -docs/GcJoinChannelData.md -docs/GcLeaveChannelData.md -docs/GcListBannedUsersResponse.md -docs/GcListChannelsResponse.md -docs/GcListMembersResponse.md -docs/GcListMutedUsersResponse.md -docs/GcListOperatorsResponse.md -docs/GcMarkAllMessagesAsDeliveredData.md -docs/GcMarkAllMessagesAsDeliveredResponse.md -docs/GcMarkAllMessagesAsReadData.md -docs/GcMuteUserData.md -docs/GcRegisterOperatorsData.md -docs/GcRegisterOperatorsResponse.md -docs/GcResetChatHistoryData.md -docs/GcResetChatHistoryResponse.md -docs/GcUpdateBanByIdData.md -docs/GcUpdateBanByIdResponse.md -docs/GcUpdateChannelByUrlData.md -docs/GcViewBanByIdResponse.md -docs/GcViewMuteByIdResponse.md -docs/GcViewNumberOfEachMembersUnreadMessagesResponse.md -docs/GenerateSecondaryApiTokenData.md -docs/GenerateSecondaryApiTokenResponse.md -docs/GetDetailedOpenRateOfAnnouncementByIdResponse.md -docs/GetDetailedOpenRateOfAnnouncementGroupResponse.md -docs/GetDetailedOpenStatusOfAnnouncementByIdResponse.md -docs/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.md -docs/GetStatisticsDailyResponse.md -docs/GetStatisticsDailyResponseStatisticsInner.md -docs/GetStatisticsMonthlyResponse.md -docs/GetStatisticsResponse.md +docs/FreezeAGroupChannelRequest.md +docs/FreezeAnOpenChannelRequest.md +docs/GetAGroupChannelResponse.md +docs/GetAGroupChannelResponseAllOf.md +docs/GetChannelInvitationPreferenceResponse.md +docs/GetTotalNumberOfMessagesInAChannelResponse.md docs/GroupChannelApi.md -docs/JoinChannelsData.md -docs/JoinChannelsResponse.md -docs/LeaveMyGroupChannelsData.md -docs/ListAllEmojisAndEmojiCategoriesResponse.md -docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.md -docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md -docs/ListAnnouncementGroupsResponse.md -docs/ListAnnouncementsResponse.md -docs/ListAnnouncementsResponseAnnouncementsInner.md -docs/ListBannedChannelsResponse.md -docs/ListBannedChannelsResponseBannedChannelsInner.md +docs/GroupChannelListMembersResponse.md +docs/GroupChatListChannelsResponse.md +docs/HideAChannelRequest.md +docs/InviteAsMembersRequest.md +docs/InviteAsMembersResponse.md +docs/InviteAsMembersResponseAllOf.md +docs/JoinAChannelRequest.md +docs/JoinChannelsRequest.md +docs/LeaveAChannelRequest.md +docs/LeaveMyGroupChannelsRequest.md docs/ListBlockedUsersResponse.md docs/ListBotsResponse.md docs/ListBotsResponseBotsInner.md -docs/ListDataExportsByMessageChannelOrUserResponse.md -docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.md -docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md -docs/ListEmojisResponse.md -docs/ListGdprRequestsResponse.md -docs/ListGdprRequestsResponseRequestsInner.md +docs/ListBotsResponseBotsInnerAi.md +docs/ListBotsResponseBotsInnerBot.md +docs/ListBotsResponseBotsInnerBotStyle.md +docs/ListBotsResponseBotsInnerBotStyleColor.md +docs/ListBotsResponseBotsInnerFirstMessagesInner.md +docs/ListBotsResponseBotsInnerFirstMessagesInnerData.md +docs/ListBotsResponseBotsInnerSafeguard.md docs/ListMessagesResponse.md -docs/ListMessagesResponseMessagesInner.md -docs/ListMessagesResponseMessagesInnerOgTag.md -docs/ListMessagesResponseMessagesInnerOgTagOgImage.md -docs/ListMessagesResponseMessagesInnerSortedMetaarrayInner.md -docs/ListMutedChannelsResponse.md -docs/ListMutedUsersInChannelsWithCustomChannelType200Response.md docs/ListMyGroupChannelsResponse.md -docs/ListPushConfigurationsResponse.md -docs/ListPushConfigurationsResponsePushConfigurationsInner.md -docs/ListPushNotificationContentTemplatesResponse.md -docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.md -docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md -docs/ListReactionsOfMessageResponse.md +docs/ListOpenChannelsResponse.md +docs/ListOperatorsResponse.md docs/ListRegistrationOrDeviceTokensResponse.md -docs/ListReportsOnChannelByUrlResponse.md -docs/ListReportsOnMessageByIdResponse.md -docs/ListReportsOnMessageByIdResponseReportLogsInner.md -docs/ListReportsOnUserByIdResponse.md -docs/ListReportsResponse.md -docs/ListReportsResponseReportLogsInner.md -docs/ListSecondaryApiTokensResponse.md -docs/ListSecondaryApiTokensResponseApiTokensInner.md docs/ListUsersResponse.md -docs/MarkAllMessagesAsReadData.md +docs/MarkAllMessagesAsReadRequest.md +docs/MarkChannelMessagesAsReadRequest.md docs/MessageApi.md docs/MetadataApi.md docs/ModerationApi.md -docs/MuteInChannelsWithCustomChannelTypesData.md -docs/MuteUsersInChannelsWithCustomChannelTypeData.md -docs/OcBanUserData.md -docs/OcBanUserResponse.md -docs/OcCreateChannelData.md -docs/OcDeleteChannelByUrl200Response.md -docs/OcFreezeChannelData.md -docs/OcListBannedUsersResponse.md -docs/OcListBannedUsersResponseBannedListInner.md -docs/OcListChannelsResponse.md -docs/OcListMutedUsersResponse.md -docs/OcListOperatorsResponse.md -docs/OcListParticipantsResponse.md -docs/OcMuteUserData.md -docs/OcRegisterOperatorsData.md -docs/OcUpdateBanByIdData.md -docs/OcUpdateBanByIdResponse.md -docs/OcUpdateChannelByUrlData.md -docs/OcViewBanByIdResponse.md -docs/OcViewMuteByIdResponse.md docs/OpenChannelApi.md -docs/PrivacyApi.md -docs/RegisterAndScheduleDataExportData.md -docs/RegisterAndScheduleDataExportResponse.md -docs/RegisterAsOperatorToChannelsWithCustomChannelTypesData.md -docs/RegisterGdprRequestData.md -docs/RegisterGdprRequestResponse.md -docs/RemovePushConfigurationByIdResponse.md -docs/RemoveReactionFromAMessageResponse.md -docs/RemoveRegistrationOrDeviceTokenByTokenResponse.md -docs/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.md -docs/RemoveRegistrationOrDeviceTokenResponse.md -docs/ReportApi.md -docs/ReportChannelByUrlData.md -docs/ReportChannelByUrlResponse.md -docs/ReportMessageByIdData.md -docs/ReportMessageByIdResponse.md -docs/ReportUserByIdData.md -docs/ReportUserByIdResponse.md -docs/ResetPushPreferencesResponse.md -docs/RetrieveAdvancedAnalyticsMetricsResponse.md -docs/RetrieveIpWhitelistResponse.md -docs/RetrieveListOfSubscribedEventsResponse.md -docs/RetrieveListOfSubscribedEventsResponseWebhook.md -docs/RevokeSecondaryApiTokenByTokenResponse.md -docs/SBObject.md -docs/ScheduleAnnouncementData.md -docs/ScheduleAnnouncementDataMessage.md -docs/ScheduleAnnouncementResponse.md -docs/ScheduleAnnouncementResponseCreateChannelOptions.md -docs/ScheduleAnnouncementResponseMessage.md -docs/SendBirdAdminMessage.md -docs/SendBirdAppleCriticalAlertOptions.md -docs/SendBirdAutoEventMessageSettings.md -docs/SendBirdBaseChannel.md -docs/SendBirdBaseMessageInstance.md -docs/SendBirdChannelResponse.md -docs/SendBirdEmoji.md -docs/SendBirdEmojiCategory.md -docs/SendBirdFileMessageParams.md -docs/SendBirdGroupChannel.md -docs/SendBirdGroupChannelChannel.md -docs/SendBirdGroupChannelCollection.md -docs/SendBirdGroupChannelCreatedBy.md -docs/SendBirdGroupChannelDisappearingMessage.md -docs/SendBirdGroupChannelInviter.md -docs/SendBirdGroupChannelLastMessage.md -docs/SendBirdGroupChannelSmsFallback.md -docs/SendBirdMember.md -docs/SendBirdMessageMetaArray.md -docs/SendBirdMessageResponse.md -docs/SendBirdMessageResponseMentionedUsersInner.md -docs/SendBirdMessageResponseUser.md -docs/SendBirdOGImage.md -docs/SendBirdOGMetaData.md -docs/SendBirdOpenChannel.md -docs/SendBirdPlugin.md -docs/SendBirdPoll.md -docs/SendBirdPollDetails.md -docs/SendBirdPollOption.md -docs/SendBirdPollUpdatedVoteCount.md -docs/SendBirdReaction.md -docs/SendBirdRestrictionInfo.md -docs/SendBirdSender.md -docs/SendBirdThreadInfo.md -docs/SendBirdThumbnailSBObject.md -docs/SendBirdThumbnailSize.md -docs/SendBirdUser.md -docs/SendBirdUserMessageParams.md -docs/SendBotSMessageData.md -docs/SendMessageData.md -docs/SetDomainFilterData.md -docs/SetDomainFilterDataDomainFilter.md -docs/SetDomainFilterDataImageModeration.md -docs/SetDomainFilterDataImageModerationLimits.md -docs/SetDomainFilterDataProfanityFilter.md -docs/SetDomainFilterDataProfanityFilterRegexFiltersInner.md -docs/SetDomainFilterDataProfanityTriggeredModeration.md +docs/RegisterOperatorsToAGroupChannelRequest.md +docs/RemoveARegistrationOrDeviceTokenResponse.md +docs/RemoveAllRegistrationOrDeviceTokenResponse.md +docs/ResetChatHistoryRequest.md +docs/ResetChatHistoryResponse.md +docs/ScheduleAnAnnouncementRequest.md +docs/ScheduleAnAnnouncementRequestCreateChannelOptions.md +docs/ScheduleAnAnnouncementRequestMessage.md +docs/ScheduleAnAnnouncementResponse.md +docs/ScheduleAnAnnouncementResponseMessage.md +docs/SendABotMessageRequest.md +docs/SendAMessageRequest.md +docs/SendAdminMessageRequestBody.md +docs/SendFileMessageRequestBody.md +docs/SendTextMessageRequestBody.md +docs/SendTextMessageRequestBodyPushMessageTemplate.md +docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md +docs/SendbirdBasicUserInfo.md +docs/SendbirdDisappearingMessage.md +docs/SendbirdExtendedMessagePayload.md +docs/SendbirdFile.md +docs/SendbirdGroupChannel.md +docs/SendbirdGroupChannelDetail.md +docs/SendbirdGroupChannelDetailChannel.md +docs/SendbirdMember.md +docs/SendbirdMessageResponse.md +docs/SendbirdMessageResponseMessageEvents.md +docs/SendbirdOpenChannel.md +docs/SendbirdParentMessageInfo.md +docs/SendbirdPushTriggerOption.md +docs/SendbirdReaction.md +docs/SendbirdSmsFallback.md +docs/SendbirdSortedMetaarrayInner.md +docs/SendbirdThumbnail.md +docs/SendbirdUser.md +docs/StartTypingIndicatorsRequest.md docs/StatisticsApi.md -docs/TranslateMessageIntoOtherLanguagesData.md -docs/UpdateAnnouncementByIdData.md -docs/UpdateAnnouncementByIdResponse.md -docs/UpdateAnnouncementByIdResponseMessage.md -docs/UpdateApnsPushConfigurationByIdData.md -docs/UpdateApnsPushConfigurationByIdResponse.md -docs/UpdateBotByIdData.md -docs/UpdateBotByIdResponse.md -docs/UpdateChannelInvitationPreferenceData.md +docs/UpdateAChannelMetadataRequest.md +docs/UpdateAGroupChannelRequest.md +docs/UpdateAMessageRequest.md +docs/UpdateAUserRequest.md +docs/UpdateAnOpenChannelRequest.md +docs/UpdateChannelInvitationPreferenceRequest.md docs/UpdateChannelInvitationPreferenceResponse.md -docs/UpdateChannelMetacounterData.md -docs/UpdateChannelMetadataData.md -docs/UpdateCountPreferenceOfChannelByUrlData.md +docs/UpdateCountPreferenceOfAChannelRequest.md docs/UpdateCountPreferenceOfChannelByUrlResponse.md -docs/UpdateDefaultChannelInvitationPreferenceData.md -docs/UpdateDefaultChannelInvitationPreferenceResponse.md -docs/UpdateEmojiCategoryUrlByIdData.md -docs/UpdateEmojiUrlByKeyData.md -docs/UpdateExtraDataInMessageData.md -docs/UpdateExtraDataInMessageResponse.md -docs/UpdateExtraDataInMessageResponseSortedMetaarrayInner.md -docs/UpdateFcmPushConfigurationByIdData.md -docs/UpdateFcmPushConfigurationByIdResponse.md -docs/UpdateHmsPushConfigurationByIdData.md -docs/UpdateHmsPushConfigurationByIdResponse.md -docs/UpdateMessageByIdData.md -docs/UpdatePushNotificationContentTemplateData.md -docs/UpdatePushNotificationContentTemplateResponse.md -docs/UpdatePushPreferencesData.md -docs/UpdatePushPreferencesForChannelByUrlData.md -docs/UpdatePushPreferencesForChannelByUrlResponse.md +docs/UpdateExtraDataInAMessageRequest.md +docs/UpdateExtraDataInAMessageResponse.md +docs/UpdatePushPreferencesForAChannelRequest.md +docs/UpdatePushPreferencesForAChannelResponse.md +docs/UpdatePushPreferencesRequest.md docs/UpdatePushPreferencesResponse.md -docs/UpdateUserByIdData.md -docs/UpdateUserMetadataData.md -docs/UpdateUserMetadataResponse.md -docs/UseDefaultEmojisData.md -docs/UseDefaultEmojisResponse.md docs/UserApi.md -docs/ViewAnnouncementByIdResponse.md -docs/ViewBotByIdResponse.md -docs/ViewChannelInvitationPreferenceResponse.md -docs/ViewCountPreferenceOfChannelByUrlResponse.md -docs/ViewDataExportByIdResponse.md -docs/ViewDefaultChannelInvitationPreferenceResponse.md -docs/ViewGdprRequestByIdResponse.md -docs/ViewNumberOfChannelsByJoinStatusResponse.md +docs/ViewCountPreferenceOfAChannelResponse.md docs/ViewNumberOfChannelsWithUnreadMessagesResponse.md -docs/ViewNumberOfConcurrentConnectionsResponse.md docs/ViewNumberOfDailyActiveUsersResponse.md docs/ViewNumberOfMonthlyActiveUsersResponse.md -docs/ViewNumberOfPeakConnectionsResponse.md -docs/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.md -docs/ViewNumberOfUnreadItemsResponse.md docs/ViewNumberOfUnreadMessagesResponse.md -docs/ViewPushConfigurationByIdResponse.md -docs/ViewPushNotificationContentTemplateResponse.md -docs/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md -docs/ViewPushPreferencesForChannelByUrlResponse.md +docs/ViewPushPreferencesForAChannelResponse.md docs/ViewPushPreferencesResponse.md -docs/ViewSecondaryApiTokenByTokenResponse.md -docs/ViewTotalNumberOfMessagesInChannelResponse.md -docs/ViewUserMetadataResponse.md -docs/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.md -docs/WebhookApi.md git_push.sh mocha.opts package.json src/ApiClient.js src/api/AnnouncementApi.js -src/api/ApplicationApi.js src/api/BotApi.js -src/api/DataExportApi.js src/api/GroupChannelApi.js src/api/MessageApi.js src/api/MetadataApi.js src/api/ModerationApi.js src/api/OpenChannelApi.js -src/api/PrivacyApi.js -src/api/ReportApi.js src/api/StatisticsApi.js src/api/UserApi.js -src/api/WebhookApi.js src/index.js -src/model/AddApnsPushConfigurationData.js -src/model/AddApnsPushConfigurationResponse.js -src/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js -src/model/AddEmojiCategoriesResponse.js -src/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js -src/model/AddEmojisData.js -src/model/AddEmojisResponse.js -src/model/AddExtraDataToMessageData.js -src/model/AddExtraDataToMessageResponse.js -src/model/AddFcmPushConfigurationData.js -src/model/AddFcmPushConfigurationResponse.js -src/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js -src/model/AddHmsPushConfigurationData.js -src/model/AddHmsPushConfigurationResponse.js -src/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js -src/model/AddIpToWhitelistData.js -src/model/AddIpToWhitelistResponse.js -src/model/AddReactionToAMessageData.js -src/model/AddReactionToAMessageResponse.js -src/model/AddRegistrationOrDeviceTokenData.js -src/model/AddRegistrationOrDeviceTokenResponse.js -src/model/BanFromChannelsWithCustomChannelTypesData.js -src/model/BanUsersInChannelsWithCustomChannelTypeData.js -src/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js -src/model/Blob.js -src/model/BlockUserData.js -src/model/BlockUserResponse.js -src/model/ChoosePushNotificationContentTemplateResponse.js -src/model/ChooseWhichEventsToSubscribeToData.js -src/model/ChooseWhichEventsToSubscribeToResponse.js -src/model/ChooseWhichEventsToSubscribeToResponseWebhook.js -src/model/ConfigureAutoEventData.js -src/model/ConfigureAutoEventDataAutoEventMessage.js -src/model/CreateBotData.js -src/model/CreateBotResponse.js -src/model/CreateBotResponseBot.js -src/model/CreateChannelMetacounterData.js -src/model/CreateChannelMetadataData.js -src/model/CreateChannelMetadataResponse.js -src/model/CreateUserData.js -src/model/CreateUserMetadataData.js -src/model/CreateUserMetadataResponse.js -src/model/CreateUserTokenData.js +src/model/AcceptAnInvitationRequest.js +src/model/AddARegistrationOrDeviceTokenRequest.js +src/model/AddARegistrationOrDeviceTokenResponse.js +src/model/AddExtraDataToAMessageRequest.js +src/model/AddExtraDataToAMessageResponse.js +src/model/BlockAUserRequest.js +src/model/BlockAUserResponse.js +src/model/CheckIfMemberResponse.js +src/model/ChooseAPushNotificationContentTemplateRequest.js +src/model/ChooseAPushNotificationContentTemplateResponse.js +src/model/CreateABotRequest.js +src/model/CreateABotResponse.js +src/model/CreateABotResponseBot.js +src/model/CreateABotResponseBotStyle.js +src/model/CreateAChannelMetadataRequest.js +src/model/CreateAChannelMetadataResponse.js +src/model/CreateAGroupChannelRequest.js +src/model/CreateAUserRequest.js +src/model/CreateAnOpenChannelRequest.js +src/model/CreateUserTokenRequest.js src/model/CreateUserTokenResponse.js -src/model/CustomTypeListBannedUsersResponse.js -src/model/DeleteAllowedIpsFromWhitelistResponse.js -src/model/DeleteApnsCertificateByIdResponse.js -src/model/EnableReactionsData.js -src/model/EnableReactionsResponse.js -src/model/File.js -src/model/Function.js -src/model/GcAcceptInvitationData.js -src/model/GcBanUserData.js -src/model/GcBanUserResponse.js -src/model/GcCheckIfMemberByIdResponse.js -src/model/GcCreateChannelData.js -src/model/GcDeclineInvitationData.js -src/model/GcFreezeChannelData.js -src/model/GcHideOrArchiveChannelData.js -src/model/GcInviteAsMembersData.js -src/model/GcJoinChannelData.js -src/model/GcLeaveChannelData.js -src/model/GcListBannedUsersResponse.js -src/model/GcListChannelsResponse.js -src/model/GcListMembersResponse.js -src/model/GcListMutedUsersResponse.js -src/model/GcListOperatorsResponse.js -src/model/GcMarkAllMessagesAsDeliveredData.js -src/model/GcMarkAllMessagesAsDeliveredResponse.js -src/model/GcMarkAllMessagesAsReadData.js -src/model/GcMuteUserData.js -src/model/GcRegisterOperatorsData.js -src/model/GcRegisterOperatorsResponse.js -src/model/GcResetChatHistoryData.js -src/model/GcResetChatHistoryResponse.js -src/model/GcUpdateBanByIdData.js -src/model/GcUpdateBanByIdResponse.js -src/model/GcUpdateChannelByUrlData.js -src/model/GcViewBanByIdResponse.js -src/model/GcViewMuteByIdResponse.js -src/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js -src/model/GenerateSecondaryApiTokenData.js -src/model/GenerateSecondaryApiTokenResponse.js -src/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js -src/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js -src/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js -src/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js -src/model/GetStatisticsDailyResponse.js -src/model/GetStatisticsDailyResponseStatisticsInner.js -src/model/GetStatisticsMonthlyResponse.js -src/model/GetStatisticsResponse.js -src/model/JoinChannelsData.js -src/model/JoinChannelsResponse.js -src/model/LeaveMyGroupChannelsData.js -src/model/ListAllEmojisAndEmojiCategoriesResponse.js -src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js -src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js -src/model/ListAnnouncementGroupsResponse.js -src/model/ListAnnouncementsResponse.js -src/model/ListAnnouncementsResponseAnnouncementsInner.js -src/model/ListBannedChannelsResponse.js -src/model/ListBannedChannelsResponseBannedChannelsInner.js +src/model/FreezeAGroupChannelRequest.js +src/model/FreezeAnOpenChannelRequest.js +src/model/GetAGroupChannelResponse.js +src/model/GetAGroupChannelResponseAllOf.js +src/model/GetChannelInvitationPreferenceResponse.js +src/model/GetTotalNumberOfMessagesInAChannelResponse.js +src/model/GroupChannelListMembersResponse.js +src/model/GroupChatListChannelsResponse.js +src/model/HideAChannelRequest.js +src/model/InviteAsMembersRequest.js +src/model/InviteAsMembersResponse.js +src/model/InviteAsMembersResponseAllOf.js +src/model/JoinAChannelRequest.js +src/model/JoinChannelsRequest.js +src/model/LeaveAChannelRequest.js +src/model/LeaveMyGroupChannelsRequest.js src/model/ListBlockedUsersResponse.js src/model/ListBotsResponse.js src/model/ListBotsResponseBotsInner.js -src/model/ListDataExportsByMessageChannelOrUserResponse.js -src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js -src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js -src/model/ListEmojisResponse.js -src/model/ListGdprRequestsResponse.js -src/model/ListGdprRequestsResponseRequestsInner.js +src/model/ListBotsResponseBotsInnerAi.js +src/model/ListBotsResponseBotsInnerBot.js +src/model/ListBotsResponseBotsInnerBotStyle.js +src/model/ListBotsResponseBotsInnerBotStyleColor.js +src/model/ListBotsResponseBotsInnerFirstMessagesInner.js +src/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js +src/model/ListBotsResponseBotsInnerSafeguard.js src/model/ListMessagesResponse.js -src/model/ListMessagesResponseMessagesInner.js -src/model/ListMessagesResponseMessagesInnerOgTag.js -src/model/ListMessagesResponseMessagesInnerOgTagOgImage.js -src/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js -src/model/ListMutedChannelsResponse.js -src/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js src/model/ListMyGroupChannelsResponse.js -src/model/ListPushConfigurationsResponse.js -src/model/ListPushConfigurationsResponsePushConfigurationsInner.js -src/model/ListPushNotificationContentTemplatesResponse.js -src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js -src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js -src/model/ListReactionsOfMessageResponse.js +src/model/ListOpenChannelsResponse.js +src/model/ListOperatorsResponse.js src/model/ListRegistrationOrDeviceTokensResponse.js -src/model/ListReportsOnChannelByUrlResponse.js -src/model/ListReportsOnMessageByIdResponse.js -src/model/ListReportsOnMessageByIdResponseReportLogsInner.js -src/model/ListReportsOnUserByIdResponse.js -src/model/ListReportsResponse.js -src/model/ListReportsResponseReportLogsInner.js -src/model/ListSecondaryApiTokensResponse.js -src/model/ListSecondaryApiTokensResponseApiTokensInner.js src/model/ListUsersResponse.js -src/model/MarkAllMessagesAsReadData.js -src/model/MuteInChannelsWithCustomChannelTypesData.js -src/model/MuteUsersInChannelsWithCustomChannelTypeData.js -src/model/OcBanUserData.js -src/model/OcBanUserResponse.js -src/model/OcCreateChannelData.js -src/model/OcDeleteChannelByUrl200Response.js -src/model/OcFreezeChannelData.js -src/model/OcListBannedUsersResponse.js -src/model/OcListBannedUsersResponseBannedListInner.js -src/model/OcListChannelsResponse.js -src/model/OcListMutedUsersResponse.js -src/model/OcListOperatorsResponse.js -src/model/OcListParticipantsResponse.js -src/model/OcMuteUserData.js -src/model/OcRegisterOperatorsData.js -src/model/OcUpdateBanByIdData.js -src/model/OcUpdateBanByIdResponse.js -src/model/OcUpdateChannelByUrlData.js -src/model/OcViewBanByIdResponse.js -src/model/OcViewMuteByIdResponse.js -src/model/RegisterAndScheduleDataExportData.js -src/model/RegisterAndScheduleDataExportResponse.js -src/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js -src/model/RegisterGdprRequestData.js -src/model/RegisterGdprRequestResponse.js -src/model/RemovePushConfigurationByIdResponse.js -src/model/RemoveReactionFromAMessageResponse.js -src/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js -src/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js -src/model/RemoveRegistrationOrDeviceTokenResponse.js -src/model/ReportChannelByUrlData.js -src/model/ReportChannelByUrlResponse.js -src/model/ReportMessageByIdData.js -src/model/ReportMessageByIdResponse.js -src/model/ReportUserByIdData.js -src/model/ReportUserByIdResponse.js -src/model/ResetPushPreferencesResponse.js -src/model/RetrieveAdvancedAnalyticsMetricsResponse.js -src/model/RetrieveIpWhitelistResponse.js -src/model/RetrieveListOfSubscribedEventsResponse.js -src/model/RetrieveListOfSubscribedEventsResponseWebhook.js -src/model/RevokeSecondaryApiTokenByTokenResponse.js -src/model/SBObject.js -src/model/ScheduleAnnouncementData.js -src/model/ScheduleAnnouncementDataMessage.js -src/model/ScheduleAnnouncementResponse.js -src/model/ScheduleAnnouncementResponseCreateChannelOptions.js -src/model/ScheduleAnnouncementResponseMessage.js -src/model/SendBirdAdminMessage.js -src/model/SendBirdAppleCriticalAlertOptions.js -src/model/SendBirdAutoEventMessageSettings.js -src/model/SendBirdBaseChannel.js -src/model/SendBirdBaseMessageInstance.js -src/model/SendBirdChannelResponse.js -src/model/SendBirdEmoji.js -src/model/SendBirdEmojiCategory.js -src/model/SendBirdFileMessageParams.js -src/model/SendBirdGroupChannel.js -src/model/SendBirdGroupChannelChannel.js -src/model/SendBirdGroupChannelCollection.js -src/model/SendBirdGroupChannelCreatedBy.js -src/model/SendBirdGroupChannelDisappearingMessage.js -src/model/SendBirdGroupChannelInviter.js -src/model/SendBirdGroupChannelLastMessage.js -src/model/SendBirdGroupChannelSmsFallback.js -src/model/SendBirdMember.js -src/model/SendBirdMessageMetaArray.js -src/model/SendBirdMessageResponse.js -src/model/SendBirdMessageResponseMentionedUsersInner.js -src/model/SendBirdMessageResponseUser.js -src/model/SendBirdOGImage.js -src/model/SendBirdOGMetaData.js -src/model/SendBirdOpenChannel.js -src/model/SendBirdPlugin.js -src/model/SendBirdPoll.js -src/model/SendBirdPollDetails.js -src/model/SendBirdPollOption.js -src/model/SendBirdPollUpdatedVoteCount.js -src/model/SendBirdReaction.js -src/model/SendBirdRestrictionInfo.js -src/model/SendBirdSender.js -src/model/SendBirdThreadInfo.js -src/model/SendBirdThumbnailSBObject.js -src/model/SendBirdThumbnailSize.js -src/model/SendBirdUser.js -src/model/SendBirdUserMessageParams.js -src/model/SendBotSMessageData.js -src/model/SendMessageData.js -src/model/SetDomainFilterData.js -src/model/SetDomainFilterDataDomainFilter.js -src/model/SetDomainFilterDataImageModeration.js -src/model/SetDomainFilterDataImageModerationLimits.js -src/model/SetDomainFilterDataProfanityFilter.js -src/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js -src/model/SetDomainFilterDataProfanityTriggeredModeration.js -src/model/TranslateMessageIntoOtherLanguagesData.js -src/model/UpdateAnnouncementByIdData.js -src/model/UpdateAnnouncementByIdResponse.js -src/model/UpdateAnnouncementByIdResponseMessage.js -src/model/UpdateApnsPushConfigurationByIdData.js -src/model/UpdateApnsPushConfigurationByIdResponse.js -src/model/UpdateBotByIdData.js -src/model/UpdateBotByIdResponse.js -src/model/UpdateChannelInvitationPreferenceData.js +src/model/MarkAllMessagesAsReadRequest.js +src/model/MarkChannelMessagesAsReadRequest.js +src/model/RegisterOperatorsToAGroupChannelRequest.js +src/model/RemoveARegistrationOrDeviceTokenResponse.js +src/model/RemoveAllRegistrationOrDeviceTokenResponse.js +src/model/ResetChatHistoryRequest.js +src/model/ResetChatHistoryResponse.js +src/model/ScheduleAnAnnouncementRequest.js +src/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js +src/model/ScheduleAnAnnouncementRequestMessage.js +src/model/ScheduleAnAnnouncementResponse.js +src/model/ScheduleAnAnnouncementResponseMessage.js +src/model/SendABotMessageRequest.js +src/model/SendAMessageRequest.js +src/model/SendAdminMessageRequestBody.js +src/model/SendFileMessageRequestBody.js +src/model/SendTextMessageRequestBody.js +src/model/SendTextMessageRequestBodyPushMessageTemplate.js +src/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js +src/model/SendbirdBasicUserInfo.js +src/model/SendbirdDisappearingMessage.js +src/model/SendbirdExtendedMessagePayload.js +src/model/SendbirdFile.js +src/model/SendbirdGroupChannel.js +src/model/SendbirdGroupChannelDetail.js +src/model/SendbirdGroupChannelDetailChannel.js +src/model/SendbirdMember.js +src/model/SendbirdMessageResponse.js +src/model/SendbirdMessageResponseMessageEvents.js +src/model/SendbirdOpenChannel.js +src/model/SendbirdParentMessageInfo.js +src/model/SendbirdPushTriggerOption.js +src/model/SendbirdReaction.js +src/model/SendbirdSmsFallback.js +src/model/SendbirdSortedMetaarrayInner.js +src/model/SendbirdThumbnail.js +src/model/SendbirdUser.js +src/model/StartTypingIndicatorsRequest.js +src/model/UpdateAChannelMetadataRequest.js +src/model/UpdateAGroupChannelRequest.js +src/model/UpdateAMessageRequest.js +src/model/UpdateAUserRequest.js +src/model/UpdateAnOpenChannelRequest.js +src/model/UpdateChannelInvitationPreferenceRequest.js src/model/UpdateChannelInvitationPreferenceResponse.js -src/model/UpdateChannelMetacounterData.js -src/model/UpdateChannelMetadataData.js -src/model/UpdateCountPreferenceOfChannelByUrlData.js +src/model/UpdateCountPreferenceOfAChannelRequest.js src/model/UpdateCountPreferenceOfChannelByUrlResponse.js -src/model/UpdateDefaultChannelInvitationPreferenceData.js -src/model/UpdateDefaultChannelInvitationPreferenceResponse.js -src/model/UpdateEmojiCategoryUrlByIdData.js -src/model/UpdateEmojiUrlByKeyData.js -src/model/UpdateExtraDataInMessageData.js -src/model/UpdateExtraDataInMessageResponse.js -src/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js -src/model/UpdateFcmPushConfigurationByIdData.js -src/model/UpdateFcmPushConfigurationByIdResponse.js -src/model/UpdateHmsPushConfigurationByIdData.js -src/model/UpdateHmsPushConfigurationByIdResponse.js -src/model/UpdateMessageByIdData.js -src/model/UpdatePushNotificationContentTemplateData.js -src/model/UpdatePushNotificationContentTemplateResponse.js -src/model/UpdatePushPreferencesData.js -src/model/UpdatePushPreferencesForChannelByUrlData.js -src/model/UpdatePushPreferencesForChannelByUrlResponse.js +src/model/UpdateExtraDataInAMessageRequest.js +src/model/UpdateExtraDataInAMessageResponse.js +src/model/UpdatePushPreferencesForAChannelRequest.js +src/model/UpdatePushPreferencesForAChannelResponse.js +src/model/UpdatePushPreferencesRequest.js src/model/UpdatePushPreferencesResponse.js -src/model/UpdateUserByIdData.js -src/model/UpdateUserMetadataData.js -src/model/UpdateUserMetadataResponse.js -src/model/UseDefaultEmojisData.js -src/model/UseDefaultEmojisResponse.js -src/model/ViewAnnouncementByIdResponse.js -src/model/ViewBotByIdResponse.js -src/model/ViewChannelInvitationPreferenceResponse.js -src/model/ViewCountPreferenceOfChannelByUrlResponse.js -src/model/ViewDataExportByIdResponse.js -src/model/ViewDefaultChannelInvitationPreferenceResponse.js -src/model/ViewGdprRequestByIdResponse.js -src/model/ViewNumberOfChannelsByJoinStatusResponse.js +src/model/ViewCountPreferenceOfAChannelResponse.js src/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js -src/model/ViewNumberOfConcurrentConnectionsResponse.js src/model/ViewNumberOfDailyActiveUsersResponse.js src/model/ViewNumberOfMonthlyActiveUsersResponse.js -src/model/ViewNumberOfPeakConnectionsResponse.js -src/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js -src/model/ViewNumberOfUnreadItemsResponse.js src/model/ViewNumberOfUnreadMessagesResponse.js -src/model/ViewPushConfigurationByIdResponse.js -src/model/ViewPushNotificationContentTemplateResponse.js -src/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js -src/model/ViewPushPreferencesForChannelByUrlResponse.js +src/model/ViewPushPreferencesForAChannelResponse.js src/model/ViewPushPreferencesResponse.js -src/model/ViewSecondaryApiTokenByTokenResponse.js -src/model/ViewTotalNumberOfMessagesInChannelResponse.js -src/model/ViewUserMetadataResponse.js -src/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js +test/api/AnnouncementApi.spec.js +test/api/BotApi.spec.js +test/api/GroupChannelApi.spec.js +test/api/MessageApi.spec.js +test/api/MetadataApi.spec.js +test/api/ModerationApi.spec.js +test/api/OpenChannelApi.spec.js +test/api/StatisticsApi.spec.js +test/api/UserApi.spec.js +test/model/AcceptAnInvitationRequest.spec.js +test/model/AddARegistrationOrDeviceTokenRequest.spec.js +test/model/AddARegistrationOrDeviceTokenResponse.spec.js +test/model/AddExtraDataToAMessageRequest.spec.js +test/model/AddExtraDataToAMessageResponse.spec.js +test/model/BlockAUserRequest.spec.js +test/model/BlockAUserResponse.spec.js +test/model/CheckIfMemberResponse.spec.js +test/model/ChooseAPushNotificationContentTemplateRequest.spec.js +test/model/ChooseAPushNotificationContentTemplateResponse.spec.js +test/model/CreateABotRequest.spec.js +test/model/CreateABotResponse.spec.js +test/model/CreateABotResponseBot.spec.js +test/model/CreateABotResponseBotStyle.spec.js +test/model/CreateAChannelMetadataRequest.spec.js +test/model/CreateAChannelMetadataResponse.spec.js +test/model/CreateAGroupChannelRequest.spec.js +test/model/CreateAUserRequest.spec.js +test/model/CreateAnOpenChannelRequest.spec.js +test/model/CreateUserTokenRequest.spec.js +test/model/CreateUserTokenResponse.spec.js +test/model/FreezeAGroupChannelRequest.spec.js +test/model/FreezeAnOpenChannelRequest.spec.js +test/model/GetAGroupChannelResponse.spec.js +test/model/GetAGroupChannelResponseAllOf.spec.js +test/model/GetChannelInvitationPreferenceResponse.spec.js +test/model/GetTotalNumberOfMessagesInAChannelResponse.spec.js +test/model/GroupChannelListMembersResponse.spec.js +test/model/GroupChatListChannelsResponse.spec.js +test/model/HideAChannelRequest.spec.js +test/model/InviteAsMembersRequest.spec.js +test/model/InviteAsMembersResponse.spec.js +test/model/InviteAsMembersResponseAllOf.spec.js +test/model/JoinAChannelRequest.spec.js +test/model/JoinChannelsRequest.spec.js +test/model/LeaveAChannelRequest.spec.js +test/model/LeaveMyGroupChannelsRequest.spec.js +test/model/ListBlockedUsersResponse.spec.js +test/model/ListBotsResponse.spec.js +test/model/ListBotsResponseBotsInner.spec.js +test/model/ListBotsResponseBotsInnerAi.spec.js +test/model/ListBotsResponseBotsInnerBot.spec.js +test/model/ListBotsResponseBotsInnerBotStyle.spec.js +test/model/ListBotsResponseBotsInnerBotStyleColor.spec.js +test/model/ListBotsResponseBotsInnerFirstMessagesInner.spec.js +test/model/ListBotsResponseBotsInnerFirstMessagesInnerData.spec.js +test/model/ListBotsResponseBotsInnerSafeguard.spec.js +test/model/ListMessagesResponse.spec.js +test/model/ListMyGroupChannelsResponse.spec.js +test/model/ListOpenChannelsResponse.spec.js +test/model/ListOperatorsResponse.spec.js +test/model/ListRegistrationOrDeviceTokensResponse.spec.js +test/model/ListUsersResponse.spec.js +test/model/MarkAllMessagesAsReadRequest.spec.js +test/model/MarkChannelMessagesAsReadRequest.spec.js +test/model/RegisterOperatorsToAGroupChannelRequest.spec.js +test/model/RemoveARegistrationOrDeviceTokenResponse.spec.js +test/model/RemoveAllRegistrationOrDeviceTokenResponse.spec.js +test/model/ResetChatHistoryRequest.spec.js +test/model/ResetChatHistoryResponse.spec.js +test/model/ScheduleAnAnnouncementRequest.spec.js +test/model/ScheduleAnAnnouncementRequestCreateChannelOptions.spec.js +test/model/ScheduleAnAnnouncementRequestMessage.spec.js +test/model/ScheduleAnAnnouncementResponse.spec.js +test/model/ScheduleAnAnnouncementResponseMessage.spec.js +test/model/SendABotMessageRequest.spec.js +test/model/SendAMessageRequest.spec.js +test/model/SendAdminMessageRequestBody.spec.js +test/model/SendFileMessageRequestBody.spec.js +test/model/SendTextMessageRequestBody.spec.js +test/model/SendTextMessageRequestBodyPushMessageTemplate.spec.js +test/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.spec.js +test/model/SendbirdBasicUserInfo.spec.js +test/model/SendbirdDisappearingMessage.spec.js +test/model/SendbirdExtendedMessagePayload.spec.js +test/model/SendbirdFile.spec.js +test/model/SendbirdGroupChannel.spec.js +test/model/SendbirdGroupChannelDetail.spec.js +test/model/SendbirdGroupChannelDetailChannel.spec.js +test/model/SendbirdMember.spec.js +test/model/SendbirdMessageResponse.spec.js +test/model/SendbirdMessageResponseMessageEvents.spec.js +test/model/SendbirdOpenChannel.spec.js +test/model/SendbirdParentMessageInfo.spec.js +test/model/SendbirdPushTriggerOption.spec.js +test/model/SendbirdReaction.spec.js +test/model/SendbirdSmsFallback.spec.js +test/model/SendbirdSortedMetaarrayInner.spec.js +test/model/SendbirdThumbnail.spec.js +test/model/SendbirdUser.spec.js +test/model/StartTypingIndicatorsRequest.spec.js +test/model/UpdateAChannelMetadataRequest.spec.js +test/model/UpdateAGroupChannelRequest.spec.js +test/model/UpdateAMessageRequest.spec.js +test/model/UpdateAUserRequest.spec.js +test/model/UpdateAnOpenChannelRequest.spec.js +test/model/UpdateChannelInvitationPreferenceRequest.spec.js +test/model/UpdateChannelInvitationPreferenceResponse.spec.js +test/model/UpdateCountPreferenceOfAChannelRequest.spec.js +test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js +test/model/UpdateExtraDataInAMessageRequest.spec.js +test/model/UpdateExtraDataInAMessageResponse.spec.js +test/model/UpdatePushPreferencesForAChannelRequest.spec.js +test/model/UpdatePushPreferencesForAChannelResponse.spec.js +test/model/UpdatePushPreferencesRequest.spec.js +test/model/UpdatePushPreferencesResponse.spec.js +test/model/ViewCountPreferenceOfAChannelResponse.spec.js +test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js +test/model/ViewNumberOfDailyActiveUsersResponse.spec.js +test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js +test/model/ViewNumberOfUnreadMessagesResponse.spec.js +test/model/ViewPushPreferencesForAChannelResponse.spec.js +test/model/ViewPushPreferencesResponse.spec.js diff --git a/README.md-e b/README.md-e new file mode 100644 index 0000000..3a021c1 --- /dev/null +++ b/README.md-e @@ -0,0 +1,90 @@ +![Sendbird banner image](http://ww1.prweb.com/prfiles/2021/09/14/18371217/Sendbird_Logo_RGB_lg.png) + +# [Sendbird JavaScript Platform SDK](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) + +[![link to docs](https://img.shields.io/badge/SDK-docs-green)](/docs) + +This is a Node.js package that makes talking to the [Sendbird Platform API](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) easier. With this library you can extend your Sendbird integration to include advanced features like channel automation and user management. +# Install +```npm install sendbird-platform-sdk``` + +# 🔥 Quick start + +```javascript +import SendbirdPlatformSdk from 'sendbird-platform-sdk'; + +const userId = "1234"; +const name = "bob"; +const profileUrl = "https://picsum.photos/200"; +const apiToken = "YOUR_API_TOKEN"; +const appId = "YOUR_APP_ID"; + +const opts = { + 'createUserData': new SendbirdPlatformSdk.CreateUserData(userId, name, profileUrl), +}; + +async function createUser() { + const userApiInstance = new SendbirdPlatformSdk.UserApi(); + userApiInstance.apiClient.basePath = `https://api-${appId}.sendbird.com`; + try { + const data = await userApiInstance.createUser(apiToken, opts); + console.log(data); + } catch (e) { + console.log(e); + } +} + +createUser(); + +``` + +# ⚒️ Prerequisite + +In order to make requests with this SDK you will need you master API token. This can be found through the [Sendbird dashboard](https://dashboard.sendbird.com/). Each app you create in Sendbird has its own master api token. These tokens can be found in Settings > Application > General. + +![how to find you api token](https://i.imgur.com/0YMKtpX.png) + +# 💻 Requirements + +You will need [Node.js](https://nodejs.org/en/download/) installed. This has been developed and tested with NodeJS 17+. + +# 🤓 Local Development + +To run locally we need to make use of the [npm link](https://docs.npmjs.com/cli/v8/commands/npm-link) command. You will require two terminal tabs. + +Please follow these steps: + +##### Terminal 1 + +1. Clone this repo to your machine ```git clone git@github.com:sendbird/sendbird-platform-sdk-javascript``` +2. Move into the newly cloned repo ```cd sendbird-platform-sdk-javascript``` +3. Install node modules ```npm install``` +4. Build the bundled JS ```npm run build``` +5. Link the package ```npm link``` + +##### Terminal 2 + +1. Create a new npm package or move into and existing one ```mkdir app-using-sendbird-chat``` +```npm init -y``` +2. Link package to sendbird-platform-sdk ```npm link path/to/sdk/sendbird-platform-sdk-javascript``` + +The linking step is demonstrated visually here. + +![npm link walkthrough](https://i.imgur.com/897SxfC.gif) + + +# 🗃️ Documentation +All the documentation for this project lives in the /docs directory of this repo. + +##### Helpful links + +| | Documentation | +| ----------- | ----------- | +| Announcement | [docs/AnnouncementApi.md](docs/AnnouncementApi.md)| +| Application | [docs/ApplicationApi.md](docs/ApplicationApi.md) | +| Bot | [docs/BotApi.md](docs/BotApi.md) | +| GroupChannel | [docs/GroupChannelApi.md](docs/GroupChannelApi.md) | +| Message | [docs/MessageApi.md](docs/MessageApi.md) | +| OpenChannel | [docs/OpenChannelApi.md ](docs/OpenChannelApi.md) | +| User | [docs/UserApi.md](docs/UserApi.md) | +| Webhooks | [docs/WebhooksApi.md](docs/WebhooksApi.md) | diff --git a/dist/ApiClient.js b/dist/ApiClient.js index c307405..e2c8e9c 100644 --- a/dist/ApiClient.js +++ b/dist/ApiClient.js @@ -6,14 +6,27 @@ Object.defineProperty(exports, "__esModule", { exports["default"] = void 0; var _superagent = _interopRequireDefault(require("superagent")); var _querystring = _interopRequireDefault(require("querystring")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * @module ApiClient -* @version 0.0.16 +* @version 2.0.0 */ /** * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an @@ -50,7 +63,7 @@ var ApiClient = /*#__PURE__*/function () { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI-Generator/0.0.16/Javascript' + 'User-Agent': 'OpenAPI-Generator/2.0.0/Javascript' }; /** @@ -99,7 +112,7 @@ var ApiClient = /*#__PURE__*/function () { * @param param The actual parameter. * @returns {String} The string representation of param. */ - _createClass(ApiClient, [{ + return _createClass(ApiClient, [{ key: "paramToString", value: function paramToString(param) { if (param == undefined || param == null) { @@ -648,7 +661,6 @@ var ApiClient = /*#__PURE__*/function () { } } }]); - return ApiClient; }(); /** * Enumeration of collection format separator strategies. @@ -688,5 +700,4 @@ ApiClient.CollectionFormatEnum = { * @type {module:ApiClient} */ ApiClient.instance = new ApiClient(); -var _default = ApiClient; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ApiClient; \ No newline at end of file diff --git a/dist/api/AnnouncementApi.js b/dist/api/AnnouncementApi.js index d2a1e88..c910f13 100644 --- a/dist/api/AnnouncementApi.js +++ b/dist/api/AnnouncementApi.js @@ -5,26 +5,32 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetDetailedOpenRateOfAnnouncementGroupResponse = _interopRequireDefault(require("../model/GetDetailedOpenRateOfAnnouncementGroupResponse")); -var _GetStatisticsDailyResponse = _interopRequireDefault(require("../model/GetStatisticsDailyResponse")); -var _GetStatisticsMonthlyResponse = _interopRequireDefault(require("../model/GetStatisticsMonthlyResponse")); -var _GetStatisticsResponse = _interopRequireDefault(require("../model/GetStatisticsResponse")); -var _ListAnnouncementGroupsResponse = _interopRequireDefault(require("../model/ListAnnouncementGroupsResponse")); -var _ScheduleAnnouncementData = _interopRequireDefault(require("../model/ScheduleAnnouncementData")); -var _ScheduleAnnouncementResponse = _interopRequireDefault(require("../model/ScheduleAnnouncementResponse")); -var _UpdateAnnouncementByIdData = _interopRequireDefault(require("../model/UpdateAnnouncementByIdData")); -var _UpdateAnnouncementByIdResponse = _interopRequireDefault(require("../model/UpdateAnnouncementByIdResponse")); -var _ViewAnnouncementByIdResponse = _interopRequireDefault(require("../model/ViewAnnouncementByIdResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _ScheduleAnAnnouncementRequest = _interopRequireDefault(require("../model/ScheduleAnAnnouncementRequest")); +var _ScheduleAnAnnouncementResponse = _interopRequireDefault(require("../model/ScheduleAnAnnouncementResponse")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Announcement service. * @module api/AnnouncementApi -* @version 0.0.16 +* @version 2.0.0 */ -var AnnouncementApi = /*#__PURE__*/function () { +var AnnouncementApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new AnnouncementApi. * @alias module:api/AnnouncementApi @@ -38,426 +44,45 @@ var AnnouncementApi = /*#__PURE__*/function () { } /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param {String} apiToken - * @param {String} announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} and HTTP response + * Schedule an announcement + * ## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/ScheduleAnAnnouncementRequest} opts.scheduleAnAnnouncementRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ScheduleAnAnnouncementResponse} and HTTP response */ - _createClass(AnnouncementApi, [{ - key: "getDetailedOpenRateOfAnnouncementGroupWithHttpInfo", - value: function getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementGroup"); - } - // verify the required parameter 'announcementGroup' is set - if (announcementGroup === undefined || announcementGroup === null) { - throw new Error("Missing the required parameter 'announcementGroup' when calling getDetailedOpenRateOfAnnouncementGroup"); - } - var pathParams = { - 'announcement_group': announcementGroup - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetDetailedOpenRateOfAnnouncementGroupResponse["default"]; - return this.apiClient.callApi('/v3/announcement_open_rate_by_group/{announcement_group}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param {String} apiToken - * @param {String} announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} - */ - }, { - key: "getDetailedOpenRateOfAnnouncementGroup", - value: function getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup) { - return this.getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsResponse} and HTTP response - */ - }, { - key: "getStatisticsWithHttpInfo", - value: function getStatisticsWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatistics"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetStatisticsResponse["default"]; - return this.apiClient.callApi('/v3/announcement_stats/weekly', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsResponse} - */ - }, { - key: "getStatistics", - value: function getStatistics(apiToken) { - return this.getStatisticsWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get statistics - daily - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @param {String} startDate - * @param {String} endDate - * @param {String} startWeek - * @param {String} endWeek - * @param {String} startMonth - * @param {String} endMonth - * @param {Object} opts Optional parameters - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsDailyResponse} and HTTP response - */ - }, { - key: "getStatisticsDailyWithHttpInfo", - value: function getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) { + return _createClass(AnnouncementApi, [{ + key: "scheduleAnAnnouncementWithHttpInfo", + value: function scheduleAnAnnouncementWithHttpInfo(opts) { opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatisticsDaily"); - } - // verify the required parameter 'startDate' is set - if (startDate === undefined || startDate === null) { - throw new Error("Missing the required parameter 'startDate' when calling getStatisticsDaily"); - } - // verify the required parameter 'endDate' is set - if (endDate === undefined || endDate === null) { - throw new Error("Missing the required parameter 'endDate' when calling getStatisticsDaily"); - } - // verify the required parameter 'startWeek' is set - if (startWeek === undefined || startWeek === null) { - throw new Error("Missing the required parameter 'startWeek' when calling getStatisticsDaily"); - } - // verify the required parameter 'endWeek' is set - if (endWeek === undefined || endWeek === null) { - throw new Error("Missing the required parameter 'endWeek' when calling getStatisticsDaily"); - } - // verify the required parameter 'startMonth' is set - if (startMonth === undefined || startMonth === null) { - throw new Error("Missing the required parameter 'startMonth' when calling getStatisticsDaily"); - } - // verify the required parameter 'endMonth' is set - if (endMonth === undefined || endMonth === null) { - throw new Error("Missing the required parameter 'endMonth' when calling getStatisticsDaily"); - } - var pathParams = {}; - var queryParams = { - 'start_date': startDate, - 'end_date': endDate, - 'start_week': startWeek, - 'end_week': endWeek, - 'start_month': startMonth, - 'end_month': endMonth, - 'announcement_group': opts['announcementGroup'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetStatisticsDailyResponse["default"]; - return this.apiClient.callApi('/v3/announcement_stats/daily', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get statistics - daily - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @param {String} startDate - * @param {String} endDate - * @param {String} startWeek - * @param {String} endWeek - * @param {String} startMonth - * @param {String} endMonth - * @param {Object} opts Optional parameters - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsDailyResponse} - */ - }, { - key: "getStatisticsDaily", - value: function getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) { - return this.getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get statistics - monthly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsMonthlyResponse} and HTTP response - */ - }, { - key: "getStatisticsMonthlyWithHttpInfo", - value: function getStatisticsMonthlyWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatisticsMonthly"); - } + var postBody = opts['scheduleAnAnnouncementRequest']; var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetStatisticsMonthlyResponse["default"]; - return this.apiClient.callApi('/v3/announcement_stats/monthly', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get statistics - monthly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsMonthlyResponse} - */ - }, { - key: "getStatisticsMonthly", - value: function getStatisticsMonthly(apiToken) { - return this.getStatisticsMonthlyWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAnnouncementGroupsResponse} and HTTP response - */ - }, { - key: "listAnnouncementGroupsWithHttpInfo", - value: function listAnnouncementGroupsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAnnouncementGroups"); - } - var pathParams = {}; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListAnnouncementGroupsResponse["default"]; - return this.apiClient.callApi('/v3/announcement_group', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAnnouncementGroupsResponse} - */ - }, { - key: "listAnnouncementGroups", - value: function listAnnouncementGroups(apiToken, opts) { - return this.listAnnouncementGroupsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ScheduleAnnouncementData} opts.scheduleAnnouncementData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ScheduleAnnouncementResponse} and HTTP response - */ - }, { - key: "scheduleAnnouncementWithHttpInfo", - value: function scheduleAnnouncementWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['scheduleAnnouncementData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling scheduleAnnouncement"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _ScheduleAnnouncementResponse["default"]; + var returnType = _ScheduleAnAnnouncementResponse["default"]; return this.apiClient.callApi('/v3/announcements', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ScheduleAnnouncementData} opts.scheduleAnnouncementData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ScheduleAnnouncementResponse} - */ - }, { - key: "scheduleAnnouncement", - value: function scheduleAnnouncement(apiToken, opts) { - return this.scheduleAnnouncementWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateAnnouncementByIdData} opts.updateAnnouncementByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAnnouncementByIdResponse} and HTTP response - */ - }, { - key: "updateAnnouncementByIdWithHttpInfo", - value: function updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) { - opts = opts || {}; - var postBody = opts['updateAnnouncementByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling updateAnnouncementById"); - } - var pathParams = { - 'unique_id': uniqueId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateAnnouncementByIdResponse["default"]; - return this.apiClient.callApi('/v3/announcements/{unique_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId + * ## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement) * @param {Object} opts Optional parameters - * @param {module:model/UpdateAnnouncementByIdData} opts.updateAnnouncementByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAnnouncementByIdResponse} - */ - }, { - key: "updateAnnouncementById", - value: function updateAnnouncementById(apiToken, uniqueId, opts) { - return this.updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewAnnouncementByIdResponse} and HTTP response - */ - }, { - key: "viewAnnouncementByIdWithHttpInfo", - value: function viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling viewAnnouncementById"); - } - var pathParams = { - 'unique_id': uniqueId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewAnnouncementByIdResponse["default"]; - return this.apiClient.callApi('/v3/announcements/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewAnnouncementByIdResponse} + * @param {String} opts.apiToken + * @param {module:model/ScheduleAnAnnouncementRequest} opts.scheduleAnAnnouncementRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ScheduleAnAnnouncementResponse} */ }, { - key: "viewAnnouncementById", - value: function viewAnnouncementById(apiToken, uniqueId) { - return this.viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId).then(function (response_and_data) { + key: "scheduleAnAnnouncement", + value: function scheduleAnAnnouncement(opts) { + return this.scheduleAnAnnouncementWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return AnnouncementApi; -}(); -exports["default"] = AnnouncementApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/ApplicationApi.js b/dist/api/ApplicationApi.js deleted file mode 100644 index eea8766..0000000 --- a/dist/api/ApplicationApi.js +++ /dev/null @@ -1,1615 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddApnsPushConfigurationData = _interopRequireDefault(require("../model/AddApnsPushConfigurationData")); -var _AddApnsPushConfigurationResponse = _interopRequireDefault(require("../model/AddApnsPushConfigurationResponse")); -var _AddFcmPushConfigurationData = _interopRequireDefault(require("../model/AddFcmPushConfigurationData")); -var _AddFcmPushConfigurationResponse = _interopRequireDefault(require("../model/AddFcmPushConfigurationResponse")); -var _AddHmsPushConfigurationData = _interopRequireDefault(require("../model/AddHmsPushConfigurationData")); -var _AddHmsPushConfigurationResponse = _interopRequireDefault(require("../model/AddHmsPushConfigurationResponse")); -var _AddIpToWhitelistData = _interopRequireDefault(require("../model/AddIpToWhitelistData")); -var _AddIpToWhitelistResponse = _interopRequireDefault(require("../model/AddIpToWhitelistResponse")); -var _BanUsersInChannelsWithCustomChannelTypeData = _interopRequireDefault(require("../model/BanUsersInChannelsWithCustomChannelTypeData")); -var _ConfigureAutoEventData = _interopRequireDefault(require("../model/ConfigureAutoEventData")); -var _CustomTypeListBannedUsersResponse = _interopRequireDefault(require("../model/CustomTypeListBannedUsersResponse")); -var _DeleteAllowedIpsFromWhitelistResponse = _interopRequireDefault(require("../model/DeleteAllowedIpsFromWhitelistResponse")); -var _DeleteApnsCertificateByIdResponse = _interopRequireDefault(require("../model/DeleteApnsCertificateByIdResponse")); -var _GenerateSecondaryApiTokenData = _interopRequireDefault(require("../model/GenerateSecondaryApiTokenData")); -var _GenerateSecondaryApiTokenResponse = _interopRequireDefault(require("../model/GenerateSecondaryApiTokenResponse")); -var _ListMutedUsersInChannelsWithCustomChannelType200Response = _interopRequireDefault(require("../model/ListMutedUsersInChannelsWithCustomChannelType200Response")); -var _ListPushConfigurationsResponse = _interopRequireDefault(require("../model/ListPushConfigurationsResponse")); -var _ListPushNotificationContentTemplatesResponse = _interopRequireDefault(require("../model/ListPushNotificationContentTemplatesResponse")); -var _ListSecondaryApiTokensResponse = _interopRequireDefault(require("../model/ListSecondaryApiTokensResponse")); -var _MuteUsersInChannelsWithCustomChannelTypeData = _interopRequireDefault(require("../model/MuteUsersInChannelsWithCustomChannelTypeData")); -var _RemovePushConfigurationByIdResponse = _interopRequireDefault(require("../model/RemovePushConfigurationByIdResponse")); -var _RetrieveIpWhitelistResponse = _interopRequireDefault(require("../model/RetrieveIpWhitelistResponse")); -var _RevokeSecondaryApiTokenByTokenResponse = _interopRequireDefault(require("../model/RevokeSecondaryApiTokenByTokenResponse")); -var _SendBirdAutoEventMessageSettings = _interopRequireDefault(require("../model/SendBirdAutoEventMessageSettings")); -var _SendBirdChannelResponse = _interopRequireDefault(require("../model/SendBirdChannelResponse")); -var _SetDomainFilterData = _interopRequireDefault(require("../model/SetDomainFilterData")); -var _UpdateApnsPushConfigurationByIdData = _interopRequireDefault(require("../model/UpdateApnsPushConfigurationByIdData")); -var _UpdateApnsPushConfigurationByIdResponse = _interopRequireDefault(require("../model/UpdateApnsPushConfigurationByIdResponse")); -var _UpdateDefaultChannelInvitationPreferenceData = _interopRequireDefault(require("../model/UpdateDefaultChannelInvitationPreferenceData")); -var _UpdateDefaultChannelInvitationPreferenceResponse = _interopRequireDefault(require("../model/UpdateDefaultChannelInvitationPreferenceResponse")); -var _UpdateFcmPushConfigurationByIdData = _interopRequireDefault(require("../model/UpdateFcmPushConfigurationByIdData")); -var _UpdateFcmPushConfigurationByIdResponse = _interopRequireDefault(require("../model/UpdateFcmPushConfigurationByIdResponse")); -var _UpdateHmsPushConfigurationByIdData = _interopRequireDefault(require("../model/UpdateHmsPushConfigurationByIdData")); -var _UpdateHmsPushConfigurationByIdResponse = _interopRequireDefault(require("../model/UpdateHmsPushConfigurationByIdResponse")); -var _UpdatePushNotificationContentTemplateData = _interopRequireDefault(require("../model/UpdatePushNotificationContentTemplateData")); -var _UpdatePushNotificationContentTemplateResponse = _interopRequireDefault(require("../model/UpdatePushNotificationContentTemplateResponse")); -var _ViewDefaultChannelInvitationPreferenceResponse = _interopRequireDefault(require("../model/ViewDefaultChannelInvitationPreferenceResponse")); -var _ViewPushConfigurationByIdResponse = _interopRequireDefault(require("../model/ViewPushConfigurationByIdResponse")); -var _ViewPushNotificationContentTemplateResponse = _interopRequireDefault(require("../model/ViewPushNotificationContentTemplateResponse")); -var _ViewSecondaryApiTokenByTokenResponse = _interopRequireDefault(require("../model/ViewSecondaryApiTokenByTokenResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** -* Application service. -* @module api/ApplicationApi -* @version 0.0.16 -*/ -var ApplicationApi = /*#__PURE__*/function () { - /** - * Constructs a new ApplicationApi. - * @alias module:api/ApplicationApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function ApplicationApi(apiClient) { - _classCallCheck(this, ApplicationApi); - this.apiClient = apiClient || _ApiClient["default"].instance; - } - - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddApnsPushConfigurationData} opts.addApnsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddApnsPushConfigurationResponse} and HTTP response - */ - _createClass(ApplicationApi, [{ - key: "addApnsPushConfigurationWithHttpInfo", - value: function addApnsPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['addApnsPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addApnsPushConfiguration"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddApnsPushConfigurationResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/apns', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddApnsPushConfigurationData} opts.addApnsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddApnsPushConfigurationResponse} - */ - }, { - key: "addApnsPushConfiguration", - value: function addApnsPushConfiguration(apiToken, opts) { - return this.addApnsPushConfigurationWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddFcmPushConfigurationData} opts.addFcmPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFcmPushConfigurationResponse} and HTTP response - */ - }, { - key: "addFcmPushConfigurationWithHttpInfo", - value: function addFcmPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['addFcmPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addFcmPushConfiguration"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddFcmPushConfigurationResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/fcm', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddFcmPushConfigurationData} opts.addFcmPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFcmPushConfigurationResponse} - */ - }, { - key: "addFcmPushConfiguration", - value: function addFcmPushConfiguration(apiToken, opts) { - return this.addFcmPushConfigurationWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddHmsPushConfigurationData} opts.addHmsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddHmsPushConfigurationResponse} and HTTP response - */ - }, { - key: "addHmsPushConfigurationWithHttpInfo", - value: function addHmsPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['addHmsPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addHmsPushConfiguration"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddHmsPushConfigurationResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/hms', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddHmsPushConfigurationData} opts.addHmsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddHmsPushConfigurationResponse} - */ - }, { - key: "addHmsPushConfiguration", - value: function addHmsPushConfiguration(apiToken, opts) { - return this.addHmsPushConfigurationWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddIpToWhitelistData} opts.addIpToWhitelistData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddIpToWhitelistResponse} and HTTP response - */ - }, { - key: "addIpToWhitelistWithHttpInfo", - value: function addIpToWhitelistWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['addIpToWhitelistData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addIpToWhitelist"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddIpToWhitelistResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/ip_whitelist', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddIpToWhitelistData} opts.addIpToWhitelistData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddIpToWhitelistResponse} - */ - }, { - key: "addIpToWhitelist", - value: function addIpToWhitelist(apiToken, opts) { - return this.addIpToWhitelistWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} opts.banUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "banUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - var postBody = opts['banUsersInChannelsWithCustomChannelTypeData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling banUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling banUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} opts.banUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "banUsersInChannelsWithCustomChannelType", - value: function banUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ConfigureAutoEventData} opts.configureAutoEventData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdAutoEventMessageSettings} and HTTP response - */ - }, { - key: "configureAutoEventMessagesWithHttpInfo", - value: function configureAutoEventMessagesWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['configureAutoEventData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling configureAutoEventMessages"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdAutoEventMessageSettings["default"]; - return this.apiClient.callApi('/v3/applications/settings/auto_event_message', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ConfigureAutoEventData} opts.configureAutoEventData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdAutoEventMessageSettings} - */ - }, { - key: "configureAutoEventMessages", - value: function configureAutoEventMessages(apiToken, opts) { - return this.configureAutoEventMessagesWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param {String} apiToken - * @param {Array.} ipWhitelistAddresses - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteAllowedIpsFromWhitelistResponse} and HTTP response - */ - }, { - key: "deleteAllowedIpsFromWhitelistWithHttpInfo", - value: function deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteAllowedIpsFromWhitelist"); - } - // verify the required parameter 'ipWhitelistAddresses' is set - if (ipWhitelistAddresses === undefined || ipWhitelistAddresses === null) { - throw new Error("Missing the required parameter 'ipWhitelistAddresses' when calling deleteAllowedIpsFromWhitelist"); - } - var pathParams = {}; - var queryParams = { - 'ip_whitelist_addresses': this.apiClient.buildCollectionParam(ipWhitelistAddresses, 'multi') - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _DeleteAllowedIpsFromWhitelistResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/ip_whitelist', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param {String} apiToken - * @param {Array.} ipWhitelistAddresses - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteAllowedIpsFromWhitelistResponse} - */ - }, { - key: "deleteAllowedIpsFromWhitelist", - value: function deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses) { - return this.deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteApnsCertificateByIdResponse} and HTTP response - */ - }, { - key: "deleteApnsCertificateByIdWithHttpInfo", - value: function deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteApnsCertificateById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling deleteApnsCertificateById"); - } - var pathParams = { - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _DeleteApnsCertificateByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/apns/cert/{provider_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteApnsCertificateByIdResponse} - */ - }, { - key: "deleteApnsCertificateById", - value: function deleteApnsCertificateById(apiToken, providerId) { - return this.deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/GenerateSecondaryApiTokenData} opts.generateSecondaryApiTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateSecondaryApiTokenResponse} and HTTP response - */ - }, { - key: "generateSecondaryApiTokenWithHttpInfo", - value: function generateSecondaryApiTokenWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['generateSecondaryApiTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling generateSecondaryApiToken"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GenerateSecondaryApiTokenResponse["default"]; - return this.apiClient.callApi('/v3/applications/api_tokens', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/GenerateSecondaryApiTokenData} opts.generateSecondaryApiTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateSecondaryApiTokenResponse} - */ - }, { - key: "generateSecondaryApiToken", - value: function generateSecondaryApiToken(apiToken, opts) { - return this.generateSecondaryApiTokenWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdAutoEventMessageSettings} and HTTP response - */ - }, { - key: "listAutoEventMessagesWithHttpInfo", - value: function listAutoEventMessagesWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAutoEventMessages"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _SendBirdAutoEventMessageSettings["default"]; - return this.apiClient.callApi('/v3/applications/settings/auto_event_message', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdAutoEventMessageSettings} - */ - }, { - key: "listAutoEventMessages", - value: function listAutoEventMessages(apiToken) { - return this.listAutoEventMessagesWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomTypeListBannedUsersResponse} and HTTP response - */ - }, { - key: "listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBannedUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling listBannedUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _CustomTypeListBannedUsersResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomTypeListBannedUsersResponse} - */ - }, { - key: "listBannedUsersInChannelsWithCustomChannelType", - value: function listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} and HTTP response - */ - }, { - key: "listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMutedUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling listMutedUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListMutedUsersInChannelsWithCustomChannelType200Response["default"]; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} - */ - }, { - key: "listMutedUsersInChannelsWithCustomChannelType", - value: function listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPushConfigurationsResponse} and HTTP response - */ - }, { - key: "listPushConfigurationsWithHttpInfo", - value: function listPushConfigurationsWithHttpInfo(apiToken, pushType) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listPushConfigurations"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling listPushConfigurations"); - } - var pathParams = { - 'push_type': pushType - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListPushConfigurationsResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/{push_type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPushConfigurationsResponse} - */ - }, { - key: "listPushConfigurations", - value: function listPushConfigurations(apiToken, pushType) { - return this.listPushConfigurationsWithHttpInfo(apiToken, pushType).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPushNotificationContentTemplatesResponse} and HTTP response - */ - }, { - key: "listPushNotificationContentTemplatesWithHttpInfo", - value: function listPushNotificationContentTemplatesWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listPushNotificationContentTemplates"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListPushNotificationContentTemplatesResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/message_templates', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPushNotificationContentTemplatesResponse} - */ - }, { - key: "listPushNotificationContentTemplates", - value: function listPushNotificationContentTemplates(apiToken) { - return this.listPushNotificationContentTemplatesWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSecondaryApiTokensResponse} and HTTP response - */ - }, { - key: "listSecondaryApiTokensWithHttpInfo", - value: function listSecondaryApiTokensWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listSecondaryApiTokens"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListSecondaryApiTokensResponse["default"]; - return this.apiClient.callApi('/v3/applications/api_tokens', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSecondaryApiTokensResponse} - */ - }, { - key: "listSecondaryApiTokens", - value: function listSecondaryApiTokens(apiToken) { - return this.listSecondaryApiTokensWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} opts.muteUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "muteUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - var postBody = opts['muteUsersInChannelsWithCustomChannelTypeData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling muteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling muteUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} opts.muteUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "muteUsersInChannelsWithCustomChannelType", - value: function muteUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemovePushConfigurationByIdResponse} and HTTP response - */ - }, { - key: "removePushConfigurationByIdWithHttpInfo", - value: function removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removePushConfigurationById"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling removePushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling removePushConfigurationById"); - } - var pathParams = { - 'push_type': pushType, - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RemovePushConfigurationByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/{push_type}/{provider_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemovePushConfigurationByIdResponse} - */ - }, { - key: "removePushConfigurationById", - value: function removePushConfigurationById(apiToken, pushType, providerId) { - return this.removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveIpWhitelistResponse} and HTTP response - */ - }, { - key: "retrieveIpWhitelistWithHttpInfo", - value: function retrieveIpWhitelistWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveIpWhitelist"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RetrieveIpWhitelistResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/ip_whitelist', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveIpWhitelistResponse} - */ - }, { - key: "retrieveIpWhitelist", - value: function retrieveIpWhitelist(apiToken) { - return this.retrieveIpWhitelistWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RevokeSecondaryApiTokenByTokenResponse} and HTTP response - */ - }, { - key: "revokeSecondaryApiTokenByTokenWithHttpInfo", - value: function revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling revokeSecondaryApiTokenByToken"); - } - // verify the required parameter 'apiToken2' is set - if (apiToken2 === undefined || apiToken2 === null) { - throw new Error("Missing the required parameter 'apiToken2' when calling revokeSecondaryApiTokenByToken"); - } - var pathParams = { - 'api_token': apiToken2 - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RevokeSecondaryApiTokenByTokenResponse["default"]; - return this.apiClient.callApi('/v3/applications/api_tokens/{api_token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RevokeSecondaryApiTokenByTokenResponse} - */ - }, { - key: "revokeSecondaryApiTokenByToken", - value: function revokeSecondaryApiTokenByToken(apiToken, apiToken2) { - return this.revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Message moderation - * ## - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/SetDomainFilterData} opts.setDomainFilterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdChannelResponse} and HTTP response - */ - }, { - key: "setDomainFilterWithHttpInfo", - value: function setDomainFilterWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - var postBody = opts['setDomainFilterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling setDomainFilter"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling setDomainFilter"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdChannelResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings_global/{custom_type}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Message moderation - * ## - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/SetDomainFilterData} opts.setDomainFilterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdChannelResponse} - */ - }, { - key: "setDomainFilter", - value: function setDomainFilter(apiToken, customType, opts) { - return this.setDomainFilterWithHttpInfo(apiToken, customType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unbanUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling unbanUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'userIds' is set - if (userIds === undefined || userIds === null) { - throw new Error("Missing the required parameter 'userIds' when calling unbanUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = { - 'user_ids': this.apiClient.buildCollectionParam(userIds, 'multi') - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "unbanUsersInChannelsWithCustomChannelType", - value: function unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) { - return this.unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo", - value: function unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'userIds' is set - if (userIds === undefined || userIds === null) { - throw new Error("Missing the required parameter 'userIds' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - var pathParams = { - 'custom_type': customType - }; - var queryParams = { - 'user_ids': this.apiClient.buildCollectionParam(userIds, 'multi') - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "unmuteUsersInChannelsWithCustomChannelType", - value: function unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) { - return this.unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateApnsPushConfigurationByIdData} opts.updateApnsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateApnsPushConfigurationByIdResponse} and HTTP response - */ - }, { - key: "updateApnsPushConfigurationByIdWithHttpInfo", - value: function updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - var postBody = opts['updateApnsPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateApnsPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateApnsPushConfigurationById"); - } - var pathParams = { - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateApnsPushConfigurationByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/apns/{provider_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateApnsPushConfigurationByIdData} opts.updateApnsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateApnsPushConfigurationByIdResponse} - */ - }, { - key: "updateApnsPushConfigurationById", - value: function updateApnsPushConfigurationById(apiToken, providerId, opts) { - return this.updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} opts.updateDefaultChannelInvitationPreferenceData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDefaultChannelInvitationPreferenceResponse} and HTTP response - */ - }, { - key: "updateDefaultChannelInvitationPreferenceWithHttpInfo", - value: function updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['updateDefaultChannelInvitationPreferenceData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateDefaultChannelInvitationPreference"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateDefaultChannelInvitationPreferenceResponse["default"]; - return this.apiClient.callApi('/v3/applications/default_channel_invitation_preference', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} opts.updateDefaultChannelInvitationPreferenceData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDefaultChannelInvitationPreferenceResponse} - */ - }, { - key: "updateDefaultChannelInvitationPreference", - value: function updateDefaultChannelInvitationPreference(apiToken, opts) { - return this.updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFcmPushConfigurationByIdData} opts.updateFcmPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateFcmPushConfigurationByIdResponse} and HTTP response - */ - }, { - key: "updateFcmPushConfigurationByIdWithHttpInfo", - value: function updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - var postBody = opts['updateFcmPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateFcmPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateFcmPushConfigurationById"); - } - var pathParams = { - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateFcmPushConfigurationByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/fcm/{provider_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFcmPushConfigurationByIdData} opts.updateFcmPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateFcmPushConfigurationByIdResponse} - */ - }, { - key: "updateFcmPushConfigurationById", - value: function updateFcmPushConfigurationById(apiToken, providerId, opts) { - return this.updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateHmsPushConfigurationByIdData} opts.updateHmsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateHmsPushConfigurationByIdResponse} and HTTP response - */ - }, { - key: "updateHmsPushConfigurationByIdWithHttpInfo", - value: function updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - var postBody = opts['updateHmsPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateHmsPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateHmsPushConfigurationById"); - } - var pathParams = { - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateHmsPushConfigurationByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/hms/{provider_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateHmsPushConfigurationByIdData} opts.updateHmsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateHmsPushConfigurationByIdResponse} - */ - }, { - key: "updateHmsPushConfigurationById", - value: function updateHmsPushConfigurationById(apiToken, providerId, opts) { - return this.updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushNotificationContentTemplateData} opts.updatePushNotificationContentTemplateData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushNotificationContentTemplateResponse} and HTTP response - */ - }, { - key: "updatePushNotificationContentTemplateWithHttpInfo", - value: function updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, opts) { - opts = opts || {}; - var postBody = opts['updatePushNotificationContentTemplateData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushNotificationContentTemplate"); - } - // verify the required parameter 'templateName' is set - if (templateName === undefined || templateName === null) { - throw new Error("Missing the required parameter 'templateName' when calling updatePushNotificationContentTemplate"); - } - var pathParams = { - 'template_name': templateName - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdatePushNotificationContentTemplateResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/message_templates/{template_name}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushNotificationContentTemplateData} opts.updatePushNotificationContentTemplateData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushNotificationContentTemplateResponse} - */ - }, { - key: "updatePushNotificationContentTemplate", - value: function updatePushNotificationContentTemplate(apiToken, templateName, opts) { - return this.updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewDefaultChannelInvitationPreferenceResponse} and HTTP response - */ - }, { - key: "viewDefaultChannelInvitationPreferenceWithHttpInfo", - value: function viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewDefaultChannelInvitationPreference"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewDefaultChannelInvitationPreferenceResponse["default"]; - return this.apiClient.callApi('/v3/applications/default_channel_invitation_preference', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewDefaultChannelInvitationPreferenceResponse} - */ - }, { - key: "viewDefaultChannelInvitationPreference", - value: function viewDefaultChannelInvitationPreference(apiToken) { - return this.viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushConfigurationByIdResponse} and HTTP response - */ - }, { - key: "viewPushConfigurationByIdWithHttpInfo", - value: function viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushConfigurationById"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling viewPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling viewPushConfigurationById"); - } - var pathParams = { - 'push_type': pushType, - 'provider_id': providerId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewPushConfigurationByIdResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/{push_type}/{provider_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushConfigurationByIdResponse} - */ - }, { - key: "viewPushConfigurationById", - value: function viewPushConfigurationById(apiToken, pushType, providerId) { - return this.viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushNotificationContentTemplateResponse} and HTTP response - */ - }, { - key: "viewPushNotificationContentTemplateWithHttpInfo", - value: function viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushNotificationContentTemplate"); - } - // verify the required parameter 'templateName' is set - if (templateName === undefined || templateName === null) { - throw new Error("Missing the required parameter 'templateName' when calling viewPushNotificationContentTemplate"); - } - var pathParams = { - 'template_name': templateName - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewPushNotificationContentTemplateResponse["default"]; - return this.apiClient.callApi('/v3/applications/push/message_templates/{template_name}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushNotificationContentTemplateResponse} - */ - }, { - key: "viewPushNotificationContentTemplate", - value: function viewPushNotificationContentTemplate(apiToken, templateName) { - return this.viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewSecondaryApiTokenByTokenResponse} and HTTP response - */ - }, { - key: "viewSecondaryApiTokenByTokenWithHttpInfo", - value: function viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewSecondaryApiTokenByToken"); - } - // verify the required parameter 'apiToken2' is set - if (apiToken2 === undefined || apiToken2 === null) { - throw new Error("Missing the required parameter 'apiToken2' when calling viewSecondaryApiTokenByToken"); - } - var pathParams = { - 'api_token': apiToken2 - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewSecondaryApiTokenByTokenResponse["default"]; - return this.apiClient.callApi('/v3/applications/api_tokens/{api_token}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewSecondaryApiTokenByTokenResponse} - */ - }, { - key: "viewSecondaryApiTokenByToken", - value: function viewSecondaryApiTokenByToken(apiToken, apiToken2) { - return this.viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - return ApplicationApi; -}(); -exports["default"] = ApplicationApi; \ No newline at end of file diff --git a/dist/api/BotApi.js b/dist/api/BotApi.js index ed4ef43..edb3edd 100644 --- a/dist/api/BotApi.js +++ b/dist/api/BotApi.js @@ -5,26 +5,37 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateBotData = _interopRequireDefault(require("../model/CreateBotData")); -var _CreateBotResponse = _interopRequireDefault(require("../model/CreateBotResponse")); -var _JoinChannelsData = _interopRequireDefault(require("../model/JoinChannelsData")); -var _JoinChannelsResponse = _interopRequireDefault(require("../model/JoinChannelsResponse")); +var _CreateABotRequest = _interopRequireDefault(require("../model/CreateABotRequest")); +var _CreateABotResponse = _interopRequireDefault(require("../model/CreateABotResponse")); +var _JoinChannelsRequest = _interopRequireDefault(require("../model/JoinChannelsRequest")); var _ListBotsResponse = _interopRequireDefault(require("../model/ListBotsResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("../model/SendBirdMessageResponse")); -var _SendBotSMessageData = _interopRequireDefault(require("../model/SendBotSMessageData")); -var _UpdateBotByIdData = _interopRequireDefault(require("../model/UpdateBotByIdData")); -var _UpdateBotByIdResponse = _interopRequireDefault(require("../model/UpdateBotByIdResponse")); -var _ViewBotByIdResponse = _interopRequireDefault(require("../model/ViewBotByIdResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendABotMessageRequest = _interopRequireDefault(require("../model/SendABotMessageRequest")); +var _SendbirdGroupChannelDetail = _interopRequireDefault(require("../model/SendbirdGroupChannelDetail")); +var _SendbirdMessageResponse = _interopRequireDefault(require("../model/SendbirdMessageResponse")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Bot service. * @module api/BotApi -* @version 0.0.16 +* @version 2.0.0 */ -var BotApi = /*#__PURE__*/function () { +var BotApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new BotApi. * @alias module:api/BotApi @@ -39,117 +50,60 @@ var BotApi = /*#__PURE__*/function () { /** * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param {String} apiToken + * ## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot) * @param {Object} opts Optional parameters - * @param {module:model/CreateBotData} opts.createBotData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateBotResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateABotRequest} opts.createABotRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateABotResponse} and HTTP response */ - _createClass(BotApi, [{ - key: "createBotWithHttpInfo", - value: function createBotWithHttpInfo(apiToken, opts) { + return _createClass(BotApi, [{ + key: "createABotWithHttpInfo", + value: function createABotWithHttpInfo(opts) { opts = opts || {}; - var postBody = opts['createBotData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createBot"); - } + var postBody = opts['createABotRequest']; var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _CreateBotResponse["default"]; + var returnType = _CreateABotResponse["default"]; return this.apiClient.callApi('/v3/bots', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param {String} apiToken + * ## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot) * @param {Object} opts Optional parameters - * @param {module:model/CreateBotData} opts.createBotData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateBotResponse} - */ - }, { - key: "createBot", - value: function createBot(apiToken, opts) { - return this.createBotWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "deleteBotByIdWithHttpInfo", - value: function deleteBotByIdWithHttpInfo(apiToken, botUserid) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling deleteBotById"); - } - var pathParams = { - 'bot_userid': botUserid - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/bots/{bot_userid}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {String} opts.apiToken + * @param {module:model/CreateABotRequest} opts.createABotRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateABotResponse} */ }, { - key: "deleteBotById", - value: function deleteBotById(apiToken, botUserid) { - return this.deleteBotByIdWithHttpInfo(apiToken, botUserid).then(function (response_and_data) { + key: "createABot", + value: function createABot(opts) { + return this.createABotWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * ## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels) + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/JoinChannelsData} opts.joinChannelsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JoinChannelsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/JoinChannelsRequest} opts.joinChannelsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ }, { key: "joinChannelsWithHttpInfo", - value: function joinChannelsWithHttpInfo(apiToken, botUserid, opts) { + value: function joinChannelsWithHttpInfo(botUserid, opts) { opts = opts || {}; - var postBody = opts['joinChannelsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling joinChannels"); - } + var postBody = opts['joinChannelsRequest']; // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { throw new Error("Missing the required parameter 'botUserid' when calling joinChannels"); @@ -159,170 +113,157 @@ var BotApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _JoinChannelsResponse["default"]; + var returnType = _SendbirdGroupChannelDetail["default"]; return this.apiClient.callApi('/v3/bots/{bot_userid}/channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * ## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels) + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/JoinChannelsData} opts.joinChannelsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JoinChannelsResponse} + * @param {String} opts.apiToken + * @param {module:model/JoinChannelsRequest} opts.joinChannelsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { key: "joinChannels", - value: function joinChannels(apiToken, botUserid, opts) { - return this.joinChannelsWithHttpInfo(apiToken, botUserid, opts).then(function (response_and_data) { + value: function joinChannels(botUserid, opts) { + return this.joinChannelsWithHttpInfo(botUserid, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * Leave channels - When leaving a specific channel + * ## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} channelUrl + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {String} opts.channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "leaveChannelsWithHttpInfo", - value: function leaveChannelsWithHttpInfo(apiToken, botUserid, opts) { + key: "leaveAGroupChannelWithHttpInfo", + value: function leaveAGroupChannelWithHttpInfo(channelUrl, botUserid, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveChannels"); + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling leaveAGroupChannel"); } // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling leaveChannels"); + throw new Error("Missing the required parameter 'botUserid' when calling leaveAGroupChannel"); } var pathParams = { + 'channel_url': channelUrl, 'bot_userid': botUserid }; - var queryParams = { - 'channel_url': opts['channelUrl'] - }; + var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/bots/{bot_userid}/channels', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var accepts = ['application/json']; + var returnType = Object; + return this.apiClient.callApi('/v3/bots/{bot_userid}/channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * Leave channels - When leaving a specific channel + * ## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} channelUrl + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {String} opts.channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "leaveChannels", - value: function leaveChannels(apiToken, botUserid, opts) { - return this.leaveChannelsWithHttpInfo(apiToken, botUserid, opts).then(function (response_and_data) { + key: "leaveAGroupChannel", + value: function leaveAGroupChannel(channelUrl, botUserid, opts) { + return this.leaveAGroupChannelWithHttpInfo(channelUrl, botUserid, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Leave channels - When leaving a channel by its channel URL - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {String} channelUrl + * Leave channels - When leaving all channels + * ## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} botUserid (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "leaveChannelsByUrlWithHttpInfo", - value: function leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl) { + key: "leaveGroupChannelsWithHttpInfo", + value: function leaveGroupChannelsWithHttpInfo(botUserid, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveChannelsByUrl"); - } // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling leaveChannelsByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling leaveChannelsByUrl"); + throw new Error("Missing the required parameter 'botUserid' when calling leaveGroupChannels"); } var pathParams = { - 'bot_userid': botUserid, - 'channel_url': channelUrl + 'bot_userid': botUserid }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; var returnType = Object; - return this.apiClient.callApi('/v3/bots/{bot_userid}/channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + return this.apiClient.callApi('/v3/bots/{bot_userid}/channels', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Leave channels - When leaving a channel by its channel URL - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {String} channelUrl + * Leave channels - When leaving all channels + * ## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} botUserid (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "leaveChannelsByUrl", - value: function leaveChannelsByUrl(apiToken, botUserid, channelUrl) { - return this.leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl).then(function (response_and_data) { + key: "leaveGroupChannels", + value: function leaveGroupChannels(botUserid, opts) { + return this.leaveGroupChannelsWithHttpInfo(botUserid, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param {String} apiToken + * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBotsResponse} and HTTP response */ }, { key: "listBotsWithHttpInfo", - value: function listBotsWithHttpInfo(apiToken, opts) { + value: function listBotsWithHttpInfo(opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBots"); - } var pathParams = {}; var queryParams = { 'token': opts['token'], 'limit': opts['limit'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -334,178 +275,69 @@ var BotApi = /*#__PURE__*/function () { /** * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param {String} apiToken + * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBotsResponse} */ }, { key: "listBots", - value: function listBots(apiToken, opts) { - return this.listBotsWithHttpInfo(apiToken, opts).then(function (response_and_data) { + value: function listBots(opts) { + return this.listBotsWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param {String} apiToken - * @param {String} botUserid + * ## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendBotSMessageData} opts.sendBotSMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/SendABotMessageRequest} opts.sendABotMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ }, { - key: "sendBotsMessageWithHttpInfo", - value: function sendBotsMessageWithHttpInfo(apiToken, botUserid, opts) { + key: "sendABotMessageWithHttpInfo", + value: function sendABotMessageWithHttpInfo(botUserid, opts) { opts = opts || {}; - var postBody = opts['sendBotSMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling sendBotsMessage"); - } + var postBody = opts['sendABotMessageRequest']; // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling sendBotsMessage"); + throw new Error("Missing the required parameter 'botUserid' when calling sendABotMessage"); } var pathParams = { 'bot_userid': botUserid }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdMessageResponse["default"]; + var returnType = _SendbirdMessageResponse["default"]; return this.apiClient.callApi('/v3/bots/{bot_userid}/send', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param {String} apiToken - * @param {String} botUserid + * ## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendBotSMessageData} opts.sendBotSMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} - */ - }, { - key: "sendBotsMessage", - value: function sendBotsMessage(apiToken, botUserid, opts) { - return this.sendBotsMessageWithHttpInfo(apiToken, botUserid, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {Object} opts Optional parameters - * @param {module:model/UpdateBotByIdData} opts.updateBotByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateBotByIdResponse} and HTTP response - */ - }, { - key: "updateBotByIdWithHttpInfo", - value: function updateBotByIdWithHttpInfo(apiToken, botUserid, opts) { - opts = opts || {}; - var postBody = opts['updateBotByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling updateBotById"); - } - var pathParams = { - 'bot_userid': botUserid - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateBotByIdResponse["default"]; - return this.apiClient.callApi('/v3/bots/{bot_userid}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {Object} opts Optional parameters - * @param {module:model/UpdateBotByIdData} opts.updateBotByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateBotByIdResponse} - */ - }, { - key: "updateBotById", - value: function updateBotById(apiToken, botUserid, opts) { - return this.updateBotByIdWithHttpInfo(apiToken, botUserid, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewBotByIdResponse} and HTTP response - */ - }, { - key: "viewBotByIdWithHttpInfo", - value: function viewBotByIdWithHttpInfo(apiToken, botUserid) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling viewBotById"); - } - var pathParams = { - 'bot_userid': botUserid - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewBotByIdResponse["default"]; - return this.apiClient.callApi('/v3/bots/{bot_userid}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewBotByIdResponse} + * @param {String} opts.apiToken + * @param {module:model/SendABotMessageRequest} opts.sendABotMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ }, { - key: "viewBotById", - value: function viewBotById(apiToken, botUserid) { - return this.viewBotByIdWithHttpInfo(apiToken, botUserid).then(function (response_and_data) { + key: "sendABotMessage", + value: function sendABotMessage(botUserid, opts) { + return this.sendABotMessageWithHttpInfo(botUserid, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return BotApi; -}(); -exports["default"] = BotApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/DataExportApi.js b/dist/api/DataExportApi.js deleted file mode 100644 index 49bb165..0000000 --- a/dist/api/DataExportApi.js +++ /dev/null @@ -1,205 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponse = _interopRequireDefault(require("../model/ListDataExportsByMessageChannelOrUserResponse")); -var _RegisterAndScheduleDataExportData = _interopRequireDefault(require("../model/RegisterAndScheduleDataExportData")); -var _RegisterAndScheduleDataExportResponse = _interopRequireDefault(require("../model/RegisterAndScheduleDataExportResponse")); -var _ViewDataExportByIdResponse = _interopRequireDefault(require("../model/ViewDataExportByIdResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** -* DataExport service. -* @module api/DataExportApi -* @version 0.0.16 -*/ -var DataExportApi = /*#__PURE__*/function () { - /** - * Constructs a new DataExportApi. - * @alias module:api/DataExportApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function DataExportApi(apiClient) { - _classCallCheck(this, DataExportApi); - this.apiClient = apiClient || _ApiClient["default"].instance; - } - - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDataExportsByMessageChannelOrUserResponse} and HTTP response - */ - _createClass(DataExportApi, [{ - key: "listDataExportsByMessageChannelOrUserWithHttpInfo", - value: function listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listDataExportsByMessageChannelOrUser"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling listDataExportsByMessageChannelOrUser"); - } - var pathParams = { - 'data_type': dataType - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListDataExportsByMessageChannelOrUserResponse["default"]; - return this.apiClient.callApi('/v3/export/{data_type}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDataExportsByMessageChannelOrUserResponse} - */ - }, { - key: "listDataExportsByMessageChannelOrUser", - value: function listDataExportsByMessageChannelOrUser(apiToken, dataType, opts) { - return this.listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {module:model/RegisterAndScheduleDataExportData} opts.registerAndScheduleDataExportData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegisterAndScheduleDataExportResponse} and HTTP response - */ - }, { - key: "registerAndScheduleDataExportWithHttpInfo", - value: function registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, opts) { - opts = opts || {}; - var postBody = opts['registerAndScheduleDataExportData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerAndScheduleDataExport"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling registerAndScheduleDataExport"); - } - var pathParams = { - 'data_type': dataType - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RegisterAndScheduleDataExportResponse["default"]; - return this.apiClient.callApi('/v3/export/{data_type}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {module:model/RegisterAndScheduleDataExportData} opts.registerAndScheduleDataExportData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegisterAndScheduleDataExportResponse} - */ - }, { - key: "registerAndScheduleDataExport", - value: function registerAndScheduleDataExport(apiToken, dataType, opts) { - return this.registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param {String} apiToken - * @param {String} dataType - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewDataExportByIdResponse} and HTTP response - */ - }, { - key: "viewDataExportByIdWithHttpInfo", - value: function viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewDataExportById"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling viewDataExportById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling viewDataExportById"); - } - var pathParams = { - 'data_type': dataType, - 'request_id': requestId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewDataExportByIdResponse["default"]; - return this.apiClient.callApi('/v3/export/{data_type}/{request_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param {String} apiToken - * @param {String} dataType - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewDataExportByIdResponse} - */ - }, { - key: "viewDataExportById", - value: function viewDataExportById(apiToken, dataType, requestId) { - return this.viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - return DataExportApi; -}(); -exports["default"] = DataExportApi; \ No newline at end of file diff --git a/dist/api/GroupChannelApi.js b/dist/api/GroupChannelApi.js index 06d9795..40a7c56 100644 --- a/dist/api/GroupChannelApi.js +++ b/dist/api/GroupChannelApi.js @@ -5,34 +5,48 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GcAcceptInvitationData = _interopRequireDefault(require("../model/GcAcceptInvitationData")); -var _GcCheckIfMemberByIdResponse = _interopRequireDefault(require("../model/GcCheckIfMemberByIdResponse")); -var _GcCreateChannelData = _interopRequireDefault(require("../model/GcCreateChannelData")); -var _GcDeclineInvitationData = _interopRequireDefault(require("../model/GcDeclineInvitationData")); -var _GcHideOrArchiveChannelData = _interopRequireDefault(require("../model/GcHideOrArchiveChannelData")); -var _GcInviteAsMembersData = _interopRequireDefault(require("../model/GcInviteAsMembersData")); -var _GcJoinChannelData = _interopRequireDefault(require("../model/GcJoinChannelData")); -var _GcLeaveChannelData = _interopRequireDefault(require("../model/GcLeaveChannelData")); -var _GcListChannelsResponse = _interopRequireDefault(require("../model/GcListChannelsResponse")); -var _GcListMembersResponse = _interopRequireDefault(require("../model/GcListMembersResponse")); -var _GcListOperatorsResponse = _interopRequireDefault(require("../model/GcListOperatorsResponse")); -var _GcRegisterOperatorsData = _interopRequireDefault(require("../model/GcRegisterOperatorsData")); -var _GcRegisterOperatorsResponse = _interopRequireDefault(require("../model/GcRegisterOperatorsResponse")); -var _GcResetChatHistoryData = _interopRequireDefault(require("../model/GcResetChatHistoryData")); -var _GcResetChatHistoryResponse = _interopRequireDefault(require("../model/GcResetChatHistoryResponse")); -var _GcUpdateChannelByUrlData = _interopRequireDefault(require("../model/GcUpdateChannelByUrlData")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("../model/OcDeleteChannelByUrl200Response")); -var _SendBirdGroupChannel = _interopRequireDefault(require("../model/SendBirdGroupChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _AcceptAnInvitationRequest = _interopRequireDefault(require("../model/AcceptAnInvitationRequest")); +var _CheckIfMemberResponse = _interopRequireDefault(require("../model/CheckIfMemberResponse")); +var _CreateAGroupChannelRequest = _interopRequireDefault(require("../model/CreateAGroupChannelRequest")); +var _GetAGroupChannelResponse = _interopRequireDefault(require("../model/GetAGroupChannelResponse")); +var _GroupChannelListMembersResponse = _interopRequireDefault(require("../model/GroupChannelListMembersResponse")); +var _GroupChatListChannelsResponse = _interopRequireDefault(require("../model/GroupChatListChannelsResponse")); +var _HideAChannelRequest = _interopRequireDefault(require("../model/HideAChannelRequest")); +var _InviteAsMembersRequest = _interopRequireDefault(require("../model/InviteAsMembersRequest")); +var _InviteAsMembersResponse = _interopRequireDefault(require("../model/InviteAsMembersResponse")); +var _JoinAChannelRequest = _interopRequireDefault(require("../model/JoinAChannelRequest")); +var _LeaveAChannelRequest = _interopRequireDefault(require("../model/LeaveAChannelRequest")); +var _ListOperatorsResponse = _interopRequireDefault(require("../model/ListOperatorsResponse")); +var _RegisterOperatorsToAGroupChannelRequest = _interopRequireDefault(require("../model/RegisterOperatorsToAGroupChannelRequest")); +var _ResetChatHistoryRequest = _interopRequireDefault(require("../model/ResetChatHistoryRequest")); +var _ResetChatHistoryResponse = _interopRequireDefault(require("../model/ResetChatHistoryResponse")); +var _SendbirdGroupChannelDetail = _interopRequireDefault(require("../model/SendbirdGroupChannelDetail")); +var _StartTypingIndicatorsRequest = _interopRequireDefault(require("../model/StartTypingIndicatorsRequest")); +var _UpdateAGroupChannelRequest = _interopRequireDefault(require("../model/UpdateAGroupChannelRequest")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * GroupChannel service. * @module api/GroupChannelApi -* @version 0.0.16 +* @version 2.0.0 */ -var GroupChannelApi = /*#__PURE__*/function () { +var GroupChannelApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new GroupChannelApi. * @alias module:api/GroupChannelApi @@ -47,144 +61,134 @@ var GroupChannelApi = /*#__PURE__*/function () { /** * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcAcceptInvitationData} opts.gcAcceptInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AcceptAnInvitationRequest} opts.acceptAnInvitationRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - _createClass(GroupChannelApi, [{ - key: "gcAcceptInvitationWithHttpInfo", - value: function gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, opts) { + return _createClass(GroupChannelApi, [{ + key: "acceptAnInvitationWithHttpInfo", + value: function acceptAnInvitationWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcAcceptInvitationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcAcceptInvitation"); - } + var postBody = opts['acceptAnInvitationRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcAcceptInvitation"); + throw new Error("Missing the required parameter 'channelUrl' when calling acceptAnInvitation"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; + var returnType = _SendbirdGroupChannelDetail["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/accept', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcAcceptInvitationData} opts.gcAcceptInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/AcceptAnInvitationRequest} opts.acceptAnInvitationRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { - key: "gcAcceptInvitation", - value: function gcAcceptInvitation(apiToken, channelUrl, opts) { - return this.gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "acceptAnInvitation", + value: function acceptAnInvitation(channelUrl, opts) { + return this.acceptAnInvitationWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * ## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcCancelTheRegistrationOfOperatorsWithHttpInfo", - value: function gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) { + key: "cancelTheRegistrationOfOperatorsWithHttpInfo", + value: function cancelTheRegistrationOfOperatorsWithHttpInfo(channelUrl, operatorIds, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCancelTheRegistrationOfOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcCancelTheRegistrationOfOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling cancelTheRegistrationOfOperators"); } // verify the required parameter 'operatorIds' is set if (operatorIds === undefined || operatorIds === null) { - throw new Error("Missing the required parameter 'operatorIds' when calling gcCancelTheRegistrationOfOperators"); + throw new Error("Missing the required parameter 'operatorIds' when calling cancelTheRegistrationOfOperators"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = { - 'operator_ids': this.apiClient.buildCollectionParam(operatorIds, 'multi'), + 'operator_ids': operatorIds, 'delete_all': opts['deleteAll'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/group_channels/{channel_url}/operators', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * ## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcCancelTheRegistrationOfOperators", - value: function gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) { - return this.gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts).then(function (response_and_data) { + key: "cancelTheRegistrationOfOperators", + value: function cancelTheRegistrationOfOperators(channelUrl, operatorIds, opts) { + return this.cancelTheRegistrationOfOperatorsWithHttpInfo(channelUrl, operatorIds, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcCheckIfMemberByIdResponse} and HTTP response + * ## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member) + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CheckIfMemberResponse} and HTTP response */ }, { - key: "gcCheckIfMemberByIdWithHttpInfo", - value: function gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId) { + key: "checkIfMemberWithHttpInfo", + value: function checkIfMemberWithHttpInfo(channelUrl, userId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCheckIfMemberById"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcCheckIfMemberById"); + throw new Error("Missing the required parameter 'channelUrl' when calling checkIfMember"); } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling gcCheckIfMemberById"); + throw new Error("Missing the required parameter 'userId' when calling checkIfMember"); } var pathParams = { 'channel_url': channelUrl, @@ -192,339 +196,333 @@ var GroupChannelApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _GcCheckIfMemberByIdResponse["default"]; + var returnType = _CheckIfMemberResponse["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/members/{user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcCheckIfMemberByIdResponse} + * ## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member) + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CheckIfMemberResponse} */ }, { - key: "gcCheckIfMemberById", - value: function gcCheckIfMemberById(apiToken, channelUrl, userId) { - return this.gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId).then(function (response_and_data) { + key: "checkIfMember", + value: function checkIfMember(channelUrl, userId, opts) { + return this.checkIfMemberWithHttpInfo(channelUrl, userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param {String} apiToken + * Create a group channel + * ## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel * @param {Object} opts Optional parameters - * @param {module:model/GcCreateChannelData} opts.gcCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAGroupChannelRequest} opts.createAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ }, { - key: "gcCreateChannelWithHttpInfo", - value: function gcCreateChannelWithHttpInfo(apiToken, opts) { + key: "createAGroupChannelWithHttpInfo", + value: function createAGroupChannelWithHttpInfo(opts) { opts = opts || {}; - var postBody = opts['gcCreateChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCreateChannel"); - } + var postBody = opts['createAGroupChannelRequest']; var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; + var returnType = _SendbirdGroupChannelDetail["default"]; return this.apiClient.callApi('/v3/group_channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param {String} apiToken + * Create a group channel + * ## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel * @param {Object} opts Optional parameters - * @param {module:model/GcCreateChannelData} opts.gcCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/CreateAGroupChannelRequest} opts.createAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { - key: "gcCreateChannel", - value: function gcCreateChannel(apiToken, opts) { - return this.gcCreateChannelWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "createAGroupChannel", + value: function createAGroupChannel(opts) { + return this.createAGroupChannelWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param {String} apiToken + * Delete a group channel + * ## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel) * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcDeclineInvitationData} opts.gcDeclineInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcDeclineInvitationWithHttpInfo", - value: function gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, opts) { + key: "deleteAGroupChannelWithHttpInfo", + value: function deleteAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcDeclineInvitationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcDeclineInvitation"); - } + var postBody = null; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcDeclineInvitation"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAGroupChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/decline', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param {String} apiToken + * Delete a group channel + * ## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel) * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcDeclineInvitationData} opts.gcDeclineInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcDeclineInvitation", - value: function gcDeclineInvitation(apiToken, channelUrl, opts) { - return this.gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "deleteAGroupChannel", + value: function deleteAGroupChannel(channelUrl, opts) { + return this.deleteAGroupChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken + * Get a group channel + * ## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {Object} opts Optional parameters + * @param {Boolean} opts.showDeliveryReceipt + * @param {Boolean} opts.showReadReceipt + * @param {Boolean} opts.showMember + * @param {module:model/String} opts.memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAGroupChannelResponse} and HTTP response */ }, { - key: "gcDeleteChannelByUrlWithHttpInfo", - value: function gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) { + key: "getAGroupChannelWithHttpInfo", + value: function getAGroupChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcDeleteChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcDeleteChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling getAGroupChannel"); } var pathParams = { 'channel_url': channelUrl }; - var queryParams = {}; + var queryParams = { + 'show_delivery_receipt': opts['showDeliveryReceipt'], + 'show_read_receipt': opts['showReadReceipt'], + 'show_member': opts['showMember'], + 'member_active_mode': opts['memberActiveMode'], + 'user_id': opts['userId'] + }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _GetAGroupChannelResponse["default"]; + return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken + * Get a group channel + * ## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {Object} opts Optional parameters + * @param {Boolean} opts.showDeliveryReceipt + * @param {Boolean} opts.showReadReceipt + * @param {Boolean} opts.showMember + * @param {module:model/String} opts.memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAGroupChannelResponse} */ }, { - key: "gcDeleteChannelByUrl", - value: function gcDeleteChannelByUrl(apiToken, channelUrl) { - return this.gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl).then(function (response_and_data) { + key: "getAGroupChannel", + value: function getAGroupChannel(channelUrl, opts) { + return this.getAGroupChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Hide a channel + * ## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcHideOrArchiveChannelData} opts.gcHideOrArchiveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/HideAChannelRequest} opts.hideAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcHideOrArchiveChannelWithHttpInfo", - value: function gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, opts) { + key: "hideAChannelWithHttpInfo", + value: function hideAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcHideOrArchiveChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcHideOrArchiveChannel"); - } + var postBody = opts['hideAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcHideOrArchiveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling hideAChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/group_channels/{channel_url}/hide', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Hide a channel + * ## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcHideOrArchiveChannelData} opts.gcHideOrArchiveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/HideAChannelRequest} opts.hideAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcHideOrArchiveChannel", - value: function gcHideOrArchiveChannel(apiToken, channelUrl, opts) { - return this.gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "hideAChannel", + value: function hideAChannel(channelUrl, opts) { + return this.hideAChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcInviteAsMembersData} opts.gcInviteAsMembersData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/InviteAsMembersRequest} opts.inviteAsMembersRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InviteAsMembersResponse} and HTTP response */ }, { - key: "gcInviteAsMembersWithHttpInfo", - value: function gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, opts) { + key: "inviteAsMembersWithHttpInfo", + value: function inviteAsMembersWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcInviteAsMembersData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcInviteAsMembers"); - } + var postBody = opts['inviteAsMembersRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcInviteAsMembers"); + throw new Error("Missing the required parameter 'channelUrl' when calling inviteAsMembers"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; + var returnType = _InviteAsMembersResponse["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/invite', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcInviteAsMembersData} opts.gcInviteAsMembersData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/InviteAsMembersRequest} opts.inviteAsMembersRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InviteAsMembersResponse} */ }, { - key: "gcInviteAsMembers", - value: function gcInviteAsMembers(apiToken, channelUrl, opts) { - return this.gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "inviteAsMembers", + value: function inviteAsMembers(channelUrl, opts) { + return this.inviteAsMembersWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcJoinChannelData} opts.gcJoinChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @param {module:model/JoinAChannelRequest} opts.joinAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ }, { - key: "gcJoinChannelWithHttpInfo", - value: function gcJoinChannelWithHttpInfo(apiToken, channelUrl, opts) { + key: "joinAChannelWithHttpInfo", + value: function joinAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcJoinChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcJoinChannel"); - } + var postBody = opts['joinAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcJoinChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling joinAChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; + var accepts = ['application/json']; + var returnType = _SendbirdGroupChannelDetail["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/join', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcJoinChannelData} opts.gcJoinChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @param {module:model/JoinAChannelRequest} opts.joinAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { - key: "gcJoinChannel", - value: function gcJoinChannel(apiToken, channelUrl, opts) { - return this.gcJoinChannelWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "joinAChannel", + value: function joinAChannel(channelUrl, opts) { + return this.joinAChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } @@ -532,114 +530,110 @@ var GroupChannelApi = /*#__PURE__*/function () { /** * Leave a channel * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param {String} apiToken * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcLeaveChannelData} opts.gcLeaveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/LeaveAChannelRequest} opts.leaveAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcLeaveChannelWithHttpInfo", - value: function gcLeaveChannelWithHttpInfo(apiToken, channelUrl, opts) { + key: "leaveAChannelWithHttpInfo", + value: function leaveAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcLeaveChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcLeaveChannel"); - } + var postBody = opts['leaveAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcLeaveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling leaveAChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'Api-Token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/group_channels/{channel_url}/leave', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Leave a channel * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param {String} apiToken * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcLeaveChannelData} opts.gcLeaveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/LeaveAChannelRequest} opts.leaveAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcLeaveChannel", - value: function gcLeaveChannel(apiToken, channelUrl, opts) { - return this.gcLeaveChannelWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "leaveAChannel", + value: function leaveAChannel(channelUrl, opts) { + return this.leaveAChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- + * ## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels * @param {String} apiToken * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt * @param {Boolean} opts.showMetadata * @param {Boolean} opts.showFrozen - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {Boolean} opts.includeSortedMetaarrayInLastMessage - * @param {String} opts.customType - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @param {Boolean} opts.isDistinct - * @param {String} opts.membersIn - * @param {String} opts.userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListChannelsResponse} and HTTP response + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId (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. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GroupChatListChannelsResponse} and HTTP response */ }, { - key: "gcListChannelsWithHttpInfo", - value: function gcListChannelsWithHttpInfo(apiToken, opts) { + key: "listChannelsWithHttpInfo", + value: function listChannelsWithHttpInfo(apiToken, opts) { opts = opts || {}; var postBody = null; // verify the required parameter 'apiToken' is set if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListChannels"); + throw new Error("Missing the required parameter 'apiToken' when calling listChannels"); } var pathParams = {}; var queryParams = { @@ -687,102 +681,102 @@ var GroupChannelApi = /*#__PURE__*/function () { 'user_id': opts['userId'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': apiToken }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _GcListChannelsResponse["default"]; + var returnType = _GroupChatListChannelsResponse["default"]; return this.apiClient.callApi('/v3/group_channels', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- + * ## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels * @param {String} apiToken * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt * @param {Boolean} opts.showMetadata * @param {Boolean} opts.showFrozen - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {Boolean} opts.includeSortedMetaarrayInLastMessage - * @param {String} opts.customType - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @param {Boolean} opts.isDistinct - * @param {String} opts.membersIn - * @param {String} opts.userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListChannelsResponse} + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId (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. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GroupChatListChannelsResponse} */ }, { - key: "gcListChannels", - value: function gcListChannels(apiToken, opts) { - return this.gcListChannelsWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "listChannels", + value: function listChannels(apiToken, opts) { + return this.listChannelsWithHttpInfo(apiToken, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param {String} apiToken - * @param {String} channelUrl + * ## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.userId Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.operatorFilter - * @param {String} opts.memberStateFilter - * @param {String} opts.mutedMemberFilter - * @param {String} opts.nicknameStartswith - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListMembersResponse} and HTTP response + * @param {Boolean} opts.showMemberIsMuted + * @param {module:model/String} opts.order Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. + * @param {module:model/String} opts.operatorFilter Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. + * @param {module:model/String} opts.memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) + * @param {module:model/String} opts.mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) + * @param {module:model/String} opts.memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) + * @param {String} opts.nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. + * @param {Boolean} opts.includePushPreference Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GroupChannelListMembersResponse} and HTTP response */ }, { - key: "gcListMembersWithHttpInfo", - value: function gcListMembersWithHttpInfo(apiToken, channelUrl, opts) { + key: "listMembersWithHttpInfo", + value: function listMembersWithHttpInfo(channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListMembers"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListMembers"); + throw new Error("Missing the required parameter 'channelUrl' when calling listMembers"); } var pathParams = { 'channel_url': channelUrl @@ -790,72 +784,76 @@ var GroupChannelApi = /*#__PURE__*/function () { var queryParams = { 'token': opts['token'], 'limit': opts['limit'], + 'user_id': opts['userId'], 'show_delivery_receipt': opts['showDeliveryReceipt'], 'show_read_receipt': opts['showReadReceipt'], + 'show_member_is_muted': opts['showMemberIsMuted'], 'order': opts['order'], 'operator_filter': opts['operatorFilter'], 'member_state_filter': opts['memberStateFilter'], 'muted_member_filter': opts['mutedMemberFilter'], - 'nickname_startswith': opts['nicknameStartswith'] + 'member_active_mode_filter': opts['memberActiveModeFilter'], + 'nickname_startswith': opts['nicknameStartswith'], + 'include_push_preference': opts['includePushPreference'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _GcListMembersResponse["default"]; + var returnType = _GroupChannelListMembersResponse["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param {String} apiToken - * @param {String} channelUrl + * ## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.userId Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.operatorFilter - * @param {String} opts.memberStateFilter - * @param {String} opts.mutedMemberFilter - * @param {String} opts.nicknameStartswith - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListMembersResponse} + * @param {Boolean} opts.showMemberIsMuted + * @param {module:model/String} opts.order Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. + * @param {module:model/String} opts.operatorFilter Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. + * @param {module:model/String} opts.memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) + * @param {module:model/String} opts.mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) + * @param {module:model/String} opts.memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) + * @param {String} opts.nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. + * @param {Boolean} opts.includePushPreference Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GroupChannelListMembersResponse} */ }, { - key: "gcListMembers", - value: function gcListMembers(apiToken, channelUrl, opts) { - return this.gcListMembersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "listMembers", + value: function listMembers(channelUrl, opts) { + return this.listMembersWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * ## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListOperatorsResponse} and HTTP response + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOperatorsResponse} and HTTP response */ }, { - key: "gcListOperatorsWithHttpInfo", - value: function gcListOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + key: "listOperatorsWithHttpInfo", + value: function listOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling listOperators"); } var pathParams = { 'channel_url': channelUrl @@ -865,327 +863,341 @@ var GroupChannelApi = /*#__PURE__*/function () { 'limit': opts['limit'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _GcListOperatorsResponse["default"]; + var returnType = _ListOperatorsResponse["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/operators', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * ## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListOperatorsResponse} + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOperatorsResponse} */ }, { - key: "gcListOperators", - value: function gcListOperators(apiToken, channelUrl, opts) { - return this.gcListOperatorsWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "listOperators", + value: function listOperators(channelUrl, opts) { + return this.listOperatorsWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to a group channel + * ## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcRegisterOperatorsData} opts.gcRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcRegisterOperatorsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcRegisterOperatorsWithHttpInfo", - value: function gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + key: "registerOperatorsToAGroupChannelWithHttpInfo", + value: function registerOperatorsToAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcRegisterOperatorsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcRegisterOperators"); - } + var postBody = opts['registerOperatorsToAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcRegisterOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling registerOperatorsToAGroupChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _GcRegisterOperatorsResponse["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/group_channels/{channel_url}/operators', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to a group channel + * ## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcRegisterOperatorsData} opts.gcRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcRegisterOperatorsResponse} + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcRegisterOperators", - value: function gcRegisterOperators(apiToken, channelUrl, opts) { - return this.gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "registerOperatorsToAGroupChannel", + value: function registerOperatorsToAGroupChannel(channelUrl, opts) { + return this.registerOperatorsToAGroupChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcResetChatHistoryData} opts.gcResetChatHistoryData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcResetChatHistoryResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/ResetChatHistoryRequest} opts.resetChatHistoryRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetChatHistoryResponse} and HTTP response */ }, { - key: "gcResetChatHistoryWithHttpInfo", - value: function gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, opts) { + key: "resetChatHistoryWithHttpInfo", + value: function resetChatHistoryWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcResetChatHistoryData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcResetChatHistory"); - } + var postBody = opts['resetChatHistoryRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcResetChatHistory"); + throw new Error("Missing the required parameter 'channelUrl' when calling resetChatHistory"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _GcResetChatHistoryResponse["default"]; + var returnType = _ResetChatHistoryResponse["default"]; return this.apiClient.callApi('/v3/group_channels/{channel_url}/reset_user_history', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcResetChatHistoryData} opts.gcResetChatHistoryData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcResetChatHistoryResponse} + * @param {String} opts.apiToken + * @param {module:model/ResetChatHistoryRequest} opts.resetChatHistoryRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetChatHistoryResponse} */ }, { - key: "gcResetChatHistory", - value: function gcResetChatHistory(apiToken, channelUrl, opts) { - return this.gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "resetChatHistory", + value: function resetChatHistory(channelUrl, opts) { + return this.resetChatHistoryWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId + * Start typing indicators + * ## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.shouldUnhideAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcUnhideOrUnarchiveChannelWithHttpInfo", - value: function gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, opts) { + key: "startTypingIndicatorsWithHttpInfo", + value: function startTypingIndicatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnhideOrUnarchiveChannel"); - } + var postBody = opts['startTypingIndicatorsRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnhideOrUnarchiveChannel"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling gcUnhideOrUnarchiveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling startTypingIndicators"); } var pathParams = { 'channel_url': channelUrl }; - var queryParams = { - 'user_id': userId, - 'should_unhide_all': opts['shouldUnhideAll'] - }; + var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/hide', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/group_channels/{channel_url}/typing', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId + * Start typing indicators + * ## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.shouldUnhideAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcUnhideOrUnarchiveChannel", - value: function gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, opts) { - return this.gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, opts).then(function (response_and_data) { + key: "startTypingIndicators", + value: function startTypingIndicators(channelUrl, opts) { + return this.startTypingIndicatorsWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Stop typing indicators + * ## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateChannelByUrlData} opts.gcUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcUpdateChannelByUrlWithHttpInfo", - value: function gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + key: "stopTypingIndicatorsWithHttpInfo", + value: function stopTypingIndicatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['gcUpdateChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUpdateChannelByUrl"); - } + var postBody = opts['startTypingIndicatorsRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUpdateChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling stopTypingIndicators"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/group_channels/{channel_url}/typing', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Stop typing indicators + * ## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateChannelByUrlData} opts.gcUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "gcUpdateChannelByUrl", - value: function gcUpdateChannelByUrl(apiToken, channelUrl, opts) { - return this.gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "stopTypingIndicators", + value: function stopTypingIndicators(channelUrl, opts) { + return this.stopTypingIndicatorsWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param {String} apiToken - * @param {String} channelUrl + * Unhide a channel + * ## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. + * @param {String} channelUrl (Required) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.showDeliveryReceipt - * @param {Boolean} opts.showReadReceipt - * @param {Boolean} opts.showMember - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {Boolean} opts.shouldUnhideAll + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "gcViewChannelByUrlWithHttpInfo", - value: function gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + key: "unhideAChannelWithHttpInfo", + value: function unhideAChannelWithHttpInfo(channelUrl, userId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling unhideAChannel"); + } + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling unhideAChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = { - 'show_delivery_receipt': opts['showDeliveryReceipt'], - 'show_read_receipt': opts['showReadReceipt'], - 'show_member': opts['showMember'], - 'read_receipt': opts['readReceipt'], - 'member': opts['member'] + 'user_id': userId, + 'should_unhide_all': opts['shouldUnhideAll'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/group_channels/{channel_url}/hide', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param {String} apiToken + * Unhide a channel + * ## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {Boolean} opts.shouldUnhideAll + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */ + }, { + key: "unhideAChannel", + value: function unhideAChannel(channelUrl, userId, opts) { + return this.unhideAChannelWithHttpInfo(channelUrl, userId, opts).then(function (response_and_data) { + return response_and_data.data; + }); + } + + /** + * Update a group channel + * ## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {Boolean} opts.showDeliveryReceipt - * @param {Boolean} opts.showReadReceipt - * @param {Boolean} opts.showMember - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/UpdateAGroupChannelRequest} opts.updateAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response + */ + }, { + key: "updateAGroupChannelWithHttpInfo", + value: function updateAGroupChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; + var postBody = opts['updateAGroupChannelRequest']; + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling updateAGroupChannel"); + } + var pathParams = { + 'channel_url': channelUrl + }; + var queryParams = {}; + var headerParams = { + 'api-token': opts['apiToken'] + }; + var formParams = {}; + var authNames = []; + var contentTypes = ['application/json']; + var accepts = ['application/json']; + var returnType = _SendbirdGroupChannelDetail["default"]; + return this.apiClient.callApi('/v3/group_channels/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + } + + /** + * Update a group channel + * ## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel + * @param {String} channelUrl + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAGroupChannelRequest} opts.updateAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { - key: "gcViewChannelByUrl", - value: function gcViewChannelByUrl(apiToken, channelUrl, opts) { - return this.gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "updateAGroupChannel", + value: function updateAGroupChannel(channelUrl, opts) { + return this.updateAGroupChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return GroupChannelApi; -}(); -exports["default"] = GroupChannelApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/MessageApi.js b/dist/api/MessageApi.js index dc5a7f4..2a7757a 100644 --- a/dist/api/MessageApi.js +++ b/dist/api/MessageApi.js @@ -5,48 +5,40 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddEmojiCategoriesResponse = _interopRequireDefault(require("../model/AddEmojiCategoriesResponse")); -var _AddEmojisData = _interopRequireDefault(require("../model/AddEmojisData")); -var _AddEmojisResponse = _interopRequireDefault(require("../model/AddEmojisResponse")); -var _AddExtraDataToMessageData = _interopRequireDefault(require("../model/AddExtraDataToMessageData")); -var _AddExtraDataToMessageResponse = _interopRequireDefault(require("../model/AddExtraDataToMessageResponse")); -var _AddReactionToAMessageData = _interopRequireDefault(require("../model/AddReactionToAMessageData")); -var _AddReactionToAMessageResponse = _interopRequireDefault(require("../model/AddReactionToAMessageResponse")); -var _EnableReactionsData = _interopRequireDefault(require("../model/EnableReactionsData")); -var _EnableReactionsResponse = _interopRequireDefault(require("../model/EnableReactionsResponse")); -var _GcMarkAllMessagesAsDeliveredData = _interopRequireDefault(require("../model/GcMarkAllMessagesAsDeliveredData")); -var _GcMarkAllMessagesAsDeliveredResponse = _interopRequireDefault(require("../model/GcMarkAllMessagesAsDeliveredResponse")); -var _GcMarkAllMessagesAsReadData = _interopRequireDefault(require("../model/GcMarkAllMessagesAsReadData")); -var _GcViewNumberOfEachMembersUnreadMessagesResponse = _interopRequireDefault(require("../model/GcViewNumberOfEachMembersUnreadMessagesResponse")); -var _ListAllEmojisAndEmojiCategoriesResponse = _interopRequireDefault(require("../model/ListAllEmojisAndEmojiCategoriesResponse")); -var _ListAnnouncementsResponse = _interopRequireDefault(require("../model/ListAnnouncementsResponse")); -var _ListEmojisResponse = _interopRequireDefault(require("../model/ListEmojisResponse")); +var _AddExtraDataToAMessageRequest = _interopRequireDefault(require("../model/AddExtraDataToAMessageRequest")); +var _AddExtraDataToAMessageResponse = _interopRequireDefault(require("../model/AddExtraDataToAMessageResponse")); +var _GetTotalNumberOfMessagesInAChannelResponse = _interopRequireDefault(require("../model/GetTotalNumberOfMessagesInAChannelResponse")); var _ListMessagesResponse = _interopRequireDefault(require("../model/ListMessagesResponse")); -var _ListReactionsOfMessageResponse = _interopRequireDefault(require("../model/ListReactionsOfMessageResponse")); -var _RemoveReactionFromAMessageResponse = _interopRequireDefault(require("../model/RemoveReactionFromAMessageResponse")); -var _SendBirdEmoji = _interopRequireDefault(require("../model/SendBirdEmoji")); -var _SendBirdEmojiCategory = _interopRequireDefault(require("../model/SendBirdEmojiCategory")); -var _SendBirdMessageResponse = _interopRequireDefault(require("../model/SendBirdMessageResponse")); -var _SendMessageData = _interopRequireDefault(require("../model/SendMessageData")); -var _TranslateMessageIntoOtherLanguagesData = _interopRequireDefault(require("../model/TranslateMessageIntoOtherLanguagesData")); -var _UpdateEmojiCategoryUrlByIdData = _interopRequireDefault(require("../model/UpdateEmojiCategoryUrlByIdData")); -var _UpdateEmojiUrlByKeyData = _interopRequireDefault(require("../model/UpdateEmojiUrlByKeyData")); -var _UpdateExtraDataInMessageData = _interopRequireDefault(require("../model/UpdateExtraDataInMessageData")); -var _UpdateExtraDataInMessageResponse = _interopRequireDefault(require("../model/UpdateExtraDataInMessageResponse")); -var _UpdateMessageByIdData = _interopRequireDefault(require("../model/UpdateMessageByIdData")); -var _UseDefaultEmojisData = _interopRequireDefault(require("../model/UseDefaultEmojisData")); -var _UseDefaultEmojisResponse = _interopRequireDefault(require("../model/UseDefaultEmojisResponse")); -var _ViewTotalNumberOfMessagesInChannelResponse = _interopRequireDefault(require("../model/ViewTotalNumberOfMessagesInChannelResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _MarkChannelMessagesAsReadRequest = _interopRequireDefault(require("../model/MarkChannelMessagesAsReadRequest")); +var _SendAMessageRequest = _interopRequireDefault(require("../model/SendAMessageRequest")); +var _SendbirdMessageResponse = _interopRequireDefault(require("../model/SendbirdMessageResponse")); +var _UpdateAMessageRequest = _interopRequireDefault(require("../model/UpdateAMessageRequest")); +var _UpdateExtraDataInAMessageRequest = _interopRequireDefault(require("../model/UpdateExtraDataInAMessageRequest")); +var _UpdateExtraDataInAMessageResponse = _interopRequireDefault(require("../model/UpdateExtraDataInAMessageResponse")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Message service. * @module api/MessageApi -* @version 0.0.16 +* @version 2.0.0 */ -var MessageApi = /*#__PURE__*/function () { +var MessageApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new MessageApi. * @alias module:api/MessageApi @@ -60,1184 +52,162 @@ var MessageApi = /*#__PURE__*/function () { } /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param {String} apiToken + * Add extra data to a message + * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddEmojiCategoriesResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AddExtraDataToAMessageRequest} opts.addExtraDataToAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddExtraDataToAMessageResponse} and HTTP response */ - _createClass(MessageApi, [{ - key: "addEmojiCategoriesWithHttpInfo", - value: function addEmojiCategoriesWithHttpInfo(apiToken, opts) { + return _createClass(MessageApi, [{ + key: "addExtraDataToAMessageWithHttpInfo", + value: function addExtraDataToAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addEmojiCategories"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddEmojiCategoriesResponse["default"]; - return this.apiClient.callApi('/v3/emoji_categories', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddEmojiCategoriesResponse} - */ - }, { - key: "addEmojiCategories", - value: function addEmojiCategories(apiToken, opts) { - return this.addEmojiCategoriesWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddEmojisData} opts.addEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddEmojisResponse} and HTTP response - */ - }, { - key: "addEmojisWithHttpInfo", - value: function addEmojisWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['addEmojisData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addEmojis"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddEmojisResponse["default"]; - return this.apiClient.callApi('/v3/emojis', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddEmojisData} opts.addEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddEmojisResponse} - */ - }, { - key: "addEmojis", - value: function addEmojis(apiToken, opts) { - return this.addEmojisWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddExtraDataToMessageData} opts.addExtraDataToMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddExtraDataToMessageResponse} and HTTP response - */ - }, { - key: "addExtraDataToMessageWithHttpInfo", - value: function addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - var postBody = opts['addExtraDataToMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addExtraDataToMessage"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling addExtraDataToMessage"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling addExtraDataToMessage"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling addExtraDataToMessage"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddExtraDataToMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddExtraDataToMessageData} opts.addExtraDataToMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddExtraDataToMessageResponse} - */ - }, { - key: "addExtraDataToMessage", - value: function addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddReactionToAMessageData} opts.addReactionToAMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddReactionToAMessageResponse} and HTTP response - */ - }, { - key: "addReactionToAMessageWithHttpInfo", - value: function addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - var postBody = opts['addReactionToAMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addReactionToAMessage"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling addReactionToAMessage"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling addReactionToAMessage"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling addReactionToAMessage"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _AddReactionToAMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddReactionToAMessageData} opts.addReactionToAMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddReactionToAMessageResponse} - */ - }, { - key: "addReactionToAMessage", - value: function addReactionToAMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteEmojiByKeyWithHttpInfo", - value: function deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteEmojiByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling deleteEmojiByKey"); - } - var pathParams = { - 'emoji_key': emojiKey - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/emojis/{emoji_key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteEmojiByKey", - value: function deleteEmojiByKey(apiToken, emojiKey) { - return this.deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "deleteEmojiCategoryByIdWithHttpInfo", - value: function deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteEmojiCategoryById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling deleteEmojiCategoryById"); - } - var pathParams = { - 'emoji_category_id': emojiCategoryId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/emoji_categories/{emoji_category_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "deleteEmojiCategoryById", - value: function deleteEmojiCategoryById(apiToken, emojiCategoryId) { - return this.deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "deleteMessageByIdWithHttpInfo", - value: function deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling deleteMessageById"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "deleteMessageById", - value: function deleteMessageById(apiToken, channelType, channelUrl, messageId) { - return this.deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/EnableReactionsData} opts.enableReactionsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnableReactionsResponse} and HTTP response - */ - }, { - key: "enableReactionsWithHttpInfo", - value: function enableReactionsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['enableReactionsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling enableReactions"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _EnableReactionsResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/reactions', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/EnableReactionsData} opts.enableReactionsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnableReactionsResponse} - */ - }, { - key: "enableReactions", - value: function enableReactions(apiToken, opts) { - return this.enableReactionsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsDeliveredData} opts.gcMarkAllMessagesAsDeliveredData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcMarkAllMessagesAsDeliveredResponse} and HTTP response - */ - }, { - key: "gcMarkAllMessagesAsDeliveredWithHttpInfo", - value: function gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['gcMarkAllMessagesAsDeliveredData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMarkAllMessagesAsDelivered"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMarkAllMessagesAsDelivered"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GcMarkAllMessagesAsDeliveredResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/messages/mark_as_delivered', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsDeliveredData} opts.gcMarkAllMessagesAsDeliveredData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcMarkAllMessagesAsDeliveredResponse} - */ - }, { - key: "gcMarkAllMessagesAsDelivered", - value: function gcMarkAllMessagesAsDelivered(apiToken, channelUrl, opts) { - return this.gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsReadData} opts.gcMarkAllMessagesAsReadData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "gcMarkAllMessagesAsReadWithHttpInfo", - value: function gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['gcMarkAllMessagesAsReadData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMarkAllMessagesAsRead"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMarkAllMessagesAsRead"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/messages/mark_as_read', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsReadData} opts.gcMarkAllMessagesAsReadData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "gcMarkAllMessagesAsRead", - value: function gcMarkAllMessagesAsRead(apiToken, channelUrl, opts) { - return this.gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} and HTTP response - */ - }, { - key: "gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo", - value: function gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewNumberOfEachMembersUnreadMessages"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewNumberOfEachMembersUnreadMessages"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = { - 'user_ids': opts['userIds'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GcViewNumberOfEachMembersUnreadMessagesResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/messages/unread_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} - */ - }, { - key: "gcViewNumberOfEachMembersUnreadMessages", - value: function gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, opts) { - return this.gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmoji} and HTTP response - */ - }, { - key: "getEmojiByKeyWithHttpInfo", - value: function getEmojiByKeyWithHttpInfo(apiToken, emojiKey) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getEmojiByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling getEmojiByKey"); - } - var pathParams = { - 'emoji_key': emojiKey - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _SendBirdEmoji["default"]; - return this.apiClient.callApi('/v3/emojis/{emoji_key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmoji} - */ - }, { - key: "getEmojiByKey", - value: function getEmojiByKey(apiToken, emojiKey) { - return this.getEmojiByKeyWithHttpInfo(apiToken, emojiKey).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmojiCategory} and HTTP response - */ - }, { - key: "getEmojiCategoryByIdWithHttpInfo", - value: function getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getEmojiCategoryById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling getEmojiCategoryById"); - } - var pathParams = { - 'emoji_category_id': emojiCategoryId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _SendBirdEmojiCategory["default"]; - return this.apiClient.callApi('/v3/emoji_categories/{emoji_category_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmojiCategory} - */ - }, { - key: "getEmojiCategoryById", - value: function getEmojiCategoryById(apiToken, emojiCategoryId) { - return this.getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllEmojisAndEmojiCategoriesResponse} and HTTP response - */ - }, { - key: "listAllEmojisAndEmojiCategoriesWithHttpInfo", - value: function listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAllEmojisAndEmojiCategories"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListAllEmojisAndEmojiCategoriesResponse["default"]; - return this.apiClient.callApi('/v3/emoji_categories', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllEmojisAndEmojiCategoriesResponse} - */ - }, { - key: "listAllEmojisAndEmojiCategories", - value: function listAllEmojisAndEmojiCategories(apiToken) { - return this.listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.order - * @param {String} opts.status - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAnnouncementsResponse} and HTTP response - */ - }, { - key: "listAnnouncementsWithHttpInfo", - value: function listAnnouncementsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAnnouncements"); - } - var pathParams = {}; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'order': opts['order'], - 'status': opts['status'], - 'announcement_group': opts['announcementGroup'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListAnnouncementsResponse["default"]; - return this.apiClient.callApi('/v3/announcements', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.order - * @param {String} opts.status - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAnnouncementsResponse} - */ - }, { - key: "listAnnouncements", - value: function listAnnouncements(apiToken, opts) { - return this.listAnnouncementsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListEmojisResponse} and HTTP response - */ - }, { - key: "listEmojisWithHttpInfo", - value: function listEmojisWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listEmojis"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListEmojisResponse["default"]; - return this.apiClient.callApi('/v3/emojis', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListEmojisResponse} - */ - }, { - key: "listEmojis", - value: function listEmojis(apiToken) { - return this.listEmojisWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.messageTs - * @param {Number} opts.messageId - * @param {Number} opts.prevLimit - * @param {Number} opts.nextLimit - * @param {Boolean} opts.include - * @param {Boolean} opts.reverse - * @param {String} opts.senderId - * @param {String} opts.senderIds - * @param {String} opts.operatorFilter - * @param {String} opts.customTypes - * @param {String} opts.messageType - * @param {Boolean} opts.includingRemoved - * @param {Boolean} opts.includeReactions - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.showSubchannelMessagesOnly - * @param {String} opts.userId - * @param {String} opts.customType - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMessagesResponse} and HTTP response - */ - }, { - key: "listMessagesWithHttpInfo", - value: function listMessagesWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMessages"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listMessages"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listMessages"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = { - 'message_ts': opts['messageTs'], - 'message_id': opts['messageId'], - 'prev_limit': opts['prevLimit'], - 'next_limit': opts['nextLimit'], - 'include': opts['include'], - 'reverse': opts['reverse'], - 'sender_id': opts['senderId'], - 'sender_ids': opts['senderIds'], - 'operator_filter': opts['operatorFilter'], - 'custom_types': opts['customTypes'], - 'message_type': opts['messageType'], - 'including_removed': opts['includingRemoved'], - 'include_reactions': opts['includeReactions'], - 'with_sorted_meta_array': opts['withSortedMetaArray'], - 'show_subchannel_messages_only': opts['showSubchannelMessagesOnly'], - 'user_id': opts['userId'], - 'custom_type': opts['customType'], - 'with_meta_array': opts['withMetaArray'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListMessagesResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.messageTs - * @param {Number} opts.messageId - * @param {Number} opts.prevLimit - * @param {Number} opts.nextLimit - * @param {Boolean} opts.include - * @param {Boolean} opts.reverse - * @param {String} opts.senderId - * @param {String} opts.senderIds - * @param {String} opts.operatorFilter - * @param {String} opts.customTypes - * @param {String} opts.messageType - * @param {Boolean} opts.includingRemoved - * @param {Boolean} opts.includeReactions - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.showSubchannelMessagesOnly - * @param {String} opts.userId - * @param {String} opts.customType - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessagesResponse} - */ - }, { - key: "listMessages", - value: function listMessages(apiToken, channelType, channelUrl, opts) { - return this.listMessagesWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {Boolean} opts.listUsers - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReactionsOfMessageResponse} and HTTP response - */ - }, { - key: "listReactionsOfMessageWithHttpInfo", - value: function listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReactionsOfMessage"); - } + var postBody = opts['addExtraDataToAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'channelType' when calling addExtraDataToAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling addExtraDataToAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'messageId' when calling addExtraDataToAMessage"); } var pathParams = { 'channel_type': channelType, 'channel_url': channelUrl, 'message_id': messageId }; - var queryParams = { - 'list_users': opts['listUsers'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListReactionsOfMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {Boolean} opts.listUsers - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReactionsOfMessageResponse} - */ - }, { - key: "listReactionsOfMessage", - value: function listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param {String} apiToken - * @param {String} targetChannelUrl - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "migrateMessagesByUrlWithHttpInfo", - value: function migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, opts) { - opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling migrateMessagesByUrl"); - } - // verify the required parameter 'targetChannelUrl' is set - if (targetChannelUrl === undefined || targetChannelUrl === null) { - throw new Error("Missing the required parameter 'targetChannelUrl' when calling migrateMessagesByUrl"); - } - var pathParams = { - 'target_channel_url': targetChannelUrl - }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/migration/{target_channel_url}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var accepts = ['application/json']; + var returnType = _AddExtraDataToAMessageResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param {String} apiToken - * @param {String} targetChannelUrl + * Add extra data to a message + * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @param {module:model/AddExtraDataToAMessageRequest} opts.addExtraDataToAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddExtraDataToAMessageResponse} */ }, { - key: "migrateMessagesByUrl", - value: function migrateMessagesByUrl(apiToken, targetChannelUrl, opts) { - return this.migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, opts).then(function (response_and_data) { + key: "addExtraDataToAMessage", + value: function addExtraDataToAMessage(channelType, channelUrl, messageId, opts) { + return this.addExtraDataToAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Delete a message + * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.keys + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "removeExtraDataFromMessageWithHttpInfo", - value: function removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "deleteAMessageWithHttpInfo", + value: function deleteAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeExtraDataFromMessage"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'channelType' when calling deleteAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'messageId' when calling deleteAMessage"); } var pathParams = { 'channel_type': channelType, 'channel_url': channelUrl, 'message_id': messageId }; - var queryParams = { - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') - }; + var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; var returnType = Object; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Delete a message + * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.keys + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "removeExtraDataFromMessage", - value: function removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { + key: "deleteAMessage", + value: function deleteAMessage(channelType, channelUrl, messageId, opts) { + return this.deleteAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Get a message + * ## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.userId - * @param {String} opts.reaction - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveReactionFromAMessageResponse} and HTTP response + * @param {Boolean} opts.includeReactions + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ }, { - key: "removeReactionFromAMessageWithHttpInfo", - value: function removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "getAMessageWithHttpInfo", + value: function getAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeReactionFromAMessage"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'channelType' when calling getAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling getAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'messageId' when calling getAMessage"); } var pathParams = { 'channel_type': channelType, @@ -1245,66 +215,67 @@ var MessageApi = /*#__PURE__*/function () { 'message_id': messageId }; var queryParams = { - 'user_id': opts['userId'], - 'reaction': opts['reaction'] + 'include_reactions': opts['includeReactions'], + 'include_thread_info': opts['includeThreadInfo'], + 'include_parent_message_info': opts['includeParentMessageInfo'], + 'include_poll_details': opts['includePollDetails'], + 'with_sorted_meta_array': opts['withSortedMetaArray'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _RemoveReactionFromAMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdMessageResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Get a message + * ## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.userId - * @param {String} opts.reaction - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveReactionFromAMessageResponse} + * @param {Boolean} opts.includeReactions + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ }, { - key: "removeReactionFromAMessage", - value: function removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { + key: "getAMessage", + value: function getAMessage(channelType, channelUrl, messageId, opts) { + return this.getAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Get total number of messages in a channel + * ## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendMessageData} opts.sendMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTotalNumberOfMessagesInAChannelResponse} and HTTP response */ }, { - key: "sendMessageWithHttpInfo", - value: function sendMessageWithHttpInfo(apiToken, channelType, channelUrl, opts) { + key: "getTotalNumberOfMessagesInAChannelWithHttpInfo", + value: function getTotalNumberOfMessagesInAChannelWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - var postBody = opts['sendMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling sendMessage"); - } + var postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling sendMessage"); + throw new Error("Missing the required parameter 'channelType' when calling getTotalNumberOfMessagesInAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling sendMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling getTotalNumberOfMessagesInAChannel"); } var pathParams = { 'channel_type': channelType, @@ -1312,521 +283,506 @@ var MessageApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = _SendBirdMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _GetTotalNumberOfMessagesInAChannelResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/total_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Get total number of messages in a channel + * ## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendMessageData} opts.sendMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTotalNumberOfMessagesInAChannelResponse} */ }, { - key: "sendMessage", - value: function sendMessage(apiToken, channelType, channelUrl, opts) { - return this.sendMessageWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { + key: "getTotalNumberOfMessagesInAChannel", + value: function getTotalNumberOfMessagesInAChannel(channelType, channelUrl, opts) { + return this.getTotalNumberOfMessagesInAChannelWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/TranslateMessageIntoOtherLanguagesData} opts.translateMessageIntoOtherLanguagesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * List messages + * ## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Number} messageTs Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. + * @param {Number} messageId Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. + * @param {Object} opts Optional parameters + * @param {Number} opts.prevLimit Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Number} opts.nextLimit Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Boolean} opts.include Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) + * @param {Boolean} opts.reverse Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) + * @param {String} opts.senderId Restricts the search scope to only retrieve messages sent by the user with the specified ID. + * @param {String} opts.senderIds Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. + * @param {module:model/String} opts.operatorFilter + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. + * @param {module:model/String} opts.messageType + * @param {Boolean} opts.includingRemoved + * @param {Boolean} opts.includeReactions + * @param {module:model/String} opts.includeReplyType One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray Determines whether to include the sorted_metaarray property in the response. (Default: false) + * @param {Boolean} opts.showSubchannelMessagesOnly + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMessagesResponse} and HTTP response */ }, { - key: "translateMessageIntoOtherLanguagesWithHttpInfo", - value: function translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "listMessagesWithHttpInfo", + value: function listMessagesWithHttpInfo(channelType, channelUrl, messageTs, messageId, opts) { opts = opts || {}; - var postBody = opts['translateMessageIntoOtherLanguagesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling translateMessageIntoOtherLanguages"); - } + var postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'channelType' when calling listMessages"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'channelUrl' when calling listMessages"); + } + // verify the required parameter 'messageTs' is set + if (messageTs === undefined || messageTs === null) { + throw new Error("Missing the required parameter 'messageTs' when calling listMessages"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'messageId' when calling listMessages"); } var pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId + 'channel_url': channelUrl + }; + var queryParams = { + 'message_ts': messageTs, + 'message_id': messageId, + 'prev_limit': opts['prevLimit'], + 'next_limit': opts['nextLimit'], + 'include': opts['include'], + 'reverse': opts['reverse'], + 'sender_id': opts['senderId'], + 'sender_ids': opts['senderIds'], + 'operator_filter': opts['operatorFilter'], + 'custom_types': opts['customTypes'], + 'message_type': opts['messageType'], + 'including_removed': opts['includingRemoved'], + 'include_reactions': opts['includeReactions'], + 'include_reply_type': opts['includeReplyType'], + 'include_parent_message_info': opts['includeParentMessageInfo'], + 'include_thread_info': opts['includeThreadInfo'], + 'include_poll_details': opts['includePollDetails'], + 'with_sorted_meta_array': opts['withSortedMetaArray'], + 'show_subchannel_messages_only': opts['showSubchannelMessagesOnly'], + 'user_id': opts['userId'] }; - var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = _SendBirdMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/translation', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _ListMessagesResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/TranslateMessageIntoOtherLanguagesData} opts.translateMessageIntoOtherLanguagesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * List messages + * ## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Number} messageTs Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. + * @param {Number} messageId Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. + * @param {Object} opts Optional parameters + * @param {Number} opts.prevLimit Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Number} opts.nextLimit Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Boolean} opts.include Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) + * @param {Boolean} opts.reverse Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) + * @param {String} opts.senderId Restricts the search scope to only retrieve messages sent by the user with the specified ID. + * @param {String} opts.senderIds Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. + * @param {module:model/String} opts.operatorFilter + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. + * @param {module:model/String} opts.messageType + * @param {Boolean} opts.includingRemoved + * @param {Boolean} opts.includeReactions + * @param {module:model/String} opts.includeReplyType One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray Determines whether to include the sorted_metaarray property in the response. (Default: false) + * @param {Boolean} opts.showSubchannelMessagesOnly + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessagesResponse} */ }, { - key: "translateMessageIntoOtherLanguages", - value: function translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, opts) { - return this.translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { + key: "listMessages", + value: function listMessages(channelType, channelUrl, messageTs, messageId, opts) { + return this.listMessagesWithHttpInfo(channelType, channelUrl, messageTs, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId + * Mark all messages as read + * ## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiCategoryUrlByIdData} opts.updateEmojiCategoryUrlByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmojiCategory} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/MarkChannelMessagesAsReadRequest} opts.markChannelMessagesAsReadRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "updateEmojiCategoryUrlByIdWithHttpInfo", - value: function updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, opts) { + key: "markChannelMessagesAsReadWithHttpInfo", + value: function markChannelMessagesAsReadWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['updateEmojiCategoryUrlByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateEmojiCategoryUrlById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling updateEmojiCategoryUrlById"); + var postBody = opts['markChannelMessagesAsReadRequest']; + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling markChannelMessagesAsRead"); } var pathParams = { - 'emoji_category_id': emojiCategoryId + 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdEmojiCategory["default"]; - return this.apiClient.callApi('/v3/emoji_categories/{emoji_category_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/group_channels/{channel_url}/messages/mark_as_read', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId + * Mark all messages as read + * ## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiCategoryUrlByIdData} opts.updateEmojiCategoryUrlByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmojiCategory} + * @param {String} opts.apiToken + * @param {module:model/MarkChannelMessagesAsReadRequest} opts.markChannelMessagesAsReadRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "updateEmojiCategoryUrlById", - value: function updateEmojiCategoryUrlById(apiToken, emojiCategoryId, opts) { - return this.updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, opts).then(function (response_and_data) { + key: "markChannelMessagesAsRead", + value: function markChannelMessagesAsRead(channelUrl, opts) { + return this.markChannelMessagesAsReadWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey + * Migrate messages + * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages + * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiUrlByKeyData} opts.updateEmojiUrlByKeyData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmoji} and HTTP response + * @param {String} opts.apiToken + * @param {Object.} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "updateEmojiUrlByKeyWithHttpInfo", - value: function updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, opts) { + key: "migrateMessagesWithHttpInfo", + value: function migrateMessagesWithHttpInfo(targetChannelUrl, opts) { opts = opts || {}; - var postBody = opts['updateEmojiUrlByKeyData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateEmojiUrlByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling updateEmojiUrlByKey"); + var postBody = opts['body']; + // verify the required parameter 'targetChannelUrl' is set + if (targetChannelUrl === undefined || targetChannelUrl === null) { + throw new Error("Missing the required parameter 'targetChannelUrl' when calling migrateMessages"); } var pathParams = { - 'emoji_key': emojiKey + 'target_channel_url': targetChannelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdEmoji["default"]; - return this.apiClient.callApi('/v3/emojis/{emoji_key}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/migration/{target_channel_url}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey + * Migrate messages + * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages + * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiUrlByKeyData} opts.updateEmojiUrlByKeyData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmoji} + * @param {String} opts.apiToken + * @param {Object.} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "updateEmojiUrlByKey", - value: function updateEmojiUrlByKey(apiToken, emojiKey, opts) { - return this.updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, opts).then(function (response_and_data) { + key: "migrateMessages", + value: function migrateMessages(targetChannelUrl, opts) { + return this.migrateMessagesWithHttpInfo(targetChannelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Remove extra data from a message + * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateExtraDataInMessageData} opts.updateExtraDataInMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateExtraDataInMessageResponse} and HTTP response + * @param {String} opts.keys + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "updateExtraDataInMessageWithHttpInfo", - value: function updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "removeExtraDataFromAMessageWithHttpInfo", + value: function removeExtraDataFromAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - var postBody = opts['updateExtraDataInMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateExtraDataInMessage"); - } + var postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'channelType' when calling removeExtraDataFromAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling removeExtraDataFromAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'messageId' when calling removeExtraDataFromAMessage"); } var pathParams = { 'channel_type': channelType, 'channel_url': channelUrl, 'message_id': messageId }; - var queryParams = {}; + var queryParams = { + 'keys': opts['keys'] + }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = _UpdateExtraDataInMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Remove extra data from a message + * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateExtraDataInMessageData} opts.updateExtraDataInMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateExtraDataInMessageResponse} + * @param {String} opts.keys + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "updateExtraDataInMessage", - value: function updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { + key: "removeExtraDataFromAMessage", + value: function removeExtraDataFromAMessage(channelType, channelUrl, messageId, opts) { + return this.removeExtraDataFromAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Send a message + * ## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateMessageByIdData} opts.updateMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/SendAMessageRequest} opts.sendAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ }, { - key: "updateMessageByIdWithHttpInfo", - value: function updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "sendAMessageWithHttpInfo", + value: function sendAMessageWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - var postBody = opts['updateMessageByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateMessageById"); - } + var postBody = opts['sendAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateMessageById"); + throw new Error("Missing the required parameter 'channelType' when calling sendAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling updateMessageById"); + throw new Error("Missing the required parameter 'channelUrl' when calling sendAMessage"); } var pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken + 'channel_url': channelUrl }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateMessageByIdData} opts.updateMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} - */ - }, { - key: "updateMessageById", - value: function updateMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UseDefaultEmojisData} opts.useDefaultEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UseDefaultEmojisResponse} and HTTP response - */ - }, { - key: "useDefaultEmojisWithHttpInfo", - value: function useDefaultEmojisWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['useDefaultEmojisData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling useDefaultEmojis"); - } - var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _UseDefaultEmojisResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/use_default_emoji', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdMessageResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param {String} apiToken + * Send a message + * ## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UseDefaultEmojisData} opts.useDefaultEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UseDefaultEmojisResponse} + * @param {String} opts.apiToken + * @param {module:model/SendAMessageRequest} opts.sendAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ }, { - key: "useDefaultEmojis", - value: function useDefaultEmojis(apiToken, opts) { - return this.useDefaultEmojisWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "sendAMessage", + value: function sendAMessage(channelType, channelUrl, opts) { + return this.sendAMessageWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Update a message + * ## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/UpdateAMessageRequest} opts.updateAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ }, { - key: "viewMessageByIdWithHttpInfo", - value: function viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + key: "updateAMessageWithHttpInfo", + value: function updateAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewMessageById"); - } + var postBody = opts['updateAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewMessageById"); + throw new Error("Missing the required parameter 'channelType' when calling updateAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewMessageById"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling viewMessageById"); + throw new Error("Missing the required parameter 'messageId' when calling updateAMessage"); } var pathParams = { 'channel_type': channelType, 'channel_url': channelUrl, 'message_id': messageId }; - var queryParams = { - 'with_sorted_meta_array': opts['withSortedMetaArray'], - 'with_meta_array': opts['withMetaArray'] - }; + var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdMessageResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdMessageResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Update a message + * ## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * @param {String} opts.apiToken + * @param {module:model/UpdateAMessageRequest} opts.updateAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ }, { - key: "viewMessageById", - value: function viewMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { + key: "updateAMessage", + value: function updateAMessage(channelType, channelUrl, messageId, opts) { + return this.updateAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewTotalNumberOfMessagesInChannelResponse} and HTTP response + * Update extra data in a message + * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateExtraDataInAMessageRequest} opts.updateExtraDataInAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateExtraDataInAMessageResponse} and HTTP response */ }, { - key: "viewTotalNumberOfMessagesInChannelWithHttpInfo", - value: function viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewTotalNumberOfMessagesInChannel"); - } + key: "updateExtraDataInAMessageWithHttpInfo", + value: function updateExtraDataInAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { + opts = opts || {}; + var postBody = opts['updateExtraDataInAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewTotalNumberOfMessagesInChannel"); + throw new Error("Missing the required parameter 'channelType' when calling updateExtraDataInAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewTotalNumberOfMessagesInChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateExtraDataInAMessage"); + } + // verify the required parameter 'messageId' is set + if (messageId === undefined || messageId === null) { + throw new Error("Missing the required parameter 'messageId' when calling updateExtraDataInAMessage"); } var pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl + 'channel_url': channelUrl, + 'message_id': messageId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _ViewTotalNumberOfMessagesInChannelResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/total_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _UpdateExtraDataInAMessageResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewTotalNumberOfMessagesInChannelResponse} + * Update extra data in a message + * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateExtraDataInAMessageRequest} opts.updateExtraDataInAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateExtraDataInAMessageResponse} */ }, { - key: "viewTotalNumberOfMessagesInChannel", - value: function viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl) { - return this.viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl).then(function (response_and_data) { + key: "updateExtraDataInAMessage", + value: function updateExtraDataInAMessage(channelType, channelUrl, messageId, opts) { + return this.updateExtraDataInAMessageWithHttpInfo(channelType, channelUrl, messageId, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return MessageApi; -}(); -exports["default"] = MessageApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/MetadataApi.js b/dist/api/MetadataApi.js index bf13d63..ec134d0 100644 --- a/dist/api/MetadataApi.js +++ b/dist/api/MetadataApi.js @@ -5,26 +5,33 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateChannelMetacounterData = _interopRequireDefault(require("../model/CreateChannelMetacounterData")); -var _CreateChannelMetadataData = _interopRequireDefault(require("../model/CreateChannelMetadataData")); -var _CreateChannelMetadataResponse = _interopRequireDefault(require("../model/CreateChannelMetadataResponse")); -var _CreateUserMetadataData = _interopRequireDefault(require("../model/CreateUserMetadataData")); -var _CreateUserMetadataResponse = _interopRequireDefault(require("../model/CreateUserMetadataResponse")); -var _UpdateChannelMetacounterData = _interopRequireDefault(require("../model/UpdateChannelMetacounterData")); -var _UpdateChannelMetadataData = _interopRequireDefault(require("../model/UpdateChannelMetadataData")); -var _UpdateUserMetadataData = _interopRequireDefault(require("../model/UpdateUserMetadataData")); -var _UpdateUserMetadataResponse = _interopRequireDefault(require("../model/UpdateUserMetadataResponse")); -var _ViewUserMetadataResponse = _interopRequireDefault(require("../model/ViewUserMetadataResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _CreateAChannelMetadataRequest = _interopRequireDefault(require("../model/CreateAChannelMetadataRequest")); +var _CreateAChannelMetadataResponse = _interopRequireDefault(require("../model/CreateAChannelMetadataResponse")); +var _UpdateAChannelMetadataRequest = _interopRequireDefault(require("../model/UpdateAChannelMetadataRequest")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Metadata service. * @module api/MetadataApi -* @version 0.0.16 +* @version 2.0.0 */ -var MetadataApi = /*#__PURE__*/function () { +var MetadataApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new MetadataApi. * @alias module:api/MetadataApi @@ -38,695 +45,27 @@ var MetadataApi = /*#__PURE__*/function () { } /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Create a channel metadata + * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetacounterData} opts.createChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAChannelMetadataRequest} opts.createAChannelMetadataRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAChannelMetadataResponse} and HTTP response */ - _createClass(MetadataApi, [{ - key: "createChannelMetacounterWithHttpInfo", - value: function createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { + return _createClass(MetadataApi, [{ + key: "createAChannelMetadataWithHttpInfo", + value: function createAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - var postBody = opts['createChannelMetacounterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling createChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling createChannelMetacounter"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetacounterData} opts.createChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "createChannelMetacounter", - value: function createChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetadataData} opts.createChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateChannelMetadataResponse} and HTTP response - */ - }, { - key: "createChannelMetadataWithHttpInfo", - value: function createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['createChannelMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createChannelMetadata"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling createChannelMetadata"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling createChannelMetadata"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateChannelMetadataResponse["default"]; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetadataData} opts.createChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateChannelMetadataResponse} - */ - }, { - key: "createChannelMetadata", - value: function createChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/CreateUserMetadataData} opts.createUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUserMetadataResponse} and HTTP response - */ - }, { - key: "createUserMetadataWithHttpInfo", - value: function createUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = opts['createUserMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling createUserMetadata"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _CreateUserMetadataResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/metadata', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/CreateUserMetadataData} opts.createUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUserMetadataResponse} - */ - }, { - key: "createUserMetadata", - value: function createUserMetadata(apiToken, userId, opts) { - return this.createUserMetadataWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteChannelMetacounterWithHttpInfo", - value: function deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetacounter"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteChannelMetacounter", - value: function deleteChannelMetacounter(apiToken, channelType, channelUrl) { - return this.deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteChannelMetacounterByKeyWithHttpInfo", - value: function deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteChannelMetacounterByKey"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteChannelMetacounterByKey", - value: function deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key) { - return this.deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteChannelMetadataWithHttpInfo", - value: function deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetadata"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetadata"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetadata"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = { - 'key': opts['key'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteChannelMetadata", - value: function deleteChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteChannelMetadataByKeyWithHttpInfo", - value: function deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteChannelMetadataByKey"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteChannelMetadataByKey", - value: function deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key) { - return this.deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteUserMetadataWithHttpInfo", - value: function deleteUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserMetadata"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'key': opts['key'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/users/{user_id}/metadata', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteUserMetadata", - value: function deleteUserMetadata(apiToken, userId, opts) { - return this.deleteUserMetadataWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - }, { - key: "deleteUserMetadataByKeyWithHttpInfo", - value: function deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteUserMetadataByKey"); - } - var pathParams = { - 'user_id': userId, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/users/{user_id}/metadata/{key}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "deleteUserMetadataByKey", - value: function deleteUserMetadataByKey(apiToken, userId, key) { - return this.deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetacounterData} opts.updateChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "updateChannelMetacounterWithHttpInfo", - value: function updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['updateChannelMetacounterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetacounter"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetacounterData} opts.updateChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "updateChannelMetacounter", - value: function updateChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "updateChannelMetacounterByKeyWithHttpInfo", - value: function updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) { - opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateChannelMetacounterByKey"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter/{key}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - }, { - key: "updateChannelMetacounterByKey", - value: function updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, opts) { - return this.updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetadataData} opts.updateChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "updateChannelMetadataWithHttpInfo", - value: function updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['updateChannelMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetadata"); - } + var postBody = opts['createAChannelMetadataRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetadata"); + throw new Error("Missing the required parameter 'channelType' when calling createAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetadata"); + throw new Error("Missing the required parameter 'channelUrl' when calling createAChannelMetadata"); } var pathParams = { 'channel_type': channelType, @@ -734,381 +73,173 @@ var MetadataApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetadataData} opts.updateChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - }, { - key: "updateChannelMetadata", - value: function updateChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "updateChannelMetadataByKeyWithHttpInfo", - value: function updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) { - opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateChannelMetadataByKey"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata/{key}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - }, { - key: "updateChannelMetadataByKey", - value: function updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, opts) { - return this.updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserMetadataData} opts.updateUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateUserMetadataResponse} and HTTP response - */ - }, { - key: "updateUserMetadataWithHttpInfo", - value: function updateUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = opts['updateUserMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserMetadata"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _UpdateUserMetadataResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/metadata', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserMetadataData} opts.updateUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateUserMetadataResponse} - */ - }, { - key: "updateUserMetadata", - value: function updateUserMetadata(apiToken, userId, opts) { - return this.updateUserMetadataWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a user metadata - When updating a specific item of a user metadata by its key - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "updateUserMetadataByKeyWithHttpInfo", - value: function updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, opts) { - opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateUserMetadataByKey"); - } - var pathParams = { - 'user_id': userId, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/users/{user_id}/metadata/{key}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _CreateAChannelMetadataResponse["default"]; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update a user metadata - When updating a specific item of a user metadata by its key - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key + * Create a channel metadata + * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.apiToken + * @param {module:model/CreateAChannelMetadataRequest} opts.createAChannelMetadataRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAChannelMetadataResponse} */ }, { - key: "updateUserMetadataByKey", - value: function updateUserMetadataByKey(apiToken, userId, key, opts) { - return this.updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, opts).then(function (response_and_data) { + key: "createAChannelMetadata", + value: function createAChannelMetadata(channelType, channelUrl, opts) { + return this.createAChannelMetadataWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Delete a channel metadata - When deleting all items of a channel metadata + * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "viewChannelMetacounterWithHttpInfo", - value: function viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { + key: "deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataWithHttpInfo", + value: function deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetacounter"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetacounter"); + throw new Error("Missing the required parameter 'channelType' when calling deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetacounter"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata"); } var pathParams = { 'channel_type': channelType, 'channel_url': channelUrl }; var queryParams = { - 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') + 'key': opts['key'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Delete a channel metadata - When deleting all items of a channel metadata + * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "viewChannelMetacounter", - value: function viewChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { + key: "deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata", + value: function deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) { + return this.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key + * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata + * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAChannelMetadataRequest} opts.updateAChannelMetadataRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "viewChannelMetacounterByKeyWithHttpInfo", - value: function viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetacounterByKey"); - } + key: "updateAChannelMetadataWithHttpInfo", + value: function updateAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { + opts = opts || {}; + var postBody = opts['updateAChannelMetadataRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetacounterByKey"); + throw new Error("Missing the required parameter 'channelType' when calling updateAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewChannelMetacounterByKey"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAChannelMetadata"); } var pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key + 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; var returnType = Object; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metacounter/{key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key + * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata + * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAChannelMetadataRequest} opts.updateAChannelMetadataRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "viewChannelMetacounterByKey", - value: function viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key) { - return this.viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).then(function (response_and_data) { + key: "updateAChannelMetadata", + value: function updateAChannelMetadata(channelType, channelUrl, opts) { + return this.updateAChannelMetadataWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + * @param {String} opts.keys In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "viewChannelMetadataWithHttpInfo", - value: function viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { + key: "viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadataWithHttpInfo", + value: function viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetadata"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetadata"); + throw new Error("Missing the required parameter 'channelType' when calling viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetadata"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata"); } var pathParams = { 'channel_type': channelType, @@ -1116,222 +247,36 @@ var MetadataApi = /*#__PURE__*/function () { }; var queryParams = { 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') + 'keys': opts['keys'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; + var returnType = Object; return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - }, { - key: "viewChannelMetadata", - value: function viewChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "viewChannelMetadataByKeyWithHttpInfo", - value: function viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewChannelMetadataByKey"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/{channel_type}/{channel_url}/metadata/{key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - }, { - key: "viewChannelMetadataByKey", - value: function viewChannelMetadataByKey(apiToken, channelType, channelUrl, key) { - return this.viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewUserMetadataResponse} and HTTP response - */ - }, { - key: "viewUserMetadataWithHttpInfo", - value: function viewUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserMetadata"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewUserMetadataResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId + * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewUserMetadataResponse} - */ - }, { - key: "viewUserMetadata", - value: function viewUserMetadata(apiToken, userId, opts) { - return this.viewUserMetadataWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a user metadata - When retrieving a specific item of a user metadata by its key - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - }, { - key: "viewUserMetadataByKeyWithHttpInfo", - value: function viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewUserMetadataByKey"); - } - var pathParams = { - 'user_id': userId, - 'key': key - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = { - 'String': 'String' - }; - return this.apiClient.callApi('/v3/users/{user_id}/metadata/{key}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a user metadata - When retrieving a specific item of a user metadata by its key - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.keys In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "viewUserMetadataByKey", - value: function viewUserMetadataByKey(apiToken, userId, key) { - return this.viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key).then(function (response_and_data) { + key: "viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata", + value: function viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) { + return this.viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return MetadataApi; -}(); -exports["default"] = MetadataApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/ModerationApi.js b/dist/api/ModerationApi.js index 107443a..7205c57 100644 --- a/dist/api/ModerationApi.js +++ b/dist/api/ModerationApi.js @@ -5,46 +5,37 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _BanFromChannelsWithCustomChannelTypesData = _interopRequireDefault(require("../model/BanFromChannelsWithCustomChannelTypesData")); -var _BlockUserData = _interopRequireDefault(require("../model/BlockUserData")); -var _BlockUserResponse = _interopRequireDefault(require("../model/BlockUserResponse")); -var _GcBanUserData = _interopRequireDefault(require("../model/GcBanUserData")); -var _GcBanUserResponse = _interopRequireDefault(require("../model/GcBanUserResponse")); -var _GcFreezeChannelData = _interopRequireDefault(require("../model/GcFreezeChannelData")); -var _GcListBannedUsersResponse = _interopRequireDefault(require("../model/GcListBannedUsersResponse")); -var _GcListMutedUsersResponse = _interopRequireDefault(require("../model/GcListMutedUsersResponse")); -var _GcMuteUserData = _interopRequireDefault(require("../model/GcMuteUserData")); -var _GcUpdateBanByIdData = _interopRequireDefault(require("../model/GcUpdateBanByIdData")); -var _GcUpdateBanByIdResponse = _interopRequireDefault(require("../model/GcUpdateBanByIdResponse")); -var _GcViewBanByIdResponse = _interopRequireDefault(require("../model/GcViewBanByIdResponse")); -var _GcViewMuteByIdResponse = _interopRequireDefault(require("../model/GcViewMuteByIdResponse")); -var _ListBannedChannelsResponse = _interopRequireDefault(require("../model/ListBannedChannelsResponse")); +var _BlockAUserRequest = _interopRequireDefault(require("../model/BlockAUserRequest")); +var _BlockAUserResponse = _interopRequireDefault(require("../model/BlockAUserResponse")); +var _FreezeAGroupChannelRequest = _interopRequireDefault(require("../model/FreezeAGroupChannelRequest")); +var _FreezeAnOpenChannelRequest = _interopRequireDefault(require("../model/FreezeAnOpenChannelRequest")); var _ListBlockedUsersResponse = _interopRequireDefault(require("../model/ListBlockedUsersResponse")); -var _ListMutedChannelsResponse = _interopRequireDefault(require("../model/ListMutedChannelsResponse")); -var _MuteInChannelsWithCustomChannelTypesData = _interopRequireDefault(require("../model/MuteInChannelsWithCustomChannelTypesData")); -var _OcBanUserData = _interopRequireDefault(require("../model/OcBanUserData")); -var _OcBanUserResponse = _interopRequireDefault(require("../model/OcBanUserResponse")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("../model/OcDeleteChannelByUrl200Response")); -var _OcFreezeChannelData = _interopRequireDefault(require("../model/OcFreezeChannelData")); -var _OcListBannedUsersResponse = _interopRequireDefault(require("../model/OcListBannedUsersResponse")); -var _OcListMutedUsersResponse = _interopRequireDefault(require("../model/OcListMutedUsersResponse")); -var _OcMuteUserData = _interopRequireDefault(require("../model/OcMuteUserData")); -var _OcUpdateBanByIdData = _interopRequireDefault(require("../model/OcUpdateBanByIdData")); -var _OcUpdateBanByIdResponse = _interopRequireDefault(require("../model/OcUpdateBanByIdResponse")); -var _OcViewBanByIdResponse = _interopRequireDefault(require("../model/OcViewBanByIdResponse")); -var _OcViewMuteByIdResponse = _interopRequireDefault(require("../model/OcViewMuteByIdResponse")); -var _SendBirdGroupChannel = _interopRequireDefault(require("../model/SendBirdGroupChannel")); -var _SendBirdOpenChannel = _interopRequireDefault(require("../model/SendBirdOpenChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdGroupChannelDetail = _interopRequireDefault(require("../model/SendbirdGroupChannelDetail")); +var _SendbirdOpenChannel = _interopRequireDefault(require("../model/SendbirdOpenChannel")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Moderation service. * @module api/ModerationApi -* @version 0.0.16 +* @version 2.0.0 */ -var ModerationApi = /*#__PURE__*/function () { +var ModerationApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new ModerationApi. * @alias module:api/ModerationApi @@ -58,1506 +49,243 @@ var ModerationApi = /*#__PURE__*/function () { } /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Block a user + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} opts.banFromChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/BlockAUserRequest} opts.blockAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BlockAUserResponse} and HTTP response */ - _createClass(ModerationApi, [{ - key: "banFromChannelsWithCustomChannelTypesWithHttpInfo", - value: function banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { + return _createClass(ModerationApi, [{ + key: "blockAUserWithHttpInfo", + value: function blockAUserWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['banFromChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling banFromChannelsWithCustomChannelTypes"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling banFromChannelsWithCustomChannelTypes"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/users/{user_id}/banned_channel_custom_types', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} opts.banFromChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "banFromChannelsWithCustomChannelTypes", - value: function banFromChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BlockUserData} opts.blockUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BlockUserResponse} and HTTP response - */ - }, { - key: "blockUserWithHttpInfo", - value: function blockUserWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = opts['blockUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling blockUser"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling blockUser"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _BlockUserResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/block', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BlockUserData} opts.blockUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BlockUserResponse} - */ - }, { - key: "blockUser", - value: function blockUser(apiToken, userId, opts) { - return this.blockUserWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcBanUserData} opts.gcBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcBanUserResponse} and HTTP response - */ - }, { - key: "gcBanUserWithHttpInfo", - value: function gcBanUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['gcBanUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcBanUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcBanUser"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GcBanUserResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/ban', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcBanUserData} opts.gcBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcBanUserResponse} - */ - }, { - key: "gcBanUser", - value: function gcBanUser(apiToken, channelUrl, opts) { - return this.gcBanUserWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcFreezeChannelData} opts.gcFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response - */ - }, { - key: "gcFreezeChannelWithHttpInfo", - value: function gcFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['gcFreezeChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcFreezeChannel"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcFreezeChannel"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/freeze', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcFreezeChannelData} opts.gcFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} - */ - }, { - key: "gcFreezeChannel", - value: function gcFreezeChannel(apiToken, channelUrl, opts) { - return this.gcFreezeChannelWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListBannedUsersResponse} and HTTP response - */ - }, { - key: "gcListBannedUsersWithHttpInfo", - value: function gcListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListBannedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListBannedUsers"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GcListBannedUsersResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/ban', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListBannedUsersResponse} - */ - }, { - key: "gcListBannedUsers", - value: function gcListBannedUsers(apiToken, channelUrl, opts) { - return this.gcListBannedUsersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListMutedUsersResponse} and HTTP response - */ - }, { - key: "gcListMutedUsersWithHttpInfo", - value: function gcListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListMutedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListMutedUsers"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GcListMutedUsersResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/mute', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListMutedUsersResponse} - */ - }, { - key: "gcListMutedUsers", - value: function gcListMutedUsers(apiToken, channelUrl, opts) { - return this.gcListMutedUsersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMuteUserData} opts.gcMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response - */ - }, { - key: "gcMuteUserWithHttpInfo", - value: function gcMuteUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['gcMuteUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMuteUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMuteUser"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdGroupChannel["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/mute', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMuteUserData} opts.gcMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} - */ - }, { - key: "gcMuteUser", - value: function gcMuteUser(apiToken, channelUrl, opts) { - return this.gcMuteUserWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - }, { - key: "gcUnbanUserByIdWithHttpInfo", - value: function gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnbanUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnbanUserById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcUnbanUserById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - }, { - key: "gcUnbanUserById", - value: function gcUnbanUserById(apiToken, channelUrl, bannedUserId) { - return this.gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - }, { - key: "gcUnmuteUserByIdWithHttpInfo", - value: function gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnmuteUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnmuteUserById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling gcUnmuteUserById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/mute/{muted_user_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - }, { - key: "gcUnmuteUserById", - value: function gcUnmuteUserById(apiToken, channelUrl, mutedUserId) { - return this.gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateBanByIdData} opts.gcUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcUpdateBanByIdResponse} and HTTP response - */ - }, { - key: "gcUpdateBanByIdWithHttpInfo", - value: function gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) { - opts = opts || {}; - var postBody = opts['gcUpdateBanByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUpdateBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUpdateBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcUpdateBanById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _GcUpdateBanByIdResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateBanByIdData} opts.gcUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcUpdateBanByIdResponse} - */ - }, { - key: "gcUpdateBanById", - value: function gcUpdateBanById(apiToken, channelUrl, bannedUserId, opts) { - return this.gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewBanByIdResponse} and HTTP response - */ - }, { - key: "gcViewBanByIdWithHttpInfo", - value: function gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcViewBanById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GcViewBanByIdResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewBanByIdResponse} - */ - }, { - key: "gcViewBanById", - value: function gcViewBanById(apiToken, channelUrl, bannedUserId) { - return this.gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewMuteByIdResponse} and HTTP response - */ - }, { - key: "gcViewMuteByIdWithHttpInfo", - value: function gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewMuteById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewMuteById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling gcViewMuteById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GcViewMuteByIdResponse["default"]; - return this.apiClient.callApi('/v3/group_channels/{channel_url}/mute/{muted_user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewMuteByIdResponse} - */ - }, { - key: "gcViewMuteById", - value: function gcViewMuteById(apiToken, channelUrl, mutedUserId) { - return this.gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBannedChannelsResponse} and HTTP response - */ - }, { - key: "listBannedChannelsWithHttpInfo", - value: function listBannedChannelsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBannedChannels"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listBannedChannels"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListBannedChannelsResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/ban', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBannedChannelsResponse} - */ - }, { - key: "listBannedChannels", - value: function listBannedChannels(apiToken, userId, opts) { - return this.listBannedChannelsWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.userIds - * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBlockedUsersResponse} and HTTP response - */ - }, { - key: "listBlockedUsersWithHttpInfo", - value: function listBlockedUsersWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBlockedUsers"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listBlockedUsers"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'user_ids': opts['userIds'], - 'metadatakey': opts['metadatakey'], - 'metadatavalues_in': opts['metadatavaluesIn'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListBlockedUsersResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/block', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.userIds - * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBlockedUsersResponse} - */ - }, { - key: "listBlockedUsers", - value: function listBlockedUsers(apiToken, userId, opts) { - return this.listBlockedUsersWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMutedChannelsResponse} and HTTP response - */ - }, { - key: "listMutedChannelsWithHttpInfo", - value: function listMutedChannelsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMutedChannels"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listMutedChannels"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListMutedChannelsResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/mute', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMutedChannelsResponse} - */ - }, { - key: "listMutedChannels", - value: function listMutedChannels(apiToken, userId, opts) { - return this.listMutedChannelsWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} opts.muteInChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "muteInChannelsWithCustomChannelTypesWithHttpInfo", - value: function muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = opts['muteInChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling muteInChannelsWithCustomChannelTypes"); - } + var postBody = opts['blockAUserRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling muteInChannelsWithCustomChannelTypes"); + throw new Error("Missing the required parameter 'userId' when calling blockAUser"); } var pathParams = { 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/users/{user_id}/muted_channel_custom_types', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _BlockAUserResponse["default"]; + return this.apiClient.callApi('/v3/users/{user_id}/block', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Block a user + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} opts.muteInChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {String} opts.apiToken + * @param {module:model/BlockAUserRequest} opts.blockAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BlockAUserResponse} */ }, { - key: "muteInChannelsWithCustomChannelTypes", - value: function muteInChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + key: "blockAUser", + value: function blockAUser(userId, opts) { + return this.blockAUserWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Freeze a group channel + * ## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcBanUserData} opts.ocBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcBanUserResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/FreezeAGroupChannelRequest} opts.freezeAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ }, { - key: "ocBanUserWithHttpInfo", - value: function ocBanUserWithHttpInfo(apiToken, channelUrl, opts) { + key: "freezeAGroupChannelWithHttpInfo", + value: function freezeAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['ocBanUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocBanUser"); - } + var postBody = opts['freezeAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocBanUser"); + throw new Error("Missing the required parameter 'channelUrl' when calling freezeAGroupChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _OcBanUserResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/ban', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdGroupChannelDetail["default"]; + return this.apiClient.callApi('/v3/group_channels/{channel_url}/freeze', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Freeze a group channel + * ## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcBanUserData} opts.ocBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcBanUserResponse} + * @param {String} opts.apiToken + * @param {module:model/FreezeAGroupChannelRequest} opts.freezeAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ }, { - key: "ocBanUser", - value: function ocBanUser(apiToken, channelUrl, opts) { - return this.ocBanUserWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "freezeAGroupChannel", + value: function freezeAGroupChannel(channelUrl, opts) { + return this.freezeAGroupChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Freeze an open channel + * ## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcFreezeChannelData} opts.ocFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/FreezeAnOpenChannelRequest} opts.freezeAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ }, { - key: "ocFreezeChannelWithHttpInfo", - value: function ocFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) { + key: "freezeAnOpenChannelWithHttpInfo", + value: function freezeAnOpenChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['ocFreezeChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocFreezeChannel"); - } + var postBody = opts['freezeAnOpenChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocFreezeChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling freezeAnOpenChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdOpenChannel["default"]; + var returnType = _SendbirdOpenChannel["default"]; return this.apiClient.callApi('/v3/open_channels/{channel_url}/freeze', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcFreezeChannelData} opts.ocFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} - */ - }, { - key: "ocFreezeChannel", - value: function ocFreezeChannel(apiToken, channelUrl, opts) { - return this.ocFreezeChannelWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListBannedUsersResponse} and HTTP response - */ - }, { - key: "ocListBannedUsersWithHttpInfo", - value: function ocListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListBannedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListBannedUsers"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcListBannedUsersResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/ban', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl + * Freeze an open channel + * ## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListBannedUsersResponse} + * @param {String} opts.apiToken + * @param {module:model/FreezeAnOpenChannelRequest} opts.freezeAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ }, { - key: "ocListBannedUsers", - value: function ocListBannedUsers(apiToken, channelUrl, opts) { - return this.ocListBannedUsersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "freezeAnOpenChannel", + value: function freezeAnOpenChannel(channelUrl, opts) { + return this.freezeAnOpenChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl + * List blocked users + * ## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters + * @param {module:model/String} opts.list Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListMutedUsersResponse} and HTTP response + * @param {String} opts.userIds Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. + * @param {String} opts.metadatakey + * @param {String} opts.metadatavaluesIn + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBlockedUsersResponse} and HTTP response */ }, { - key: "ocListMutedUsersWithHttpInfo", - value: function ocListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) { + key: "listBlockedUsersWithHttpInfo", + value: function listBlockedUsersWithHttpInfo(userId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListMutedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListMutedUsers"); + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling listBlockedUsers"); } var pathParams = { - 'channel_url': channelUrl + 'user_id': userId }; var queryParams = { + 'list': opts['list'], 'token': opts['token'], - 'limit': opts['limit'] + 'limit': opts['limit'], + 'user_ids': opts['userIds'], + 'metadatakey': opts['metadatakey'], + 'metadatavalues_in': opts['metadatavaluesIn'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcListMutedUsersResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/mute', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _ListBlockedUsersResponse["default"]; + return this.apiClient.callApi('/v3/users/{user_id}/block', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl + * List blocked users + * ## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters + * @param {module:model/String} opts.list Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListMutedUsersResponse} - */ - }, { - key: "ocListMutedUsers", - value: function ocListMutedUsers(apiToken, channelUrl, opts) { - return this.ocListMutedUsersWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcMuteUserData} opts.ocMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response - */ - }, { - key: "ocMuteUserWithHttpInfo", - value: function ocMuteUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['ocMuteUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocMuteUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocMuteUser"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdOpenChannel["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/mute', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcMuteUserData} opts.ocMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} - */ - }, { - key: "ocMuteUser", - value: function ocMuteUser(apiToken, channelUrl, opts) { - return this.ocMuteUserWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - }, { - key: "ocUnbanUserByIdWithHttpInfo", - value: function ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUnbanUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUnbanUserById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocUnbanUserById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - }, { - key: "ocUnbanUserById", - value: function ocUnbanUserById(apiToken, channelUrl, bannedUserId) { - return this.ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - }, { - key: "ocUnmuteUserByIdWithHttpInfo", - value: function ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUnmuteUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUnmuteUserById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling ocUnmuteUserById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/mute/{muted_user_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - }, { - key: "ocUnmuteUserById", - value: function ocUnmuteUserById(apiToken, channelUrl, mutedUserId) { - return this.ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateBanByIdData} opts.ocUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcUpdateBanByIdResponse} and HTTP response - */ - }, { - key: "ocUpdateBanByIdWithHttpInfo", - value: function ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) { - opts = opts || {}; - var postBody = opts['ocUpdateBanByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUpdateBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUpdateBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocUpdateBanById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _OcUpdateBanByIdResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateBanByIdData} opts.ocUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcUpdateBanByIdResponse} - */ - }, { - key: "ocUpdateBanById", - value: function ocUpdateBanById(apiToken, channelUrl, bannedUserId, opts) { - return this.ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcViewBanByIdResponse} and HTTP response - */ - }, { - key: "ocViewBanByIdWithHttpInfo", - value: function ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocViewBanById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcViewBanByIdResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcViewBanByIdResponse} - */ - }, { - key: "ocViewBanById", - value: function ocViewBanById(apiToken, channelUrl, bannedUserId) { - return this.ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcViewMuteByIdResponse} and HTTP response - */ - }, { - key: "ocViewMuteByIdWithHttpInfo", - value: function ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewMuteById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewMuteById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling ocViewMuteById"); - } - var pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _OcViewMuteByIdResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/mute/{muted_user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcViewMuteByIdResponse} + * @param {String} opts.userIds Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. + * @param {String} opts.metadatakey + * @param {String} opts.metadatavaluesIn + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBlockedUsersResponse} */ }, { - key: "ocViewMuteById", - value: function ocViewMuteById(apiToken, channelUrl, mutedUserId) { - return this.ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId).then(function (response_and_data) { + key: "listBlockedUsers", + value: function listBlockedUsers(userId, opts) { + return this.listBlockedUsersWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} targetId + * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user + * @param {String} userId (Required) + * @param {String} targetId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "unblockUserByIdWithHttpInfo", - value: function unblockUserByIdWithHttpInfo(apiToken, userId, targetId) { + key: "unblockAUserWithHttpInfo", + value: function unblockAUserWithHttpInfo(userId, targetId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unblockUserById"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling unblockUserById"); + throw new Error("Missing the required parameter 'userId' when calling unblockAUser"); } // verify the required parameter 'targetId' is set if (targetId === undefined || targetId === null) { - throw new Error("Missing the required parameter 'targetId' when calling unblockUserById"); + throw new Error("Missing the required parameter 'targetId' when calling unblockAUser"); } var pathParams = { 'user_id': userId, @@ -1565,7 +293,7 @@ var ModerationApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1577,20 +305,19 @@ var ModerationApi = /*#__PURE__*/function () { /** * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} targetId + * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user + * @param {String} userId (Required) + * @param {String} targetId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "unblockUserById", - value: function unblockUserById(apiToken, userId, targetId) { - return this.unblockUserByIdWithHttpInfo(apiToken, userId, targetId).then(function (response_and_data) { + key: "unblockAUser", + value: function unblockAUser(userId, targetId, opts) { + return this.unblockAUserWithHttpInfo(userId, targetId, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return ModerationApi; -}(); -exports["default"] = ModerationApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/OpenChannelApi.js b/dist/api/OpenChannelApi.js index e2b7c9d..f41abaa 100644 --- a/dist/api/OpenChannelApi.js +++ b/dist/api/OpenChannelApi.js @@ -5,24 +5,36 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcCreateChannelData = _interopRequireDefault(require("../model/OcCreateChannelData")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("../model/OcDeleteChannelByUrl200Response")); -var _OcListChannelsResponse = _interopRequireDefault(require("../model/OcListChannelsResponse")); -var _OcListOperatorsResponse = _interopRequireDefault(require("../model/OcListOperatorsResponse")); -var _OcListParticipantsResponse = _interopRequireDefault(require("../model/OcListParticipantsResponse")); -var _OcRegisterOperatorsData = _interopRequireDefault(require("../model/OcRegisterOperatorsData")); -var _OcUpdateChannelByUrlData = _interopRequireDefault(require("../model/OcUpdateChannelByUrlData")); -var _SendBirdOpenChannel = _interopRequireDefault(require("../model/SendBirdOpenChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _CreateAnOpenChannelRequest = _interopRequireDefault(require("../model/CreateAnOpenChannelRequest")); +var _ListOpenChannelsResponse = _interopRequireDefault(require("../model/ListOpenChannelsResponse")); +var _ListOperatorsResponse = _interopRequireDefault(require("../model/ListOperatorsResponse")); +var _RegisterOperatorsToAGroupChannelRequest = _interopRequireDefault(require("../model/RegisterOperatorsToAGroupChannelRequest")); +var _SendbirdOpenChannel = _interopRequireDefault(require("../model/SendbirdOpenChannel")); +var _UpdateAnOpenChannelRequest = _interopRequireDefault(require("../model/UpdateAnOpenChannelRequest")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * OpenChannel service. * @module api/OpenChannelApi -* @version 0.0.16 +* @version 2.0.0 */ -var OpenChannelApi = /*#__PURE__*/function () { +var OpenChannelApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new OpenChannelApi. * @alias module:api/OpenChannelApi @@ -36,254 +48,165 @@ var OpenChannelApi = /*#__PURE__*/function () { } /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * Create an open channel + * ## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) * @param {Object} opts Optional parameters - * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAnOpenChannelRequest} opts.createAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ - _createClass(OpenChannelApi, [{ - key: "ocCancelTheRegistrationOfOperatorsWithHttpInfo", - value: function ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) { + return _createClass(OpenChannelApi, [{ + key: "createAnOpenChannelWithHttpInfo", + value: function createAnOpenChannelWithHttpInfo(opts) { opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocCancelTheRegistrationOfOperators"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocCancelTheRegistrationOfOperators"); - } - // verify the required parameter 'operatorIds' is set - if (operatorIds === undefined || operatorIds === null) { - throw new Error("Missing the required parameter 'operatorIds' when calling ocCancelTheRegistrationOfOperators"); - } - var pathParams = { - 'channel_url': channelUrl - }; - var queryParams = { - 'operator_ids': this.apiClient.buildCollectionParam(operatorIds, 'multi'), - 'delete_all': opts['deleteAll'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/operators', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds - * @param {Object} opts Optional parameters - * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "ocCancelTheRegistrationOfOperators", - value: function ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) { - return this.ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/OcCreateChannelData} opts.ocCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response - */ - }, { - key: "ocCreateChannelWithHttpInfo", - value: function ocCreateChannelWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['ocCreateChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocCreateChannel"); - } + var postBody = opts['createAnOpenChannelRequest']; var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdOpenChannel["default"]; + var returnType = _SendbirdOpenChannel["default"]; return this.apiClient.callApi('/v3/open_channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param {String} apiToken + * Create an open channel + * ## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) * @param {Object} opts Optional parameters - * @param {module:model/OcCreateChannelData} opts.ocCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * @param {String} opts.apiToken + * @param {module:model/CreateAnOpenChannelRequest} opts.createAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ }, { - key: "ocCreateChannel", - value: function ocCreateChannel(apiToken, opts) { - return this.ocCreateChannelWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "createAnOpenChannel", + value: function createAnOpenChannel(opts) { + return this.createAnOpenChannelWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * Delete an open channel + * ## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "ocDeleteChannelByUrlWithHttpInfo", - value: function ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) { + key: "deleteAnOpenChannelWithHttpInfo", + value: function deleteAnOpenChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocDeleteChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocDeleteChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAnOpenChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/open_channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * Delete an open channel + * ## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "ocDeleteChannelByUrl", - value: function ocDeleteChannelByUrl(apiToken, channelUrl) { - return this.ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl).then(function (response_and_data) { + key: "deleteAnOpenChannel", + value: function deleteAnOpenChannel(channelUrl, opts) { + return this.deleteAnOpenChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param {String} apiToken + * Get an open channel + * ## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.customTypes - * @param {String} opts.nameContains - * @param {String} opts.urlContains - * @param {Boolean} opts.showFrozen - * @param {Boolean} opts.showMetadata - * @param {String} opts.customType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListChannelsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {Boolean} opts.includeOperators Determines whether to include a list of operators in the response. (Default: false) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ }, { - key: "ocListChannelsWithHttpInfo", - value: function ocListChannelsWithHttpInfo(apiToken, opts) { + key: "getAnOpenChannelWithHttpInfo", + value: function getAnOpenChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListChannels"); + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling getAnOpenChannel"); } - var pathParams = {}; + var pathParams = { + 'channel_url': channelUrl + }; var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'custom_types': opts['customTypes'], - 'name_contains': opts['nameContains'], - 'url_contains': opts['urlContains'], - 'show_frozen': opts['showFrozen'], - 'show_metadata': opts['showMetadata'], - 'custom_type': opts['customType'] + 'include_operators': opts['includeOperators'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcListChannelsResponse["default"]; - return this.apiClient.callApi('/v3/open_channels', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdOpenChannel["default"]; + return this.apiClient.callApi('/v3/open_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param {String} apiToken + * Get an open channel + * ## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.customTypes - * @param {String} opts.nameContains - * @param {String} opts.urlContains - * @param {Boolean} opts.showFrozen - * @param {Boolean} opts.showMetadata - * @param {String} opts.customType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListChannelsResponse} + * @param {String} opts.apiToken + * @param {Boolean} opts.includeOperators Determines whether to include a list of operators in the response. (Default: false) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ }, { - key: "ocListChannels", - value: function ocListChannels(apiToken, opts) { - return this.ocListChannelsWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "getAnOpenChannel", + value: function getAnOpenChannel(channelUrl, opts) { + return this.getAnOpenChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * List operators of an open channel + * ## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListOperatorsResponse} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOperatorsResponse} and HTTP response */ }, { - key: "ocListOperatorsWithHttpInfo", - value: function ocListOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + key: "listChannelOperatorsWithHttpInfo", + value: function listChannelOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling listChannelOperators"); } var pathParams = { 'channel_url': channelUrl @@ -293,250 +216,256 @@ var OpenChannelApi = /*#__PURE__*/function () { 'limit': opts['limit'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcListOperatorsResponse["default"]; + var returnType = _ListOperatorsResponse["default"]; return this.apiClient.callApi('/v3/open_channels/{channel_url}/operators', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * List operators of an open channel + * ## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListOperatorsResponse} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOperatorsResponse} */ }, { - key: "ocListOperators", - value: function ocListOperators(apiToken, channelUrl, opts) { - return this.ocListOperatorsWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "listChannelOperators", + value: function listChannelOperators(channelUrl, opts) { + return this.listChannelOperatorsWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param {String} apiToken - * @param {String} channelUrl + * List open channels + * ## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels) * @param {Object} opts Optional parameters * @param {String} opts.token + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListParticipantsResponse} and HTTP response + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.nameContains + * @param {String} opts.urlContains + * @param {Boolean} opts.showFrozen Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) + * @param {Boolean} opts.showMetadata Determines whether to include channel metadata in the response. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOpenChannelsResponse} and HTTP response */ }, { - key: "ocListParticipantsWithHttpInfo", - value: function ocListParticipantsWithHttpInfo(apiToken, channelUrl, opts) { + key: "listOpenChannelsWithHttpInfo", + value: function listOpenChannelsWithHttpInfo(opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListParticipants"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListParticipants"); - } - var pathParams = { - 'channel_url': channelUrl - }; + var pathParams = {}; var queryParams = { 'token': opts['token'], - 'limit': opts['limit'] + 'channel_urls': opts['channelUrls'], + 'limit': opts['limit'], + 'custom_types': opts['customTypes'], + 'name_contains': opts['nameContains'], + 'url_contains': opts['urlContains'], + 'show_frozen': opts['showFrozen'], + 'show_metadata': opts['showMetadata'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _OcListParticipantsResponse["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}/participants', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _ListOpenChannelsResponse["default"]; + return this.apiClient.callApi('/v3/open_channels', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param {String} apiToken - * @param {String} channelUrl + * List open channels + * ## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels) * @param {Object} opts Optional parameters * @param {String} opts.token + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListParticipantsResponse} + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.nameContains + * @param {String} opts.urlContains + * @param {Boolean} opts.showFrozen Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) + * @param {Boolean} opts.showMetadata Determines whether to include channel metadata in the response. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOpenChannelsResponse} */ }, { - key: "ocListParticipants", - value: function ocListParticipants(apiToken, channelUrl, opts) { - return this.ocListParticipantsWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "listOpenChannels", + value: function listOpenChannels(opts) { + return this.listOpenChannelsWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to an open channel + * ## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcRegisterOperatorsData} opts.ocRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "ocRegisterOperatorsWithHttpInfo", - value: function ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + key: "registerOperatorsWithHttpInfo", + value: function registerOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - var postBody = opts['ocRegisterOperatorsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocRegisterOperators"); - } + var postBody = opts['registerOperatorsToAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocRegisterOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling registerOperators"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _OcDeleteChannelByUrl200Response["default"]; + var returnType = Object; return this.apiClient.callApi('/v3/open_channels/{channel_url}/operators', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to an open channel + * ## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcRegisterOperatorsData} opts.ocRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "ocRegisterOperators", - value: function ocRegisterOperators(apiToken, channelUrl, opts) { - return this.ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "registerOperators", + value: function registerOperators(channelUrl, opts) { + return this.registerOperatorsWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Unregister operators from an open channel + * ## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateChannelByUrlData} opts.ocUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response + * @param {Boolean} opts.deleteAll Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "ocUpdateChannelByUrlWithHttpInfo", - value: function ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + key: "unregisterOperatorsWithHttpInfo", + value: function unregisterOperatorsWithHttpInfo(channelUrl, operatorIds, opts) { opts = opts || {}; - var postBody = opts['ocUpdateChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUpdateChannelByUrl"); - } + var postBody = null; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUpdateChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling unregisterOperators"); + } + // verify the required parameter 'operatorIds' is set + if (operatorIds === undefined || operatorIds === null) { + throw new Error("Missing the required parameter 'operatorIds' when calling unregisterOperators"); } var pathParams = { 'channel_url': channelUrl }; - var queryParams = {}; + var queryParams = { + 'operator_ids': operatorIds, + 'delete_all': opts['deleteAll'] + }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = _SendBirdOpenChannel["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/open_channels/{channel_url}/operators', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Unregister operators from an open channel + * ## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateChannelByUrlData} opts.ocUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * @param {Boolean} opts.deleteAll Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "ocUpdateChannelByUrl", - value: function ocUpdateChannelByUrl(apiToken, channelUrl, opts) { - return this.ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts).then(function (response_and_data) { + key: "unregisterOperators", + value: function unregisterOperators(channelUrl, operatorIds, opts) { + return this.unregisterOperatorsWithHttpInfo(channelUrl, operatorIds, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response + * Update an open channel + * ## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAnOpenChannelRequest} opts.updateAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ }, { - key: "ocViewChannelByUrlWithHttpInfo", - value: function ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewChannelByUrl"); - } + key: "updateAnOpenChannelWithHttpInfo", + value: function updateAnOpenChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; + var postBody = opts['updateAnOpenChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAnOpenChannel"); } var pathParams = { 'channel_url': channelUrl }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdOpenChannel["default"]; - return this.apiClient.callApi('/v3/open_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdOpenChannel["default"]; + return this.apiClient.callApi('/v3/open_channels/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * Update an open channel + * ## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAnOpenChannelRequest} opts.updateAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ }, { - key: "ocViewChannelByUrl", - value: function ocViewChannelByUrl(apiToken, channelUrl) { - return this.ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl).then(function (response_and_data) { + key: "updateAnOpenChannel", + value: function updateAnOpenChannel(channelUrl, opts) { + return this.updateAnOpenChannelWithHttpInfo(channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return OpenChannelApi; -}(); -exports["default"] = OpenChannelApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/PrivacyApi.js b/dist/api/PrivacyApi.js deleted file mode 100644 index 775333d..0000000 --- a/dist/api/PrivacyApi.js +++ /dev/null @@ -1,231 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListGdprRequestsResponse = _interopRequireDefault(require("../model/ListGdprRequestsResponse")); -var _RegisterGdprRequestData = _interopRequireDefault(require("../model/RegisterGdprRequestData")); -var _RegisterGdprRequestResponse = _interopRequireDefault(require("../model/RegisterGdprRequestResponse")); -var _ViewGdprRequestByIdResponse = _interopRequireDefault(require("../model/ViewGdprRequestByIdResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** -* Privacy service. -* @module api/PrivacyApi -* @version 0.0.16 -*/ -var PrivacyApi = /*#__PURE__*/function () { - /** - * Constructs a new PrivacyApi. - * @alias module:api/PrivacyApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function PrivacyApi(apiClient) { - _classCallCheck(this, PrivacyApi); - this.apiClient = apiClient || _ApiClient["default"].instance; - } - - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - _createClass(PrivacyApi, [{ - key: "cancelTheRegistrationOfGdprRequestByIdWithHttpInfo", - value: function cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling cancelTheRegistrationOfGdprRequestById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling cancelTheRegistrationOfGdprRequestById"); - } - var pathParams = { - 'request_id': requestId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = []; - var returnType = null; - return this.apiClient.callApi('/v3/privacy/gdpr/{request_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - }, { - key: "cancelTheRegistrationOfGdprRequestById", - value: function cancelTheRegistrationOfGdprRequestById(apiToken, requestId) { - return this.cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListGdprRequestsResponse} and HTTP response - */ - }, { - key: "listGdprRequestsWithHttpInfo", - value: function listGdprRequestsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listGdprRequests"); - } - var pathParams = {}; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListGdprRequestsResponse["default"]; - return this.apiClient.callApi('/v3/privacy/gdpr', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListGdprRequestsResponse} - */ - }, { - key: "listGdprRequests", - value: function listGdprRequests(apiToken, opts) { - return this.listGdprRequestsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/RegisterGdprRequestData} opts.registerGdprRequestData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegisterGdprRequestResponse} and HTTP response - */ - }, { - key: "registerGdprRequestWithHttpInfo", - value: function registerGdprRequestWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['registerGdprRequestData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerGdprRequest"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _RegisterGdprRequestResponse["default"]; - return this.apiClient.callApi('/v3/privacy/gdpr', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/RegisterGdprRequestData} opts.registerGdprRequestData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegisterGdprRequestResponse} - */ - }, { - key: "registerGdprRequest", - value: function registerGdprRequest(apiToken, opts) { - return this.registerGdprRequestWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewGdprRequestByIdResponse} and HTTP response - */ - }, { - key: "viewGdprRequestByIdWithHttpInfo", - value: function viewGdprRequestByIdWithHttpInfo(apiToken, requestId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewGdprRequestById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling viewGdprRequestById"); - } - var pathParams = { - 'request_id': requestId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewGdprRequestByIdResponse["default"]; - return this.apiClient.callApi('/v3/privacy/gdpr/{request_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewGdprRequestByIdResponse} - */ - }, { - key: "viewGdprRequestById", - value: function viewGdprRequestById(apiToken, requestId) { - return this.viewGdprRequestByIdWithHttpInfo(apiToken, requestId).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - return PrivacyApi; -}(); -exports["default"] = PrivacyApi; \ No newline at end of file diff --git a/dist/api/ReportApi.js b/dist/api/ReportApi.js deleted file mode 100644 index fdc6279..0000000 --- a/dist/api/ReportApi.js +++ /dev/null @@ -1,543 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListReportsOnChannelByUrlResponse = _interopRequireDefault(require("../model/ListReportsOnChannelByUrlResponse")); -var _ListReportsOnMessageByIdResponse = _interopRequireDefault(require("../model/ListReportsOnMessageByIdResponse")); -var _ListReportsOnUserByIdResponse = _interopRequireDefault(require("../model/ListReportsOnUserByIdResponse")); -var _ListReportsResponse = _interopRequireDefault(require("../model/ListReportsResponse")); -var _ReportChannelByUrlData = _interopRequireDefault(require("../model/ReportChannelByUrlData")); -var _ReportChannelByUrlResponse = _interopRequireDefault(require("../model/ReportChannelByUrlResponse")); -var _ReportMessageByIdData = _interopRequireDefault(require("../model/ReportMessageByIdData")); -var _ReportMessageByIdResponse = _interopRequireDefault(require("../model/ReportMessageByIdResponse")); -var _ReportUserByIdData = _interopRequireDefault(require("../model/ReportUserByIdData")); -var _ReportUserByIdResponse = _interopRequireDefault(require("../model/ReportUserByIdResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** -* Report service. -* @module api/ReportApi -* @version 0.0.16 -*/ -var ReportApi = /*#__PURE__*/function () { - /** - * Constructs a new ReportApi. - * @alias module:api/ReportApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function ReportApi(apiClient) { - _classCallCheck(this, ReportApi); - this.apiClient = apiClient || _ApiClient["default"].instance; - } - - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {Number} opts.startTs - * @param {Number} opts.endTs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsResponse} and HTTP response - */ - _createClass(ReportApi, [{ - key: "listReportsWithHttpInfo", - value: function listReportsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReports"); - } - var pathParams = {}; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'start_ts': opts['startTs'], - 'end_ts': opts['endTs'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListReportsResponse["default"]; - return this.apiClient.callApi('/v3/report', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {Number} opts.startTs - * @param {Number} opts.endTs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsResponse} - */ - }, { - key: "listReports", - value: function listReports(apiToken, opts) { - return this.listReportsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnChannelByUrlResponse} and HTTP response - */ - }, { - key: "listReportsOnChannelByUrlWithHttpInfo", - value: function listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnChannelByUrl"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReportsOnChannelByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReportsOnChannelByUrl"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListReportsOnChannelByUrlResponse["default"]; - return this.apiClient.callApi('/v3/report/{channel_type}/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnChannelByUrlResponse} - */ - }, { - key: "listReportsOnChannelByUrl", - value: function listReportsOnChannelByUrl(apiToken, channelType, channelUrl, opts) { - return this.listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnMessageByIdResponse} and HTTP response - */ - }, { - key: "listReportsOnMessageByIdWithHttpInfo", - value: function listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReportsOnMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReportsOnMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling listReportsOnMessageById"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListReportsOnMessageByIdResponse["default"]; - return this.apiClient.callApi('/v3/report/{channel_type}/{channel_url}/messages/{message_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnMessageByIdResponse} - */ - }, { - key: "listReportsOnMessageById", - value: function listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnUserByIdResponse} and HTTP response - */ - }, { - key: "listReportsOnUserByIdWithHttpInfo", - value: function listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnUserById"); - } - // verify the required parameter 'offendingUserId' is set - if (offendingUserId === undefined || offendingUserId === null) { - throw new Error("Missing the required parameter 'offendingUserId' when calling listReportsOnUserById"); - } - var pathParams = { - 'offending_user_id': offendingUserId - }; - var queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ListReportsOnUserByIdResponse["default"]; - return this.apiClient.callApi('/v3/report/users/{offending_user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnUserByIdResponse} - */ - }, { - key: "listReportsOnUserById", - value: function listReportsOnUserById(apiToken, offendingUserId, opts) { - return this.listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/ReportChannelByUrlData} opts.reportChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportChannelByUrlResponse} and HTTP response - */ - }, { - key: "reportChannelByUrlWithHttpInfo", - value: function reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - var postBody = opts['reportChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportChannelByUrl"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling reportChannelByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling reportChannelByUrl"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ReportChannelByUrlResponse["default"]; - return this.apiClient.callApi('/v3/report/{channel_type}/{channel_url}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/ReportChannelByUrlData} opts.reportChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportChannelByUrlResponse} - */ - }, { - key: "reportChannelByUrl", - value: function reportChannelByUrl(apiToken, channelType, channelUrl, opts) { - return this.reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/ReportMessageByIdData} opts.reportMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportMessageByIdResponse} and HTTP response - */ - }, { - key: "reportMessageByIdWithHttpInfo", - value: function reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - var postBody = opts['reportMessageByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling reportMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling reportMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling reportMessageById"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ReportMessageByIdResponse["default"]; - return this.apiClient.callApi('/v3/report/{channel_type}/{channel_url}/messages/{message_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/ReportMessageByIdData} opts.reportMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportMessageByIdResponse} - */ - }, { - key: "reportMessageById", - value: function reportMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {module:model/ReportUserByIdData} opts.reportUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportUserByIdResponse} and HTTP response - */ - }, { - key: "reportUserByIdWithHttpInfo", - value: function reportUserByIdWithHttpInfo(apiToken, offendingUserId, opts) { - opts = opts || {}; - var postBody = opts['reportUserByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportUserById"); - } - // verify the required parameter 'offendingUserId' is set - if (offendingUserId === undefined || offendingUserId === null) { - throw new Error("Missing the required parameter 'offendingUserId' when calling reportUserById"); - } - var pathParams = { - 'offending_user_id': offendingUserId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ReportUserByIdResponse["default"]; - return this.apiClient.callApi('/v3/report/users/{offending_user_id}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {module:model/ReportUserByIdData} opts.reportUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportUserByIdResponse} - */ - }, { - key: "reportUserById", - value: function reportUserById(apiToken, offendingUserId, opts) { - return this.reportUserByIdWithHttpInfo(apiToken, offendingUserId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - }, { - key: "viewModeratedMessageByIdWithHttpInfo", - value: function viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewModeratedMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewModeratedMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewModeratedMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling viewModeratedMessageById"); - } - var pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/report/{channel_type}/{channel_url}/profanity_messages/{message_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - }, { - key: "viewModeratedMessageById", - value: function viewModeratedMessageById(apiToken, channelType, channelUrl, messageId) { - return this.viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - return ReportApi; -}(); -exports["default"] = ReportApi; \ No newline at end of file diff --git a/dist/api/StatisticsApi.js b/dist/api/StatisticsApi.js index ca948ab..7b47e64 100644 --- a/dist/api/StatisticsApi.js +++ b/dist/api/StatisticsApi.js @@ -5,23 +5,32 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetDetailedOpenRateOfAnnouncementByIdResponse = _interopRequireDefault(require("../model/GetDetailedOpenRateOfAnnouncementByIdResponse")); -var _GetDetailedOpenStatusOfAnnouncementByIdResponse = _interopRequireDefault(require("../model/GetDetailedOpenStatusOfAnnouncementByIdResponse")); -var _RetrieveAdvancedAnalyticsMetricsResponse = _interopRequireDefault(require("../model/RetrieveAdvancedAnalyticsMetricsResponse")); -var _ViewNumberOfConcurrentConnectionsResponse = _interopRequireDefault(require("../model/ViewNumberOfConcurrentConnectionsResponse")); var _ViewNumberOfDailyActiveUsersResponse = _interopRequireDefault(require("../model/ViewNumberOfDailyActiveUsersResponse")); var _ViewNumberOfMonthlyActiveUsersResponse = _interopRequireDefault(require("../model/ViewNumberOfMonthlyActiveUsersResponse")); -var _ViewNumberOfPeakConnectionsResponse = _interopRequireDefault(require("../model/ViewNumberOfPeakConnectionsResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * Statistics service. * @module api/StatisticsApi -* @version 0.0.16 +* @version 2.0.0 */ -var StatisticsApi = /*#__PURE__*/function () { +var StatisticsApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new StatisticsApi. * @alias module:api/StatisticsApi @@ -35,227 +44,24 @@ var StatisticsApi = /*#__PURE__*/function () { } /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} and HTTP response + * View number of daily active users + * ## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users) + * @param {Object} opts Optional parameters + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfDailyActiveUsersResponse} and HTTP response */ - _createClass(StatisticsApi, [{ - key: "getDetailedOpenRateOfAnnouncementByIdWithHttpInfo", - value: function getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenRateOfAnnouncementById"); - } - var pathParams = { - 'unique_id': uniqueId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetDetailedOpenRateOfAnnouncementByIdResponse["default"]; - return this.apiClient.callApi('/v3/announcement_open_rate/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} - */ - }, { - key: "getDetailedOpenRateOfAnnouncementById", - value: function getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId) { - return this.getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {Number} opts.limit - * @param {String} opts.next - * @param {Array.} opts.uniqueIds - * @param {Array.} opts.channelUrls - * @param {Boolean} opts.hasOpened - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} and HTTP response - */ - }, { - key: "getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo", - value: function getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenStatusOfAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenStatusOfAnnouncementById"); - } - var pathParams = { - 'unique_id': uniqueId - }; - var queryParams = { - 'limit': opts['limit'], - 'next': opts['next'], - 'unique_ids': this.apiClient.buildCollectionParam(opts['uniqueIds'], 'multi'), - 'channel_urls': this.apiClient.buildCollectionParam(opts['channelUrls'], 'multi'), - 'has_opened': opts['hasOpened'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _GetDetailedOpenStatusOfAnnouncementByIdResponse["default"]; - return this.apiClient.callApi('/v3/announcement_open_status/{unique_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {Number} opts.limit - * @param {String} opts.next - * @param {Array.} opts.uniqueIds - * @param {Array.} opts.channelUrls - * @param {Boolean} opts.hasOpened - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} - */ - }, { - key: "getDetailedOpenStatusOfAnnouncementById", - value: function getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, opts) { - return this.getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveAdvancedAnalyticsMetricsResponse} and HTTP response - */ - }, { - key: "retrieveAdvancedAnalyticsMetricsWithHttpInfo", - value: function retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveAdvancedAnalyticsMetrics"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RetrieveAdvancedAnalyticsMetricsResponse["default"]; - return this.apiClient.callApi('/v3/statistics/metric', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveAdvancedAnalyticsMetricsResponse} - */ - }, { - key: "retrieveAdvancedAnalyticsMetrics", - value: function retrieveAdvancedAnalyticsMetrics(apiToken) { - return this.retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfConcurrentConnectionsResponse} and HTTP response - */ - }, { - key: "viewNumberOfConcurrentConnectionsWithHttpInfo", - value: function viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfConcurrentConnections"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewNumberOfConcurrentConnectionsResponse["default"]; - return this.apiClient.callApi('/v3/applications/ccu', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfConcurrentConnectionsResponse} - */ - }, { - key: "viewNumberOfConcurrentConnections", - value: function viewNumberOfConcurrentConnections(apiToken) { - return this.viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.date - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfDailyActiveUsersResponse} and HTTP response - */ - }, { + return _createClass(StatisticsApi, [{ key: "viewNumberOfDailyActiveUsersWithHttpInfo", - value: function viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, opts) { + value: function viewNumberOfDailyActiveUsersWithHttpInfo(opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfDailyActiveUsers"); - } var pathParams = {}; var queryParams = { 'date': opts['date'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -267,43 +73,39 @@ var StatisticsApi = /*#__PURE__*/function () { /** * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param {String} apiToken + * ## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfDailyActiveUsersResponse} */ }, { key: "viewNumberOfDailyActiveUsers", - value: function viewNumberOfDailyActiveUsers(apiToken, opts) { - return this.viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, opts).then(function (response_and_data) { + value: function viewNumberOfDailyActiveUsers(opts) { + return this.viewNumberOfDailyActiveUsersWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param {String} apiToken + * ## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfMonthlyActiveUsersResponse} and HTTP response */ }, { key: "viewNumberOfMonthlyActiveUsersWithHttpInfo", - value: function viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, opts) { + value: function viewNumberOfMonthlyActiveUsersWithHttpInfo(opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfMonthlyActiveUsers"); - } var pathParams = {}; var queryParams = { 'date': opts['date'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -315,106 +117,18 @@ var StatisticsApi = /*#__PURE__*/function () { /** * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param {String} apiToken + * ## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfMonthlyActiveUsersResponse} */ }, { key: "viewNumberOfMonthlyActiveUsers", - value: function viewNumberOfMonthlyActiveUsers(apiToken, opts) { - return this.viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param {String} apiToken - * @param {String} timeDimension - * @param {Number} startYear - * @param {Number} startMonth - * @param {Number} endYear - * @param {Number} endMonth - * @param {Object} opts Optional parameters - * @param {Number} opts.startDay - * @param {Number} opts.endDay - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfPeakConnectionsResponse} and HTTP response - */ - }, { - key: "viewNumberOfPeakConnectionsWithHttpInfo", - value: function viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'timeDimension' is set - if (timeDimension === undefined || timeDimension === null) { - throw new Error("Missing the required parameter 'timeDimension' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'startYear' is set - if (startYear === undefined || startYear === null) { - throw new Error("Missing the required parameter 'startYear' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'startMonth' is set - if (startMonth === undefined || startMonth === null) { - throw new Error("Missing the required parameter 'startMonth' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'endYear' is set - if (endYear === undefined || endYear === null) { - throw new Error("Missing the required parameter 'endYear' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'endMonth' is set - if (endMonth === undefined || endMonth === null) { - throw new Error("Missing the required parameter 'endMonth' when calling viewNumberOfPeakConnections"); - } - var pathParams = {}; - var queryParams = { - 'time_dimension': timeDimension, - 'start_year': startYear, - 'start_month': startMonth, - 'end_year': endYear, - 'end_month': endMonth, - 'start_day': opts['startDay'], - 'end_day': opts['endDay'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewNumberOfPeakConnectionsResponse["default"]; - return this.apiClient.callApi('/v3/applications/peak_connections', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param {String} apiToken - * @param {String} timeDimension - * @param {Number} startYear - * @param {Number} startMonth - * @param {Number} endYear - * @param {Number} endMonth - * @param {Object} opts Optional parameters - * @param {Number} opts.startDay - * @param {Number} opts.endDay - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfPeakConnectionsResponse} - */ - }, { - key: "viewNumberOfPeakConnections", - value: function viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) { - return this.viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts).then(function (response_and_data) { + value: function viewNumberOfMonthlyActiveUsers(opts) { + return this.viewNumberOfMonthlyActiveUsersWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return StatisticsApi; -}(); -exports["default"] = StatisticsApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/UserApi.js b/dist/api/UserApi.js index f3f7190..8b747b6 100644 --- a/dist/api/UserApi.js +++ b/dist/api/UserApi.js @@ -5,51 +5,61 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddRegistrationOrDeviceTokenData = _interopRequireDefault(require("../model/AddRegistrationOrDeviceTokenData")); -var _AddRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("../model/AddRegistrationOrDeviceTokenResponse")); -var _ChoosePushNotificationContentTemplateResponse = _interopRequireDefault(require("../model/ChoosePushNotificationContentTemplateResponse")); -var _CreateUserData = _interopRequireDefault(require("../model/CreateUserData")); -var _CreateUserTokenData = _interopRequireDefault(require("../model/CreateUserTokenData")); +var _AddARegistrationOrDeviceTokenRequest = _interopRequireDefault(require("../model/AddARegistrationOrDeviceTokenRequest")); +var _AddARegistrationOrDeviceTokenResponse = _interopRequireDefault(require("../model/AddARegistrationOrDeviceTokenResponse")); +var _ChooseAPushNotificationContentTemplateRequest = _interopRequireDefault(require("../model/ChooseAPushNotificationContentTemplateRequest")); +var _ChooseAPushNotificationContentTemplateResponse = _interopRequireDefault(require("../model/ChooseAPushNotificationContentTemplateResponse")); +var _CreateAUserRequest = _interopRequireDefault(require("../model/CreateAUserRequest")); +var _CreateUserTokenRequest = _interopRequireDefault(require("../model/CreateUserTokenRequest")); var _CreateUserTokenResponse = _interopRequireDefault(require("../model/CreateUserTokenResponse")); -var _LeaveMyGroupChannelsData = _interopRequireDefault(require("../model/LeaveMyGroupChannelsData")); +var _GetChannelInvitationPreferenceResponse = _interopRequireDefault(require("../model/GetChannelInvitationPreferenceResponse")); +var _LeaveMyGroupChannelsRequest = _interopRequireDefault(require("../model/LeaveMyGroupChannelsRequest")); var _ListMyGroupChannelsResponse = _interopRequireDefault(require("../model/ListMyGroupChannelsResponse")); var _ListRegistrationOrDeviceTokensResponse = _interopRequireDefault(require("../model/ListRegistrationOrDeviceTokensResponse")); var _ListUsersResponse = _interopRequireDefault(require("../model/ListUsersResponse")); -var _MarkAllMessagesAsReadData = _interopRequireDefault(require("../model/MarkAllMessagesAsReadData")); -var _RegisterAsOperatorToChannelsWithCustomChannelTypesData = _interopRequireDefault(require("../model/RegisterAsOperatorToChannelsWithCustomChannelTypesData")); -var _RemoveRegistrationOrDeviceTokenByTokenResponse = _interopRequireDefault(require("../model/RemoveRegistrationOrDeviceTokenByTokenResponse")); -var _RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse = _interopRequireDefault(require("../model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse")); -var _RemoveRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("../model/RemoveRegistrationOrDeviceTokenResponse")); -var _ResetPushPreferencesResponse = _interopRequireDefault(require("../model/ResetPushPreferencesResponse")); -var _SendBirdUser = _interopRequireDefault(require("../model/SendBirdUser")); -var _UpdateChannelInvitationPreferenceData = _interopRequireDefault(require("../model/UpdateChannelInvitationPreferenceData")); +var _MarkAllMessagesAsReadRequest = _interopRequireDefault(require("../model/MarkAllMessagesAsReadRequest")); +var _MarkChannelMessagesAsReadRequest = _interopRequireDefault(require("../model/MarkChannelMessagesAsReadRequest")); +var _RemoveARegistrationOrDeviceTokenResponse = _interopRequireDefault(require("../model/RemoveARegistrationOrDeviceTokenResponse")); +var _RemoveAllRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("../model/RemoveAllRegistrationOrDeviceTokenResponse")); +var _SendbirdUser = _interopRequireDefault(require("../model/SendbirdUser")); +var _UpdateAUserRequest = _interopRequireDefault(require("../model/UpdateAUserRequest")); +var _UpdateChannelInvitationPreferenceRequest = _interopRequireDefault(require("../model/UpdateChannelInvitationPreferenceRequest")); var _UpdateChannelInvitationPreferenceResponse = _interopRequireDefault(require("../model/UpdateChannelInvitationPreferenceResponse")); -var _UpdateCountPreferenceOfChannelByUrlData = _interopRequireDefault(require("../model/UpdateCountPreferenceOfChannelByUrlData")); +var _UpdateCountPreferenceOfAChannelRequest = _interopRequireDefault(require("../model/UpdateCountPreferenceOfAChannelRequest")); var _UpdateCountPreferenceOfChannelByUrlResponse = _interopRequireDefault(require("../model/UpdateCountPreferenceOfChannelByUrlResponse")); -var _UpdatePushPreferencesData = _interopRequireDefault(require("../model/UpdatePushPreferencesData")); -var _UpdatePushPreferencesForChannelByUrlData = _interopRequireDefault(require("../model/UpdatePushPreferencesForChannelByUrlData")); -var _UpdatePushPreferencesForChannelByUrlResponse = _interopRequireDefault(require("../model/UpdatePushPreferencesForChannelByUrlResponse")); +var _UpdatePushPreferencesForAChannelRequest = _interopRequireDefault(require("../model/UpdatePushPreferencesForAChannelRequest")); +var _UpdatePushPreferencesForAChannelResponse = _interopRequireDefault(require("../model/UpdatePushPreferencesForAChannelResponse")); +var _UpdatePushPreferencesRequest = _interopRequireDefault(require("../model/UpdatePushPreferencesRequest")); var _UpdatePushPreferencesResponse = _interopRequireDefault(require("../model/UpdatePushPreferencesResponse")); -var _UpdateUserByIdData = _interopRequireDefault(require("../model/UpdateUserByIdData")); -var _ViewChannelInvitationPreferenceResponse = _interopRequireDefault(require("../model/ViewChannelInvitationPreferenceResponse")); -var _ViewCountPreferenceOfChannelByUrlResponse = _interopRequireDefault(require("../model/ViewCountPreferenceOfChannelByUrlResponse")); -var _ViewNumberOfChannelsByJoinStatusResponse = _interopRequireDefault(require("../model/ViewNumberOfChannelsByJoinStatusResponse")); +var _ViewCountPreferenceOfAChannelResponse = _interopRequireDefault(require("../model/ViewCountPreferenceOfAChannelResponse")); var _ViewNumberOfChannelsWithUnreadMessagesResponse = _interopRequireDefault(require("../model/ViewNumberOfChannelsWithUnreadMessagesResponse")); -var _ViewNumberOfUnreadItemsResponse = _interopRequireDefault(require("../model/ViewNumberOfUnreadItemsResponse")); var _ViewNumberOfUnreadMessagesResponse = _interopRequireDefault(require("../model/ViewNumberOfUnreadMessagesResponse")); -var _ViewPushPreferencesForChannelByUrlResponse = _interopRequireDefault(require("../model/ViewPushPreferencesForChannelByUrlResponse")); +var _ViewPushPreferencesForAChannelResponse = _interopRequireDefault(require("../model/ViewPushPreferencesForAChannelResponse")); var _ViewPushPreferencesResponse = _interopRequireDefault(require("../model/ViewPushPreferencesResponse")); -var _ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner = _interopRequireDefault(require("../model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * User service. * @module api/UserApi -* @version 0.0.16 +* @version 2.0.0 */ -var UserApi = /*#__PURE__*/function () { +var UserApi = exports["default"] = /*#__PURE__*/function () { /** * Constructs a new UserApi. * @alias module:api/UserApi @@ -65,29 +75,25 @@ var UserApi = /*#__PURE__*/function () { /** * Add a registration or device token * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) * @param {Object} opts Optional parameters - * @param {module:model/AddRegistrationOrDeviceTokenData} opts.addRegistrationOrDeviceTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddRegistrationOrDeviceTokenResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AddARegistrationOrDeviceTokenRequest} opts.addARegistrationOrDeviceTokenRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddARegistrationOrDeviceTokenResponse} and HTTP response */ - _createClass(UserApi, [{ - key: "addRegistrationOrDeviceTokenWithHttpInfo", - value: function addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, opts) { + return _createClass(UserApi, [{ + key: "addARegistrationOrDeviceTokenWithHttpInfo", + value: function addARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, opts) { opts = opts || {}; - var postBody = opts['addRegistrationOrDeviceTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addRegistrationOrDeviceToken"); - } + var postBody = opts['addARegistrationOrDeviceTokenRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling addRegistrationOrDeviceToken"); + throw new Error("Missing the required parameter 'userId' when calling addARegistrationOrDeviceToken"); } // verify the required parameter 'tokenType' is set if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling addRegistrationOrDeviceToken"); + throw new Error("Missing the required parameter 'tokenType' when calling addARegistrationOrDeviceToken"); } var pathParams = { 'user_id': userId, @@ -95,152 +101,140 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _AddRegistrationOrDeviceTokenResponse["default"]; + var returnType = _AddARegistrationOrDeviceTokenResponse["default"]; return this.apiClient.callApi('/v3/users/{user_id}/push/{token_type}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Add a registration or device token * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) * @param {Object} opts Optional parameters - * @param {module:model/AddRegistrationOrDeviceTokenData} opts.addRegistrationOrDeviceTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddRegistrationOrDeviceTokenResponse} + * @param {String} opts.apiToken + * @param {module:model/AddARegistrationOrDeviceTokenRequest} opts.addARegistrationOrDeviceTokenRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddARegistrationOrDeviceTokenResponse} */ }, { - key: "addRegistrationOrDeviceToken", - value: function addRegistrationOrDeviceToken(apiToken, userId, tokenType, opts) { - return this.addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, opts).then(function (response_and_data) { + key: "addARegistrationOrDeviceToken", + value: function addARegistrationOrDeviceToken(userId, tokenType, opts) { + return this.addARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChoosePushNotificationContentTemplateResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} opts.chooseAPushNotificationContentTemplateRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChooseAPushNotificationContentTemplateResponse} and HTTP response */ }, { - key: "choosePushNotificationContentTemplateWithHttpInfo", - value: function choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, opts) { + key: "chooseAPushNotificationContentTemplateWithHttpInfo", + value: function chooseAPushNotificationContentTemplateWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling choosePushNotificationContentTemplate"); - } + var postBody = opts['chooseAPushNotificationContentTemplateRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling choosePushNotificationContentTemplate"); + throw new Error("Missing the required parameter 'userId' when calling chooseAPushNotificationContentTemplate"); } var pathParams = { 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _ChoosePushNotificationContentTemplateResponse["default"]; + var returnType = _ChooseAPushNotificationContentTemplateResponse["default"]; return this.apiClient.callApi('/v3/users/{user_id}/push/template', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChoosePushNotificationContentTemplateResponse} + * @param {String} opts.apiToken + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} opts.chooseAPushNotificationContentTemplateRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChooseAPushNotificationContentTemplateResponse} */ }, { - key: "choosePushNotificationContentTemplate", - value: function choosePushNotificationContentTemplate(apiToken, userId, opts) { - return this.choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + key: "chooseAPushNotificationContentTemplate", + value: function chooseAPushNotificationContentTemplate(userId, opts) { + return this.chooseAPushNotificationContentTemplateWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param {String} apiToken + * ## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user * @param {Object} opts Optional parameters - * @param {module:model/CreateUserData} opts.createUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAUserRequest} opts.createAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ }, { - key: "createUserWithHttpInfo", - value: function createUserWithHttpInfo(apiToken, opts) { + key: "createAUserWithHttpInfo", + value: function createAUserWithHttpInfo(opts) { opts = opts || {}; - var postBody = opts['createUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUser"); - } + var postBody = opts['createAUserRequest']; var pathParams = {}; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _SendBirdUser["default"]; + var returnType = _SendbirdUser["default"]; return this.apiClient.callApi('/v3/users', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param {String} apiToken + * ## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user * @param {Object} opts Optional parameters - * @param {module:model/CreateUserData} opts.createUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} + * @param {String} opts.apiToken + * @param {module:model/CreateAUserRequest} opts.createAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ }, { - key: "createUser", - value: function createUser(apiToken, opts) { - return this.createUserWithHttpInfo(apiToken, opts).then(function (response_and_data) { + key: "createAUser", + value: function createAUser(opts) { + return this.createAUserWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Create user token - * ## Create user token - * @param {String} apiToken - * @param {String} userId + * ## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/CreateUserTokenData} opts.createUserTokenData + * @param {String} opts.apiToken + * @param {module:model/CreateUserTokenRequest} opts.createUserTokenRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUserTokenResponse} and HTTP response */ }, { key: "createUserTokenWithHttpInfo", - value: function createUserTokenWithHttpInfo(apiToken, userId, opts) { + value: function createUserTokenWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['createUserTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUserToken"); - } + var postBody = opts['createUserTokenRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling createUserToken"); @@ -250,7 +244,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -262,46 +256,44 @@ var UserApi = /*#__PURE__*/function () { /** * Create user token - * ## Create user token - * @param {String} apiToken - * @param {String} userId + * ## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/CreateUserTokenData} opts.createUserTokenData + * @param {String} opts.apiToken + * @param {module:model/CreateUserTokenRequest} opts.createUserTokenRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUserTokenResponse} */ }, { key: "createUserToken", - value: function createUserToken(apiToken, userId, opts) { - return this.createUserTokenWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function createUserToken(userId, opts) { + return this.createUserTokenWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "deleteUserByIdWithHttpInfo", - value: function deleteUserByIdWithHttpInfo(apiToken, userId) { + key: "deleteAUserWithHttpInfo", + value: function deleteAUserWithHttpInfo(userId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserById"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserById"); + throw new Error("Missing the required parameter 'userId' when calling deleteAUser"); } var pathParams = { 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -313,37 +305,82 @@ var UserApi = /*#__PURE__*/function () { /** * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "deleteUserById", - value: function deleteUserById(apiToken, userId) { - return this.deleteUserByIdWithHttpInfo(apiToken, userId).then(function (response_and_data) { + key: "deleteAUser", + value: function deleteAUser(userId, opts) { + return this.deleteAUserWithHttpInfo(userId, opts).then(function (response_and_data) { + return response_and_data.data; + }); + } + + /** + * Get channel invitation preference + * ## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChannelInvitationPreferenceResponse} and HTTP response + */ + }, { + key: "getChannelInvitationPreferenceWithHttpInfo", + value: function getChannelInvitationPreferenceWithHttpInfo(userId, opts) { + opts = opts || {}; + var postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getChannelInvitationPreference"); + } + var pathParams = { + 'user_id': userId + }; + var queryParams = {}; + var headerParams = { + 'api-token': opts['apiToken'] + }; + var formParams = {}; + var authNames = []; + var contentTypes = []; + var accepts = ['application/json']; + var returnType = _GetChannelInvitationPreferenceResponse["default"]; + return this.apiClient.callApi('/v3/users/{user_id}/channel_invitation_preference', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + } + + /** + * Get channel invitation preference + * ## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChannelInvitationPreferenceResponse} + */ + }, { + key: "getChannelInvitationPreference", + value: function getChannelInvitationPreference(userId, opts) { + return this.getChannelInvitationPreferenceWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param {String} apiToken - * @param {String} userId + * ## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [leave_all_when_deactivated](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/LeaveMyGroupChannelsData} opts.leaveMyGroupChannelsData + * @param {String} opts.apiToken + * @param {module:model/LeaveMyGroupChannelsRequest} opts.leaveMyGroupChannelsRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { key: "leaveMyGroupChannelsWithHttpInfo", - value: function leaveMyGroupChannelsWithHttpInfo(apiToken, userId, opts) { + value: function leaveMyGroupChannelsWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['leaveMyGroupChannelsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveMyGroupChannels"); - } + var postBody = opts['leaveMyGroupChannelsRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling leaveMyGroupChannels"); @@ -353,7 +390,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -365,82 +402,84 @@ var UserApi = /*#__PURE__*/function () { /** * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param {String} apiToken - * @param {String} userId + * ## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [leave_all_when_deactivated](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/LeaveMyGroupChannelsData} opts.leaveMyGroupChannelsData + * @param {String} opts.apiToken + * @param {module:model/LeaveMyGroupChannelsRequest} opts.leaveMyGroupChannelsRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { key: "leaveMyGroupChannels", - value: function leaveMyGroupChannels(apiToken, userId, opts) { - return this.leaveMyGroupChannelsWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function leaveMyGroupChannels(userId, opts) { + return this.leaveMyGroupChannelsWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. + * ## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {String} apiToken - * @param {String} userId * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {String} opts.hiddenMode - * @param {String} opts.memberStateFilter - * @param {String} opts.unreadFilter - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty - * @param {Boolean} opts.showFrozen * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.searchQuery - * @param {String} opts.searchFields - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {String} opts.customType + * @param {Boolean} opts.showMetadata + * @param {Boolean} opts.showFrozen + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId2 (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. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMyGroupChannelsResponse} and HTTP response */ }, { key: "listMyGroupChannelsWithHttpInfo", - value: function listMyGroupChannelsWithHttpInfo(apiToken, userId, opts) { + value: function listMyGroupChannelsWithHttpInfo(userId, apiToken, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMyGroupChannels"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling listMyGroupChannels"); } + // verify the required parameter 'apiToken' is set + if (apiToken === undefined || apiToken === null) { + throw new Error("Missing the required parameter 'apiToken' when calling listMyGroupChannels"); + } var pathParams = { 'user_id': userId }; @@ -450,16 +489,14 @@ var UserApi = /*#__PURE__*/function () { 'distinct_mode': opts['distinctMode'], 'public_mode': opts['publicMode'], 'super_mode': opts['superMode'], - 'hidden_mode': opts['hiddenMode'], - 'member_state_filter': opts['memberStateFilter'], - 'unread_filter': opts['unreadFilter'], 'created_after': opts['createdAfter'], 'created_before': opts['createdBefore'], 'show_empty': opts['showEmpty'], - 'show_frozen': opts['showFrozen'], 'show_member': opts['showMember'], 'show_delivery_receipt': opts['showDeliveryReceipt'], 'show_read_receipt': opts['showReadReceipt'], + 'show_metadata': opts['showMetadata'], + 'show_frozen': opts['showFrozen'], 'order': opts['order'], 'metadata_order_key': opts['metadataOrderKey'], 'custom_types': opts['customTypes'], @@ -473,8 +510,6 @@ var UserApi = /*#__PURE__*/function () { 'query_type': opts['queryType'], 'members_nickname': opts['membersNickname'], 'members_nickname_contains': opts['membersNicknameContains'], - 'search_query': opts['searchQuery'], - 'search_fields': opts['searchFields'], 'metadata_key': opts['metadataKey'], 'metadata_values': opts['metadataValues'], 'metadata_value_startswith': opts['metadataValueStartswith'], @@ -484,10 +519,16 @@ var UserApi = /*#__PURE__*/function () { 'metacounter_value_gte': opts['metacounterValueGte'], 'metacounter_value_lt': opts['metacounterValueLt'], 'metacounter_value_lte': opts['metacounterValueLte'], - 'custom_type': opts['customType'] + 'include_sorted_metaarray_in_last_message': opts['includeSortedMetaarrayInLastMessage'], + 'custom_type': opts['customType'], + 'read_receipt': opts['readReceipt'], + 'member': opts['member'], + 'is_distinct': opts['isDistinct'], + 'members_in': opts['membersIn'], + 'user_id': opts['userId2'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': apiToken }; var formParams = {}; var authNames = []; @@ -499,76 +540,76 @@ var UserApi = /*#__PURE__*/function () { /** * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. + * ## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {String} apiToken - * @param {String} userId * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {String} opts.hiddenMode - * @param {String} opts.memberStateFilter - * @param {String} opts.unreadFilter - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty - * @param {Boolean} opts.showFrozen * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.searchQuery - * @param {String} opts.searchFields - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {String} opts.customType + * @param {Boolean} opts.showMetadata + * @param {Boolean} opts.showFrozen + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId2 (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. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMyGroupChannelsResponse} */ }, { key: "listMyGroupChannels", - value: function listMyGroupChannels(apiToken, userId, opts) { - return this.listMyGroupChannelsWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function listMyGroupChannels(userId, apiToken, opts) { + return this.listMyGroupChannelsWithHttpInfo(userId, apiToken, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * ## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListRegistrationOrDeviceTokensResponse} and HTTP response */ }, { key: "listRegistrationOrDeviceTokensWithHttpInfo", - value: function listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType) { + value: function listRegistrationOrDeviceTokensWithHttpInfo(userId, tokenType, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listRegistrationOrDeviceTokens"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling listRegistrationOrDeviceTokens"); @@ -583,7 +624,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -595,45 +636,42 @@ var UserApi = /*#__PURE__*/function () { /** * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * ## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListRegistrationOrDeviceTokensResponse} */ }, { key: "listRegistrationOrDeviceTokens", - value: function listRegistrationOrDeviceTokens(apiToken, userId, tokenType) { - return this.listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType).then(function (response_and_data) { + value: function listRegistrationOrDeviceTokens(userId, tokenType, opts) { + return this.listRegistrationOrDeviceTokensWithHttpInfo(userId, tokenType, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param {String} apiToken + * ## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @param {String} opts.activeMode - * @param {Boolean} opts.showBot - * @param {String} opts.userIds + * @param {module:model/String} opts.activeMode Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) + * @param {Boolean} opts.showBot Determines whether to include bots in the list. (Default: true) + * @param {String} opts.userIds Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. * @param {String} opts.nickname * @param {String} opts.nicknameStartswith * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn + * @param {String} opts.metadatavaluesIn Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListUsersResponse} and HTTP response */ }, { key: "listUsersWithHttpInfo", - value: function listUsersWithHttpInfo(apiToken, opts) { + value: function listUsersWithHttpInfo(opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listUsers"); - } var pathParams = {}; var queryParams = { 'token': opts['token'], @@ -647,7 +685,7 @@ var UserApi = /*#__PURE__*/function () { 'metadatavalues_in': opts['metadatavaluesIn'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -659,46 +697,42 @@ var UserApi = /*#__PURE__*/function () { /** * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param {String} apiToken + * ## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @param {String} opts.activeMode - * @param {Boolean} opts.showBot - * @param {String} opts.userIds + * @param {module:model/String} opts.activeMode Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) + * @param {Boolean} opts.showBot Determines whether to include bots in the list. (Default: true) + * @param {String} opts.userIds Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. * @param {String} opts.nickname * @param {String} opts.nicknameStartswith * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn + * @param {String} opts.metadatavaluesIn Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUsersResponse} */ }, { key: "listUsers", - value: function listUsers(apiToken, opts) { - return this.listUsersWithHttpInfo(apiToken, opts).then(function (response_and_data) { + value: function listUsers(opts) { + return this.listUsersWithHttpInfo(opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/MarkAllMessagesAsReadData} opts.markAllMessagesAsReadData + * @param {String} opts.apiToken + * @param {module:model/MarkAllMessagesAsReadRequest} opts.markAllMessagesAsReadRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { key: "markAllMessagesAsReadWithHttpInfo", - value: function markAllMessagesAsReadWithHttpInfo(apiToken, userId, opts) { + value: function markAllMessagesAsReadWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['markAllMessagesAsReadData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling markAllMessagesAsRead"); - } + var postBody = opts['markAllMessagesAsReadRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling markAllMessagesAsRead"); @@ -708,7 +742,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -720,310 +754,298 @@ var UserApi = /*#__PURE__*/function () { /** * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/MarkAllMessagesAsReadData} opts.markAllMessagesAsReadData + * @param {String} opts.apiToken + * @param {module:model/MarkAllMessagesAsReadRequest} opts.markAllMessagesAsReadRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { key: "markAllMessagesAsRead", - value: function markAllMessagesAsRead(apiToken, userId, opts) { - return this.markAllMessagesAsReadWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function markAllMessagesAsRead(userId, opts) { + return this.markAllMessagesAsReadWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Remove a registration or device token - When unregistering a specific token + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {String} token (Required) * @param {Object} opts Optional parameters - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} opts.registerAsOperatorToChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveARegistrationOrDeviceTokenResponse} and HTTP response */ }, { - key: "registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo", - value: function registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { + key: "removeARegistrationOrDeviceTokenWithHttpInfo", + value: function removeARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, token, opts) { opts = opts || {}; - var postBody = opts['registerAsOperatorToChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerAsOperatorToChannelsWithCustomChannelTypes"); - } + var postBody = null; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling registerAsOperatorToChannelsWithCustomChannelTypes"); + throw new Error("Missing the required parameter 'userId' when calling removeARegistrationOrDeviceToken"); + } + // verify the required parameter 'tokenType' is set + if (tokenType === undefined || tokenType === null) { + throw new Error("Missing the required parameter 'tokenType' when calling removeARegistrationOrDeviceToken"); + } + // verify the required parameter 'token' is set + if (token === undefined || token === null) { + throw new Error("Missing the required parameter 'token' when calling removeARegistrationOrDeviceToken"); } var pathParams = { - 'user_id': userId + 'user_id': userId, + 'token_type': tokenType, + 'token': token }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = ['application/json']; + var contentTypes = []; var accepts = ['application/json']; - var returnType = Object; - return this.apiClient.callApi('/v3/users/{user_id}/operating_channel_custom_types', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _RemoveARegistrationOrDeviceTokenResponse["default"]; + return this.apiClient.callApi('/v3/users/{user_id}/push/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Remove a registration or device token - When unregistering a specific token + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {String} token (Required) * @param {Object} opts Optional parameters - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} opts.registerAsOperatorToChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveARegistrationOrDeviceTokenResponse} */ }, { - key: "registerAsOperatorToChannelsWithCustomChannelTypes", - value: function registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + key: "removeARegistrationOrDeviceToken", + value: function removeARegistrationOrDeviceToken(userId, tokenType, token, opts) { + return this.removeARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, token, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenResponse} and HTTP response + * Remove a registration or device token from an owner + * ## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ }, { - key: "removeRegistrationOrDeviceTokenWithHttpInfo", - value: function removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId) { + key: "removeARegistrationOrDeviceTokenFromAnOwnerWithHttpInfo", + value: function removeARegistrationOrDeviceTokenFromAnOwnerWithHttpInfo(tokenType, token, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceToken"); + // verify the required parameter 'tokenType' is set + if (tokenType === undefined || tokenType === null) { + throw new Error("Missing the required parameter 'tokenType' when calling removeARegistrationOrDeviceTokenFromAnOwner"); } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling removeRegistrationOrDeviceToken"); + // verify the required parameter 'token' is set + if (token === undefined || token === null) { + throw new Error("Missing the required parameter 'token' when calling removeARegistrationOrDeviceTokenFromAnOwner"); } var pathParams = { - 'user_id': userId + 'token_type': tokenType, + 'token': token }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _RemoveRegistrationOrDeviceTokenResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/push', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = [_MarkChannelMessagesAsReadRequest["default"]]; + return this.apiClient.callApi('/v3/push/device_tokens/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenResponse} + * Remove a registration or device token from an owner + * ## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ }, { - key: "removeRegistrationOrDeviceToken", - value: function removeRegistrationOrDeviceToken(apiToken, userId) { - return this.removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId).then(function (response_and_data) { + key: "removeARegistrationOrDeviceTokenFromAnOwner", + value: function removeARegistrationOrDeviceTokenFromAnOwner(tokenType, token, opts) { + return this.removeARegistrationOrDeviceTokenFromAnOwnerWithHttpInfo(tokenType, token, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Remove a registration or device token - When unregistering a specific token - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} and HTTP response + * Remove a registration or device token - When unregistering all device tokens + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveAllRegistrationOrDeviceTokenResponse} and HTTP response */ }, { - key: "removeRegistrationOrDeviceTokenByTokenWithHttpInfo", - value: function removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token) { + key: "removeAllRegistrationOrDeviceTokenWithHttpInfo", + value: function removeAllRegistrationOrDeviceTokenWithHttpInfo(userId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceTokenByToken"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling removeRegistrationOrDeviceTokenByToken"); - } - // verify the required parameter 'tokenType' is set - if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling removeRegistrationOrDeviceTokenByToken"); - } - // verify the required parameter 'token' is set - if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling removeRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'userId' when calling removeAllRegistrationOrDeviceToken"); } var pathParams = { - 'user_id': userId, - 'token_type': tokenType, - 'token': token + 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _RemoveRegistrationOrDeviceTokenByTokenResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/push/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _RemoveAllRegistrationOrDeviceTokenResponse["default"]; + return this.apiClient.callApi('/v3/users/{user_id}/push', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Remove a registration or device token - When unregistering a specific token - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} + * Remove a registration or device token - When unregistering all device tokens + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveAllRegistrationOrDeviceTokenResponse} */ }, { - key: "removeRegistrationOrDeviceTokenByToken", - value: function removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token) { - return this.removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token).then(function (response_and_data) { + key: "removeAllRegistrationOrDeviceToken", + value: function removeAllRegistrationOrDeviceToken(userId, opts) { + return this.removeAllRegistrationOrDeviceTokenWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} and HTTP response + * Reset push preferences + * ## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { - key: "removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo", - value: function removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token) { + key: "resetPushPreferencesWithHttpInfo", + value: function resetPushPreferencesWithHttpInfo(userId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); - } - // verify the required parameter 'tokenType' is set - if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); - } - // verify the required parameter 'token' is set - if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling resetPushPreferences"); } var pathParams = { - 'token_type': tokenType, - 'token': token + 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse["default"]; - return this.apiClient.callApi('/v3/push/device_tokens/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = Object; + return this.apiClient.callApi('/v3/users/{user_id}/push_preference', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} + * Reset push preferences + * ## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { - key: "removeRegistrationOrDeviceTokenFromOwnerByToken", - value: function removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token) { - return this.removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token).then(function (response_and_data) { + key: "resetPushPreferences", + value: function resetPushPreferences(userId, opts) { + return this.resetPushPreferencesWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetPushPreferencesResponse} and HTTP response + * Update a user + * ## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it's replaced with [<code>/users/{user_id}/token</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAUserRequest} opts.updateAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ }, { - key: "resetPushPreferencesWithHttpInfo", - value: function resetPushPreferencesWithHttpInfo(apiToken, userId) { - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling resetPushPreferences"); - } + key: "updateAUserWithHttpInfo", + value: function updateAUserWithHttpInfo(userId, opts) { + opts = opts || {}; + var postBody = opts['updateAUserRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling resetPushPreferences"); + throw new Error("Missing the required parameter 'userId' when calling updateAUser"); } var pathParams = { 'user_id': userId }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; - var contentTypes = []; + var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _ResetPushPreferencesResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/push_preference', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdUser["default"]; + return this.apiClient.callApi('/v3/users/{user_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetPushPreferencesResponse} + * Update a user + * ## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it's replaced with [<code>/users/{user_id}/token</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAUserRequest} opts.updateAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ }, { - key: "resetPushPreferences", - value: function resetPushPreferences(apiToken, userId) { - return this.resetPushPreferencesWithHttpInfo(apiToken, userId).then(function (response_and_data) { + key: "updateAUser", + value: function updateAUser(userId, opts) { + return this.updateAUserWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId + * ## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelInvitationPreferenceData} opts.updateChannelInvitationPreferenceData + * @param {String} opts.apiToken + * @param {module:model/UpdateChannelInvitationPreferenceRequest} opts.updateChannelInvitationPreferenceRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateChannelInvitationPreferenceResponse} and HTTP response */ }, { key: "updateChannelInvitationPreferenceWithHttpInfo", - value: function updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, opts) { + value: function updateChannelInvitationPreferenceWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['updateChannelInvitationPreferenceData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelInvitationPreference"); - } + var postBody = opts['updateChannelInvitationPreferenceRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling updateChannelInvitationPreference"); @@ -1033,7 +1055,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1045,47 +1067,43 @@ var UserApi = /*#__PURE__*/function () { /** * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId + * ## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelInvitationPreferenceData} opts.updateChannelInvitationPreferenceData + * @param {String} opts.apiToken + * @param {module:model/UpdateChannelInvitationPreferenceRequest} opts.updateChannelInvitationPreferenceRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateChannelInvitationPreferenceResponse} */ }, { key: "updateChannelInvitationPreference", - value: function updateChannelInvitationPreference(apiToken, userId, opts) { - return this.updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function updateChannelInvitationPreference(userId, opts) { + return this.updateChannelInvitationPreferenceWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} opts.updateCountPreferenceOfChannelByUrlData + * @param {String} opts.apiToken + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} opts.updateCountPreferenceOfAChannelRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateCountPreferenceOfChannelByUrlResponse} and HTTP response */ }, { - key: "updateCountPreferenceOfChannelByUrlWithHttpInfo", - value: function updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) { + key: "updateCountPreferenceOfAChannelWithHttpInfo", + value: function updateCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) { opts = opts || {}; - var postBody = opts['updateCountPreferenceOfChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateCountPreferenceOfChannelByUrl"); - } + var postBody = opts['updateCountPreferenceOfAChannelRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling updateCountPreferenceOfAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateCountPreferenceOfAChannel"); } var pathParams = { 'user_id': userId, @@ -1093,7 +1111,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1105,40 +1123,36 @@ var UserApi = /*#__PURE__*/function () { /** * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} opts.updateCountPreferenceOfChannelByUrlData + * @param {String} opts.apiToken + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} opts.updateCountPreferenceOfAChannelRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateCountPreferenceOfChannelByUrlResponse} */ }, { - key: "updateCountPreferenceOfChannelByUrl", - value: function updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, opts) { - return this.updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts).then(function (response_and_data) { + key: "updateCountPreferenceOfAChannel", + value: function updateCountPreferenceOfAChannel(userId, channelUrl, opts) { + return this.updateCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesData} opts.updatePushPreferencesData + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesRequest} opts.updatePushPreferencesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesResponse} and HTTP response */ }, { key: "updatePushPreferencesWithHttpInfo", - value: function updatePushPreferencesWithHttpInfo(apiToken, userId, opts) { + value: function updatePushPreferencesWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['updatePushPreferencesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushPreferences"); - } + var postBody = opts['updatePushPreferencesRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling updatePushPreferences"); @@ -1148,7 +1162,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1160,47 +1174,43 @@ var UserApi = /*#__PURE__*/function () { /** * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesData} opts.updatePushPreferencesData + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesRequest} opts.updatePushPreferencesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesResponse} */ }, { key: "updatePushPreferences", - value: function updatePushPreferences(apiToken, userId, opts) { - return this.updatePushPreferencesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function updatePushPreferences(userId, opts) { + return this.updatePushPreferencesWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} opts.updatePushPreferencesForChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesForChannelByUrlResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesForAChannelRequest} opts.updatePushPreferencesForAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesForAChannelResponse} and HTTP response */ }, { - key: "updatePushPreferencesForChannelByUrlWithHttpInfo", - value: function updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) { + key: "updatePushPreferencesForAChannelWithHttpInfo", + value: function updatePushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) { opts = opts || {}; - var postBody = opts['updatePushPreferencesForChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushPreferencesForChannelByUrl"); - } + var postBody = opts['updatePushPreferencesForAChannelRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updatePushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling updatePushPreferencesForAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updatePushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updatePushPreferencesForAChannel"); } var pathParams = { 'user_id': userId, @@ -1208,160 +1218,113 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = ['application/json']; var accepts = ['application/json']; - var returnType = _UpdatePushPreferencesForChannelByUrlResponse["default"]; + var returnType = _UpdatePushPreferencesForAChannelResponse["default"]; return this.apiClient.callApi('/v3/users/{user_id}/push_preference/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} opts.updatePushPreferencesForChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesForChannelByUrlResponse} + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesForAChannelRequest} opts.updatePushPreferencesForAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesForAChannelResponse} */ }, { - key: "updatePushPreferencesForChannelByUrl", - value: function updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, opts) { - return this.updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts).then(function (response_and_data) { + key: "updatePushPreferencesForAChannel", + value: function updatePushPreferencesForAChannel(userId, channelUrl, opts) { + return this.updatePushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * View a user + * ## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserByIdData} opts.updateUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response + * @param {Boolean} opts.includeUnreadCount + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ }, { - key: "updateUserByIdWithHttpInfo", - value: function updateUserByIdWithHttpInfo(apiToken, userId, opts) { + key: "viewAUserWithHttpInfo", + value: function viewAUserWithHttpInfo(userId, opts) { opts = opts || {}; - var postBody = opts['updateUserByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserById"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserById"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _SendBirdUser["default"]; - return this.apiClient.callApi('/v3/users/{user_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserByIdData} opts.updateUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} - */ - }, { - key: "updateUserById", - value: function updateUserById(apiToken, userId, opts) { - return this.updateUserByIdWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewChannelInvitationPreferenceResponse} and HTTP response - */ - }, { - key: "viewChannelInvitationPreferenceWithHttpInfo", - value: function viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId) { var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelInvitationPreference"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewChannelInvitationPreference"); + throw new Error("Missing the required parameter 'userId' when calling viewAUser"); } var pathParams = { 'user_id': userId }; - var queryParams = {}; + var queryParams = { + 'include_unread_count': opts['includeUnreadCount'], + 'custom_types': opts['customTypes'], + 'super_mode': opts['superMode'] + }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _ViewChannelInvitationPreferenceResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/channel_invitation_preference', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); + var returnType = _SendbirdUser["default"]; + return this.apiClient.callApi('/v3/users/{user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewChannelInvitationPreferenceResponse} + * View a user + * ## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {Boolean} opts.includeUnreadCount + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ }, { - key: "viewChannelInvitationPreference", - value: function viewChannelInvitationPreference(apiToken, userId) { - return this.viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId).then(function (response_and_data) { + key: "viewAUser", + value: function viewAUser(userId, opts) { + return this.viewAUserWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewCountPreferenceOfChannelByUrlResponse} and HTTP response + * ## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewCountPreferenceOfAChannelResponse} and HTTP response */ }, { - key: "viewCountPreferenceOfChannelByUrlWithHttpInfo", - value: function viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) { + key: "viewCountPreferenceOfAChannelWithHttpInfo", + value: function viewCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewCountPreferenceOfChannelByUrl"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling viewCountPreferenceOfAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewCountPreferenceOfAChannel"); } var pathParams = { 'user_id': userId, @@ -1369,107 +1332,48 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _ViewCountPreferenceOfChannelByUrlResponse["default"]; + var returnType = _ViewCountPreferenceOfAChannelResponse["default"]; return this.apiClient.callApi('/v3/users/{user_id}/count_preference/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewCountPreferenceOfChannelByUrlResponse} - */ - }, { - key: "viewCountPreferenceOfChannelByUrl", - value: function viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl) { - return this.viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfChannelsByJoinStatusResponse} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewCountPreferenceOfAChannelResponse} */ }, { - key: "viewNumberOfChannelsByJoinStatusWithHttpInfo", - value: function viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfChannelsByJoinStatus"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewNumberOfChannelsByJoinStatus"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'state': opts['state'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewNumberOfChannelsByJoinStatusResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/group_channel_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfChannelsByJoinStatusResponse} - */ - }, { - key: "viewNumberOfChannelsByJoinStatus", - value: function viewNumberOfChannelsByJoinStatus(apiToken, userId, opts) { - return this.viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + key: "viewCountPreferenceOfAChannel", + value: function viewCountPreferenceOfAChannel(userId, channelUrl, opts) { + return this.viewCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfChannelsWithUnreadMessagesResponse} and HTTP response */ }, { key: "viewNumberOfChannelsWithUnreadMessagesWithHttpInfo", - value: function viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, opts) { + value: function viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(userId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfChannelsWithUnreadMessages"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewNumberOfChannelsWithUnreadMessages"); @@ -1478,11 +1382,11 @@ var UserApi = /*#__PURE__*/function () { 'user_id': userId }; var queryParams = { - 'custom_types': this.apiClient.buildCollectionParam(opts['customTypes'], 'multi'), + 'custom_types': opts['customTypes'], 'super_mode': opts['superMode'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1494,100 +1398,37 @@ var UserApi = /*#__PURE__*/function () { /** * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfChannelsWithUnreadMessagesResponse} */ }, { key: "viewNumberOfChannelsWithUnreadMessages", - value: function viewNumberOfChannelsWithUnreadMessages(apiToken, userId, opts) { - return this.viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.customType - * @param {String} opts.itemKeys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfUnreadItemsResponse} and HTTP response - */ - }, { - key: "viewNumberOfUnreadItemsWithHttpInfo", - value: function viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfUnreadItems"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewNumberOfUnreadItems"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'custom_type': opts['customType'], - 'item_keys': opts['itemKeys'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _ViewNumberOfUnreadItemsResponse["default"]; - return this.apiClient.callApi('/v3/users/{user_id}/unread_item_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.customType - * @param {String} opts.itemKeys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfUnreadItemsResponse} - */ - }, { - key: "viewNumberOfUnreadItems", - value: function viewNumberOfUnreadItems(apiToken, userId, opts) { - return this.viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function viewNumberOfChannelsWithUnreadMessages(userId, opts) { + return this.viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfUnreadMessagesResponse} and HTTP response */ }, { key: "viewNumberOfUnreadMessagesWithHttpInfo", - value: function viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, opts) { + value: function viewNumberOfUnreadMessagesWithHttpInfo(userId, opts) { opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfUnreadMessages"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewNumberOfUnreadMessages"); @@ -1600,7 +1441,7 @@ var UserApi = /*#__PURE__*/function () { 'super_mode': opts['superMode'] }; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1612,37 +1453,35 @@ var UserApi = /*#__PURE__*/function () { /** * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfUnreadMessagesResponse} */ }, { key: "viewNumberOfUnreadMessages", - value: function viewNumberOfUnreadMessages(apiToken, userId, opts) { - return this.viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + value: function viewNumberOfUnreadMessages(userId, opts) { + return this.viewNumberOfUnreadMessagesWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesResponse} and HTTP response */ }, { key: "viewPushPreferencesWithHttpInfo", - value: function viewPushPreferencesWithHttpInfo(apiToken, userId) { + value: function viewPushPreferencesWithHttpInfo(userId, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushPreferences"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewPushPreferences"); @@ -1652,7 +1491,7 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; @@ -1664,42 +1503,41 @@ var UserApi = /*#__PURE__*/function () { /** * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesResponse} */ }, { key: "viewPushPreferences", - value: function viewPushPreferences(apiToken, userId) { - return this.viewPushPreferencesWithHttpInfo(apiToken, userId).then(function (response_and_data) { + value: function viewPushPreferences(userId, opts) { + return this.viewPushPreferencesWithHttpInfo(userId, opts).then(function (response_and_data) { return response_and_data.data; }); } /** * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesForChannelByUrlResponse} and HTTP response + * ## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesForAChannelResponse} and HTTP response */ }, { - key: "viewPushPreferencesForChannelByUrlWithHttpInfo", - value: function viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) { + key: "viewPushPreferencesForAChannelWithHttpInfo", + value: function viewPushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushPreferencesForChannelByUrl"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewPushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling viewPushPreferencesForAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewPushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewPushPreferencesForAChannel"); } var pathParams = { 'user_id': userId, @@ -1707,90 +1545,29 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = _ViewPushPreferencesForChannelByUrlResponse["default"]; + var returnType = _ViewPushPreferencesForAChannelResponse["default"]; return this.apiClient.callApi('/v3/users/{user_id}/push_preference/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesForChannelByUrlResponse} - */ - }, { - key: "viewPushPreferencesForChannelByUrl", - value: function viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl) { - return this.viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {Boolean} opts.includeUnreadCount - * @param {String} opts.customTypes - * @param {String} opts.superMode - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response - */ - }, { - key: "viewUserByIdWithHttpInfo", - value: function viewUserByIdWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserById"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserById"); - } - var pathParams = { - 'user_id': userId - }; - var queryParams = { - 'include_unread_count': opts['includeUnreadCount'], - 'custom_types': opts['customTypes'], - 'super_mode': opts['superMode'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _SendBirdUser["default"]; - return this.apiClient.callApi('/v3/users/{user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param {String} apiToken - * @param {String} userId + * ## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.includeUnreadCount - * @param {String} opts.customTypes - * @param {String} opts.superMode - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesForAChannelResponse} */ }, { - key: "viewUserById", - value: function viewUserById(apiToken, userId, opts) { - return this.viewUserByIdWithHttpInfo(apiToken, userId, opts).then(function (response_and_data) { + key: "viewPushPreferencesForAChannel", + value: function viewPushPreferencesForAChannel(userId, channelUrl, opts) { + return this.viewPushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts).then(function (response_and_data) { return response_and_data.data; }); } @@ -1798,26 +1575,24 @@ var UserApi = /*#__PURE__*/function () { /** * View who owns a registration or device token * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ }, { - key: "viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo", - value: function viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token) { + key: "viewWhoOwnsARegistrationOrDeviceTokenWithHttpInfo", + value: function viewWhoOwnsARegistrationOrDeviceTokenWithHttpInfo(tokenType, token, opts) { + opts = opts || {}; var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); - } // verify the required parameter 'tokenType' is set if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'tokenType' when calling viewWhoOwnsARegistrationOrDeviceToken"); } // verify the required parameter 'token' is set if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'token' when calling viewWhoOwnsARegistrationOrDeviceToken"); } var pathParams = { 'token_type': tokenType, @@ -1825,32 +1600,31 @@ var UserApi = /*#__PURE__*/function () { }; var queryParams = {}; var headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; var formParams = {}; var authNames = []; var contentTypes = []; var accepts = ['application/json']; - var returnType = [_ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner["default"]]; + var returnType = [_MarkChannelMessagesAsReadRequest["default"]]; return this.apiClient.callApi('/v3/push/device_tokens/{token_type}/{token}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); } /** * View who owns a registration or device token * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ }, { - key: "viewWhoOwnsRegistrationOrDeviceTokenByToken", - value: function viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token) { - return this.viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token).then(function (response_and_data) { + key: "viewWhoOwnsARegistrationOrDeviceToken", + value: function viewWhoOwnsARegistrationOrDeviceToken(tokenType, token, opts) { + return this.viewWhoOwnsARegistrationOrDeviceTokenWithHttpInfo(tokenType, token, opts).then(function (response_and_data) { return response_and_data.data; }); } }]); - return UserApi; -}(); -exports["default"] = UserApi; \ No newline at end of file +}(); \ No newline at end of file diff --git a/dist/api/WebhookApi.js b/dist/api/WebhookApi.js deleted file mode 100644 index 5fda4a7..0000000 --- a/dist/api/WebhookApi.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ChooseWhichEventsToSubscribeToData = _interopRequireDefault(require("../model/ChooseWhichEventsToSubscribeToData")); -var _ChooseWhichEventsToSubscribeToResponse = _interopRequireDefault(require("../model/ChooseWhichEventsToSubscribeToResponse")); -var _RetrieveListOfSubscribedEventsResponse = _interopRequireDefault(require("../model/RetrieveListOfSubscribedEventsResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** -* Webhook service. -* @module api/WebhookApi -* @version 0.0.16 -*/ -var WebhookApi = /*#__PURE__*/function () { - /** - * Constructs a new WebhookApi. - * @alias module:api/WebhookApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - function WebhookApi(apiClient) { - _classCallCheck(this, WebhookApi); - this.apiClient = apiClient || _ApiClient["default"].instance; - } - - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ChooseWhichEventsToSubscribeToData} opts.chooseWhichEventsToSubscribeToData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChooseWhichEventsToSubscribeToResponse} and HTTP response - */ - _createClass(WebhookApi, [{ - key: "chooseWhichEventsToSubscribeToWithHttpInfo", - value: function chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = opts['chooseWhichEventsToSubscribeToData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling chooseWhichEventsToSubscribeTo"); - } - var pathParams = {}; - var queryParams = {}; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = ['application/json']; - var accepts = ['application/json']; - var returnType = _ChooseWhichEventsToSubscribeToResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/webhook', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ChooseWhichEventsToSubscribeToData} opts.chooseWhichEventsToSubscribeToData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChooseWhichEventsToSubscribeToResponse} - */ - }, { - key: "chooseWhichEventsToSubscribeTo", - value: function chooseWhichEventsToSubscribeTo(apiToken, opts) { - return this.chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - - /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Boolean} opts.displayAllWebhookCategories - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveListOfSubscribedEventsResponse} and HTTP response - */ - }, { - key: "retrieveListOfSubscribedEventsWithHttpInfo", - value: function retrieveListOfSubscribedEventsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - var postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveListOfSubscribedEvents"); - } - var pathParams = {}; - var queryParams = { - 'display_all_webhook_categories': opts['displayAllWebhookCategories'] - }; - var headerParams = { - 'Api-Token': apiToken - }; - var formParams = {}; - var authNames = []; - var contentTypes = []; - var accepts = ['application/json']; - var returnType = _RetrieveListOfSubscribedEventsResponse["default"]; - return this.apiClient.callApi('/v3/applications/settings/webhook', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null); - } - - /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Boolean} opts.displayAllWebhookCategories - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveListOfSubscribedEventsResponse} - */ - }, { - key: "retrieveListOfSubscribedEvents", - value: function retrieveListOfSubscribedEvents(apiToken, opts) { - return this.retrieveListOfSubscribedEventsWithHttpInfo(apiToken, opts).then(function (response_and_data) { - return response_and_data.data; - }); - } - }]); - return WebhookApi; -}(); -exports["default"] = WebhookApi; \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 766171d..d136870 100644 --- a/dist/index.js +++ b/dist/index.js @@ -3,1462 +3,598 @@ Object.defineProperty(exports, "__esModule", { value: true }); -Object.defineProperty(exports, "AddApnsPushConfigurationData", { +Object.defineProperty(exports, "AcceptAnInvitationRequest", { enumerable: true, get: function get() { - return _AddApnsPushConfigurationData["default"]; + return _AcceptAnInvitationRequest["default"]; } }); -Object.defineProperty(exports, "AddApnsPushConfigurationResponse", { +Object.defineProperty(exports, "AddARegistrationOrDeviceTokenRequest", { enumerable: true, get: function get() { - return _AddApnsPushConfigurationResponse["default"]; + return _AddARegistrationOrDeviceTokenRequest["default"]; } }); -Object.defineProperty(exports, "AddApnsPushConfigurationResponsePushConfigurationsInner", { +Object.defineProperty(exports, "AddARegistrationOrDeviceTokenResponse", { enumerable: true, get: function get() { - return _AddApnsPushConfigurationResponsePushConfigurationsInner["default"]; + return _AddARegistrationOrDeviceTokenResponse["default"]; } }); -Object.defineProperty(exports, "AddEmojiCategoriesResponse", { +Object.defineProperty(exports, "AddExtraDataToAMessageRequest", { enumerable: true, get: function get() { - return _AddEmojiCategoriesResponse["default"]; + return _AddExtraDataToAMessageRequest["default"]; } }); -Object.defineProperty(exports, "AddEmojiCategoriesResponseEmojiCategoriesInner", { +Object.defineProperty(exports, "AddExtraDataToAMessageResponse", { enumerable: true, get: function get() { - return _AddEmojiCategoriesResponseEmojiCategoriesInner["default"]; + return _AddExtraDataToAMessageResponse["default"]; } }); -Object.defineProperty(exports, "AddEmojisData", { - enumerable: true, - get: function get() { - return _AddEmojisData["default"]; - } -}); -Object.defineProperty(exports, "AddEmojisResponse", { - enumerable: true, - get: function get() { - return _AddEmojisResponse["default"]; - } -}); -Object.defineProperty(exports, "AddExtraDataToMessageData", { - enumerable: true, - get: function get() { - return _AddExtraDataToMessageData["default"]; - } -}); -Object.defineProperty(exports, "AddExtraDataToMessageResponse", { - enumerable: true, - get: function get() { - return _AddExtraDataToMessageResponse["default"]; - } -}); -Object.defineProperty(exports, "AddFcmPushConfigurationData", { - enumerable: true, - get: function get() { - return _AddFcmPushConfigurationData["default"]; - } -}); -Object.defineProperty(exports, "AddFcmPushConfigurationResponse", { - enumerable: true, - get: function get() { - return _AddFcmPushConfigurationResponse["default"]; - } -}); -Object.defineProperty(exports, "AddFcmPushConfigurationResponsePushConfigurationsInner", { - enumerable: true, - get: function get() { - return _AddFcmPushConfigurationResponsePushConfigurationsInner["default"]; - } -}); -Object.defineProperty(exports, "AddHmsPushConfigurationData", { - enumerable: true, - get: function get() { - return _AddHmsPushConfigurationData["default"]; - } -}); -Object.defineProperty(exports, "AddHmsPushConfigurationResponse", { - enumerable: true, - get: function get() { - return _AddHmsPushConfigurationResponse["default"]; - } -}); -Object.defineProperty(exports, "AddHmsPushConfigurationResponsePushConfigurationsInner", { - enumerable: true, - get: function get() { - return _AddHmsPushConfigurationResponsePushConfigurationsInner["default"]; - } -}); -Object.defineProperty(exports, "AddIpToWhitelistData", { - enumerable: true, - get: function get() { - return _AddIpToWhitelistData["default"]; - } -}); -Object.defineProperty(exports, "AddIpToWhitelistResponse", { - enumerable: true, - get: function get() { - return _AddIpToWhitelistResponse["default"]; - } -}); -Object.defineProperty(exports, "AddReactionToAMessageData", { - enumerable: true, - get: function get() { - return _AddReactionToAMessageData["default"]; - } -}); -Object.defineProperty(exports, "AddReactionToAMessageResponse", { - enumerable: true, - get: function get() { - return _AddReactionToAMessageResponse["default"]; - } -}); -Object.defineProperty(exports, "AddRegistrationOrDeviceTokenData", { - enumerable: true, - get: function get() { - return _AddRegistrationOrDeviceTokenData["default"]; - } -}); -Object.defineProperty(exports, "AddRegistrationOrDeviceTokenResponse", { - enumerable: true, - get: function get() { - return _AddRegistrationOrDeviceTokenResponse["default"]; - } -}); -Object.defineProperty(exports, "AnnouncementApi", { - enumerable: true, - get: function get() { - return _AnnouncementApi["default"]; - } -}); -Object.defineProperty(exports, "ApiClient", { - enumerable: true, - get: function get() { - return _ApiClient["default"]; - } -}); -Object.defineProperty(exports, "ApplicationApi", { - enumerable: true, - get: function get() { - return _ApplicationApi["default"]; - } -}); -Object.defineProperty(exports, "BanFromChannelsWithCustomChannelTypesData", { - enumerable: true, - get: function get() { - return _BanFromChannelsWithCustomChannelTypesData["default"]; - } -}); -Object.defineProperty(exports, "BanUsersInChannelsWithCustomChannelTypeData", { - enumerable: true, - get: function get() { - return _BanUsersInChannelsWithCustomChannelTypeData["default"]; - } -}); -Object.defineProperty(exports, "BanUsersInChannelsWithCustomChannelTypeDataBannedListInner", { - enumerable: true, - get: function get() { - return _BanUsersInChannelsWithCustomChannelTypeDataBannedListInner["default"]; - } -}); -Object.defineProperty(exports, "Blob", { - enumerable: true, - get: function get() { - return _Blob["default"]; - } -}); -Object.defineProperty(exports, "BlockUserData", { - enumerable: true, - get: function get() { - return _BlockUserData["default"]; - } -}); -Object.defineProperty(exports, "BlockUserResponse", { - enumerable: true, - get: function get() { - return _BlockUserResponse["default"]; - } -}); -Object.defineProperty(exports, "BotApi", { - enumerable: true, - get: function get() { - return _BotApi["default"]; - } -}); -Object.defineProperty(exports, "ChoosePushNotificationContentTemplateResponse", { - enumerable: true, - get: function get() { - return _ChoosePushNotificationContentTemplateResponse["default"]; - } -}); -Object.defineProperty(exports, "ChooseWhichEventsToSubscribeToData", { - enumerable: true, - get: function get() { - return _ChooseWhichEventsToSubscribeToData["default"]; - } -}); -Object.defineProperty(exports, "ChooseWhichEventsToSubscribeToResponse", { - enumerable: true, - get: function get() { - return _ChooseWhichEventsToSubscribeToResponse["default"]; - } -}); -Object.defineProperty(exports, "ChooseWhichEventsToSubscribeToResponseWebhook", { - enumerable: true, - get: function get() { - return _ChooseWhichEventsToSubscribeToResponseWebhook["default"]; - } -}); -Object.defineProperty(exports, "ConfigureAutoEventData", { - enumerable: true, - get: function get() { - return _ConfigureAutoEventData["default"]; - } -}); -Object.defineProperty(exports, "ConfigureAutoEventDataAutoEventMessage", { - enumerable: true, - get: function get() { - return _ConfigureAutoEventDataAutoEventMessage["default"]; - } -}); -Object.defineProperty(exports, "CreateBotData", { - enumerable: true, - get: function get() { - return _CreateBotData["default"]; - } -}); -Object.defineProperty(exports, "CreateBotResponse", { - enumerable: true, - get: function get() { - return _CreateBotResponse["default"]; - } -}); -Object.defineProperty(exports, "CreateBotResponseBot", { - enumerable: true, - get: function get() { - return _CreateBotResponseBot["default"]; - } -}); -Object.defineProperty(exports, "CreateChannelMetacounterData", { - enumerable: true, - get: function get() { - return _CreateChannelMetacounterData["default"]; - } -}); -Object.defineProperty(exports, "CreateChannelMetadataData", { - enumerable: true, - get: function get() { - return _CreateChannelMetadataData["default"]; - } -}); -Object.defineProperty(exports, "CreateChannelMetadataResponse", { - enumerable: true, - get: function get() { - return _CreateChannelMetadataResponse["default"]; - } -}); -Object.defineProperty(exports, "CreateUserData", { - enumerable: true, - get: function get() { - return _CreateUserData["default"]; - } -}); -Object.defineProperty(exports, "CreateUserMetadataData", { - enumerable: true, - get: function get() { - return _CreateUserMetadataData["default"]; - } -}); -Object.defineProperty(exports, "CreateUserMetadataResponse", { - enumerable: true, - get: function get() { - return _CreateUserMetadataResponse["default"]; - } -}); -Object.defineProperty(exports, "CreateUserTokenData", { - enumerable: true, - get: function get() { - return _CreateUserTokenData["default"]; - } -}); -Object.defineProperty(exports, "CreateUserTokenResponse", { - enumerable: true, - get: function get() { - return _CreateUserTokenResponse["default"]; - } -}); -Object.defineProperty(exports, "CustomTypeListBannedUsersResponse", { - enumerable: true, - get: function get() { - return _CustomTypeListBannedUsersResponse["default"]; - } -}); -Object.defineProperty(exports, "DataExportApi", { - enumerable: true, - get: function get() { - return _DataExportApi["default"]; - } -}); -Object.defineProperty(exports, "DeleteAllowedIpsFromWhitelistResponse", { - enumerable: true, - get: function get() { - return _DeleteAllowedIpsFromWhitelistResponse["default"]; - } -}); -Object.defineProperty(exports, "DeleteApnsCertificateByIdResponse", { - enumerable: true, - get: function get() { - return _DeleteApnsCertificateByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "EnableReactionsData", { - enumerable: true, - get: function get() { - return _EnableReactionsData["default"]; - } -}); -Object.defineProperty(exports, "EnableReactionsResponse", { - enumerable: true, - get: function get() { - return _EnableReactionsResponse["default"]; - } -}); -Object.defineProperty(exports, "File", { - enumerable: true, - get: function get() { - return _File["default"]; - } -}); -Object.defineProperty(exports, "Function", { - enumerable: true, - get: function get() { - return _Function["default"]; - } -}); -Object.defineProperty(exports, "GcAcceptInvitationData", { - enumerable: true, - get: function get() { - return _GcAcceptInvitationData["default"]; - } -}); -Object.defineProperty(exports, "GcBanUserData", { - enumerable: true, - get: function get() { - return _GcBanUserData["default"]; - } -}); -Object.defineProperty(exports, "GcBanUserResponse", { - enumerable: true, - get: function get() { - return _GcBanUserResponse["default"]; - } -}); -Object.defineProperty(exports, "GcCheckIfMemberByIdResponse", { - enumerable: true, - get: function get() { - return _GcCheckIfMemberByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GcCreateChannelData", { - enumerable: true, - get: function get() { - return _GcCreateChannelData["default"]; - } -}); -Object.defineProperty(exports, "GcDeclineInvitationData", { - enumerable: true, - get: function get() { - return _GcDeclineInvitationData["default"]; - } -}); -Object.defineProperty(exports, "GcFreezeChannelData", { - enumerable: true, - get: function get() { - return _GcFreezeChannelData["default"]; - } -}); -Object.defineProperty(exports, "GcHideOrArchiveChannelData", { - enumerable: true, - get: function get() { - return _GcHideOrArchiveChannelData["default"]; - } -}); -Object.defineProperty(exports, "GcInviteAsMembersData", { - enumerable: true, - get: function get() { - return _GcInviteAsMembersData["default"]; - } -}); -Object.defineProperty(exports, "GcJoinChannelData", { - enumerable: true, - get: function get() { - return _GcJoinChannelData["default"]; - } -}); -Object.defineProperty(exports, "GcLeaveChannelData", { - enumerable: true, - get: function get() { - return _GcLeaveChannelData["default"]; - } -}); -Object.defineProperty(exports, "GcListBannedUsersResponse", { - enumerable: true, - get: function get() { - return _GcListBannedUsersResponse["default"]; - } -}); -Object.defineProperty(exports, "GcListChannelsResponse", { - enumerable: true, - get: function get() { - return _GcListChannelsResponse["default"]; - } -}); -Object.defineProperty(exports, "GcListMembersResponse", { - enumerable: true, - get: function get() { - return _GcListMembersResponse["default"]; - } -}); -Object.defineProperty(exports, "GcListMutedUsersResponse", { - enumerable: true, - get: function get() { - return _GcListMutedUsersResponse["default"]; - } -}); -Object.defineProperty(exports, "GcListOperatorsResponse", { - enumerable: true, - get: function get() { - return _GcListOperatorsResponse["default"]; - } -}); -Object.defineProperty(exports, "GcMarkAllMessagesAsDeliveredData", { - enumerable: true, - get: function get() { - return _GcMarkAllMessagesAsDeliveredData["default"]; - } -}); -Object.defineProperty(exports, "GcMarkAllMessagesAsDeliveredResponse", { - enumerable: true, - get: function get() { - return _GcMarkAllMessagesAsDeliveredResponse["default"]; - } -}); -Object.defineProperty(exports, "GcMarkAllMessagesAsReadData", { - enumerable: true, - get: function get() { - return _GcMarkAllMessagesAsReadData["default"]; - } -}); -Object.defineProperty(exports, "GcMuteUserData", { - enumerable: true, - get: function get() { - return _GcMuteUserData["default"]; - } -}); -Object.defineProperty(exports, "GcRegisterOperatorsData", { - enumerable: true, - get: function get() { - return _GcRegisterOperatorsData["default"]; - } -}); -Object.defineProperty(exports, "GcRegisterOperatorsResponse", { - enumerable: true, - get: function get() { - return _GcRegisterOperatorsResponse["default"]; - } -}); -Object.defineProperty(exports, "GcResetChatHistoryData", { - enumerable: true, - get: function get() { - return _GcResetChatHistoryData["default"]; - } -}); -Object.defineProperty(exports, "GcResetChatHistoryResponse", { - enumerable: true, - get: function get() { - return _GcResetChatHistoryResponse["default"]; - } -}); -Object.defineProperty(exports, "GcUpdateBanByIdData", { - enumerable: true, - get: function get() { - return _GcUpdateBanByIdData["default"]; - } -}); -Object.defineProperty(exports, "GcUpdateBanByIdResponse", { - enumerable: true, - get: function get() { - return _GcUpdateBanByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GcUpdateChannelByUrlData", { - enumerable: true, - get: function get() { - return _GcUpdateChannelByUrlData["default"]; - } -}); -Object.defineProperty(exports, "GcViewBanByIdResponse", { - enumerable: true, - get: function get() { - return _GcViewBanByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GcViewMuteByIdResponse", { - enumerable: true, - get: function get() { - return _GcViewMuteByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GcViewNumberOfEachMembersUnreadMessagesResponse", { - enumerable: true, - get: function get() { - return _GcViewNumberOfEachMembersUnreadMessagesResponse["default"]; - } -}); -Object.defineProperty(exports, "GenerateSecondaryApiTokenData", { - enumerable: true, - get: function get() { - return _GenerateSecondaryApiTokenData["default"]; - } -}); -Object.defineProperty(exports, "GenerateSecondaryApiTokenResponse", { - enumerable: true, - get: function get() { - return _GenerateSecondaryApiTokenResponse["default"]; - } -}); -Object.defineProperty(exports, "GetDetailedOpenRateOfAnnouncementByIdResponse", { - enumerable: true, - get: function get() { - return _GetDetailedOpenRateOfAnnouncementByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GetDetailedOpenRateOfAnnouncementGroupResponse", { - enumerable: true, - get: function get() { - return _GetDetailedOpenRateOfAnnouncementGroupResponse["default"]; - } -}); -Object.defineProperty(exports, "GetDetailedOpenStatusOfAnnouncementByIdResponse", { - enumerable: true, - get: function get() { - return _GetDetailedOpenStatusOfAnnouncementByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner", { - enumerable: true, - get: function get() { - return _GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner["default"]; - } -}); -Object.defineProperty(exports, "GetStatisticsDailyResponse", { - enumerable: true, - get: function get() { - return _GetStatisticsDailyResponse["default"]; - } -}); -Object.defineProperty(exports, "GetStatisticsDailyResponseStatisticsInner", { - enumerable: true, - get: function get() { - return _GetStatisticsDailyResponseStatisticsInner["default"]; - } -}); -Object.defineProperty(exports, "GetStatisticsMonthlyResponse", { - enumerable: true, - get: function get() { - return _GetStatisticsMonthlyResponse["default"]; - } -}); -Object.defineProperty(exports, "GetStatisticsResponse", { - enumerable: true, - get: function get() { - return _GetStatisticsResponse["default"]; - } -}); -Object.defineProperty(exports, "GroupChannelApi", { - enumerable: true, - get: function get() { - return _GroupChannelApi["default"]; - } -}); -Object.defineProperty(exports, "JoinChannelsData", { - enumerable: true, - get: function get() { - return _JoinChannelsData["default"]; - } -}); -Object.defineProperty(exports, "JoinChannelsResponse", { - enumerable: true, - get: function get() { - return _JoinChannelsResponse["default"]; - } -}); -Object.defineProperty(exports, "LeaveMyGroupChannelsData", { - enumerable: true, - get: function get() { - return _LeaveMyGroupChannelsData["default"]; - } -}); -Object.defineProperty(exports, "ListAllEmojisAndEmojiCategoriesResponse", { - enumerable: true, - get: function get() { - return _ListAllEmojisAndEmojiCategoriesResponse["default"]; - } -}); -Object.defineProperty(exports, "ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner", { - enumerable: true, - get: function get() { - return _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner["default"]; - } -}); -Object.defineProperty(exports, "ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner", { - enumerable: true, - get: function get() { - return _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner["default"]; - } -}); -Object.defineProperty(exports, "ListAnnouncementGroupsResponse", { - enumerable: true, - get: function get() { - return _ListAnnouncementGroupsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListAnnouncementsResponse", { - enumerable: true, - get: function get() { - return _ListAnnouncementsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListAnnouncementsResponseAnnouncementsInner", { - enumerable: true, - get: function get() { - return _ListAnnouncementsResponseAnnouncementsInner["default"]; - } -}); -Object.defineProperty(exports, "ListBannedChannelsResponse", { - enumerable: true, - get: function get() { - return _ListBannedChannelsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListBannedChannelsResponseBannedChannelsInner", { - enumerable: true, - get: function get() { - return _ListBannedChannelsResponseBannedChannelsInner["default"]; - } -}); -Object.defineProperty(exports, "ListBlockedUsersResponse", { - enumerable: true, - get: function get() { - return _ListBlockedUsersResponse["default"]; - } -}); -Object.defineProperty(exports, "ListBotsResponse", { - enumerable: true, - get: function get() { - return _ListBotsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListBotsResponseBotsInner", { - enumerable: true, - get: function get() { - return _ListBotsResponseBotsInner["default"]; - } -}); -Object.defineProperty(exports, "ListDataExportsByMessageChannelOrUserResponse", { - enumerable: true, - get: function get() { - return _ListDataExportsByMessageChannelOrUserResponse["default"]; - } -}); -Object.defineProperty(exports, "ListDataExportsByMessageChannelOrUserResponseExportedDataInner", { - enumerable: true, - get: function get() { - return _ListDataExportsByMessageChannelOrUserResponseExportedDataInner["default"]; - } -}); -Object.defineProperty(exports, "ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile", { - enumerable: true, - get: function get() { - return _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"]; - } -}); -Object.defineProperty(exports, "ListEmojisResponse", { - enumerable: true, - get: function get() { - return _ListEmojisResponse["default"]; - } -}); -Object.defineProperty(exports, "ListGdprRequestsResponse", { - enumerable: true, - get: function get() { - return _ListGdprRequestsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListGdprRequestsResponseRequestsInner", { - enumerable: true, - get: function get() { - return _ListGdprRequestsResponseRequestsInner["default"]; - } -}); -Object.defineProperty(exports, "ListMessagesResponse", { - enumerable: true, - get: function get() { - return _ListMessagesResponse["default"]; - } -}); -Object.defineProperty(exports, "ListMessagesResponseMessagesInner", { - enumerable: true, - get: function get() { - return _ListMessagesResponseMessagesInner["default"]; - } -}); -Object.defineProperty(exports, "ListMessagesResponseMessagesInnerOgTag", { - enumerable: true, - get: function get() { - return _ListMessagesResponseMessagesInnerOgTag["default"]; - } -}); -Object.defineProperty(exports, "ListMessagesResponseMessagesInnerOgTagOgImage", { - enumerable: true, - get: function get() { - return _ListMessagesResponseMessagesInnerOgTagOgImage["default"]; - } -}); -Object.defineProperty(exports, "ListMessagesResponseMessagesInnerSortedMetaarrayInner", { - enumerable: true, - get: function get() { - return _ListMessagesResponseMessagesInnerSortedMetaarrayInner["default"]; - } -}); -Object.defineProperty(exports, "ListMutedChannelsResponse", { - enumerable: true, - get: function get() { - return _ListMutedChannelsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListMutedUsersInChannelsWithCustomChannelType200Response", { - enumerable: true, - get: function get() { - return _ListMutedUsersInChannelsWithCustomChannelType200Response["default"]; - } -}); -Object.defineProperty(exports, "ListMyGroupChannelsResponse", { - enumerable: true, - get: function get() { - return _ListMyGroupChannelsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListPushConfigurationsResponse", { - enumerable: true, - get: function get() { - return _ListPushConfigurationsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListPushConfigurationsResponsePushConfigurationsInner", { - enumerable: true, - get: function get() { - return _ListPushConfigurationsResponsePushConfigurationsInner["default"]; - } -}); -Object.defineProperty(exports, "ListPushNotificationContentTemplatesResponse", { - enumerable: true, - get: function get() { - return _ListPushNotificationContentTemplatesResponse["default"]; - } -}); -Object.defineProperty(exports, "ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner", { - enumerable: true, - get: function get() { - return _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner["default"]; - } -}); -Object.defineProperty(exports, "ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate", { - enumerable: true, - get: function get() { - return _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate["default"]; - } -}); -Object.defineProperty(exports, "ListReactionsOfMessageResponse", { - enumerable: true, - get: function get() { - return _ListReactionsOfMessageResponse["default"]; - } -}); -Object.defineProperty(exports, "ListRegistrationOrDeviceTokensResponse", { - enumerable: true, - get: function get() { - return _ListRegistrationOrDeviceTokensResponse["default"]; - } -}); -Object.defineProperty(exports, "ListReportsOnChannelByUrlResponse", { - enumerable: true, - get: function get() { - return _ListReportsOnChannelByUrlResponse["default"]; - } -}); -Object.defineProperty(exports, "ListReportsOnMessageByIdResponse", { - enumerable: true, - get: function get() { - return _ListReportsOnMessageByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ListReportsOnMessageByIdResponseReportLogsInner", { - enumerable: true, - get: function get() { - return _ListReportsOnMessageByIdResponseReportLogsInner["default"]; - } -}); -Object.defineProperty(exports, "ListReportsOnUserByIdResponse", { - enumerable: true, - get: function get() { - return _ListReportsOnUserByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ListReportsResponse", { - enumerable: true, - get: function get() { - return _ListReportsResponse["default"]; - } -}); -Object.defineProperty(exports, "ListReportsResponseReportLogsInner", { - enumerable: true, - get: function get() { - return _ListReportsResponseReportLogsInner["default"]; - } -}); -Object.defineProperty(exports, "ListSecondaryApiTokensResponse", { - enumerable: true, - get: function get() { - return _ListSecondaryApiTokensResponse["default"]; - } -}); -Object.defineProperty(exports, "ListSecondaryApiTokensResponseApiTokensInner", { - enumerable: true, - get: function get() { - return _ListSecondaryApiTokensResponseApiTokensInner["default"]; - } -}); -Object.defineProperty(exports, "ListUsersResponse", { - enumerable: true, - get: function get() { - return _ListUsersResponse["default"]; - } -}); -Object.defineProperty(exports, "MarkAllMessagesAsReadData", { - enumerable: true, - get: function get() { - return _MarkAllMessagesAsReadData["default"]; - } -}); -Object.defineProperty(exports, "MessageApi", { - enumerable: true, - get: function get() { - return _MessageApi["default"]; - } -}); -Object.defineProperty(exports, "MetadataApi", { - enumerable: true, - get: function get() { - return _MetadataApi["default"]; - } -}); -Object.defineProperty(exports, "ModerationApi", { - enumerable: true, - get: function get() { - return _ModerationApi["default"]; - } -}); -Object.defineProperty(exports, "MuteInChannelsWithCustomChannelTypesData", { - enumerable: true, - get: function get() { - return _MuteInChannelsWithCustomChannelTypesData["default"]; - } -}); -Object.defineProperty(exports, "MuteUsersInChannelsWithCustomChannelTypeData", { - enumerable: true, - get: function get() { - return _MuteUsersInChannelsWithCustomChannelTypeData["default"]; - } -}); -Object.defineProperty(exports, "OcBanUserData", { - enumerable: true, - get: function get() { - return _OcBanUserData["default"]; - } -}); -Object.defineProperty(exports, "OcBanUserResponse", { - enumerable: true, - get: function get() { - return _OcBanUserResponse["default"]; - } -}); -Object.defineProperty(exports, "OcCreateChannelData", { +Object.defineProperty(exports, "AnnouncementApi", { enumerable: true, get: function get() { - return _OcCreateChannelData["default"]; + return _AnnouncementApi["default"]; } }); -Object.defineProperty(exports, "OcDeleteChannelByUrl200Response", { +Object.defineProperty(exports, "ApiClient", { enumerable: true, get: function get() { - return _OcDeleteChannelByUrl200Response["default"]; + return _ApiClient["default"]; } }); -Object.defineProperty(exports, "OcFreezeChannelData", { +Object.defineProperty(exports, "BlockAUserRequest", { enumerable: true, get: function get() { - return _OcFreezeChannelData["default"]; + return _BlockAUserRequest["default"]; } }); -Object.defineProperty(exports, "OcListBannedUsersResponse", { +Object.defineProperty(exports, "BlockAUserResponse", { enumerable: true, get: function get() { - return _OcListBannedUsersResponse["default"]; + return _BlockAUserResponse["default"]; } }); -Object.defineProperty(exports, "OcListBannedUsersResponseBannedListInner", { +Object.defineProperty(exports, "BotApi", { enumerable: true, get: function get() { - return _OcListBannedUsersResponseBannedListInner["default"]; + return _BotApi["default"]; } }); -Object.defineProperty(exports, "OcListChannelsResponse", { +Object.defineProperty(exports, "CheckIfMemberResponse", { enumerable: true, get: function get() { - return _OcListChannelsResponse["default"]; + return _CheckIfMemberResponse["default"]; } }); -Object.defineProperty(exports, "OcListMutedUsersResponse", { +Object.defineProperty(exports, "ChooseAPushNotificationContentTemplateRequest", { enumerable: true, get: function get() { - return _OcListMutedUsersResponse["default"]; + return _ChooseAPushNotificationContentTemplateRequest["default"]; } }); -Object.defineProperty(exports, "OcListOperatorsResponse", { +Object.defineProperty(exports, "ChooseAPushNotificationContentTemplateResponse", { enumerable: true, get: function get() { - return _OcListOperatorsResponse["default"]; + return _ChooseAPushNotificationContentTemplateResponse["default"]; } }); -Object.defineProperty(exports, "OcListParticipantsResponse", { +Object.defineProperty(exports, "CreateABotRequest", { enumerable: true, get: function get() { - return _OcListParticipantsResponse["default"]; + return _CreateABotRequest["default"]; } }); -Object.defineProperty(exports, "OcMuteUserData", { +Object.defineProperty(exports, "CreateABotResponse", { enumerable: true, get: function get() { - return _OcMuteUserData["default"]; + return _CreateABotResponse["default"]; } }); -Object.defineProperty(exports, "OcRegisterOperatorsData", { +Object.defineProperty(exports, "CreateABotResponseBot", { enumerable: true, get: function get() { - return _OcRegisterOperatorsData["default"]; + return _CreateABotResponseBot["default"]; } }); -Object.defineProperty(exports, "OcUpdateBanByIdData", { +Object.defineProperty(exports, "CreateABotResponseBotStyle", { enumerable: true, get: function get() { - return _OcUpdateBanByIdData["default"]; + return _CreateABotResponseBotStyle["default"]; } }); -Object.defineProperty(exports, "OcUpdateBanByIdResponse", { +Object.defineProperty(exports, "CreateAChannelMetadataRequest", { enumerable: true, get: function get() { - return _OcUpdateBanByIdResponse["default"]; + return _CreateAChannelMetadataRequest["default"]; } }); -Object.defineProperty(exports, "OcUpdateChannelByUrlData", { +Object.defineProperty(exports, "CreateAChannelMetadataResponse", { enumerable: true, get: function get() { - return _OcUpdateChannelByUrlData["default"]; + return _CreateAChannelMetadataResponse["default"]; } }); -Object.defineProperty(exports, "OcViewBanByIdResponse", { +Object.defineProperty(exports, "CreateAGroupChannelRequest", { enumerable: true, get: function get() { - return _OcViewBanByIdResponse["default"]; + return _CreateAGroupChannelRequest["default"]; } }); -Object.defineProperty(exports, "OcViewMuteByIdResponse", { +Object.defineProperty(exports, "CreateAUserRequest", { enumerable: true, get: function get() { - return _OcViewMuteByIdResponse["default"]; + return _CreateAUserRequest["default"]; } }); -Object.defineProperty(exports, "OpenChannelApi", { +Object.defineProperty(exports, "CreateAnOpenChannelRequest", { enumerable: true, get: function get() { - return _OpenChannelApi["default"]; + return _CreateAnOpenChannelRequest["default"]; } }); -Object.defineProperty(exports, "PrivacyApi", { +Object.defineProperty(exports, "CreateUserTokenRequest", { enumerable: true, get: function get() { - return _PrivacyApi["default"]; + return _CreateUserTokenRequest["default"]; } }); -Object.defineProperty(exports, "RegisterAndScheduleDataExportData", { +Object.defineProperty(exports, "CreateUserTokenResponse", { enumerable: true, get: function get() { - return _RegisterAndScheduleDataExportData["default"]; + return _CreateUserTokenResponse["default"]; } }); -Object.defineProperty(exports, "RegisterAndScheduleDataExportResponse", { +Object.defineProperty(exports, "FreezeAGroupChannelRequest", { enumerable: true, get: function get() { - return _RegisterAndScheduleDataExportResponse["default"]; + return _FreezeAGroupChannelRequest["default"]; } }); -Object.defineProperty(exports, "RegisterAsOperatorToChannelsWithCustomChannelTypesData", { +Object.defineProperty(exports, "FreezeAnOpenChannelRequest", { enumerable: true, get: function get() { - return _RegisterAsOperatorToChannelsWithCustomChannelTypesData["default"]; + return _FreezeAnOpenChannelRequest["default"]; } }); -Object.defineProperty(exports, "RegisterGdprRequestData", { +Object.defineProperty(exports, "GetAGroupChannelResponse", { enumerable: true, get: function get() { - return _RegisterGdprRequestData["default"]; + return _GetAGroupChannelResponse["default"]; } }); -Object.defineProperty(exports, "RegisterGdprRequestResponse", { +Object.defineProperty(exports, "GetAGroupChannelResponseAllOf", { enumerable: true, get: function get() { - return _RegisterGdprRequestResponse["default"]; + return _GetAGroupChannelResponseAllOf["default"]; } }); -Object.defineProperty(exports, "RemovePushConfigurationByIdResponse", { +Object.defineProperty(exports, "GetChannelInvitationPreferenceResponse", { enumerable: true, get: function get() { - return _RemovePushConfigurationByIdResponse["default"]; + return _GetChannelInvitationPreferenceResponse["default"]; } }); -Object.defineProperty(exports, "RemoveReactionFromAMessageResponse", { +Object.defineProperty(exports, "GetTotalNumberOfMessagesInAChannelResponse", { enumerable: true, get: function get() { - return _RemoveReactionFromAMessageResponse["default"]; + return _GetTotalNumberOfMessagesInAChannelResponse["default"]; } }); -Object.defineProperty(exports, "RemoveRegistrationOrDeviceTokenByTokenResponse", { +Object.defineProperty(exports, "GroupChannelApi", { enumerable: true, get: function get() { - return _RemoveRegistrationOrDeviceTokenByTokenResponse["default"]; + return _GroupChannelApi["default"]; } }); -Object.defineProperty(exports, "RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse", { +Object.defineProperty(exports, "GroupChannelListMembersResponse", { enumerable: true, get: function get() { - return _RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse["default"]; + return _GroupChannelListMembersResponse["default"]; } }); -Object.defineProperty(exports, "RemoveRegistrationOrDeviceTokenResponse", { +Object.defineProperty(exports, "GroupChatListChannelsResponse", { enumerable: true, get: function get() { - return _RemoveRegistrationOrDeviceTokenResponse["default"]; + return _GroupChatListChannelsResponse["default"]; } }); -Object.defineProperty(exports, "ReportApi", { +Object.defineProperty(exports, "HideAChannelRequest", { enumerable: true, get: function get() { - return _ReportApi["default"]; + return _HideAChannelRequest["default"]; } }); -Object.defineProperty(exports, "ReportChannelByUrlData", { +Object.defineProperty(exports, "InviteAsMembersRequest", { enumerable: true, get: function get() { - return _ReportChannelByUrlData["default"]; + return _InviteAsMembersRequest["default"]; } }); -Object.defineProperty(exports, "ReportChannelByUrlResponse", { +Object.defineProperty(exports, "InviteAsMembersResponse", { enumerable: true, get: function get() { - return _ReportChannelByUrlResponse["default"]; + return _InviteAsMembersResponse["default"]; } }); -Object.defineProperty(exports, "ReportMessageByIdData", { +Object.defineProperty(exports, "InviteAsMembersResponseAllOf", { enumerable: true, get: function get() { - return _ReportMessageByIdData["default"]; + return _InviteAsMembersResponseAllOf["default"]; } }); -Object.defineProperty(exports, "ReportMessageByIdResponse", { +Object.defineProperty(exports, "JoinAChannelRequest", { enumerable: true, get: function get() { - return _ReportMessageByIdResponse["default"]; + return _JoinAChannelRequest["default"]; } }); -Object.defineProperty(exports, "ReportUserByIdData", { +Object.defineProperty(exports, "JoinChannelsRequest", { enumerable: true, get: function get() { - return _ReportUserByIdData["default"]; + return _JoinChannelsRequest["default"]; } }); -Object.defineProperty(exports, "ReportUserByIdResponse", { +Object.defineProperty(exports, "LeaveAChannelRequest", { enumerable: true, get: function get() { - return _ReportUserByIdResponse["default"]; + return _LeaveAChannelRequest["default"]; } }); -Object.defineProperty(exports, "ResetPushPreferencesResponse", { +Object.defineProperty(exports, "LeaveMyGroupChannelsRequest", { enumerable: true, get: function get() { - return _ResetPushPreferencesResponse["default"]; + return _LeaveMyGroupChannelsRequest["default"]; } }); -Object.defineProperty(exports, "RetrieveAdvancedAnalyticsMetricsResponse", { +Object.defineProperty(exports, "ListBlockedUsersResponse", { enumerable: true, get: function get() { - return _RetrieveAdvancedAnalyticsMetricsResponse["default"]; + return _ListBlockedUsersResponse["default"]; } }); -Object.defineProperty(exports, "RetrieveIpWhitelistResponse", { +Object.defineProperty(exports, "ListBotsResponse", { enumerable: true, get: function get() { - return _RetrieveIpWhitelistResponse["default"]; + return _ListBotsResponse["default"]; } }); -Object.defineProperty(exports, "RetrieveListOfSubscribedEventsResponse", { +Object.defineProperty(exports, "ListBotsResponseBotsInner", { enumerable: true, get: function get() { - return _RetrieveListOfSubscribedEventsResponse["default"]; + return _ListBotsResponseBotsInner["default"]; } }); -Object.defineProperty(exports, "RetrieveListOfSubscribedEventsResponseWebhook", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerAi", { enumerable: true, get: function get() { - return _RetrieveListOfSubscribedEventsResponseWebhook["default"]; + return _ListBotsResponseBotsInnerAi["default"]; } }); -Object.defineProperty(exports, "RevokeSecondaryApiTokenByTokenResponse", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerBot", { enumerable: true, get: function get() { - return _RevokeSecondaryApiTokenByTokenResponse["default"]; + return _ListBotsResponseBotsInnerBot["default"]; } }); -Object.defineProperty(exports, "SBObject", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerBotStyle", { enumerable: true, get: function get() { - return _SBObject["default"]; + return _ListBotsResponseBotsInnerBotStyle["default"]; } }); -Object.defineProperty(exports, "ScheduleAnnouncementData", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerBotStyleColor", { enumerable: true, get: function get() { - return _ScheduleAnnouncementData["default"]; + return _ListBotsResponseBotsInnerBotStyleColor["default"]; } }); -Object.defineProperty(exports, "ScheduleAnnouncementDataMessage", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerFirstMessagesInner", { enumerable: true, get: function get() { - return _ScheduleAnnouncementDataMessage["default"]; + return _ListBotsResponseBotsInnerFirstMessagesInner["default"]; } }); -Object.defineProperty(exports, "ScheduleAnnouncementResponse", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerFirstMessagesInnerData", { enumerable: true, get: function get() { - return _ScheduleAnnouncementResponse["default"]; + return _ListBotsResponseBotsInnerFirstMessagesInnerData["default"]; } }); -Object.defineProperty(exports, "ScheduleAnnouncementResponseCreateChannelOptions", { +Object.defineProperty(exports, "ListBotsResponseBotsInnerSafeguard", { enumerable: true, get: function get() { - return _ScheduleAnnouncementResponseCreateChannelOptions["default"]; + return _ListBotsResponseBotsInnerSafeguard["default"]; } }); -Object.defineProperty(exports, "ScheduleAnnouncementResponseMessage", { +Object.defineProperty(exports, "ListMessagesResponse", { enumerable: true, get: function get() { - return _ScheduleAnnouncementResponseMessage["default"]; + return _ListMessagesResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdAdminMessage", { +Object.defineProperty(exports, "ListMyGroupChannelsResponse", { enumerable: true, get: function get() { - return _SendBirdAdminMessage["default"]; + return _ListMyGroupChannelsResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdAppleCriticalAlertOptions", { +Object.defineProperty(exports, "ListOpenChannelsResponse", { enumerable: true, get: function get() { - return _SendBirdAppleCriticalAlertOptions["default"]; + return _ListOpenChannelsResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdAutoEventMessageSettings", { +Object.defineProperty(exports, "ListOperatorsResponse", { enumerable: true, get: function get() { - return _SendBirdAutoEventMessageSettings["default"]; + return _ListOperatorsResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdBaseChannel", { +Object.defineProperty(exports, "ListRegistrationOrDeviceTokensResponse", { enumerable: true, get: function get() { - return _SendBirdBaseChannel["default"]; + return _ListRegistrationOrDeviceTokensResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdBaseMessageInstance", { +Object.defineProperty(exports, "ListUsersResponse", { enumerable: true, get: function get() { - return _SendBirdBaseMessageInstance["default"]; + return _ListUsersResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdChannelResponse", { +Object.defineProperty(exports, "MarkAllMessagesAsReadRequest", { enumerable: true, get: function get() { - return _SendBirdChannelResponse["default"]; + return _MarkAllMessagesAsReadRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdEmoji", { +Object.defineProperty(exports, "MarkChannelMessagesAsReadRequest", { enumerable: true, get: function get() { - return _SendBirdEmoji["default"]; + return _MarkChannelMessagesAsReadRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdEmojiCategory", { +Object.defineProperty(exports, "MessageApi", { enumerable: true, get: function get() { - return _SendBirdEmojiCategory["default"]; + return _MessageApi["default"]; } }); -Object.defineProperty(exports, "SendBirdFileMessageParams", { +Object.defineProperty(exports, "MetadataApi", { enumerable: true, get: function get() { - return _SendBirdFileMessageParams["default"]; + return _MetadataApi["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannel", { +Object.defineProperty(exports, "ModerationApi", { enumerable: true, get: function get() { - return _SendBirdGroupChannel["default"]; + return _ModerationApi["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelChannel", { +Object.defineProperty(exports, "OpenChannelApi", { enumerable: true, get: function get() { - return _SendBirdGroupChannelChannel["default"]; + return _OpenChannelApi["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelCollection", { +Object.defineProperty(exports, "RegisterOperatorsToAGroupChannelRequest", { enumerable: true, get: function get() { - return _SendBirdGroupChannelCollection["default"]; + return _RegisterOperatorsToAGroupChannelRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelCreatedBy", { +Object.defineProperty(exports, "RemoveARegistrationOrDeviceTokenResponse", { enumerable: true, get: function get() { - return _SendBirdGroupChannelCreatedBy["default"]; + return _RemoveARegistrationOrDeviceTokenResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelDisappearingMessage", { +Object.defineProperty(exports, "RemoveAllRegistrationOrDeviceTokenResponse", { enumerable: true, get: function get() { - return _SendBirdGroupChannelDisappearingMessage["default"]; + return _RemoveAllRegistrationOrDeviceTokenResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelInviter", { +Object.defineProperty(exports, "ResetChatHistoryRequest", { enumerable: true, get: function get() { - return _SendBirdGroupChannelInviter["default"]; + return _ResetChatHistoryRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelLastMessage", { +Object.defineProperty(exports, "ResetChatHistoryResponse", { enumerable: true, get: function get() { - return _SendBirdGroupChannelLastMessage["default"]; + return _ResetChatHistoryResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdGroupChannelSmsFallback", { +Object.defineProperty(exports, "ScheduleAnAnnouncementRequest", { enumerable: true, get: function get() { - return _SendBirdGroupChannelSmsFallback["default"]; + return _ScheduleAnAnnouncementRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdMember", { +Object.defineProperty(exports, "ScheduleAnAnnouncementRequestCreateChannelOptions", { enumerable: true, get: function get() { - return _SendBirdMember["default"]; + return _ScheduleAnAnnouncementRequestCreateChannelOptions["default"]; } }); -Object.defineProperty(exports, "SendBirdMessageMetaArray", { +Object.defineProperty(exports, "ScheduleAnAnnouncementRequestMessage", { enumerable: true, get: function get() { - return _SendBirdMessageMetaArray["default"]; + return _ScheduleAnAnnouncementRequestMessage["default"]; } }); -Object.defineProperty(exports, "SendBirdMessageResponse", { +Object.defineProperty(exports, "ScheduleAnAnnouncementResponse", { enumerable: true, get: function get() { - return _SendBirdMessageResponse["default"]; + return _ScheduleAnAnnouncementResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdMessageResponseMentionedUsersInner", { +Object.defineProperty(exports, "ScheduleAnAnnouncementResponseMessage", { enumerable: true, get: function get() { - return _SendBirdMessageResponseMentionedUsersInner["default"]; + return _ScheduleAnAnnouncementResponseMessage["default"]; } }); -Object.defineProperty(exports, "SendBirdMessageResponseUser", { +Object.defineProperty(exports, "SendABotMessageRequest", { enumerable: true, get: function get() { - return _SendBirdMessageResponseUser["default"]; + return _SendABotMessageRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdOGImage", { +Object.defineProperty(exports, "SendAMessageRequest", { enumerable: true, get: function get() { - return _SendBirdOGImage["default"]; + return _SendAMessageRequest["default"]; } }); -Object.defineProperty(exports, "SendBirdOGMetaData", { +Object.defineProperty(exports, "SendAdminMessageRequestBody", { enumerable: true, get: function get() { - return _SendBirdOGMetaData["default"]; + return _SendAdminMessageRequestBody["default"]; } }); -Object.defineProperty(exports, "SendBirdOpenChannel", { +Object.defineProperty(exports, "SendFileMessageRequestBody", { enumerable: true, get: function get() { - return _SendBirdOpenChannel["default"]; + return _SendFileMessageRequestBody["default"]; } }); -Object.defineProperty(exports, "SendBirdPlugin", { +Object.defineProperty(exports, "SendTextMessageRequestBody", { enumerable: true, get: function get() { - return _SendBirdPlugin["default"]; + return _SendTextMessageRequestBody["default"]; } }); -Object.defineProperty(exports, "SendBirdPoll", { +Object.defineProperty(exports, "SendTextMessageRequestBodyPushMessageTemplate", { enumerable: true, get: function get() { - return _SendBirdPoll["default"]; + return _SendTextMessageRequestBodyPushMessageTemplate["default"]; } }); -Object.defineProperty(exports, "SendBirdPollDetails", { +Object.defineProperty(exports, "SendTextMessageRequestBodyPushMessageTemplateOneOf", { enumerable: true, get: function get() { - return _SendBirdPollDetails["default"]; + return _SendTextMessageRequestBodyPushMessageTemplateOneOf["default"]; } }); -Object.defineProperty(exports, "SendBirdPollOption", { +Object.defineProperty(exports, "SendbirdBasicUserInfo", { enumerable: true, get: function get() { - return _SendBirdPollOption["default"]; + return _SendbirdBasicUserInfo["default"]; } }); -Object.defineProperty(exports, "SendBirdPollUpdatedVoteCount", { +Object.defineProperty(exports, "SendbirdDisappearingMessage", { enumerable: true, get: function get() { - return _SendBirdPollUpdatedVoteCount["default"]; + return _SendbirdDisappearingMessage["default"]; } }); -Object.defineProperty(exports, "SendBirdReaction", { +Object.defineProperty(exports, "SendbirdExtendedMessagePayload", { enumerable: true, get: function get() { - return _SendBirdReaction["default"]; + return _SendbirdExtendedMessagePayload["default"]; } }); -Object.defineProperty(exports, "SendBirdRestrictionInfo", { +Object.defineProperty(exports, "SendbirdFile", { enumerable: true, get: function get() { - return _SendBirdRestrictionInfo["default"]; + return _SendbirdFile["default"]; } }); -Object.defineProperty(exports, "SendBirdSender", { +Object.defineProperty(exports, "SendbirdGroupChannel", { enumerable: true, get: function get() { - return _SendBirdSender["default"]; + return _SendbirdGroupChannel["default"]; } }); -Object.defineProperty(exports, "SendBirdThreadInfo", { +Object.defineProperty(exports, "SendbirdGroupChannelDetail", { enumerable: true, get: function get() { - return _SendBirdThreadInfo["default"]; + return _SendbirdGroupChannelDetail["default"]; } }); -Object.defineProperty(exports, "SendBirdThumbnailSBObject", { +Object.defineProperty(exports, "SendbirdGroupChannelDetailChannel", { enumerable: true, get: function get() { - return _SendBirdThumbnailSBObject["default"]; + return _SendbirdGroupChannelDetailChannel["default"]; } }); -Object.defineProperty(exports, "SendBirdThumbnailSize", { +Object.defineProperty(exports, "SendbirdMember", { enumerable: true, get: function get() { - return _SendBirdThumbnailSize["default"]; + return _SendbirdMember["default"]; } }); -Object.defineProperty(exports, "SendBirdUser", { +Object.defineProperty(exports, "SendbirdMessageResponse", { enumerable: true, get: function get() { - return _SendBirdUser["default"]; + return _SendbirdMessageResponse["default"]; } }); -Object.defineProperty(exports, "SendBirdUserMessageParams", { +Object.defineProperty(exports, "SendbirdMessageResponseMessageEvents", { enumerable: true, get: function get() { - return _SendBirdUserMessageParams["default"]; + return _SendbirdMessageResponseMessageEvents["default"]; } }); -Object.defineProperty(exports, "SendBotSMessageData", { +Object.defineProperty(exports, "SendbirdOpenChannel", { enumerable: true, get: function get() { - return _SendBotSMessageData["default"]; + return _SendbirdOpenChannel["default"]; } }); -Object.defineProperty(exports, "SendMessageData", { +Object.defineProperty(exports, "SendbirdParentMessageInfo", { enumerable: true, get: function get() { - return _SendMessageData["default"]; + return _SendbirdParentMessageInfo["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterData", { +Object.defineProperty(exports, "SendbirdPushTriggerOption", { enumerable: true, get: function get() { - return _SetDomainFilterData["default"]; + return _SendbirdPushTriggerOption["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataDomainFilter", { +Object.defineProperty(exports, "SendbirdReaction", { enumerable: true, get: function get() { - return _SetDomainFilterDataDomainFilter["default"]; + return _SendbirdReaction["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataImageModeration", { +Object.defineProperty(exports, "SendbirdSmsFallback", { enumerable: true, get: function get() { - return _SetDomainFilterDataImageModeration["default"]; + return _SendbirdSmsFallback["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataImageModerationLimits", { +Object.defineProperty(exports, "SendbirdSortedMetaarrayInner", { enumerable: true, get: function get() { - return _SetDomainFilterDataImageModerationLimits["default"]; + return _SendbirdSortedMetaarrayInner["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataProfanityFilter", { +Object.defineProperty(exports, "SendbirdThumbnail", { enumerable: true, get: function get() { - return _SetDomainFilterDataProfanityFilter["default"]; + return _SendbirdThumbnail["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataProfanityFilterRegexFiltersInner", { +Object.defineProperty(exports, "SendbirdUser", { enumerable: true, get: function get() { - return _SetDomainFilterDataProfanityFilterRegexFiltersInner["default"]; + return _SendbirdUser["default"]; } }); -Object.defineProperty(exports, "SetDomainFilterDataProfanityTriggeredModeration", { +Object.defineProperty(exports, "StartTypingIndicatorsRequest", { enumerable: true, get: function get() { - return _SetDomainFilterDataProfanityTriggeredModeration["default"]; + return _StartTypingIndicatorsRequest["default"]; } }); Object.defineProperty(exports, "StatisticsApi", { @@ -1467,58 +603,40 @@ Object.defineProperty(exports, "StatisticsApi", { return _StatisticsApi["default"]; } }); -Object.defineProperty(exports, "TranslateMessageIntoOtherLanguagesData", { - enumerable: true, - get: function get() { - return _TranslateMessageIntoOtherLanguagesData["default"]; - } -}); -Object.defineProperty(exports, "UpdateAnnouncementByIdData", { +Object.defineProperty(exports, "UpdateAChannelMetadataRequest", { enumerable: true, get: function get() { - return _UpdateAnnouncementByIdData["default"]; + return _UpdateAChannelMetadataRequest["default"]; } }); -Object.defineProperty(exports, "UpdateAnnouncementByIdResponse", { +Object.defineProperty(exports, "UpdateAGroupChannelRequest", { enumerable: true, get: function get() { - return _UpdateAnnouncementByIdResponse["default"]; + return _UpdateAGroupChannelRequest["default"]; } }); -Object.defineProperty(exports, "UpdateAnnouncementByIdResponseMessage", { +Object.defineProperty(exports, "UpdateAMessageRequest", { enumerable: true, get: function get() { - return _UpdateAnnouncementByIdResponseMessage["default"]; + return _UpdateAMessageRequest["default"]; } }); -Object.defineProperty(exports, "UpdateApnsPushConfigurationByIdData", { +Object.defineProperty(exports, "UpdateAUserRequest", { enumerable: true, get: function get() { - return _UpdateApnsPushConfigurationByIdData["default"]; + return _UpdateAUserRequest["default"]; } }); -Object.defineProperty(exports, "UpdateApnsPushConfigurationByIdResponse", { +Object.defineProperty(exports, "UpdateAnOpenChannelRequest", { enumerable: true, get: function get() { - return _UpdateApnsPushConfigurationByIdResponse["default"]; + return _UpdateAnOpenChannelRequest["default"]; } }); -Object.defineProperty(exports, "UpdateBotByIdData", { +Object.defineProperty(exports, "UpdateChannelInvitationPreferenceRequest", { enumerable: true, get: function get() { - return _UpdateBotByIdData["default"]; - } -}); -Object.defineProperty(exports, "UpdateBotByIdResponse", { - enumerable: true, - get: function get() { - return _UpdateBotByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "UpdateChannelInvitationPreferenceData", { - enumerable: true, - get: function get() { - return _UpdateChannelInvitationPreferenceData["default"]; + return _UpdateChannelInvitationPreferenceRequest["default"]; } }); Object.defineProperty(exports, "UpdateChannelInvitationPreferenceResponse", { @@ -1527,22 +645,10 @@ Object.defineProperty(exports, "UpdateChannelInvitationPreferenceResponse", { return _UpdateChannelInvitationPreferenceResponse["default"]; } }); -Object.defineProperty(exports, "UpdateChannelMetacounterData", { - enumerable: true, - get: function get() { - return _UpdateChannelMetacounterData["default"]; - } -}); -Object.defineProperty(exports, "UpdateChannelMetadataData", { - enumerable: true, - get: function get() { - return _UpdateChannelMetadataData["default"]; - } -}); -Object.defineProperty(exports, "UpdateCountPreferenceOfChannelByUrlData", { +Object.defineProperty(exports, "UpdateCountPreferenceOfAChannelRequest", { enumerable: true, get: function get() { - return _UpdateCountPreferenceOfChannelByUrlData["default"]; + return _UpdateCountPreferenceOfAChannelRequest["default"]; } }); Object.defineProperty(exports, "UpdateCountPreferenceOfChannelByUrlResponse", { @@ -1551,106 +657,34 @@ Object.defineProperty(exports, "UpdateCountPreferenceOfChannelByUrlResponse", { return _UpdateCountPreferenceOfChannelByUrlResponse["default"]; } }); -Object.defineProperty(exports, "UpdateDefaultChannelInvitationPreferenceData", { - enumerable: true, - get: function get() { - return _UpdateDefaultChannelInvitationPreferenceData["default"]; - } -}); -Object.defineProperty(exports, "UpdateDefaultChannelInvitationPreferenceResponse", { - enumerable: true, - get: function get() { - return _UpdateDefaultChannelInvitationPreferenceResponse["default"]; - } -}); -Object.defineProperty(exports, "UpdateEmojiCategoryUrlByIdData", { - enumerable: true, - get: function get() { - return _UpdateEmojiCategoryUrlByIdData["default"]; - } -}); -Object.defineProperty(exports, "UpdateEmojiUrlByKeyData", { - enumerable: true, - get: function get() { - return _UpdateEmojiUrlByKeyData["default"]; - } -}); -Object.defineProperty(exports, "UpdateExtraDataInMessageData", { +Object.defineProperty(exports, "UpdateExtraDataInAMessageRequest", { enumerable: true, get: function get() { - return _UpdateExtraDataInMessageData["default"]; + return _UpdateExtraDataInAMessageRequest["default"]; } }); -Object.defineProperty(exports, "UpdateExtraDataInMessageResponse", { +Object.defineProperty(exports, "UpdateExtraDataInAMessageResponse", { enumerable: true, get: function get() { - return _UpdateExtraDataInMessageResponse["default"]; + return _UpdateExtraDataInAMessageResponse["default"]; } }); -Object.defineProperty(exports, "UpdateExtraDataInMessageResponseSortedMetaarrayInner", { +Object.defineProperty(exports, "UpdatePushPreferencesForAChannelRequest", { enumerable: true, get: function get() { - return _UpdateExtraDataInMessageResponseSortedMetaarrayInner["default"]; + return _UpdatePushPreferencesForAChannelRequest["default"]; } }); -Object.defineProperty(exports, "UpdateFcmPushConfigurationByIdData", { +Object.defineProperty(exports, "UpdatePushPreferencesForAChannelResponse", { enumerable: true, get: function get() { - return _UpdateFcmPushConfigurationByIdData["default"]; + return _UpdatePushPreferencesForAChannelResponse["default"]; } }); -Object.defineProperty(exports, "UpdateFcmPushConfigurationByIdResponse", { +Object.defineProperty(exports, "UpdatePushPreferencesRequest", { enumerable: true, get: function get() { - return _UpdateFcmPushConfigurationByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "UpdateHmsPushConfigurationByIdData", { - enumerable: true, - get: function get() { - return _UpdateHmsPushConfigurationByIdData["default"]; - } -}); -Object.defineProperty(exports, "UpdateHmsPushConfigurationByIdResponse", { - enumerable: true, - get: function get() { - return _UpdateHmsPushConfigurationByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "UpdateMessageByIdData", { - enumerable: true, - get: function get() { - return _UpdateMessageByIdData["default"]; - } -}); -Object.defineProperty(exports, "UpdatePushNotificationContentTemplateData", { - enumerable: true, - get: function get() { - return _UpdatePushNotificationContentTemplateData["default"]; - } -}); -Object.defineProperty(exports, "UpdatePushNotificationContentTemplateResponse", { - enumerable: true, - get: function get() { - return _UpdatePushNotificationContentTemplateResponse["default"]; - } -}); -Object.defineProperty(exports, "UpdatePushPreferencesData", { - enumerable: true, - get: function get() { - return _UpdatePushPreferencesData["default"]; - } -}); -Object.defineProperty(exports, "UpdatePushPreferencesForChannelByUrlData", { - enumerable: true, - get: function get() { - return _UpdatePushPreferencesForChannelByUrlData["default"]; - } -}); -Object.defineProperty(exports, "UpdatePushPreferencesForChannelByUrlResponse", { - enumerable: true, - get: function get() { - return _UpdatePushPreferencesForChannelByUrlResponse["default"]; + return _UpdatePushPreferencesRequest["default"]; } }); Object.defineProperty(exports, "UpdatePushPreferencesResponse", { @@ -1659,88 +693,16 @@ Object.defineProperty(exports, "UpdatePushPreferencesResponse", { return _UpdatePushPreferencesResponse["default"]; } }); -Object.defineProperty(exports, "UpdateUserByIdData", { - enumerable: true, - get: function get() { - return _UpdateUserByIdData["default"]; - } -}); -Object.defineProperty(exports, "UpdateUserMetadataData", { - enumerable: true, - get: function get() { - return _UpdateUserMetadataData["default"]; - } -}); -Object.defineProperty(exports, "UpdateUserMetadataResponse", { - enumerable: true, - get: function get() { - return _UpdateUserMetadataResponse["default"]; - } -}); -Object.defineProperty(exports, "UseDefaultEmojisData", { - enumerable: true, - get: function get() { - return _UseDefaultEmojisData["default"]; - } -}); -Object.defineProperty(exports, "UseDefaultEmojisResponse", { - enumerable: true, - get: function get() { - return _UseDefaultEmojisResponse["default"]; - } -}); Object.defineProperty(exports, "UserApi", { enumerable: true, get: function get() { return _UserApi["default"]; } }); -Object.defineProperty(exports, "ViewAnnouncementByIdResponse", { - enumerable: true, - get: function get() { - return _ViewAnnouncementByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewBotByIdResponse", { - enumerable: true, - get: function get() { - return _ViewBotByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewChannelInvitationPreferenceResponse", { - enumerable: true, - get: function get() { - return _ViewChannelInvitationPreferenceResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewCountPreferenceOfChannelByUrlResponse", { +Object.defineProperty(exports, "ViewCountPreferenceOfAChannelResponse", { enumerable: true, get: function get() { - return _ViewCountPreferenceOfChannelByUrlResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewDataExportByIdResponse", { - enumerable: true, - get: function get() { - return _ViewDataExportByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewDefaultChannelInvitationPreferenceResponse", { - enumerable: true, - get: function get() { - return _ViewDefaultChannelInvitationPreferenceResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewGdprRequestByIdResponse", { - enumerable: true, - get: function get() { - return _ViewGdprRequestByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewNumberOfChannelsByJoinStatusResponse", { - enumerable: true, - get: function get() { - return _ViewNumberOfChannelsByJoinStatusResponse["default"]; + return _ViewCountPreferenceOfAChannelResponse["default"]; } }); Object.defineProperty(exports, "ViewNumberOfChannelsWithUnreadMessagesResponse", { @@ -1749,12 +711,6 @@ Object.defineProperty(exports, "ViewNumberOfChannelsWithUnreadMessagesResponse", return _ViewNumberOfChannelsWithUnreadMessagesResponse["default"]; } }); -Object.defineProperty(exports, "ViewNumberOfConcurrentConnectionsResponse", { - enumerable: true, - get: function get() { - return _ViewNumberOfConcurrentConnectionsResponse["default"]; - } -}); Object.defineProperty(exports, "ViewNumberOfDailyActiveUsersResponse", { enumerable: true, get: function get() { @@ -1767,52 +723,16 @@ Object.defineProperty(exports, "ViewNumberOfMonthlyActiveUsersResponse", { return _ViewNumberOfMonthlyActiveUsersResponse["default"]; } }); -Object.defineProperty(exports, "ViewNumberOfPeakConnectionsResponse", { - enumerable: true, - get: function get() { - return _ViewNumberOfPeakConnectionsResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewNumberOfPeakConnectionsResponsePeakConnectionsInner", { - enumerable: true, - get: function get() { - return _ViewNumberOfPeakConnectionsResponsePeakConnectionsInner["default"]; - } -}); -Object.defineProperty(exports, "ViewNumberOfUnreadItemsResponse", { - enumerable: true, - get: function get() { - return _ViewNumberOfUnreadItemsResponse["default"]; - } -}); Object.defineProperty(exports, "ViewNumberOfUnreadMessagesResponse", { enumerable: true, get: function get() { return _ViewNumberOfUnreadMessagesResponse["default"]; } }); -Object.defineProperty(exports, "ViewPushConfigurationByIdResponse", { +Object.defineProperty(exports, "ViewPushPreferencesForAChannelResponse", { enumerable: true, get: function get() { - return _ViewPushConfigurationByIdResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewPushNotificationContentTemplateResponse", { - enumerable: true, - get: function get() { - return _ViewPushNotificationContentTemplateResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner", { - enumerable: true, - get: function get() { - return _ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner["default"]; - } -}); -Object.defineProperty(exports, "ViewPushPreferencesForChannelByUrlResponse", { - enumerable: true, - get: function get() { - return _ViewPushPreferencesForChannelByUrlResponse["default"]; + return _ViewPushPreferencesForAChannelResponse["default"]; } }); Object.defineProperty(exports, "ViewPushPreferencesResponse", { @@ -1821,342 +741,127 @@ Object.defineProperty(exports, "ViewPushPreferencesResponse", { return _ViewPushPreferencesResponse["default"]; } }); -Object.defineProperty(exports, "ViewSecondaryApiTokenByTokenResponse", { - enumerable: true, - get: function get() { - return _ViewSecondaryApiTokenByTokenResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewTotalNumberOfMessagesInChannelResponse", { - enumerable: true, - get: function get() { - return _ViewTotalNumberOfMessagesInChannelResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewUserMetadataResponse", { - enumerable: true, - get: function get() { - return _ViewUserMetadataResponse["default"]; - } -}); -Object.defineProperty(exports, "ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner", { - enumerable: true, - get: function get() { - return _ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner["default"]; - } -}); -Object.defineProperty(exports, "WebhookApi", { - enumerable: true, - get: function get() { - return _WebhookApi["default"]; - } -}); var _ApiClient = _interopRequireDefault(require("./ApiClient")); -var _AddApnsPushConfigurationData = _interopRequireDefault(require("./model/AddApnsPushConfigurationData")); -var _AddApnsPushConfigurationResponse = _interopRequireDefault(require("./model/AddApnsPushConfigurationResponse")); -var _AddApnsPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./model/AddApnsPushConfigurationResponsePushConfigurationsInner")); -var _AddEmojiCategoriesResponse = _interopRequireDefault(require("./model/AddEmojiCategoriesResponse")); -var _AddEmojiCategoriesResponseEmojiCategoriesInner = _interopRequireDefault(require("./model/AddEmojiCategoriesResponseEmojiCategoriesInner")); -var _AddEmojisData = _interopRequireDefault(require("./model/AddEmojisData")); -var _AddEmojisResponse = _interopRequireDefault(require("./model/AddEmojisResponse")); -var _AddExtraDataToMessageData = _interopRequireDefault(require("./model/AddExtraDataToMessageData")); -var _AddExtraDataToMessageResponse = _interopRequireDefault(require("./model/AddExtraDataToMessageResponse")); -var _AddFcmPushConfigurationData = _interopRequireDefault(require("./model/AddFcmPushConfigurationData")); -var _AddFcmPushConfigurationResponse = _interopRequireDefault(require("./model/AddFcmPushConfigurationResponse")); -var _AddFcmPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./model/AddFcmPushConfigurationResponsePushConfigurationsInner")); -var _AddHmsPushConfigurationData = _interopRequireDefault(require("./model/AddHmsPushConfigurationData")); -var _AddHmsPushConfigurationResponse = _interopRequireDefault(require("./model/AddHmsPushConfigurationResponse")); -var _AddHmsPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./model/AddHmsPushConfigurationResponsePushConfigurationsInner")); -var _AddIpToWhitelistData = _interopRequireDefault(require("./model/AddIpToWhitelistData")); -var _AddIpToWhitelistResponse = _interopRequireDefault(require("./model/AddIpToWhitelistResponse")); -var _AddReactionToAMessageData = _interopRequireDefault(require("./model/AddReactionToAMessageData")); -var _AddReactionToAMessageResponse = _interopRequireDefault(require("./model/AddReactionToAMessageResponse")); -var _AddRegistrationOrDeviceTokenData = _interopRequireDefault(require("./model/AddRegistrationOrDeviceTokenData")); -var _AddRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/AddRegistrationOrDeviceTokenResponse")); -var _BanFromChannelsWithCustomChannelTypesData = _interopRequireDefault(require("./model/BanFromChannelsWithCustomChannelTypesData")); -var _BanUsersInChannelsWithCustomChannelTypeData = _interopRequireDefault(require("./model/BanUsersInChannelsWithCustomChannelTypeData")); -var _BanUsersInChannelsWithCustomChannelTypeDataBannedListInner = _interopRequireDefault(require("./model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner")); -var _Blob = _interopRequireDefault(require("./model/Blob")); -var _BlockUserData = _interopRequireDefault(require("./model/BlockUserData")); -var _BlockUserResponse = _interopRequireDefault(require("./model/BlockUserResponse")); -var _ChoosePushNotificationContentTemplateResponse = _interopRequireDefault(require("./model/ChoosePushNotificationContentTemplateResponse")); -var _ChooseWhichEventsToSubscribeToData = _interopRequireDefault(require("./model/ChooseWhichEventsToSubscribeToData")); -var _ChooseWhichEventsToSubscribeToResponse = _interopRequireDefault(require("./model/ChooseWhichEventsToSubscribeToResponse")); -var _ChooseWhichEventsToSubscribeToResponseWebhook = _interopRequireDefault(require("./model/ChooseWhichEventsToSubscribeToResponseWebhook")); -var _ConfigureAutoEventData = _interopRequireDefault(require("./model/ConfigureAutoEventData")); -var _ConfigureAutoEventDataAutoEventMessage = _interopRequireDefault(require("./model/ConfigureAutoEventDataAutoEventMessage")); -var _CreateBotData = _interopRequireDefault(require("./model/CreateBotData")); -var _CreateBotResponse = _interopRequireDefault(require("./model/CreateBotResponse")); -var _CreateBotResponseBot = _interopRequireDefault(require("./model/CreateBotResponseBot")); -var _CreateChannelMetacounterData = _interopRequireDefault(require("./model/CreateChannelMetacounterData")); -var _CreateChannelMetadataData = _interopRequireDefault(require("./model/CreateChannelMetadataData")); -var _CreateChannelMetadataResponse = _interopRequireDefault(require("./model/CreateChannelMetadataResponse")); -var _CreateUserData = _interopRequireDefault(require("./model/CreateUserData")); -var _CreateUserMetadataData = _interopRequireDefault(require("./model/CreateUserMetadataData")); -var _CreateUserMetadataResponse = _interopRequireDefault(require("./model/CreateUserMetadataResponse")); -var _CreateUserTokenData = _interopRequireDefault(require("./model/CreateUserTokenData")); +var _AcceptAnInvitationRequest = _interopRequireDefault(require("./model/AcceptAnInvitationRequest")); +var _AddARegistrationOrDeviceTokenRequest = _interopRequireDefault(require("./model/AddARegistrationOrDeviceTokenRequest")); +var _AddARegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/AddARegistrationOrDeviceTokenResponse")); +var _AddExtraDataToAMessageRequest = _interopRequireDefault(require("./model/AddExtraDataToAMessageRequest")); +var _AddExtraDataToAMessageResponse = _interopRequireDefault(require("./model/AddExtraDataToAMessageResponse")); +var _BlockAUserRequest = _interopRequireDefault(require("./model/BlockAUserRequest")); +var _BlockAUserResponse = _interopRequireDefault(require("./model/BlockAUserResponse")); +var _CheckIfMemberResponse = _interopRequireDefault(require("./model/CheckIfMemberResponse")); +var _ChooseAPushNotificationContentTemplateRequest = _interopRequireDefault(require("./model/ChooseAPushNotificationContentTemplateRequest")); +var _ChooseAPushNotificationContentTemplateResponse = _interopRequireDefault(require("./model/ChooseAPushNotificationContentTemplateResponse")); +var _CreateABotRequest = _interopRequireDefault(require("./model/CreateABotRequest")); +var _CreateABotResponse = _interopRequireDefault(require("./model/CreateABotResponse")); +var _CreateABotResponseBot = _interopRequireDefault(require("./model/CreateABotResponseBot")); +var _CreateABotResponseBotStyle = _interopRequireDefault(require("./model/CreateABotResponseBotStyle")); +var _CreateAChannelMetadataRequest = _interopRequireDefault(require("./model/CreateAChannelMetadataRequest")); +var _CreateAChannelMetadataResponse = _interopRequireDefault(require("./model/CreateAChannelMetadataResponse")); +var _CreateAGroupChannelRequest = _interopRequireDefault(require("./model/CreateAGroupChannelRequest")); +var _CreateAUserRequest = _interopRequireDefault(require("./model/CreateAUserRequest")); +var _CreateAnOpenChannelRequest = _interopRequireDefault(require("./model/CreateAnOpenChannelRequest")); +var _CreateUserTokenRequest = _interopRequireDefault(require("./model/CreateUserTokenRequest")); var _CreateUserTokenResponse = _interopRequireDefault(require("./model/CreateUserTokenResponse")); -var _CustomTypeListBannedUsersResponse = _interopRequireDefault(require("./model/CustomTypeListBannedUsersResponse")); -var _DeleteAllowedIpsFromWhitelistResponse = _interopRequireDefault(require("./model/DeleteAllowedIpsFromWhitelistResponse")); -var _DeleteApnsCertificateByIdResponse = _interopRequireDefault(require("./model/DeleteApnsCertificateByIdResponse")); -var _EnableReactionsData = _interopRequireDefault(require("./model/EnableReactionsData")); -var _EnableReactionsResponse = _interopRequireDefault(require("./model/EnableReactionsResponse")); -var _File = _interopRequireDefault(require("./model/File")); -var _Function = _interopRequireDefault(require("./model/Function")); -var _GcAcceptInvitationData = _interopRequireDefault(require("./model/GcAcceptInvitationData")); -var _GcBanUserData = _interopRequireDefault(require("./model/GcBanUserData")); -var _GcBanUserResponse = _interopRequireDefault(require("./model/GcBanUserResponse")); -var _GcCheckIfMemberByIdResponse = _interopRequireDefault(require("./model/GcCheckIfMemberByIdResponse")); -var _GcCreateChannelData = _interopRequireDefault(require("./model/GcCreateChannelData")); -var _GcDeclineInvitationData = _interopRequireDefault(require("./model/GcDeclineInvitationData")); -var _GcFreezeChannelData = _interopRequireDefault(require("./model/GcFreezeChannelData")); -var _GcHideOrArchiveChannelData = _interopRequireDefault(require("./model/GcHideOrArchiveChannelData")); -var _GcInviteAsMembersData = _interopRequireDefault(require("./model/GcInviteAsMembersData")); -var _GcJoinChannelData = _interopRequireDefault(require("./model/GcJoinChannelData")); -var _GcLeaveChannelData = _interopRequireDefault(require("./model/GcLeaveChannelData")); -var _GcListBannedUsersResponse = _interopRequireDefault(require("./model/GcListBannedUsersResponse")); -var _GcListChannelsResponse = _interopRequireDefault(require("./model/GcListChannelsResponse")); -var _GcListMembersResponse = _interopRequireDefault(require("./model/GcListMembersResponse")); -var _GcListMutedUsersResponse = _interopRequireDefault(require("./model/GcListMutedUsersResponse")); -var _GcListOperatorsResponse = _interopRequireDefault(require("./model/GcListOperatorsResponse")); -var _GcMarkAllMessagesAsDeliveredData = _interopRequireDefault(require("./model/GcMarkAllMessagesAsDeliveredData")); -var _GcMarkAllMessagesAsDeliveredResponse = _interopRequireDefault(require("./model/GcMarkAllMessagesAsDeliveredResponse")); -var _GcMarkAllMessagesAsReadData = _interopRequireDefault(require("./model/GcMarkAllMessagesAsReadData")); -var _GcMuteUserData = _interopRequireDefault(require("./model/GcMuteUserData")); -var _GcRegisterOperatorsData = _interopRequireDefault(require("./model/GcRegisterOperatorsData")); -var _GcRegisterOperatorsResponse = _interopRequireDefault(require("./model/GcRegisterOperatorsResponse")); -var _GcResetChatHistoryData = _interopRequireDefault(require("./model/GcResetChatHistoryData")); -var _GcResetChatHistoryResponse = _interopRequireDefault(require("./model/GcResetChatHistoryResponse")); -var _GcUpdateBanByIdData = _interopRequireDefault(require("./model/GcUpdateBanByIdData")); -var _GcUpdateBanByIdResponse = _interopRequireDefault(require("./model/GcUpdateBanByIdResponse")); -var _GcUpdateChannelByUrlData = _interopRequireDefault(require("./model/GcUpdateChannelByUrlData")); -var _GcViewBanByIdResponse = _interopRequireDefault(require("./model/GcViewBanByIdResponse")); -var _GcViewMuteByIdResponse = _interopRequireDefault(require("./model/GcViewMuteByIdResponse")); -var _GcViewNumberOfEachMembersUnreadMessagesResponse = _interopRequireDefault(require("./model/GcViewNumberOfEachMembersUnreadMessagesResponse")); -var _GenerateSecondaryApiTokenData = _interopRequireDefault(require("./model/GenerateSecondaryApiTokenData")); -var _GenerateSecondaryApiTokenResponse = _interopRequireDefault(require("./model/GenerateSecondaryApiTokenResponse")); -var _GetDetailedOpenRateOfAnnouncementByIdResponse = _interopRequireDefault(require("./model/GetDetailedOpenRateOfAnnouncementByIdResponse")); -var _GetDetailedOpenRateOfAnnouncementGroupResponse = _interopRequireDefault(require("./model/GetDetailedOpenRateOfAnnouncementGroupResponse")); -var _GetDetailedOpenStatusOfAnnouncementByIdResponse = _interopRequireDefault(require("./model/GetDetailedOpenStatusOfAnnouncementByIdResponse")); -var _GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner = _interopRequireDefault(require("./model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner")); -var _GetStatisticsDailyResponse = _interopRequireDefault(require("./model/GetStatisticsDailyResponse")); -var _GetStatisticsDailyResponseStatisticsInner = _interopRequireDefault(require("./model/GetStatisticsDailyResponseStatisticsInner")); -var _GetStatisticsMonthlyResponse = _interopRequireDefault(require("./model/GetStatisticsMonthlyResponse")); -var _GetStatisticsResponse = _interopRequireDefault(require("./model/GetStatisticsResponse")); -var _JoinChannelsData = _interopRequireDefault(require("./model/JoinChannelsData")); -var _JoinChannelsResponse = _interopRequireDefault(require("./model/JoinChannelsResponse")); -var _LeaveMyGroupChannelsData = _interopRequireDefault(require("./model/LeaveMyGroupChannelsData")); -var _ListAllEmojisAndEmojiCategoriesResponse = _interopRequireDefault(require("./model/ListAllEmojisAndEmojiCategoriesResponse")); -var _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner = _interopRequireDefault(require("./model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner")); -var _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner = _interopRequireDefault(require("./model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner")); -var _ListAnnouncementGroupsResponse = _interopRequireDefault(require("./model/ListAnnouncementGroupsResponse")); -var _ListAnnouncementsResponse = _interopRequireDefault(require("./model/ListAnnouncementsResponse")); -var _ListAnnouncementsResponseAnnouncementsInner = _interopRequireDefault(require("./model/ListAnnouncementsResponseAnnouncementsInner")); -var _ListBannedChannelsResponse = _interopRequireDefault(require("./model/ListBannedChannelsResponse")); -var _ListBannedChannelsResponseBannedChannelsInner = _interopRequireDefault(require("./model/ListBannedChannelsResponseBannedChannelsInner")); +var _FreezeAGroupChannelRequest = _interopRequireDefault(require("./model/FreezeAGroupChannelRequest")); +var _FreezeAnOpenChannelRequest = _interopRequireDefault(require("./model/FreezeAnOpenChannelRequest")); +var _GetAGroupChannelResponse = _interopRequireDefault(require("./model/GetAGroupChannelResponse")); +var _GetAGroupChannelResponseAllOf = _interopRequireDefault(require("./model/GetAGroupChannelResponseAllOf")); +var _GetChannelInvitationPreferenceResponse = _interopRequireDefault(require("./model/GetChannelInvitationPreferenceResponse")); +var _GetTotalNumberOfMessagesInAChannelResponse = _interopRequireDefault(require("./model/GetTotalNumberOfMessagesInAChannelResponse")); +var _GroupChannelListMembersResponse = _interopRequireDefault(require("./model/GroupChannelListMembersResponse")); +var _GroupChatListChannelsResponse = _interopRequireDefault(require("./model/GroupChatListChannelsResponse")); +var _HideAChannelRequest = _interopRequireDefault(require("./model/HideAChannelRequest")); +var _InviteAsMembersRequest = _interopRequireDefault(require("./model/InviteAsMembersRequest")); +var _InviteAsMembersResponse = _interopRequireDefault(require("./model/InviteAsMembersResponse")); +var _InviteAsMembersResponseAllOf = _interopRequireDefault(require("./model/InviteAsMembersResponseAllOf")); +var _JoinAChannelRequest = _interopRequireDefault(require("./model/JoinAChannelRequest")); +var _JoinChannelsRequest = _interopRequireDefault(require("./model/JoinChannelsRequest")); +var _LeaveAChannelRequest = _interopRequireDefault(require("./model/LeaveAChannelRequest")); +var _LeaveMyGroupChannelsRequest = _interopRequireDefault(require("./model/LeaveMyGroupChannelsRequest")); var _ListBlockedUsersResponse = _interopRequireDefault(require("./model/ListBlockedUsersResponse")); var _ListBotsResponse = _interopRequireDefault(require("./model/ListBotsResponse")); var _ListBotsResponseBotsInner = _interopRequireDefault(require("./model/ListBotsResponseBotsInner")); -var _ListDataExportsByMessageChannelOrUserResponse = _interopRequireDefault(require("./model/ListDataExportsByMessageChannelOrUserResponse")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInner = _interopRequireDefault(require("./model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -var _ListEmojisResponse = _interopRequireDefault(require("./model/ListEmojisResponse")); -var _ListGdprRequestsResponse = _interopRequireDefault(require("./model/ListGdprRequestsResponse")); -var _ListGdprRequestsResponseRequestsInner = _interopRequireDefault(require("./model/ListGdprRequestsResponseRequestsInner")); +var _ListBotsResponseBotsInnerAi = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerAi")); +var _ListBotsResponseBotsInnerBot = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerBot")); +var _ListBotsResponseBotsInnerBotStyle = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerBotStyle")); +var _ListBotsResponseBotsInnerBotStyleColor = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerBotStyleColor")); +var _ListBotsResponseBotsInnerFirstMessagesInner = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerFirstMessagesInner")); +var _ListBotsResponseBotsInnerFirstMessagesInnerData = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerFirstMessagesInnerData")); +var _ListBotsResponseBotsInnerSafeguard = _interopRequireDefault(require("./model/ListBotsResponseBotsInnerSafeguard")); var _ListMessagesResponse = _interopRequireDefault(require("./model/ListMessagesResponse")); -var _ListMessagesResponseMessagesInner = _interopRequireDefault(require("./model/ListMessagesResponseMessagesInner")); -var _ListMessagesResponseMessagesInnerOgTag = _interopRequireDefault(require("./model/ListMessagesResponseMessagesInnerOgTag")); -var _ListMessagesResponseMessagesInnerOgTagOgImage = _interopRequireDefault(require("./model/ListMessagesResponseMessagesInnerOgTagOgImage")); -var _ListMessagesResponseMessagesInnerSortedMetaarrayInner = _interopRequireDefault(require("./model/ListMessagesResponseMessagesInnerSortedMetaarrayInner")); -var _ListMutedChannelsResponse = _interopRequireDefault(require("./model/ListMutedChannelsResponse")); -var _ListMutedUsersInChannelsWithCustomChannelType200Response = _interopRequireDefault(require("./model/ListMutedUsersInChannelsWithCustomChannelType200Response")); var _ListMyGroupChannelsResponse = _interopRequireDefault(require("./model/ListMyGroupChannelsResponse")); -var _ListPushConfigurationsResponse = _interopRequireDefault(require("./model/ListPushConfigurationsResponse")); -var _ListPushConfigurationsResponsePushConfigurationsInner = _interopRequireDefault(require("./model/ListPushConfigurationsResponsePushConfigurationsInner")); -var _ListPushNotificationContentTemplatesResponse = _interopRequireDefault(require("./model/ListPushNotificationContentTemplatesResponse")); -var _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner = _interopRequireDefault(require("./model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner")); -var _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate = _interopRequireDefault(require("./model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate")); -var _ListReactionsOfMessageResponse = _interopRequireDefault(require("./model/ListReactionsOfMessageResponse")); +var _ListOpenChannelsResponse = _interopRequireDefault(require("./model/ListOpenChannelsResponse")); +var _ListOperatorsResponse = _interopRequireDefault(require("./model/ListOperatorsResponse")); var _ListRegistrationOrDeviceTokensResponse = _interopRequireDefault(require("./model/ListRegistrationOrDeviceTokensResponse")); -var _ListReportsOnChannelByUrlResponse = _interopRequireDefault(require("./model/ListReportsOnChannelByUrlResponse")); -var _ListReportsOnMessageByIdResponse = _interopRequireDefault(require("./model/ListReportsOnMessageByIdResponse")); -var _ListReportsOnMessageByIdResponseReportLogsInner = _interopRequireDefault(require("./model/ListReportsOnMessageByIdResponseReportLogsInner")); -var _ListReportsOnUserByIdResponse = _interopRequireDefault(require("./model/ListReportsOnUserByIdResponse")); -var _ListReportsResponse = _interopRequireDefault(require("./model/ListReportsResponse")); -var _ListReportsResponseReportLogsInner = _interopRequireDefault(require("./model/ListReportsResponseReportLogsInner")); -var _ListSecondaryApiTokensResponse = _interopRequireDefault(require("./model/ListSecondaryApiTokensResponse")); -var _ListSecondaryApiTokensResponseApiTokensInner = _interopRequireDefault(require("./model/ListSecondaryApiTokensResponseApiTokensInner")); var _ListUsersResponse = _interopRequireDefault(require("./model/ListUsersResponse")); -var _MarkAllMessagesAsReadData = _interopRequireDefault(require("./model/MarkAllMessagesAsReadData")); -var _MuteInChannelsWithCustomChannelTypesData = _interopRequireDefault(require("./model/MuteInChannelsWithCustomChannelTypesData")); -var _MuteUsersInChannelsWithCustomChannelTypeData = _interopRequireDefault(require("./model/MuteUsersInChannelsWithCustomChannelTypeData")); -var _OcBanUserData = _interopRequireDefault(require("./model/OcBanUserData")); -var _OcBanUserResponse = _interopRequireDefault(require("./model/OcBanUserResponse")); -var _OcCreateChannelData = _interopRequireDefault(require("./model/OcCreateChannelData")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("./model/OcDeleteChannelByUrl200Response")); -var _OcFreezeChannelData = _interopRequireDefault(require("./model/OcFreezeChannelData")); -var _OcListBannedUsersResponse = _interopRequireDefault(require("./model/OcListBannedUsersResponse")); -var _OcListBannedUsersResponseBannedListInner = _interopRequireDefault(require("./model/OcListBannedUsersResponseBannedListInner")); -var _OcListChannelsResponse = _interopRequireDefault(require("./model/OcListChannelsResponse")); -var _OcListMutedUsersResponse = _interopRequireDefault(require("./model/OcListMutedUsersResponse")); -var _OcListOperatorsResponse = _interopRequireDefault(require("./model/OcListOperatorsResponse")); -var _OcListParticipantsResponse = _interopRequireDefault(require("./model/OcListParticipantsResponse")); -var _OcMuteUserData = _interopRequireDefault(require("./model/OcMuteUserData")); -var _OcRegisterOperatorsData = _interopRequireDefault(require("./model/OcRegisterOperatorsData")); -var _OcUpdateBanByIdData = _interopRequireDefault(require("./model/OcUpdateBanByIdData")); -var _OcUpdateBanByIdResponse = _interopRequireDefault(require("./model/OcUpdateBanByIdResponse")); -var _OcUpdateChannelByUrlData = _interopRequireDefault(require("./model/OcUpdateChannelByUrlData")); -var _OcViewBanByIdResponse = _interopRequireDefault(require("./model/OcViewBanByIdResponse")); -var _OcViewMuteByIdResponse = _interopRequireDefault(require("./model/OcViewMuteByIdResponse")); -var _RegisterAndScheduleDataExportData = _interopRequireDefault(require("./model/RegisterAndScheduleDataExportData")); -var _RegisterAndScheduleDataExportResponse = _interopRequireDefault(require("./model/RegisterAndScheduleDataExportResponse")); -var _RegisterAsOperatorToChannelsWithCustomChannelTypesData = _interopRequireDefault(require("./model/RegisterAsOperatorToChannelsWithCustomChannelTypesData")); -var _RegisterGdprRequestData = _interopRequireDefault(require("./model/RegisterGdprRequestData")); -var _RegisterGdprRequestResponse = _interopRequireDefault(require("./model/RegisterGdprRequestResponse")); -var _RemovePushConfigurationByIdResponse = _interopRequireDefault(require("./model/RemovePushConfigurationByIdResponse")); -var _RemoveReactionFromAMessageResponse = _interopRequireDefault(require("./model/RemoveReactionFromAMessageResponse")); -var _RemoveRegistrationOrDeviceTokenByTokenResponse = _interopRequireDefault(require("./model/RemoveRegistrationOrDeviceTokenByTokenResponse")); -var _RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse = _interopRequireDefault(require("./model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse")); -var _RemoveRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/RemoveRegistrationOrDeviceTokenResponse")); -var _ReportChannelByUrlData = _interopRequireDefault(require("./model/ReportChannelByUrlData")); -var _ReportChannelByUrlResponse = _interopRequireDefault(require("./model/ReportChannelByUrlResponse")); -var _ReportMessageByIdData = _interopRequireDefault(require("./model/ReportMessageByIdData")); -var _ReportMessageByIdResponse = _interopRequireDefault(require("./model/ReportMessageByIdResponse")); -var _ReportUserByIdData = _interopRequireDefault(require("./model/ReportUserByIdData")); -var _ReportUserByIdResponse = _interopRequireDefault(require("./model/ReportUserByIdResponse")); -var _ResetPushPreferencesResponse = _interopRequireDefault(require("./model/ResetPushPreferencesResponse")); -var _RetrieveAdvancedAnalyticsMetricsResponse = _interopRequireDefault(require("./model/RetrieveAdvancedAnalyticsMetricsResponse")); -var _RetrieveIpWhitelistResponse = _interopRequireDefault(require("./model/RetrieveIpWhitelistResponse")); -var _RetrieveListOfSubscribedEventsResponse = _interopRequireDefault(require("./model/RetrieveListOfSubscribedEventsResponse")); -var _RetrieveListOfSubscribedEventsResponseWebhook = _interopRequireDefault(require("./model/RetrieveListOfSubscribedEventsResponseWebhook")); -var _RevokeSecondaryApiTokenByTokenResponse = _interopRequireDefault(require("./model/RevokeSecondaryApiTokenByTokenResponse")); -var _SBObject = _interopRequireDefault(require("./model/SBObject")); -var _ScheduleAnnouncementData = _interopRequireDefault(require("./model/ScheduleAnnouncementData")); -var _ScheduleAnnouncementDataMessage = _interopRequireDefault(require("./model/ScheduleAnnouncementDataMessage")); -var _ScheduleAnnouncementResponse = _interopRequireDefault(require("./model/ScheduleAnnouncementResponse")); -var _ScheduleAnnouncementResponseCreateChannelOptions = _interopRequireDefault(require("./model/ScheduleAnnouncementResponseCreateChannelOptions")); -var _ScheduleAnnouncementResponseMessage = _interopRequireDefault(require("./model/ScheduleAnnouncementResponseMessage")); -var _SendBirdAdminMessage = _interopRequireDefault(require("./model/SendBirdAdminMessage")); -var _SendBirdAppleCriticalAlertOptions = _interopRequireDefault(require("./model/SendBirdAppleCriticalAlertOptions")); -var _SendBirdAutoEventMessageSettings = _interopRequireDefault(require("./model/SendBirdAutoEventMessageSettings")); -var _SendBirdBaseChannel = _interopRequireDefault(require("./model/SendBirdBaseChannel")); -var _SendBirdBaseMessageInstance = _interopRequireDefault(require("./model/SendBirdBaseMessageInstance")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./model/SendBirdChannelResponse")); -var _SendBirdEmoji = _interopRequireDefault(require("./model/SendBirdEmoji")); -var _SendBirdEmojiCategory = _interopRequireDefault(require("./model/SendBirdEmojiCategory")); -var _SendBirdFileMessageParams = _interopRequireDefault(require("./model/SendBirdFileMessageParams")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./model/SendBirdGroupChannel")); -var _SendBirdGroupChannelChannel = _interopRequireDefault(require("./model/SendBirdGroupChannelChannel")); -var _SendBirdGroupChannelCollection = _interopRequireDefault(require("./model/SendBirdGroupChannelCollection")); -var _SendBirdGroupChannelCreatedBy = _interopRequireDefault(require("./model/SendBirdGroupChannelCreatedBy")); -var _SendBirdGroupChannelDisappearingMessage = _interopRequireDefault(require("./model/SendBirdGroupChannelDisappearingMessage")); -var _SendBirdGroupChannelInviter = _interopRequireDefault(require("./model/SendBirdGroupChannelInviter")); -var _SendBirdGroupChannelLastMessage = _interopRequireDefault(require("./model/SendBirdGroupChannelLastMessage")); -var _SendBirdGroupChannelSmsFallback = _interopRequireDefault(require("./model/SendBirdGroupChannelSmsFallback")); -var _SendBirdMember = _interopRequireDefault(require("./model/SendBirdMember")); -var _SendBirdMessageMetaArray = _interopRequireDefault(require("./model/SendBirdMessageMetaArray")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./model/SendBirdMessageResponse")); -var _SendBirdMessageResponseMentionedUsersInner = _interopRequireDefault(require("./model/SendBirdMessageResponseMentionedUsersInner")); -var _SendBirdMessageResponseUser = _interopRequireDefault(require("./model/SendBirdMessageResponseUser")); -var _SendBirdOGImage = _interopRequireDefault(require("./model/SendBirdOGImage")); -var _SendBirdOGMetaData = _interopRequireDefault(require("./model/SendBirdOGMetaData")); -var _SendBirdOpenChannel = _interopRequireDefault(require("./model/SendBirdOpenChannel")); -var _SendBirdPlugin = _interopRequireDefault(require("./model/SendBirdPlugin")); -var _SendBirdPoll = _interopRequireDefault(require("./model/SendBirdPoll")); -var _SendBirdPollDetails = _interopRequireDefault(require("./model/SendBirdPollDetails")); -var _SendBirdPollOption = _interopRequireDefault(require("./model/SendBirdPollOption")); -var _SendBirdPollUpdatedVoteCount = _interopRequireDefault(require("./model/SendBirdPollUpdatedVoteCount")); -var _SendBirdReaction = _interopRequireDefault(require("./model/SendBirdReaction")); -var _SendBirdRestrictionInfo = _interopRequireDefault(require("./model/SendBirdRestrictionInfo")); -var _SendBirdSender = _interopRequireDefault(require("./model/SendBirdSender")); -var _SendBirdThreadInfo = _interopRequireDefault(require("./model/SendBirdThreadInfo")); -var _SendBirdThumbnailSBObject = _interopRequireDefault(require("./model/SendBirdThumbnailSBObject")); -var _SendBirdThumbnailSize = _interopRequireDefault(require("./model/SendBirdThumbnailSize")); -var _SendBirdUser = _interopRequireDefault(require("./model/SendBirdUser")); -var _SendBirdUserMessageParams = _interopRequireDefault(require("./model/SendBirdUserMessageParams")); -var _SendBotSMessageData = _interopRequireDefault(require("./model/SendBotSMessageData")); -var _SendMessageData = _interopRequireDefault(require("./model/SendMessageData")); -var _SetDomainFilterData = _interopRequireDefault(require("./model/SetDomainFilterData")); -var _SetDomainFilterDataDomainFilter = _interopRequireDefault(require("./model/SetDomainFilterDataDomainFilter")); -var _SetDomainFilterDataImageModeration = _interopRequireDefault(require("./model/SetDomainFilterDataImageModeration")); -var _SetDomainFilterDataImageModerationLimits = _interopRequireDefault(require("./model/SetDomainFilterDataImageModerationLimits")); -var _SetDomainFilterDataProfanityFilter = _interopRequireDefault(require("./model/SetDomainFilterDataProfanityFilter")); -var _SetDomainFilterDataProfanityFilterRegexFiltersInner = _interopRequireDefault(require("./model/SetDomainFilterDataProfanityFilterRegexFiltersInner")); -var _SetDomainFilterDataProfanityTriggeredModeration = _interopRequireDefault(require("./model/SetDomainFilterDataProfanityTriggeredModeration")); -var _TranslateMessageIntoOtherLanguagesData = _interopRequireDefault(require("./model/TranslateMessageIntoOtherLanguagesData")); -var _UpdateAnnouncementByIdData = _interopRequireDefault(require("./model/UpdateAnnouncementByIdData")); -var _UpdateAnnouncementByIdResponse = _interopRequireDefault(require("./model/UpdateAnnouncementByIdResponse")); -var _UpdateAnnouncementByIdResponseMessage = _interopRequireDefault(require("./model/UpdateAnnouncementByIdResponseMessage")); -var _UpdateApnsPushConfigurationByIdData = _interopRequireDefault(require("./model/UpdateApnsPushConfigurationByIdData")); -var _UpdateApnsPushConfigurationByIdResponse = _interopRequireDefault(require("./model/UpdateApnsPushConfigurationByIdResponse")); -var _UpdateBotByIdData = _interopRequireDefault(require("./model/UpdateBotByIdData")); -var _UpdateBotByIdResponse = _interopRequireDefault(require("./model/UpdateBotByIdResponse")); -var _UpdateChannelInvitationPreferenceData = _interopRequireDefault(require("./model/UpdateChannelInvitationPreferenceData")); +var _MarkAllMessagesAsReadRequest = _interopRequireDefault(require("./model/MarkAllMessagesAsReadRequest")); +var _MarkChannelMessagesAsReadRequest = _interopRequireDefault(require("./model/MarkChannelMessagesAsReadRequest")); +var _RegisterOperatorsToAGroupChannelRequest = _interopRequireDefault(require("./model/RegisterOperatorsToAGroupChannelRequest")); +var _RemoveARegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/RemoveARegistrationOrDeviceTokenResponse")); +var _RemoveAllRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/RemoveAllRegistrationOrDeviceTokenResponse")); +var _ResetChatHistoryRequest = _interopRequireDefault(require("./model/ResetChatHistoryRequest")); +var _ResetChatHistoryResponse = _interopRequireDefault(require("./model/ResetChatHistoryResponse")); +var _ScheduleAnAnnouncementRequest = _interopRequireDefault(require("./model/ScheduleAnAnnouncementRequest")); +var _ScheduleAnAnnouncementRequestCreateChannelOptions = _interopRequireDefault(require("./model/ScheduleAnAnnouncementRequestCreateChannelOptions")); +var _ScheduleAnAnnouncementRequestMessage = _interopRequireDefault(require("./model/ScheduleAnAnnouncementRequestMessage")); +var _ScheduleAnAnnouncementResponse = _interopRequireDefault(require("./model/ScheduleAnAnnouncementResponse")); +var _ScheduleAnAnnouncementResponseMessage = _interopRequireDefault(require("./model/ScheduleAnAnnouncementResponseMessage")); +var _SendABotMessageRequest = _interopRequireDefault(require("./model/SendABotMessageRequest")); +var _SendAMessageRequest = _interopRequireDefault(require("./model/SendAMessageRequest")); +var _SendAdminMessageRequestBody = _interopRequireDefault(require("./model/SendAdminMessageRequestBody")); +var _SendFileMessageRequestBody = _interopRequireDefault(require("./model/SendFileMessageRequestBody")); +var _SendTextMessageRequestBody = _interopRequireDefault(require("./model/SendTextMessageRequestBody")); +var _SendTextMessageRequestBodyPushMessageTemplate = _interopRequireDefault(require("./model/SendTextMessageRequestBodyPushMessageTemplate")); +var _SendTextMessageRequestBodyPushMessageTemplateOneOf = _interopRequireDefault(require("./model/SendTextMessageRequestBodyPushMessageTemplateOneOf")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./model/SendbirdBasicUserInfo")); +var _SendbirdDisappearingMessage = _interopRequireDefault(require("./model/SendbirdDisappearingMessage")); +var _SendbirdExtendedMessagePayload = _interopRequireDefault(require("./model/SendbirdExtendedMessagePayload")); +var _SendbirdFile = _interopRequireDefault(require("./model/SendbirdFile")); +var _SendbirdGroupChannel = _interopRequireDefault(require("./model/SendbirdGroupChannel")); +var _SendbirdGroupChannelDetail = _interopRequireDefault(require("./model/SendbirdGroupChannelDetail")); +var _SendbirdGroupChannelDetailChannel = _interopRequireDefault(require("./model/SendbirdGroupChannelDetailChannel")); +var _SendbirdMember = _interopRequireDefault(require("./model/SendbirdMember")); +var _SendbirdMessageResponse = _interopRequireDefault(require("./model/SendbirdMessageResponse")); +var _SendbirdMessageResponseMessageEvents = _interopRequireDefault(require("./model/SendbirdMessageResponseMessageEvents")); +var _SendbirdOpenChannel = _interopRequireDefault(require("./model/SendbirdOpenChannel")); +var _SendbirdParentMessageInfo = _interopRequireDefault(require("./model/SendbirdParentMessageInfo")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./model/SendbirdPushTriggerOption")); +var _SendbirdReaction = _interopRequireDefault(require("./model/SendbirdReaction")); +var _SendbirdSmsFallback = _interopRequireDefault(require("./model/SendbirdSmsFallback")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./model/SendbirdSortedMetaarrayInner")); +var _SendbirdThumbnail = _interopRequireDefault(require("./model/SendbirdThumbnail")); +var _SendbirdUser = _interopRequireDefault(require("./model/SendbirdUser")); +var _StartTypingIndicatorsRequest = _interopRequireDefault(require("./model/StartTypingIndicatorsRequest")); +var _UpdateAChannelMetadataRequest = _interopRequireDefault(require("./model/UpdateAChannelMetadataRequest")); +var _UpdateAGroupChannelRequest = _interopRequireDefault(require("./model/UpdateAGroupChannelRequest")); +var _UpdateAMessageRequest = _interopRequireDefault(require("./model/UpdateAMessageRequest")); +var _UpdateAUserRequest = _interopRequireDefault(require("./model/UpdateAUserRequest")); +var _UpdateAnOpenChannelRequest = _interopRequireDefault(require("./model/UpdateAnOpenChannelRequest")); +var _UpdateChannelInvitationPreferenceRequest = _interopRequireDefault(require("./model/UpdateChannelInvitationPreferenceRequest")); var _UpdateChannelInvitationPreferenceResponse = _interopRequireDefault(require("./model/UpdateChannelInvitationPreferenceResponse")); -var _UpdateChannelMetacounterData = _interopRequireDefault(require("./model/UpdateChannelMetacounterData")); -var _UpdateChannelMetadataData = _interopRequireDefault(require("./model/UpdateChannelMetadataData")); -var _UpdateCountPreferenceOfChannelByUrlData = _interopRequireDefault(require("./model/UpdateCountPreferenceOfChannelByUrlData")); +var _UpdateCountPreferenceOfAChannelRequest = _interopRequireDefault(require("./model/UpdateCountPreferenceOfAChannelRequest")); var _UpdateCountPreferenceOfChannelByUrlResponse = _interopRequireDefault(require("./model/UpdateCountPreferenceOfChannelByUrlResponse")); -var _UpdateDefaultChannelInvitationPreferenceData = _interopRequireDefault(require("./model/UpdateDefaultChannelInvitationPreferenceData")); -var _UpdateDefaultChannelInvitationPreferenceResponse = _interopRequireDefault(require("./model/UpdateDefaultChannelInvitationPreferenceResponse")); -var _UpdateEmojiCategoryUrlByIdData = _interopRequireDefault(require("./model/UpdateEmojiCategoryUrlByIdData")); -var _UpdateEmojiUrlByKeyData = _interopRequireDefault(require("./model/UpdateEmojiUrlByKeyData")); -var _UpdateExtraDataInMessageData = _interopRequireDefault(require("./model/UpdateExtraDataInMessageData")); -var _UpdateExtraDataInMessageResponse = _interopRequireDefault(require("./model/UpdateExtraDataInMessageResponse")); -var _UpdateExtraDataInMessageResponseSortedMetaarrayInner = _interopRequireDefault(require("./model/UpdateExtraDataInMessageResponseSortedMetaarrayInner")); -var _UpdateFcmPushConfigurationByIdData = _interopRequireDefault(require("./model/UpdateFcmPushConfigurationByIdData")); -var _UpdateFcmPushConfigurationByIdResponse = _interopRequireDefault(require("./model/UpdateFcmPushConfigurationByIdResponse")); -var _UpdateHmsPushConfigurationByIdData = _interopRequireDefault(require("./model/UpdateHmsPushConfigurationByIdData")); -var _UpdateHmsPushConfigurationByIdResponse = _interopRequireDefault(require("./model/UpdateHmsPushConfigurationByIdResponse")); -var _UpdateMessageByIdData = _interopRequireDefault(require("./model/UpdateMessageByIdData")); -var _UpdatePushNotificationContentTemplateData = _interopRequireDefault(require("./model/UpdatePushNotificationContentTemplateData")); -var _UpdatePushNotificationContentTemplateResponse = _interopRequireDefault(require("./model/UpdatePushNotificationContentTemplateResponse")); -var _UpdatePushPreferencesData = _interopRequireDefault(require("./model/UpdatePushPreferencesData")); -var _UpdatePushPreferencesForChannelByUrlData = _interopRequireDefault(require("./model/UpdatePushPreferencesForChannelByUrlData")); -var _UpdatePushPreferencesForChannelByUrlResponse = _interopRequireDefault(require("./model/UpdatePushPreferencesForChannelByUrlResponse")); +var _UpdateExtraDataInAMessageRequest = _interopRequireDefault(require("./model/UpdateExtraDataInAMessageRequest")); +var _UpdateExtraDataInAMessageResponse = _interopRequireDefault(require("./model/UpdateExtraDataInAMessageResponse")); +var _UpdatePushPreferencesForAChannelRequest = _interopRequireDefault(require("./model/UpdatePushPreferencesForAChannelRequest")); +var _UpdatePushPreferencesForAChannelResponse = _interopRequireDefault(require("./model/UpdatePushPreferencesForAChannelResponse")); +var _UpdatePushPreferencesRequest = _interopRequireDefault(require("./model/UpdatePushPreferencesRequest")); var _UpdatePushPreferencesResponse = _interopRequireDefault(require("./model/UpdatePushPreferencesResponse")); -var _UpdateUserByIdData = _interopRequireDefault(require("./model/UpdateUserByIdData")); -var _UpdateUserMetadataData = _interopRequireDefault(require("./model/UpdateUserMetadataData")); -var _UpdateUserMetadataResponse = _interopRequireDefault(require("./model/UpdateUserMetadataResponse")); -var _UseDefaultEmojisData = _interopRequireDefault(require("./model/UseDefaultEmojisData")); -var _UseDefaultEmojisResponse = _interopRequireDefault(require("./model/UseDefaultEmojisResponse")); -var _ViewAnnouncementByIdResponse = _interopRequireDefault(require("./model/ViewAnnouncementByIdResponse")); -var _ViewBotByIdResponse = _interopRequireDefault(require("./model/ViewBotByIdResponse")); -var _ViewChannelInvitationPreferenceResponse = _interopRequireDefault(require("./model/ViewChannelInvitationPreferenceResponse")); -var _ViewCountPreferenceOfChannelByUrlResponse = _interopRequireDefault(require("./model/ViewCountPreferenceOfChannelByUrlResponse")); -var _ViewDataExportByIdResponse = _interopRequireDefault(require("./model/ViewDataExportByIdResponse")); -var _ViewDefaultChannelInvitationPreferenceResponse = _interopRequireDefault(require("./model/ViewDefaultChannelInvitationPreferenceResponse")); -var _ViewGdprRequestByIdResponse = _interopRequireDefault(require("./model/ViewGdprRequestByIdResponse")); -var _ViewNumberOfChannelsByJoinStatusResponse = _interopRequireDefault(require("./model/ViewNumberOfChannelsByJoinStatusResponse")); +var _ViewCountPreferenceOfAChannelResponse = _interopRequireDefault(require("./model/ViewCountPreferenceOfAChannelResponse")); var _ViewNumberOfChannelsWithUnreadMessagesResponse = _interopRequireDefault(require("./model/ViewNumberOfChannelsWithUnreadMessagesResponse")); -var _ViewNumberOfConcurrentConnectionsResponse = _interopRequireDefault(require("./model/ViewNumberOfConcurrentConnectionsResponse")); var _ViewNumberOfDailyActiveUsersResponse = _interopRequireDefault(require("./model/ViewNumberOfDailyActiveUsersResponse")); var _ViewNumberOfMonthlyActiveUsersResponse = _interopRequireDefault(require("./model/ViewNumberOfMonthlyActiveUsersResponse")); -var _ViewNumberOfPeakConnectionsResponse = _interopRequireDefault(require("./model/ViewNumberOfPeakConnectionsResponse")); -var _ViewNumberOfPeakConnectionsResponsePeakConnectionsInner = _interopRequireDefault(require("./model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner")); -var _ViewNumberOfUnreadItemsResponse = _interopRequireDefault(require("./model/ViewNumberOfUnreadItemsResponse")); var _ViewNumberOfUnreadMessagesResponse = _interopRequireDefault(require("./model/ViewNumberOfUnreadMessagesResponse")); -var _ViewPushConfigurationByIdResponse = _interopRequireDefault(require("./model/ViewPushConfigurationByIdResponse")); -var _ViewPushNotificationContentTemplateResponse = _interopRequireDefault(require("./model/ViewPushNotificationContentTemplateResponse")); -var _ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner = _interopRequireDefault(require("./model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner")); -var _ViewPushPreferencesForChannelByUrlResponse = _interopRequireDefault(require("./model/ViewPushPreferencesForChannelByUrlResponse")); +var _ViewPushPreferencesForAChannelResponse = _interopRequireDefault(require("./model/ViewPushPreferencesForAChannelResponse")); var _ViewPushPreferencesResponse = _interopRequireDefault(require("./model/ViewPushPreferencesResponse")); -var _ViewSecondaryApiTokenByTokenResponse = _interopRequireDefault(require("./model/ViewSecondaryApiTokenByTokenResponse")); -var _ViewTotalNumberOfMessagesInChannelResponse = _interopRequireDefault(require("./model/ViewTotalNumberOfMessagesInChannelResponse")); -var _ViewUserMetadataResponse = _interopRequireDefault(require("./model/ViewUserMetadataResponse")); -var _ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner = _interopRequireDefault(require("./model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner")); var _AnnouncementApi = _interopRequireDefault(require("./api/AnnouncementApi")); -var _ApplicationApi = _interopRequireDefault(require("./api/ApplicationApi")); var _BotApi = _interopRequireDefault(require("./api/BotApi")); -var _DataExportApi = _interopRequireDefault(require("./api/DataExportApi")); var _GroupChannelApi = _interopRequireDefault(require("./api/GroupChannelApi")); var _MessageApi = _interopRequireDefault(require("./api/MessageApi")); var _MetadataApi = _interopRequireDefault(require("./api/MetadataApi")); var _ModerationApi = _interopRequireDefault(require("./api/ModerationApi")); var _OpenChannelApi = _interopRequireDefault(require("./api/OpenChannelApi")); -var _PrivacyApi = _interopRequireDefault(require("./api/PrivacyApi")); -var _ReportApi = _interopRequireDefault(require("./api/ReportApi")); var _StatisticsApi = _interopRequireDefault(require("./api/StatisticsApi")); var _UserApi = _interopRequireDefault(require("./api/UserApi")); -var _WebhookApi = _interopRequireDefault(require("./api/WebhookApi")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } \ No newline at end of file +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } \ No newline at end of file diff --git a/dist/model/AcceptAnInvitationRequest.js b/dist/model/AcceptAnInvitationRequest.js new file mode 100644 index 0000000..7243d18 --- /dev/null +++ b/dist/model/AcceptAnInvitationRequest.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The AcceptAnInvitationRequest model module. + * @module model/AcceptAnInvitationRequest + * @version 2.0.0 + */ +var AcceptAnInvitationRequest = /*#__PURE__*/function () { + /** + * Constructs a new AcceptAnInvitationRequest. + * @alias module:model/AcceptAnInvitationRequest + * @param userId {String} + */ + function AcceptAnInvitationRequest(userId) { + _classCallCheck(this, AcceptAnInvitationRequest); + AcceptAnInvitationRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(AcceptAnInvitationRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a AcceptAnInvitationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AcceptAnInvitationRequest} obj Optional instance to populate. + * @return {module:model/AcceptAnInvitationRequest} The populated AcceptAnInvitationRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AcceptAnInvitationRequest(); + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} access_code + */ +AcceptAnInvitationRequest.prototype['access_code'] = undefined; + +/** + * @member {String} user_id + */ +AcceptAnInvitationRequest.prototype['user_id'] = undefined; +var _default = exports["default"] = AcceptAnInvitationRequest; \ No newline at end of file diff --git a/dist/model/AddARegistrationOrDeviceTokenRequest.js b/dist/model/AddARegistrationOrDeviceTokenRequest.js new file mode 100644 index 0000000..a823cd7 --- /dev/null +++ b/dist/model/AddARegistrationOrDeviceTokenRequest.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The AddARegistrationOrDeviceTokenRequest model module. + * @module model/AddARegistrationOrDeviceTokenRequest + * @version 2.0.0 + */ +var AddARegistrationOrDeviceTokenRequest = /*#__PURE__*/function () { + /** + * Constructs a new AddARegistrationOrDeviceTokenRequest. + * @alias module:model/AddARegistrationOrDeviceTokenRequest + */ + function AddARegistrationOrDeviceTokenRequest() { + _classCallCheck(this, AddARegistrationOrDeviceTokenRequest); + AddARegistrationOrDeviceTokenRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(AddARegistrationOrDeviceTokenRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a AddARegistrationOrDeviceTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddARegistrationOrDeviceTokenRequest} obj Optional instance to populate. + * @return {module:model/AddARegistrationOrDeviceTokenRequest} The populated AddARegistrationOrDeviceTokenRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddARegistrationOrDeviceTokenRequest(); + if (data.hasOwnProperty('apns_device_token')) { + obj['apns_device_token'] = _ApiClient["default"].convertToType(data['apns_device_token'], 'String'); + } + if (data.hasOwnProperty('gcm_reg_token')) { + obj['gcm_reg_token'] = _ApiClient["default"].convertToType(data['gcm_reg_token'], 'String'); + } + if (data.hasOwnProperty('huawei_device_token')) { + obj['huawei_device_token'] = _ApiClient["default"].convertToType(data['huawei_device_token'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} apns_device_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['apns_device_token'] = undefined; + +/** + * @member {String} gcm_reg_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['gcm_reg_token'] = undefined; + +/** + * @member {String} huawei_device_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['huawei_device_token'] = undefined; +var _default = exports["default"] = AddARegistrationOrDeviceTokenRequest; \ No newline at end of file diff --git a/dist/model/AddARegistrationOrDeviceTokenResponse.js b/dist/model/AddARegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..4006c37 --- /dev/null +++ b/dist/model/AddARegistrationOrDeviceTokenResponse.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The AddARegistrationOrDeviceTokenResponse model module. + * @module model/AddARegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +var AddARegistrationOrDeviceTokenResponse = /*#__PURE__*/function () { + /** + * Constructs a new AddARegistrationOrDeviceTokenResponse. + * @alias module:model/AddARegistrationOrDeviceTokenResponse + */ + function AddARegistrationOrDeviceTokenResponse() { + _classCallCheck(this, AddARegistrationOrDeviceTokenResponse); + AddARegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(AddARegistrationOrDeviceTokenResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a AddARegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddARegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/AddARegistrationOrDeviceTokenResponse} The populated AddARegistrationOrDeviceTokenResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddARegistrationOrDeviceTokenResponse(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['user']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} token + */ +AddARegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {String} type + */ +AddARegistrationOrDeviceTokenResponse.prototype['type'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +AddARegistrationOrDeviceTokenResponse.prototype['user'] = undefined; +var _default = exports["default"] = AddARegistrationOrDeviceTokenResponse; \ No newline at end of file diff --git a/dist/model/AddApnsPushConfigurationData.js b/dist/model/AddApnsPushConfigurationData.js deleted file mode 100644 index a8a5d37..0000000 --- a/dist/model/AddApnsPushConfigurationData.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddApnsPushConfigurationData model module. - * @module model/AddApnsPushConfigurationData - * @version 0.0.16 - */ -var AddApnsPushConfigurationData = /*#__PURE__*/function () { - /** - * Constructs a new AddApnsPushConfigurationData. - * @alias module:model/AddApnsPushConfigurationData - * @param apnsCert {File} In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. - * @param apnsCertEnvType {String} Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. There is no need to specify this property when the apns_cert above is specified. - * @param apnsCertPassword {String} Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @param hasUnreadCountBadge {Boolean} Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @param contentAvailable {Boolean} Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @param mutableContent {Boolean} Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @param apnsType {String} (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - */ - function AddApnsPushConfigurationData(apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - _classCallCheck(this, AddApnsPushConfigurationData); - AddApnsPushConfigurationData.initialize(this, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddApnsPushConfigurationData, null, [{ - key: "initialize", - value: function initialize(obj, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - obj['apns_cert'] = apnsCert; - obj['apns_cert_env_type'] = apnsCertEnvType; - obj['apns_cert_password'] = apnsCertPassword; - obj['has_unread_count_badge'] = hasUnreadCountBadge; - obj['content_available'] = contentAvailable; - obj['mutable_content'] = mutableContent; - obj['push_sound'] = pushSound; - obj['apns_type'] = apnsType; - } - - /** - * Constructs a AddApnsPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationData} The populated AddApnsPushConfigurationData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationData(); - if (data.hasOwnProperty('apns_cert')) { - obj['apns_cert'] = _ApiClient["default"].convertToType(data['apns_cert'], File); - } - if (data.hasOwnProperty('apns_cert_env_type')) { - obj['apns_cert_env_type'] = _ApiClient["default"].convertToType(data['apns_cert_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_cert_password')) { - obj['apns_cert_password'] = _ApiClient["default"].convertToType(data['apns_cert_password'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = _ApiClient["default"].convertToType(data['has_unread_count_badge'], 'Boolean'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = _ApiClient["default"].convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = _ApiClient["default"].convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('apns_type')) { - obj['apns_type'] = _ApiClient["default"].convertToType(data['apns_type'], 'String'); - } - } - return obj; - } - }]); - return AddApnsPushConfigurationData; -}(); -/** - * In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. - * @member {File} apns_cert - */ -AddApnsPushConfigurationData.prototype['apns_cert'] = undefined; - -/** - * Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. There is no need to specify this property when the apns_cert above is specified. - * @member {String} apns_cert_env_type - */ -AddApnsPushConfigurationData.prototype['apns_cert_env_type'] = undefined; - -/** - * Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @member {String} apns_cert_password - */ -AddApnsPushConfigurationData.prototype['apns_cert_password'] = undefined; - -/** - * Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @member {Boolean} has_unread_count_badge - */ -AddApnsPushConfigurationData.prototype['has_unread_count_badge'] = undefined; - -/** - * Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @member {Boolean} content_available - */ -AddApnsPushConfigurationData.prototype['content_available'] = undefined; - -/** - * Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @member {Boolean} mutable_content - */ -AddApnsPushConfigurationData.prototype['mutable_content'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @member {String} push_sound - */ -AddApnsPushConfigurationData.prototype['push_sound'] = undefined; - -/** - * (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_type - */ -AddApnsPushConfigurationData.prototype['apns_type'] = undefined; -var _default = AddApnsPushConfigurationData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddApnsPushConfigurationResponse.js b/dist/model/AddApnsPushConfigurationResponse.js deleted file mode 100644 index 00b0b1e..0000000 --- a/dist/model/AddApnsPushConfigurationResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddApnsPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./AddApnsPushConfigurationResponsePushConfigurationsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddApnsPushConfigurationResponse model module. - * @module model/AddApnsPushConfigurationResponse - * @version 0.0.16 - */ -var AddApnsPushConfigurationResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddApnsPushConfigurationResponse. - * @alias module:model/AddApnsPushConfigurationResponse - */ - function AddApnsPushConfigurationResponse() { - _classCallCheck(this, AddApnsPushConfigurationResponse); - AddApnsPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddApnsPushConfigurationResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddApnsPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationResponse} The populated AddApnsPushConfigurationResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], [_AddApnsPushConfigurationResponsePushConfigurationsInner["default"]]); - } - } - return obj; - } - }]); - return AddApnsPushConfigurationResponse; -}(); -/** - * @member {Array.} push_configurations - */ -AddApnsPushConfigurationResponse.prototype['push_configurations'] = undefined; -var _default = AddApnsPushConfigurationResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js b/dist/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index 89ee7fe..0000000 --- a/dist/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,134 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddApnsPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddApnsPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -var AddApnsPushConfigurationResponsePushConfigurationsInner = /*#__PURE__*/function () { - /** - * Constructs a new AddApnsPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddApnsPushConfigurationResponsePushConfigurationsInner - */ - function AddApnsPushConfigurationResponsePushConfigurationsInner() { - _classCallCheck(this, AddApnsPushConfigurationResponsePushConfigurationsInner); - AddApnsPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddApnsPushConfigurationResponsePushConfigurationsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddApnsPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationResponsePushConfigurationsInner} The populated AddApnsPushConfigurationResponsePushConfigurationsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationResponsePushConfigurationsInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = _ApiClient["default"].convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('apns_cer_env_type')) { - obj['apns_cer_env_type'] = _ApiClient["default"].convertToType(data['apns_cer_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_expiration')) { - obj['apns_expiration'] = _ApiClient["default"].convertToType(data['apns_expiration'], 'Number'); - } - if (data.hasOwnProperty('apns_name')) { - obj['apns_name'] = _ApiClient["default"].convertToType(data['apns_name'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = _ApiClient["default"].convertToType(data['has_unread_count_badge'], 'Number'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = _ApiClient["default"].convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = _ApiClient["default"].convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return AddApnsPushConfigurationResponsePushConfigurationsInner; -}(); -/** - * @member {String} id - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {Number} created_at - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['created_at'] = undefined; - -/** - * @member {String} apns_cer_env_type - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_cer_env_type'] = undefined; - -/** - * @member {Number} apns_expiration - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_expiration'] = undefined; - -/** - * @member {String} apns_name - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_name'] = undefined; - -/** - * @member {Number} has_unread_count_badge - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['has_unread_count_badge'] = undefined; - -/** - * @member {Boolean} content_available - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['content_available'] = undefined; - -/** - * @member {Boolean} mutable_content - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['mutable_content'] = undefined; - -/** - * @member {String} push_sound - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; -var _default = AddApnsPushConfigurationResponsePushConfigurationsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddEmojiCategoriesResponse.js b/dist/model/AddEmojiCategoriesResponse.js deleted file mode 100644 index 739de3e..0000000 --- a/dist/model/AddEmojiCategoriesResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddEmojiCategoriesResponseEmojiCategoriesInner = _interopRequireDefault(require("./AddEmojiCategoriesResponseEmojiCategoriesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddEmojiCategoriesResponse model module. - * @module model/AddEmojiCategoriesResponse - * @version 0.0.16 - */ -var AddEmojiCategoriesResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddEmojiCategoriesResponse. - * @alias module:model/AddEmojiCategoriesResponse - */ - function AddEmojiCategoriesResponse() { - _classCallCheck(this, AddEmojiCategoriesResponse); - AddEmojiCategoriesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddEmojiCategoriesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddEmojiCategoriesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojiCategoriesResponse} obj Optional instance to populate. - * @return {module:model/AddEmojiCategoriesResponse} The populated AddEmojiCategoriesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojiCategoriesResponse(); - if (data.hasOwnProperty('emoji_categories')) { - obj['emoji_categories'] = _ApiClient["default"].convertToType(data['emoji_categories'], [_AddEmojiCategoriesResponseEmojiCategoriesInner["default"]]); - } - } - return obj; - } - }]); - return AddEmojiCategoriesResponse; -}(); -/** - * @member {Array.} emoji_categories - */ -AddEmojiCategoriesResponse.prototype['emoji_categories'] = undefined; -var _default = AddEmojiCategoriesResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js b/dist/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js deleted file mode 100644 index a944564..0000000 --- a/dist/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddEmojiCategoriesResponseEmojiCategoriesInner model module. - * @module model/AddEmojiCategoriesResponseEmojiCategoriesInner - * @version 0.0.16 - */ -var AddEmojiCategoriesResponseEmojiCategoriesInner = /*#__PURE__*/function () { - /** - * Constructs a new AddEmojiCategoriesResponseEmojiCategoriesInner. - * @alias module:model/AddEmojiCategoriesResponseEmojiCategoriesInner - */ - function AddEmojiCategoriesResponseEmojiCategoriesInner() { - _classCallCheck(this, AddEmojiCategoriesResponseEmojiCategoriesInner); - AddEmojiCategoriesResponseEmojiCategoriesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddEmojiCategoriesResponseEmojiCategoriesInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddEmojiCategoriesResponseEmojiCategoriesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojiCategoriesResponseEmojiCategoriesInner} obj Optional instance to populate. - * @return {module:model/AddEmojiCategoriesResponseEmojiCategoriesInner} The populated AddEmojiCategoriesResponseEmojiCategoriesInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojiCategoriesResponseEmojiCategoriesInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return AddEmojiCategoriesResponseEmojiCategoriesInner; -}(); -/** - * @member {Number} id - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['id'] = undefined; - -/** - * @member {String} name - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['name'] = undefined; - -/** - * @member {String} url - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['url'] = undefined; -var _default = AddEmojiCategoriesResponseEmojiCategoriesInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddEmojisData.js b/dist/model/AddEmojisData.js deleted file mode 100644 index 2648861..0000000 --- a/dist/model/AddEmojisData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddEmojisData model module. - * @module model/AddEmojisData - * @version 0.0.16 - */ -var AddEmojisData = /*#__PURE__*/function () { - /** - * Constructs a new AddEmojisData. - * @alias module:model/AddEmojisData - * @param emojiCategoryId {Number} Specifies the unique ID of the emoji category that a list of new emojis belong to. - * @param emojis {Array.} Specifies a list of one or more new emojis to register. - */ - function AddEmojisData(emojiCategoryId, emojis) { - _classCallCheck(this, AddEmojisData); - AddEmojisData.initialize(this, emojiCategoryId, emojis); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddEmojisData, null, [{ - key: "initialize", - value: function initialize(obj, emojiCategoryId, emojis) { - obj['emoji_category_id'] = emojiCategoryId; - obj['emojis'] = emojis; - } - - /** - * Constructs a AddEmojisData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojisData} obj Optional instance to populate. - * @return {module:model/AddEmojisData} The populated AddEmojisData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojisData(); - if (data.hasOwnProperty('emoji_category_id')) { - obj['emoji_category_id'] = _ApiClient["default"].convertToType(data['emoji_category_id'], 'Number'); - } - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = _ApiClient["default"].convertToType(data['emojis'], [Object]); - } - } - return obj; - } - }]); - return AddEmojisData; -}(); -/** - * Specifies the unique ID of the emoji category that a list of new emojis belong to. - * @member {Number} emoji_category_id - */ -AddEmojisData.prototype['emoji_category_id'] = undefined; - -/** - * Specifies a list of one or more new emojis to register. - * @member {Array.} emojis - */ -AddEmojisData.prototype['emojis'] = undefined; -var _default = AddEmojisData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddEmojisResponse.js b/dist/model/AddEmojisResponse.js deleted file mode 100644 index 972e938..0000000 --- a/dist/model/AddEmojisResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner = _interopRequireDefault(require("./ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddEmojisResponse model module. - * @module model/AddEmojisResponse - * @version 0.0.16 - */ -var AddEmojisResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddEmojisResponse. - * @alias module:model/AddEmojisResponse - */ - function AddEmojisResponse() { - _classCallCheck(this, AddEmojisResponse); - AddEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddEmojisResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojisResponse} obj Optional instance to populate. - * @return {module:model/AddEmojisResponse} The populated AddEmojisResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojisResponse(); - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = _ApiClient["default"].convertToType(data['emojis'], [_ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner["default"]]); - } - } - return obj; - } - }]); - return AddEmojisResponse; -}(); -/** - * @member {Array.} emojis - */ -AddEmojisResponse.prototype['emojis'] = undefined; -var _default = AddEmojisResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddExtraDataToAMessageRequest.js b/dist/model/AddExtraDataToAMessageRequest.js new file mode 100644 index 0000000..b8e4ba9 --- /dev/null +++ b/dist/model/AddExtraDataToAMessageRequest.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The AddExtraDataToAMessageRequest model module. + * @module model/AddExtraDataToAMessageRequest + * @version 2.0.0 + */ +var AddExtraDataToAMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new AddExtraDataToAMessageRequest. + * @alias module:model/AddExtraDataToAMessageRequest + * @param sortedMetaarray {Array.} + */ + function AddExtraDataToAMessageRequest(sortedMetaarray) { + _classCallCheck(this, AddExtraDataToAMessageRequest); + AddExtraDataToAMessageRequest.initialize(this, sortedMetaarray); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(AddExtraDataToAMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, sortedMetaarray) { + obj['sorted_metaarray'] = sortedMetaarray; + } + + /** + * Constructs a AddExtraDataToAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddExtraDataToAMessageRequest} obj Optional instance to populate. + * @return {module:model/AddExtraDataToAMessageRequest} The populated AddExtraDataToAMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddExtraDataToAMessageRequest(); + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} sorted_metaarray + */ +AddExtraDataToAMessageRequest.prototype['sorted_metaarray'] = undefined; +var _default = exports["default"] = AddExtraDataToAMessageRequest; \ No newline at end of file diff --git a/dist/model/AddExtraDataToAMessageResponse.js b/dist/model/AddExtraDataToAMessageResponse.js new file mode 100644 index 0000000..f9161ac --- /dev/null +++ b/dist/model/AddExtraDataToAMessageResponse.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The AddExtraDataToAMessageResponse model module. + * @module model/AddExtraDataToAMessageResponse + * @version 2.0.0 + */ +var AddExtraDataToAMessageResponse = /*#__PURE__*/function () { + /** + * Constructs a new AddExtraDataToAMessageResponse. + * @alias module:model/AddExtraDataToAMessageResponse + */ + function AddExtraDataToAMessageResponse() { + _classCallCheck(this, AddExtraDataToAMessageResponse); + AddExtraDataToAMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(AddExtraDataToAMessageResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a AddExtraDataToAMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddExtraDataToAMessageResponse} obj Optional instance to populate. + * @return {module:model/AddExtraDataToAMessageResponse} The populated AddExtraDataToAMessageResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new AddExtraDataToAMessageResponse(); + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} sorted_metaarray + */ +AddExtraDataToAMessageResponse.prototype['sorted_metaarray'] = undefined; +var _default = exports["default"] = AddExtraDataToAMessageResponse; \ No newline at end of file diff --git a/dist/model/AddExtraDataToMessageData.js b/dist/model/AddExtraDataToMessageData.js deleted file mode 100644 index 63f04c8..0000000 --- a/dist/model/AddExtraDataToMessageData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddExtraDataToMessageData model module. - * @module model/AddExtraDataToMessageData - * @version 0.0.16 - */ -var AddExtraDataToMessageData = /*#__PURE__*/function () { - /** - * Constructs a new AddExtraDataToMessageData. - * @alias module:model/AddExtraDataToMessageData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to add key-values items for additional information. - * @param sortedMetaarray {String} Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - */ - function AddExtraDataToMessageData(channelType, channelUrl, messageId, sortedMetaarray) { - _classCallCheck(this, AddExtraDataToMessageData); - AddExtraDataToMessageData.initialize(this, channelType, channelUrl, messageId, sortedMetaarray); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddExtraDataToMessageData, null, [{ - key: "initialize", - value: function initialize(obj, channelType, channelUrl, messageId, sortedMetaarray) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['sorted_metaarray'] = sortedMetaarray; - } - - /** - * Constructs a AddExtraDataToMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddExtraDataToMessageData} obj Optional instance to populate. - * @return {module:model/AddExtraDataToMessageData} The populated AddExtraDataToMessageData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddExtraDataToMessageData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], 'String'); - } - } - return obj; - } - }]); - return AddExtraDataToMessageData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -AddExtraDataToMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -AddExtraDataToMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to add key-values items for additional information. - * @member {Number} message_id - */ -AddExtraDataToMessageData.prototype['message_id'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -AddExtraDataToMessageData.prototype['sorted_metaarray'] = undefined; -var _default = AddExtraDataToMessageData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddExtraDataToMessageResponse.js b/dist/model/AddExtraDataToMessageResponse.js deleted file mode 100644 index 072234e..0000000 --- a/dist/model/AddExtraDataToMessageResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListMessagesResponseMessagesInnerSortedMetaarrayInner = _interopRequireDefault(require("./ListMessagesResponseMessagesInnerSortedMetaarrayInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddExtraDataToMessageResponse model module. - * @module model/AddExtraDataToMessageResponse - * @version 0.0.16 - */ -var AddExtraDataToMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddExtraDataToMessageResponse. - * @alias module:model/AddExtraDataToMessageResponse - */ - function AddExtraDataToMessageResponse() { - _classCallCheck(this, AddExtraDataToMessageResponse); - AddExtraDataToMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddExtraDataToMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddExtraDataToMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddExtraDataToMessageResponse} obj Optional instance to populate. - * @return {module:model/AddExtraDataToMessageResponse} The populated AddExtraDataToMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddExtraDataToMessageResponse(); - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_ListMessagesResponseMessagesInnerSortedMetaarrayInner["default"]]); - } - } - return obj; - } - }]); - return AddExtraDataToMessageResponse; -}(); -/** - * @member {Array.} sorted_metaarray - */ -AddExtraDataToMessageResponse.prototype['sorted_metaarray'] = undefined; -var _default = AddExtraDataToMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddFcmPushConfigurationData.js b/dist/model/AddFcmPushConfigurationData.js deleted file mode 100644 index a42b2f5..0000000 --- a/dist/model/AddFcmPushConfigurationData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddFcmPushConfigurationData model module. - * @module model/AddFcmPushConfigurationData - * @version 0.0.16 - */ -var AddFcmPushConfigurationData = /*#__PURE__*/function () { - /** - * Constructs a new AddFcmPushConfigurationData. - * @alias module:model/AddFcmPushConfigurationData - * @param apiKey {String} Specifies the FCM server key to register. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - function AddFcmPushConfigurationData(apiKey, pushSound) { - _classCallCheck(this, AddFcmPushConfigurationData); - AddFcmPushConfigurationData.initialize(this, apiKey, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddFcmPushConfigurationData, null, [{ - key: "initialize", - value: function initialize(obj, apiKey, pushSound) { - obj['api_key'] = apiKey; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a AddFcmPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationData} The populated AddFcmPushConfigurationData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationData(); - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return AddFcmPushConfigurationData; -}(); -/** - * Specifies the FCM server key to register. - * @member {String} api_key - */ -AddFcmPushConfigurationData.prototype['api_key'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -AddFcmPushConfigurationData.prototype['push_sound'] = undefined; -var _default = AddFcmPushConfigurationData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddFcmPushConfigurationResponse.js b/dist/model/AddFcmPushConfigurationResponse.js deleted file mode 100644 index 3ef4caf..0000000 --- a/dist/model/AddFcmPushConfigurationResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddFcmPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./AddFcmPushConfigurationResponsePushConfigurationsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddFcmPushConfigurationResponse model module. - * @module model/AddFcmPushConfigurationResponse - * @version 0.0.16 - */ -var AddFcmPushConfigurationResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddFcmPushConfigurationResponse. - * @alias module:model/AddFcmPushConfigurationResponse - */ - function AddFcmPushConfigurationResponse() { - _classCallCheck(this, AddFcmPushConfigurationResponse); - AddFcmPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddFcmPushConfigurationResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddFcmPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationResponse} The populated AddFcmPushConfigurationResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], [_AddFcmPushConfigurationResponsePushConfigurationsInner["default"]]); - } - } - return obj; - } - }]); - return AddFcmPushConfigurationResponse; -}(); -/** - * @member {Array.} push_configurations - */ -AddFcmPushConfigurationResponse.prototype['push_configurations'] = undefined; -var _default = AddFcmPushConfigurationResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js b/dist/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index 6d8836a..0000000 --- a/dist/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddFcmPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddFcmPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -var AddFcmPushConfigurationResponsePushConfigurationsInner = /*#__PURE__*/function () { - /** - * Constructs a new AddFcmPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddFcmPushConfigurationResponsePushConfigurationsInner - */ - function AddFcmPushConfigurationResponsePushConfigurationsInner() { - _classCallCheck(this, AddFcmPushConfigurationResponsePushConfigurationsInner); - AddFcmPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddFcmPushConfigurationResponsePushConfigurationsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddFcmPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationResponsePushConfigurationsInner} The populated AddFcmPushConfigurationResponsePushConfigurationsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationResponsePushConfigurationsInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = _ApiClient["default"].convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return AddFcmPushConfigurationResponsePushConfigurationsInner; -}(); -/** - * @member {String} id - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {String} api_key - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['api_key'] = undefined; - -/** - * @member {String} push_sound - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; -var _default = AddFcmPushConfigurationResponsePushConfigurationsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddHmsPushConfigurationData.js b/dist/model/AddHmsPushConfigurationData.js deleted file mode 100644 index 9ca8473..0000000 --- a/dist/model/AddHmsPushConfigurationData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddHmsPushConfigurationData model module. - * @module model/AddHmsPushConfigurationData - * @version 0.0.16 - */ -var AddHmsPushConfigurationData = /*#__PURE__*/function () { - /** - * Constructs a new AddHmsPushConfigurationData. - * @alias module:model/AddHmsPushConfigurationData - * @param huaweiAppId {String} Specifies the unique ID of application registered to the HMS server. - * @param huaweiAppSecret {String} Specifies the secret key allocated to the application. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - function AddHmsPushConfigurationData(huaweiAppId, huaweiAppSecret, pushSound) { - _classCallCheck(this, AddHmsPushConfigurationData); - AddHmsPushConfigurationData.initialize(this, huaweiAppId, huaweiAppSecret, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddHmsPushConfigurationData, null, [{ - key: "initialize", - value: function initialize(obj, huaweiAppId, huaweiAppSecret, pushSound) { - obj['huawei_app_id'] = huaweiAppId; - obj['huawei_app_secret'] = huaweiAppSecret; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a AddHmsPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationData} The populated AddHmsPushConfigurationData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationData(); - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = _ApiClient["default"].convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = _ApiClient["default"].convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return AddHmsPushConfigurationData; -}(); -/** - * Specifies the unique ID of application registered to the HMS server. - * @member {String} huawei_app_id - */ -AddHmsPushConfigurationData.prototype['huawei_app_id'] = undefined; - -/** - * Specifies the secret key allocated to the application. - * @member {String} huawei_app_secret - */ -AddHmsPushConfigurationData.prototype['huawei_app_secret'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -AddHmsPushConfigurationData.prototype['push_sound'] = undefined; -var _default = AddHmsPushConfigurationData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddHmsPushConfigurationResponse.js b/dist/model/AddHmsPushConfigurationResponse.js deleted file mode 100644 index 0bb3c90..0000000 --- a/dist/model/AddHmsPushConfigurationResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _AddHmsPushConfigurationResponsePushConfigurationsInner = _interopRequireDefault(require("./AddHmsPushConfigurationResponsePushConfigurationsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddHmsPushConfigurationResponse model module. - * @module model/AddHmsPushConfigurationResponse - * @version 0.0.16 - */ -var AddHmsPushConfigurationResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddHmsPushConfigurationResponse. - * @alias module:model/AddHmsPushConfigurationResponse - */ - function AddHmsPushConfigurationResponse() { - _classCallCheck(this, AddHmsPushConfigurationResponse); - AddHmsPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddHmsPushConfigurationResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddHmsPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationResponse} The populated AddHmsPushConfigurationResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], [_AddHmsPushConfigurationResponsePushConfigurationsInner["default"]]); - } - } - return obj; - } - }]); - return AddHmsPushConfigurationResponse; -}(); -/** - * @member {Array.} push_configurations - */ -AddHmsPushConfigurationResponse.prototype['push_configurations'] = undefined; -var _default = AddHmsPushConfigurationResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js b/dist/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index ff22c0b..0000000 --- a/dist/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddHmsPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddHmsPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -var AddHmsPushConfigurationResponsePushConfigurationsInner = /*#__PURE__*/function () { - /** - * Constructs a new AddHmsPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddHmsPushConfigurationResponsePushConfigurationsInner - */ - function AddHmsPushConfigurationResponsePushConfigurationsInner() { - _classCallCheck(this, AddHmsPushConfigurationResponsePushConfigurationsInner); - AddHmsPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddHmsPushConfigurationResponsePushConfigurationsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddHmsPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationResponsePushConfigurationsInner} The populated AddHmsPushConfigurationResponsePushConfigurationsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationResponsePushConfigurationsInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = _ApiClient["default"].convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = _ApiClient["default"].convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = _ApiClient["default"].convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return AddHmsPushConfigurationResponsePushConfigurationsInner; -}(); -/** - * @member {String} id - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {String} huawei_app_id - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['huawei_app_id'] = undefined; - -/** - * @member {String} huawei_app_secret - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['huawei_app_secret'] = undefined; - -/** - * @member {String} push_sound - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; -var _default = AddHmsPushConfigurationResponsePushConfigurationsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddIpToWhitelistData.js b/dist/model/AddIpToWhitelistData.js deleted file mode 100644 index e231023..0000000 --- a/dist/model/AddIpToWhitelistData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddIpToWhitelistData model module. - * @module model/AddIpToWhitelistData - * @version 0.0.16 - */ -var AddIpToWhitelistData = /*#__PURE__*/function () { - /** - * Constructs a new AddIpToWhitelistData. - * @alias module:model/AddIpToWhitelistData - * @param ipWhitelistAddresses {Array.} Specifies an array of one or more IP ranges and addresses to add to a whitelist. - */ - function AddIpToWhitelistData(ipWhitelistAddresses) { - _classCallCheck(this, AddIpToWhitelistData); - AddIpToWhitelistData.initialize(this, ipWhitelistAddresses); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddIpToWhitelistData, null, [{ - key: "initialize", - value: function initialize(obj, ipWhitelistAddresses) { - obj['ip_whitelist_addresses'] = ipWhitelistAddresses; - } - - /** - * Constructs a AddIpToWhitelistData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddIpToWhitelistData} obj Optional instance to populate. - * @return {module:model/AddIpToWhitelistData} The populated AddIpToWhitelistData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddIpToWhitelistData(); - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = _ApiClient["default"].convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - }]); - return AddIpToWhitelistData; -}(); -/** - * Specifies an array of one or more IP ranges and addresses to add to a whitelist. - * @member {Array.} ip_whitelist_addresses - */ -AddIpToWhitelistData.prototype['ip_whitelist_addresses'] = undefined; -var _default = AddIpToWhitelistData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddIpToWhitelistResponse.js b/dist/model/AddIpToWhitelistResponse.js deleted file mode 100644 index 18f2e1c..0000000 --- a/dist/model/AddIpToWhitelistResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddIpToWhitelistResponse model module. - * @module model/AddIpToWhitelistResponse - * @version 0.0.16 - */ -var AddIpToWhitelistResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddIpToWhitelistResponse. - * @alias module:model/AddIpToWhitelistResponse - */ - function AddIpToWhitelistResponse() { - _classCallCheck(this, AddIpToWhitelistResponse); - AddIpToWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddIpToWhitelistResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddIpToWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddIpToWhitelistResponse} obj Optional instance to populate. - * @return {module:model/AddIpToWhitelistResponse} The populated AddIpToWhitelistResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddIpToWhitelistResponse(); - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = _ApiClient["default"].convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - }]); - return AddIpToWhitelistResponse; -}(); -/** - * @member {Array.} ip_whitelist_addresses - */ -AddIpToWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; -var _default = AddIpToWhitelistResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddReactionToAMessageData.js b/dist/model/AddReactionToAMessageData.js deleted file mode 100644 index 0ef10b1..0000000 --- a/dist/model/AddReactionToAMessageData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddReactionToAMessageData model module. - * @module model/AddReactionToAMessageData - * @version 0.0.16 - */ -var AddReactionToAMessageData = /*#__PURE__*/function () { - /** - * Constructs a new AddReactionToAMessageData. - * @alias module:model/AddReactionToAMessageData - * @param channelType {String} Specifies the type of the channel. Currently, a value of group_channels is only available for the parameter. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to add a reaction to. - * @param userId {String} Specifies the ID of the user who reacts to the message. - * @param reaction {String} Specifies the unique key of the reaction to be added to the message. The length is limited to 192 charaters. - */ - function AddReactionToAMessageData(channelType, channelUrl, messageId, userId, reaction) { - _classCallCheck(this, AddReactionToAMessageData); - AddReactionToAMessageData.initialize(this, channelType, channelUrl, messageId, userId, reaction); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddReactionToAMessageData, null, [{ - key: "initialize", - value: function initialize(obj, channelType, channelUrl, messageId, userId, reaction) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['user_id'] = userId; - obj['reaction'] = reaction; - } - - /** - * Constructs a AddReactionToAMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddReactionToAMessageData} obj Optional instance to populate. - * @return {module:model/AddReactionToAMessageData} The populated AddReactionToAMessageData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddReactionToAMessageData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = _ApiClient["default"].convertToType(data['reaction'], 'String'); - } - } - return obj; - } - }]); - return AddReactionToAMessageData; -}(); -/** - * Specifies the type of the channel. Currently, a value of group_channels is only available for the parameter. - * @member {String} channel_type - */ -AddReactionToAMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -AddReactionToAMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to add a reaction to. - * @member {Number} message_id - */ -AddReactionToAMessageData.prototype['message_id'] = undefined; - -/** - * Specifies the ID of the user who reacts to the message. - * @member {String} user_id - */ -AddReactionToAMessageData.prototype['user_id'] = undefined; - -/** - * Specifies the unique key of the reaction to be added to the message. The length is limited to 192 charaters. - * @member {String} reaction - */ -AddReactionToAMessageData.prototype['reaction'] = undefined; -var _default = AddReactionToAMessageData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddReactionToAMessageResponse.js b/dist/model/AddReactionToAMessageResponse.js deleted file mode 100644 index 2ce1947..0000000 --- a/dist/model/AddReactionToAMessageResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddReactionToAMessageResponse model module. - * @module model/AddReactionToAMessageResponse - * @version 0.0.16 - */ -var AddReactionToAMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddReactionToAMessageResponse. - * @alias module:model/AddReactionToAMessageResponse - */ - function AddReactionToAMessageResponse() { - _classCallCheck(this, AddReactionToAMessageResponse); - AddReactionToAMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddReactionToAMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddReactionToAMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddReactionToAMessageResponse} obj Optional instance to populate. - * @return {module:model/AddReactionToAMessageResponse} The populated AddReactionToAMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddReactionToAMessageResponse(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('operation')) { - obj['operation'] = _ApiClient["default"].convertToType(data['operation'], 'String'); - } - if (data.hasOwnProperty('success')) { - obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean'); - } - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = _ApiClient["default"].convertToType(data['reaction'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('msg_id')) { - obj['msg_id'] = _ApiClient["default"].convertToType(data['msg_id'], 'Number'); - } - } - return obj; - } - }]); - return AddReactionToAMessageResponse; -}(); -/** - * @member {String} user_id - */ -AddReactionToAMessageResponse.prototype['user_id'] = undefined; - -/** - * @member {String} operation - */ -AddReactionToAMessageResponse.prototype['operation'] = undefined; - -/** - * @member {Boolean} success - */ -AddReactionToAMessageResponse.prototype['success'] = undefined; - -/** - * @member {String} reaction - */ -AddReactionToAMessageResponse.prototype['reaction'] = undefined; - -/** - * @member {Number} updated_at - */ -AddReactionToAMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {Number} msg_id - */ -AddReactionToAMessageResponse.prototype['msg_id'] = undefined; -var _default = AddReactionToAMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddRegistrationOrDeviceTokenData.js b/dist/model/AddRegistrationOrDeviceTokenData.js deleted file mode 100644 index 3f92315..0000000 --- a/dist/model/AddRegistrationOrDeviceTokenData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddRegistrationOrDeviceTokenData model module. - * @module model/AddRegistrationOrDeviceTokenData - * @version 0.0.16 - */ -var AddRegistrationOrDeviceTokenData = /*#__PURE__*/function () { - /** - * Constructs a new AddRegistrationOrDeviceTokenData. - * @alias module:model/AddRegistrationOrDeviceTokenData - * @param gcmRegToken {String} Specifies a registration token for Firebase Cloud Messaging (formerly [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)). - * @param huaweiDeviceToken {String} Specifies a device token for Huawei Mobile Services. - * @param apnsDeviceToken {String} Specifies a device token for Apple Push Notification Service. - */ - function AddRegistrationOrDeviceTokenData(gcmRegToken, huaweiDeviceToken, apnsDeviceToken) { - _classCallCheck(this, AddRegistrationOrDeviceTokenData); - AddRegistrationOrDeviceTokenData.initialize(this, gcmRegToken, huaweiDeviceToken, apnsDeviceToken); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddRegistrationOrDeviceTokenData, null, [{ - key: "initialize", - value: function initialize(obj, gcmRegToken, huaweiDeviceToken, apnsDeviceToken) { - obj['gcm_reg_token'] = gcmRegToken; - obj['huawei_device_token'] = huaweiDeviceToken; - obj['apns_device_token'] = apnsDeviceToken; - } - - /** - * Constructs a AddRegistrationOrDeviceTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRegistrationOrDeviceTokenData} obj Optional instance to populate. - * @return {module:model/AddRegistrationOrDeviceTokenData} The populated AddRegistrationOrDeviceTokenData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRegistrationOrDeviceTokenData(); - if (data.hasOwnProperty('gcm_reg_token')) { - obj['gcm_reg_token'] = _ApiClient["default"].convertToType(data['gcm_reg_token'], 'String'); - } - if (data.hasOwnProperty('huawei_device_token')) { - obj['huawei_device_token'] = _ApiClient["default"].convertToType(data['huawei_device_token'], 'String'); - } - if (data.hasOwnProperty('apns_device_token')) { - obj['apns_device_token'] = _ApiClient["default"].convertToType(data['apns_device_token'], 'String'); - } - } - return obj; - } - }]); - return AddRegistrationOrDeviceTokenData; -}(); -/** - * Specifies a registration token for Firebase Cloud Messaging (formerly [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)). - * @member {String} gcm_reg_token - */ -AddRegistrationOrDeviceTokenData.prototype['gcm_reg_token'] = undefined; - -/** - * Specifies a device token for Huawei Mobile Services. - * @member {String} huawei_device_token - */ -AddRegistrationOrDeviceTokenData.prototype['huawei_device_token'] = undefined; - -/** - * Specifies a device token for Apple Push Notification Service. - * @member {String} apns_device_token - */ -AddRegistrationOrDeviceTokenData.prototype['apns_device_token'] = undefined; -var _default = AddRegistrationOrDeviceTokenData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/AddRegistrationOrDeviceTokenResponse.js b/dist/model/AddRegistrationOrDeviceTokenResponse.js deleted file mode 100644 index 1585e10..0000000 --- a/dist/model/AddRegistrationOrDeviceTokenResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The AddRegistrationOrDeviceTokenResponse model module. - * @module model/AddRegistrationOrDeviceTokenResponse - * @version 0.0.16 - */ -var AddRegistrationOrDeviceTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new AddRegistrationOrDeviceTokenResponse. - * @alias module:model/AddRegistrationOrDeviceTokenResponse - */ - function AddRegistrationOrDeviceTokenResponse() { - _classCallCheck(this, AddRegistrationOrDeviceTokenResponse); - AddRegistrationOrDeviceTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(AddRegistrationOrDeviceTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a AddRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRegistrationOrDeviceTokenResponse} obj Optional instance to populate. - * @return {module:model/AddRegistrationOrDeviceTokenResponse} The populated AddRegistrationOrDeviceTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRegistrationOrDeviceTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - } - return obj; - } - }]); - return AddRegistrationOrDeviceTokenResponse; -}(); -/** - * @member {String} token - */ -AddRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; - -/** - * @member {String} type - */ -AddRegistrationOrDeviceTokenResponse.prototype['type'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -AddRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; -var _default = AddRegistrationOrDeviceTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BanFromChannelsWithCustomChannelTypesData.js b/dist/model/BanFromChannelsWithCustomChannelTypesData.js deleted file mode 100644 index 906f6a8..0000000 --- a/dist/model/BanFromChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The BanFromChannelsWithCustomChannelTypesData model module. - * @module model/BanFromChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -var BanFromChannelsWithCustomChannelTypesData = /*#__PURE__*/function () { - /** - * Constructs a new BanFromChannelsWithCustomChannelTypesData. - * @alias module:model/BanFromChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to ban the user from channels with the channel types. The user is permanently banned unless unbanned (10 years, technically). - */ - function BanFromChannelsWithCustomChannelTypesData(channelCustomTypes) { - _classCallCheck(this, BanFromChannelsWithCustomChannelTypesData); - BanFromChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(BanFromChannelsWithCustomChannelTypesData, null, [{ - key: "initialize", - value: function initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a BanFromChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/BanFromChannelsWithCustomChannelTypesData} The populated BanFromChannelsWithCustomChannelTypesData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BanFromChannelsWithCustomChannelTypesData(); - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = _ApiClient["default"].convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - }]); - return BanFromChannelsWithCustomChannelTypesData; -}(); -/** - * Specifies an array of one or more custom channel types, in order to ban the user from channels with the channel types. The user is permanently banned unless unbanned (10 years, technically). - * @member {Array.} channel_custom_types - */ -BanFromChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; -var _default = BanFromChannelsWithCustomChannelTypesData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BanUsersInChannelsWithCustomChannelTypeData.js b/dist/model/BanUsersInChannelsWithCustomChannelTypeData.js deleted file mode 100644 index e099d41..0000000 --- a/dist/model/BanUsersInChannelsWithCustomChannelTypeData.js +++ /dev/null @@ -1,74 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _BanUsersInChannelsWithCustomChannelTypeDataBannedListInner = _interopRequireDefault(require("./BanUsersInChannelsWithCustomChannelTypeDataBannedListInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The BanUsersInChannelsWithCustomChannelTypeData model module. - * @module model/BanUsersInChannelsWithCustomChannelTypeData - * @version 0.0.16 - */ -var BanUsersInChannelsWithCustomChannelTypeData = /*#__PURE__*/function () { - /** - * Constructs a new BanUsersInChannelsWithCustomChannelTypeData. - * @alias module:model/BanUsersInChannelsWithCustomChannelTypeData - * @param bannedList {Array.} - */ - function BanUsersInChannelsWithCustomChannelTypeData(bannedList) { - _classCallCheck(this, BanUsersInChannelsWithCustomChannelTypeData); - BanUsersInChannelsWithCustomChannelTypeData.initialize(this, bannedList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(BanUsersInChannelsWithCustomChannelTypeData, null, [{ - key: "initialize", - value: function initialize(obj, bannedList) { - obj['banned_list'] = bannedList; - } - - /** - * Constructs a BanUsersInChannelsWithCustomChannelTypeData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} obj Optional instance to populate. - * @return {module:model/BanUsersInChannelsWithCustomChannelTypeData} The populated BanUsersInChannelsWithCustomChannelTypeData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BanUsersInChannelsWithCustomChannelTypeData(); - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = _ApiClient["default"].convertToType(data['banned_list'], [_BanUsersInChannelsWithCustomChannelTypeDataBannedListInner["default"]]); - } - if (data.hasOwnProperty('on_demand_upsert')) { - obj['on_demand_upsert'] = _ApiClient["default"].convertToType(data['on_demand_upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return BanUsersInChannelsWithCustomChannelTypeData; -}(); -/** - * @member {Array.} banned_list - */ -BanUsersInChannelsWithCustomChannelTypeData.prototype['banned_list'] = undefined; - -/** - * @member {Boolean} on_demand_upsert - */ -BanUsersInChannelsWithCustomChannelTypeData.prototype['on_demand_upsert'] = undefined; -var _default = BanUsersInChannelsWithCustomChannelTypeData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js b/dist/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js deleted file mode 100644 index 38251d2..0000000 --- a/dist/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js +++ /dev/null @@ -1,81 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The BanUsersInChannelsWithCustomChannelTypeDataBannedListInner model module. - * @module model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - * @version 0.0.16 - */ -var BanUsersInChannelsWithCustomChannelTypeDataBannedListInner = /*#__PURE__*/function () { - /** - * Constructs a new BanUsersInChannelsWithCustomChannelTypeDataBannedListInner. - * @alias module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - * @param userId {String} - */ - function BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(userId) { - _classCallCheck(this, BanUsersInChannelsWithCustomChannelTypeDataBannedListInner); - BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(BanUsersInChannelsWithCustomChannelTypeDataBannedListInner, null, [{ - key: "initialize", - value: function initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a BanUsersInChannelsWithCustomChannelTypeDataBannedListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner} obj Optional instance to populate. - * @return {module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner} The populated BanUsersInChannelsWithCustomChannelTypeDataBannedListInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return BanUsersInChannelsWithCustomChannelTypeDataBannedListInner; -}(); -/** - * @member {String} user_id - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['user_id'] = undefined; - -/** - * @member {Number} seconds - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['seconds'] = undefined; - -/** - * @member {String} description - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['description'] = undefined; -var _default = BanUsersInChannelsWithCustomChannelTypeDataBannedListInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/Blob.js b/dist/model/Blob.js deleted file mode 100644 index fe94aa3..0000000 --- a/dist/model/Blob.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The Blob model module. - * @module model/Blob - * @version 0.0.16 - */ -var Blob = /*#__PURE__*/function () { - /** - * Constructs a new Blob. - * @alias module:model/Blob - */ - function Blob() { - _classCallCheck(this, Blob); - Blob.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(Blob, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Blob from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Blob} obj Optional instance to populate. - * @return {module:model/Blob} The populated Blob instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Blob(); - if (data.hasOwnProperty('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - } - return obj; - } - }]); - return Blob; -}(); -/** - * @member {Number} size - */ -Blob.prototype['size'] = undefined; - -/** - * @member {String} type - */ -Blob.prototype['type'] = undefined; -var _default = Blob; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BlockAUserRequest.js b/dist/model/BlockAUserRequest.js new file mode 100644 index 0000000..13d5c16 --- /dev/null +++ b/dist/model/BlockAUserRequest.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The BlockAUserRequest model module. + * @module model/BlockAUserRequest + * @version 2.0.0 + */ +var BlockAUserRequest = /*#__PURE__*/function () { + /** + * Constructs a new BlockAUserRequest. + * @alias module:model/BlockAUserRequest + */ + function BlockAUserRequest() { + _classCallCheck(this, BlockAUserRequest); + BlockAUserRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(BlockAUserRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a BlockAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BlockAUserRequest} obj Optional instance to populate. + * @return {module:model/BlockAUserRequest} The populated BlockAUserRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BlockAUserRequest(); + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'String'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} target_id + */ +BlockAUserRequest.prototype['target_id'] = undefined; + +/** + * Specifies an array of IDs of all the users to block. This property can be used interchangeably with the users[] property when blocking multiple users at once. + * @member {Array.} user_ids + */ +BlockAUserRequest.prototype['user_ids'] = undefined; +var _default = exports["default"] = BlockAUserRequest; \ No newline at end of file diff --git a/dist/model/BlockAUserResponse.js b/dist/model/BlockAUserResponse.js new file mode 100644 index 0000000..ceaf7f1 --- /dev/null +++ b/dist/model/BlockAUserResponse.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The BlockAUserResponse model module. + * @module model/BlockAUserResponse + * @version 2.0.0 + */ +var BlockAUserResponse = /*#__PURE__*/function () { + /** + * Constructs a new BlockAUserResponse. + * @alias module:model/BlockAUserResponse + */ + function BlockAUserResponse() { + _classCallCheck(this, BlockAUserResponse); + BlockAUserResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(BlockAUserResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a BlockAUserResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BlockAUserResponse} obj Optional instance to populate. + * @return {module:model/BlockAUserResponse} The populated BlockAUserResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new BlockAUserResponse(); + if (data.hasOwnProperty('users')) { + obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendbirdUser["default"]]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} users + */ +BlockAUserResponse.prototype['users'] = undefined; + +/** + * @member {String} next + */ +BlockAUserResponse.prototype['next'] = undefined; +var _default = exports["default"] = BlockAUserResponse; \ No newline at end of file diff --git a/dist/model/BlockUserData.js b/dist/model/BlockUserData.js deleted file mode 100644 index 581604b..0000000 --- a/dist/model/BlockUserData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The BlockUserData model module. - * @module model/BlockUserData - * @version 0.0.16 - */ -var BlockUserData = /*#__PURE__*/function () { - /** - * Constructs a new BlockUserData. - * @alias module:model/BlockUserData - * @param userId {String} Specifies the unique ID of the user to block. - * @param targetId {String} Specifies the ID of the user to be blocked. - * @param userIds {Array.} Specifies an array of the IDs of the users to be blocked at a time. (for bulk mode) - * @param users {Array.} Specifies an array of the IDs of the users to be blocked at a time. The user_ids above and this property can be used interchangeably. (for bulk mode) - */ - function BlockUserData(userId, targetId, userIds, users) { - _classCallCheck(this, BlockUserData); - BlockUserData.initialize(this, userId, targetId, userIds, users); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(BlockUserData, null, [{ - key: "initialize", - value: function initialize(obj, userId, targetId, userIds, users) { - obj['user_id'] = userId; - obj['target_id'] = targetId; - obj['user_ids'] = userIds; - obj['users'] = users; - } - - /** - * Constructs a BlockUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BlockUserData} obj Optional instance to populate. - * @return {module:model/BlockUserData} The populated BlockUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BlockUserData(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = _ApiClient["default"].convertToType(data['target_id'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], ['String']); - } - } - return obj; - } - }]); - return BlockUserData; -}(); -/** - * Specifies the unique ID of the user to block. - * @member {String} user_id - */ -BlockUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the user to be blocked. - * @member {String} target_id - */ -BlockUserData.prototype['target_id'] = undefined; - -/** - * Specifies an array of the IDs of the users to be blocked at a time. (for bulk mode) - * @member {Array.} user_ids - */ -BlockUserData.prototype['user_ids'] = undefined; - -/** - * Specifies an array of the IDs of the users to be blocked at a time. The user_ids above and this property can be used interchangeably. (for bulk mode) - * @member {Array.} users - */ -BlockUserData.prototype['users'] = undefined; -var _default = BlockUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/BlockUserResponse.js b/dist/model/BlockUserResponse.js deleted file mode 100644 index 1d2a90e..0000000 --- a/dist/model/BlockUserResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The BlockUserResponse model module. - * @module model/BlockUserResponse - * @version 0.0.16 - */ -var BlockUserResponse = /*#__PURE__*/function () { - /** - * Constructs a new BlockUserResponse. - * @alias module:model/BlockUserResponse - */ - function BlockUserResponse() { - _classCallCheck(this, BlockUserResponse); - BlockUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(BlockUserResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a BlockUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BlockUserResponse} obj Optional instance to populate. - * @return {module:model/BlockUserResponse} The populated BlockUserResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new BlockUserResponse(); - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], ['String']); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return BlockUserResponse; -}(); -/** - * @member {Array.} users - */ -BlockUserResponse.prototype['users'] = undefined; - -/** - * @member {String} next - */ -BlockUserResponse.prototype['next'] = undefined; -var _default = BlockUserResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CheckIfMemberResponse.js b/dist/model/CheckIfMemberResponse.js new file mode 100644 index 0000000..20c61eb --- /dev/null +++ b/dist/model/CheckIfMemberResponse.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CheckIfMemberResponse model module. + * @module model/CheckIfMemberResponse + * @version 2.0.0 + */ +var CheckIfMemberResponse = /*#__PURE__*/function () { + /** + * Constructs a new CheckIfMemberResponse. + * @alias module:model/CheckIfMemberResponse + */ + function CheckIfMemberResponse() { + _classCallCheck(this, CheckIfMemberResponse); + CheckIfMemberResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CheckIfMemberResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a CheckIfMemberResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CheckIfMemberResponse} obj Optional instance to populate. + * @return {module:model/CheckIfMemberResponse} The populated CheckIfMemberResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CheckIfMemberResponse(); + if (data.hasOwnProperty('is_member')) { + obj['is_member'] = _ApiClient["default"].convertToType(data['is_member'], 'Boolean'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} is_member + */ +CheckIfMemberResponse.prototype['is_member'] = undefined; + +/** + * @member {module:model/CheckIfMemberResponse.StateEnum} state + */ +CheckIfMemberResponse.prototype['state'] = undefined; + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +CheckIfMemberResponse['StateEnum'] = { + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined", + /** + * value: "none" + * @const + */ + "none": "none" +}; +var _default = exports["default"] = CheckIfMemberResponse; \ No newline at end of file diff --git a/dist/model/ChooseAPushNotificationContentTemplateRequest.js b/dist/model/ChooseAPushNotificationContentTemplateRequest.js new file mode 100644 index 0000000..a2434a5 --- /dev/null +++ b/dist/model/ChooseAPushNotificationContentTemplateRequest.js @@ -0,0 +1,96 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ChooseAPushNotificationContentTemplateRequest model module. + * @module model/ChooseAPushNotificationContentTemplateRequest + * @version 2.0.0 + */ +var ChooseAPushNotificationContentTemplateRequest = /*#__PURE__*/function () { + /** + * Constructs a new ChooseAPushNotificationContentTemplateRequest. + * @alias module:model/ChooseAPushNotificationContentTemplateRequest + * @param name {module:model/ChooseAPushNotificationContentTemplateRequest.NameEnum} Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) + */ + function ChooseAPushNotificationContentTemplateRequest(name) { + _classCallCheck(this, ChooseAPushNotificationContentTemplateRequest); + ChooseAPushNotificationContentTemplateRequest.initialize(this, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ChooseAPushNotificationContentTemplateRequest, null, [{ + key: "initialize", + value: function initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a ChooseAPushNotificationContentTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} obj Optional instance to populate. + * @return {module:model/ChooseAPushNotificationContentTemplateRequest} The populated ChooseAPushNotificationContentTemplateRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ChooseAPushNotificationContentTemplateRequest(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) + * @member {module:model/ChooseAPushNotificationContentTemplateRequest.NameEnum} name + */ +ChooseAPushNotificationContentTemplateRequest.prototype['name'] = undefined; + +/** + * Allowed values for the name property. + * @enum {String} + * @readonly + */ +ChooseAPushNotificationContentTemplateRequest['NameEnum'] = { + /** + * value: "default" + * @const + */ + "default": "default", + /** + * value: "alternative" + * @const + */ + "alternative": "alternative" +}; +var _default = exports["default"] = ChooseAPushNotificationContentTemplateRequest; \ No newline at end of file diff --git a/dist/model/ChooseAPushNotificationContentTemplateResponse.js b/dist/model/ChooseAPushNotificationContentTemplateResponse.js new file mode 100644 index 0000000..736d4a0 --- /dev/null +++ b/dist/model/ChooseAPushNotificationContentTemplateResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ChooseAPushNotificationContentTemplateResponse model module. + * @module model/ChooseAPushNotificationContentTemplateResponse + * @version 2.0.0 + */ +var ChooseAPushNotificationContentTemplateResponse = /*#__PURE__*/function () { + /** + * Constructs a new ChooseAPushNotificationContentTemplateResponse. + * @alias module:model/ChooseAPushNotificationContentTemplateResponse + */ + function ChooseAPushNotificationContentTemplateResponse() { + _classCallCheck(this, ChooseAPushNotificationContentTemplateResponse); + ChooseAPushNotificationContentTemplateResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ChooseAPushNotificationContentTemplateResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ChooseAPushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChooseAPushNotificationContentTemplateResponse} obj Optional instance to populate. + * @return {module:model/ChooseAPushNotificationContentTemplateResponse} The populated ChooseAPushNotificationContentTemplateResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ChooseAPushNotificationContentTemplateResponse(); + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} name + */ +ChooseAPushNotificationContentTemplateResponse.prototype['name'] = undefined; +var _default = exports["default"] = ChooseAPushNotificationContentTemplateResponse; \ No newline at end of file diff --git a/dist/model/ChoosePushNotificationContentTemplateResponse.js b/dist/model/ChoosePushNotificationContentTemplateResponse.js deleted file mode 100644 index a339183..0000000 --- a/dist/model/ChoosePushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ChoosePushNotificationContentTemplateResponse model module. - * @module model/ChoosePushNotificationContentTemplateResponse - * @version 0.0.16 - */ -var ChoosePushNotificationContentTemplateResponse = /*#__PURE__*/function () { - /** - * Constructs a new ChoosePushNotificationContentTemplateResponse. - * @alias module:model/ChoosePushNotificationContentTemplateResponse - */ - function ChoosePushNotificationContentTemplateResponse() { - _classCallCheck(this, ChoosePushNotificationContentTemplateResponse); - ChoosePushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ChoosePushNotificationContentTemplateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ChoosePushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChoosePushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/ChoosePushNotificationContentTemplateResponse} The populated ChoosePushNotificationContentTemplateResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ChoosePushNotificationContentTemplateResponse(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - } - return obj; - } - }]); - return ChoosePushNotificationContentTemplateResponse; -}(); -/** - * @member {String} name - */ -ChoosePushNotificationContentTemplateResponse.prototype['name'] = undefined; -var _default = ChoosePushNotificationContentTemplateResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ChooseWhichEventsToSubscribeToData.js b/dist/model/ChooseWhichEventsToSubscribeToData.js deleted file mode 100644 index a562904..0000000 --- a/dist/model/ChooseWhichEventsToSubscribeToData.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ChooseWhichEventsToSubscribeToData model module. - * @module model/ChooseWhichEventsToSubscribeToData - * @version 0.0.16 - */ -var ChooseWhichEventsToSubscribeToData = /*#__PURE__*/function () { - /** - * Constructs a new ChooseWhichEventsToSubscribeToData. - * @alias module:model/ChooseWhichEventsToSubscribeToData - * @param enabled {Boolean} Determines whether webhooks are turned on in your Sendbird application or not. (Default: false) - * @param url {String} Specifies the URL of your webhook server to receive payloads for events. - */ - function ChooseWhichEventsToSubscribeToData(enabled, url) { - _classCallCheck(this, ChooseWhichEventsToSubscribeToData); - ChooseWhichEventsToSubscribeToData.initialize(this, enabled, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ChooseWhichEventsToSubscribeToData, null, [{ - key: "initialize", - value: function initialize(obj, enabled, url) { - obj['enabled'] = enabled; - obj['url'] = url; - } - - /** - * Constructs a ChooseWhichEventsToSubscribeToData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToData} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToData} The populated ChooseWhichEventsToSubscribeToData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToData(); - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = _ApiClient["default"].convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = _ApiClient["default"].convertToType(data['enabled_events'], ['String']); - } - } - return obj; - } - }]); - return ChooseWhichEventsToSubscribeToData; -}(); -/** - * Determines whether webhooks are turned on in your Sendbird application or not. (Default: false) - * @member {Boolean} enabled - */ -ChooseWhichEventsToSubscribeToData.prototype['enabled'] = undefined; - -/** - * Specifies the URL of your webhook server to receive payloads for events. - * @member {String} url - */ -ChooseWhichEventsToSubscribeToData.prototype['url'] = undefined; - -/** - * Determines whether to include the information on the members of group channels in payloads. (Default: false) - * @member {Boolean} include_members - */ -ChooseWhichEventsToSubscribeToData.prototype['include_members'] = undefined; - -/** - * Specifies an array of one or more [events](#2-webhook-events) for your webhook server to subscribe to. If set to an asterisk () only, the server will subscribe to all supported events. If set to an empty array, the server will unsubscribe from all (which indicates turning off webhooks). - * @member {Array.} enabled_events - */ -ChooseWhichEventsToSubscribeToData.prototype['enabled_events'] = undefined; -var _default = ChooseWhichEventsToSubscribeToData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ChooseWhichEventsToSubscribeToResponse.js b/dist/model/ChooseWhichEventsToSubscribeToResponse.js deleted file mode 100644 index ac5d7d0..0000000 --- a/dist/model/ChooseWhichEventsToSubscribeToResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ChooseWhichEventsToSubscribeToResponseWebhook = _interopRequireDefault(require("./ChooseWhichEventsToSubscribeToResponseWebhook")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ChooseWhichEventsToSubscribeToResponse model module. - * @module model/ChooseWhichEventsToSubscribeToResponse - * @version 0.0.16 - */ -var ChooseWhichEventsToSubscribeToResponse = /*#__PURE__*/function () { - /** - * Constructs a new ChooseWhichEventsToSubscribeToResponse. - * @alias module:model/ChooseWhichEventsToSubscribeToResponse - */ - function ChooseWhichEventsToSubscribeToResponse() { - _classCallCheck(this, ChooseWhichEventsToSubscribeToResponse); - ChooseWhichEventsToSubscribeToResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ChooseWhichEventsToSubscribeToResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ChooseWhichEventsToSubscribeToResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToResponse} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToResponse} The populated ChooseWhichEventsToSubscribeToResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToResponse(); - if (data.hasOwnProperty('webhook')) { - obj['webhook'] = _ChooseWhichEventsToSubscribeToResponseWebhook["default"].constructFromObject(data['webhook']); - } - } - return obj; - } - }]); - return ChooseWhichEventsToSubscribeToResponse; -}(); -/** - * @member {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} webhook - */ -ChooseWhichEventsToSubscribeToResponse.prototype['webhook'] = undefined; -var _default = ChooseWhichEventsToSubscribeToResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ChooseWhichEventsToSubscribeToResponseWebhook.js b/dist/model/ChooseWhichEventsToSubscribeToResponseWebhook.js deleted file mode 100644 index 2065859..0000000 --- a/dist/model/ChooseWhichEventsToSubscribeToResponseWebhook.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ChooseWhichEventsToSubscribeToResponseWebhook model module. - * @module model/ChooseWhichEventsToSubscribeToResponseWebhook - * @version 0.0.16 - */ -var ChooseWhichEventsToSubscribeToResponseWebhook = /*#__PURE__*/function () { - /** - * Constructs a new ChooseWhichEventsToSubscribeToResponseWebhook. - * @alias module:model/ChooseWhichEventsToSubscribeToResponseWebhook - */ - function ChooseWhichEventsToSubscribeToResponseWebhook() { - _classCallCheck(this, ChooseWhichEventsToSubscribeToResponseWebhook); - ChooseWhichEventsToSubscribeToResponseWebhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ChooseWhichEventsToSubscribeToResponseWebhook, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ChooseWhichEventsToSubscribeToResponseWebhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} The populated ChooseWhichEventsToSubscribeToResponseWebhook instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToResponseWebhook(); - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = _ApiClient["default"].convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = _ApiClient["default"].convertToType(data['enabled_events'], ['String']); - } - if (data.hasOwnProperty('include_unread_count')) { - obj['include_unread_count'] = _ApiClient["default"].convertToType(data['include_unread_count'], 'Boolean'); - } - } - return obj; - } - }]); - return ChooseWhichEventsToSubscribeToResponseWebhook; -}(); -/** - * @member {Boolean} enabled - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['enabled'] = undefined; - -/** - * @member {String} url - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['url'] = undefined; - -/** - * @member {Boolean} include_members - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['include_members'] = undefined; - -/** - * @member {Array.} enabled_events - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['enabled_events'] = undefined; - -/** - * @member {Boolean} include_unread_count - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['include_unread_count'] = undefined; -var _default = ChooseWhichEventsToSubscribeToResponseWebhook; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ConfigureAutoEventData.js b/dist/model/ConfigureAutoEventData.js deleted file mode 100644 index 812fef8..0000000 --- a/dist/model/ConfigureAutoEventData.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ConfigureAutoEventDataAutoEventMessage = _interopRequireDefault(require("./ConfigureAutoEventDataAutoEventMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ConfigureAutoEventData model module. - * @module model/ConfigureAutoEventData - * @version 0.0.16 - */ -var ConfigureAutoEventData = /*#__PURE__*/function () { - /** - * Constructs a new ConfigureAutoEventData. - * @alias module:model/ConfigureAutoEventData - */ - function ConfigureAutoEventData() { - _classCallCheck(this, ConfigureAutoEventData); - ConfigureAutoEventData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ConfigureAutoEventData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ConfigureAutoEventData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureAutoEventData} obj Optional instance to populate. - * @return {module:model/ConfigureAutoEventData} The populated ConfigureAutoEventData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigureAutoEventData(); - if (data.hasOwnProperty('auto_event_message')) { - obj['auto_event_message'] = _ConfigureAutoEventDataAutoEventMessage["default"].constructFromObject(data['auto_event_message']); - } - } - return obj; - } - }]); - return ConfigureAutoEventData; -}(); -/** - * @member {module:model/ConfigureAutoEventDataAutoEventMessage} auto_event_message - */ -ConfigureAutoEventData.prototype['auto_event_message'] = undefined; -var _default = ConfigureAutoEventData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ConfigureAutoEventDataAutoEventMessage.js b/dist/model/ConfigureAutoEventDataAutoEventMessage.js deleted file mode 100644 index 3738f3a..0000000 --- a/dist/model/ConfigureAutoEventDataAutoEventMessage.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ConfigureAutoEventDataAutoEventMessage model module. - * @module model/ConfigureAutoEventDataAutoEventMessage - * @version 0.0.16 - */ -var ConfigureAutoEventDataAutoEventMessage = /*#__PURE__*/function () { - /** - * Constructs a new ConfigureAutoEventDataAutoEventMessage. - * @alias module:model/ConfigureAutoEventDataAutoEventMessage - */ - function ConfigureAutoEventDataAutoEventMessage() { - _classCallCheck(this, ConfigureAutoEventDataAutoEventMessage); - ConfigureAutoEventDataAutoEventMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ConfigureAutoEventDataAutoEventMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ConfigureAutoEventDataAutoEventMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureAutoEventDataAutoEventMessage} obj Optional instance to populate. - * @return {module:model/ConfigureAutoEventDataAutoEventMessage} The populated ConfigureAutoEventDataAutoEventMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigureAutoEventDataAutoEventMessage(); - if (data.hasOwnProperty('user_leave')) { - obj['user_leave'] = _ApiClient["default"].convertToType(data['user_leave'], Object); - } - if (data.hasOwnProperty('user_join')) { - obj['user_join'] = _ApiClient["default"].convertToType(data['user_join'], Object); - } - if (data.hasOwnProperty('channel_create')) { - obj['channel_create'] = _ApiClient["default"].convertToType(data['channel_create'], Object); - } - if (data.hasOwnProperty('channel_change')) { - obj['channel_change'] = _ApiClient["default"].convertToType(data['channel_change'], Object); - } - } - return obj; - } - }]); - return ConfigureAutoEventDataAutoEventMessage; -}(); -/** - * @member {Object} user_leave - */ -ConfigureAutoEventDataAutoEventMessage.prototype['user_leave'] = undefined; - -/** - * @member {Object} user_join - */ -ConfigureAutoEventDataAutoEventMessage.prototype['user_join'] = undefined; - -/** - * @member {Object} channel_create - */ -ConfigureAutoEventDataAutoEventMessage.prototype['channel_create'] = undefined; - -/** - * @member {Object} channel_change - */ -ConfigureAutoEventDataAutoEventMessage.prototype['channel_change'] = undefined; -var _default = ConfigureAutoEventDataAutoEventMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateABotRequest.js b/dist/model/CreateABotRequest.js new file mode 100644 index 0000000..1e767eb --- /dev/null +++ b/dist/model/CreateABotRequest.js @@ -0,0 +1,154 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateABotRequest model module. + * @module model/CreateABotRequest + * @version 2.0.0 + */ +var CreateABotRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateABotRequest. + * @alias module:model/CreateABotRequest + * @param botCallbackUrl {String} + * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. + * @param botProfileUrl {String} + * @param botType {String} + * @param botUserid {String} Specifies the unique ID of a bot. The length is limited to 80 characters. + * @param isPrivacyMode {Boolean} Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. + */ + function CreateABotRequest(botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode) { + _classCallCheck(this, CreateABotRequest); + CreateABotRequest.initialize(this, botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateABotRequest, null, [{ + key: "initialize", + value: function initialize(obj, botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode) { + obj['bot_callback_url'] = botCallbackUrl; + obj['bot_nickname'] = botNickname; + obj['bot_profile_url'] = botProfileUrl; + obj['bot_type'] = botType; + obj['bot_userid'] = botUserid; + obj['is_privacy_mode'] = isPrivacyMode; + } + + /** + * Constructs a CreateABotRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotRequest} obj Optional instance to populate. + * @return {module:model/CreateABotRequest} The populated CreateABotRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotRequest(); + if (data.hasOwnProperty('bot_callback_url')) { + obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = _ApiClient["default"].convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); + } + if (data.hasOwnProperty('is_privacy_mode')) { + obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('enable_mark_as_read')) { + obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('show_member')) { + obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} bot_callback_url + */ +CreateABotRequest.prototype['bot_callback_url'] = undefined; + +/** + * Specifies the bot's nickname. The length is limited to 80 characters. + * @member {String} bot_nickname + */ +CreateABotRequest.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +CreateABotRequest.prototype['bot_profile_url'] = undefined; + +/** + * @member {String} bot_type + */ +CreateABotRequest.prototype['bot_type'] = undefined; + +/** + * Specifies the unique ID of a bot. The length is limited to 80 characters. + * @member {String} bot_userid + */ +CreateABotRequest.prototype['bot_userid'] = undefined; + +/** + * Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. + * @member {Boolean} is_privacy_mode + */ +CreateABotRequest.prototype['is_privacy_mode'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +CreateABotRequest.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Boolean} enable_mark_as_read + */ +CreateABotRequest.prototype['enable_mark_as_read'] = undefined; + +/** + * @member {Boolean} show_member + */ +CreateABotRequest.prototype['show_member'] = undefined; +var _default = exports["default"] = CreateABotRequest; \ No newline at end of file diff --git a/dist/model/CreateABotResponse.js b/dist/model/CreateABotResponse.js new file mode 100644 index 0000000..68af6ac --- /dev/null +++ b/dist/model/CreateABotResponse.js @@ -0,0 +1,135 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _CreateABotResponseBot = _interopRequireDefault(require("./CreateABotResponseBot")); +var _CreateABotResponseBotStyle = _interopRequireDefault(require("./CreateABotResponseBotStyle")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateABotResponse model module. + * @module model/CreateABotResponse + * @version 2.0.0 + */ +var CreateABotResponse = /*#__PURE__*/function () { + /** + * Constructs a new CreateABotResponse. + * @alias module:model/CreateABotResponse + * @param bot {module:model/CreateABotResponseBot} + */ + function CreateABotResponse(bot) { + _classCallCheck(this, CreateABotResponse); + CreateABotResponse.initialize(this, bot); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateABotResponse, null, [{ + key: "initialize", + value: function initialize(obj, bot) { + obj['bot'] = bot; + } + + /** + * Constructs a CreateABotResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponse} obj Optional instance to populate. + * @return {module:model/CreateABotResponse} The populated CreateABotResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponse(); + if (data.hasOwnProperty('bot')) { + obj['bot'] = _CreateABotResponseBot["default"].constructFromObject(data['bot']); + } + if (data.hasOwnProperty('bot_callback_url')) { + obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); + } + if (data.hasOwnProperty('bot_style')) { + obj['bot_style'] = _CreateABotResponseBotStyle["default"].constructFromObject(data['bot_style']); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('enable_mark_as_read')) { + obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('is_privacy_mode')) { + obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); + } + if (data.hasOwnProperty('show_member')) { + obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/CreateABotResponseBot} bot + */ +CreateABotResponse.prototype['bot'] = undefined; + +/** + * @member {String} bot_callback_url + */ +CreateABotResponse.prototype['bot_callback_url'] = undefined; + +/** + * @member {module:model/CreateABotResponseBotStyle} bot_style + */ +CreateABotResponse.prototype['bot_style'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +CreateABotResponse.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Number} created_at + */ +CreateABotResponse.prototype['created_at'] = undefined; + +/** + * @member {Boolean} enable_mark_as_read + */ +CreateABotResponse.prototype['enable_mark_as_read'] = undefined; + +/** + * @member {Boolean} is_privacy_mode + */ +CreateABotResponse.prototype['is_privacy_mode'] = undefined; + +/** + * @member {Boolean} show_member + */ +CreateABotResponse.prototype['show_member'] = undefined; +var _default = exports["default"] = CreateABotResponse; \ No newline at end of file diff --git a/dist/model/CreateABotResponseBot.js b/dist/model/CreateABotResponseBot.js new file mode 100644 index 0000000..59a309f --- /dev/null +++ b/dist/model/CreateABotResponseBot.js @@ -0,0 +1,141 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateABotResponseBot model module. + * @module model/CreateABotResponseBot + * @version 2.0.0 + */ +var CreateABotResponseBot = /*#__PURE__*/function () { + /** + * Constructs a new CreateABotResponseBot. + * @alias module:model/CreateABotResponseBot + * @param botUserid {String} + */ + function CreateABotResponseBot(botUserid) { + _classCallCheck(this, CreateABotResponseBot); + CreateABotResponseBot.initialize(this, botUserid); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateABotResponseBot, null, [{ + key: "initialize", + value: function initialize(obj, botUserid) { + obj['bot_userid'] = botUserid; + } + + /** + * Constructs a CreateABotResponseBot from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponseBot} obj Optional instance to populate. + * @return {module:model/CreateABotResponseBot} The populated CreateABotResponseBot instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponseBot(); + if (data.hasOwnProperty('ai_agent_type')) { + obj['ai_agent_type'] = _ApiClient["default"].convertToType(data['ai_agent_type'], 'String'); + } + if (data.hasOwnProperty('bot_metadata')) { + obj['bot_metadata'] = _ApiClient["default"].convertToType(data['bot_metadata'], Object); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_require_auth_for_profile_image')) { + obj['bot_require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['bot_require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('bot_token')) { + obj['bot_token'] = _ApiClient["default"].convertToType(data['bot_token'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = _ApiClient["default"].convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); + } + if (data.hasOwnProperty('feedback')) { + obj['feedback'] = _ApiClient["default"].convertToType(data['feedback'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} ai_agent_type + */ +CreateABotResponseBot.prototype['ai_agent_type'] = undefined; + +/** + * @member {Object} bot_metadata + */ +CreateABotResponseBot.prototype['bot_metadata'] = undefined; + +/** + * @member {String} bot_nickname + */ +CreateABotResponseBot.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +CreateABotResponseBot.prototype['bot_profile_url'] = undefined; + +/** + * @member {Boolean} bot_require_auth_for_profile_image + */ +CreateABotResponseBot.prototype['bot_require_auth_for_profile_image'] = undefined; + +/** + * @member {String} bot_token + */ +CreateABotResponseBot.prototype['bot_token'] = undefined; + +/** + * @member {String} bot_type + */ +CreateABotResponseBot.prototype['bot_type'] = undefined; + +/** + * @member {String} bot_userid + */ +CreateABotResponseBot.prototype['bot_userid'] = undefined; + +/** + * @member {Boolean} feedback + */ +CreateABotResponseBot.prototype['feedback'] = undefined; +var _default = exports["default"] = CreateABotResponseBot; \ No newline at end of file diff --git a/dist/model/CreateABotResponseBotStyle.js b/dist/model/CreateABotResponseBotStyle.js new file mode 100644 index 0000000..1fbd96b --- /dev/null +++ b/dist/model/CreateABotResponseBotStyle.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ListBotsResponseBotsInnerBotStyleColor = _interopRequireDefault(require("./ListBotsResponseBotsInnerBotStyleColor")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateABotResponseBotStyle model module. + * @module model/CreateABotResponseBotStyle + * @version 2.0.0 + */ +var CreateABotResponseBotStyle = /*#__PURE__*/function () { + /** + * Constructs a new CreateABotResponseBotStyle. + * @alias module:model/CreateABotResponseBotStyle + */ + function CreateABotResponseBotStyle() { + _classCallCheck(this, CreateABotResponseBotStyle); + CreateABotResponseBotStyle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateABotResponseBotStyle, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a CreateABotResponseBotStyle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponseBotStyle} obj Optional instance to populate. + * @return {module:model/CreateABotResponseBotStyle} The populated CreateABotResponseBotStyle instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponseBotStyle(); + if (data.hasOwnProperty('auto_open')) { + obj['auto_open'] = _ApiClient["default"].convertToType(data['auto_open'], 'Boolean'); + } + if (data.hasOwnProperty('color')) { + obj['color'] = _ListBotsResponseBotsInnerBotStyleColor["default"].constructFromObject(data['color']); + } + if (data.hasOwnProperty('toggle_button_type')) { + obj['toggle_button_type'] = _ApiClient["default"].convertToType(data['toggle_button_type'], 'String'); + } + if (data.hasOwnProperty('toggle_button_url')) { + obj['toggle_button_url'] = _ApiClient["default"].convertToType(data['toggle_button_url'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} auto_open + */ +CreateABotResponseBotStyle.prototype['auto_open'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyleColor} color + */ +CreateABotResponseBotStyle.prototype['color'] = undefined; + +/** + * @member {String} toggle_button_type + */ +CreateABotResponseBotStyle.prototype['toggle_button_type'] = undefined; + +/** + * @member {String} toggle_button_url + */ +CreateABotResponseBotStyle.prototype['toggle_button_url'] = undefined; +var _default = exports["default"] = CreateABotResponseBotStyle; \ No newline at end of file diff --git a/dist/model/CreateAChannelMetadataRequest.js b/dist/model/CreateAChannelMetadataRequest.js new file mode 100644 index 0000000..70c5248 --- /dev/null +++ b/dist/model/CreateAChannelMetadataRequest.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateAChannelMetadataRequest model module. + * @module model/CreateAChannelMetadataRequest + * @version 2.0.0 + */ +var CreateAChannelMetadataRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateAChannelMetadataRequest. + * @alias module:model/CreateAChannelMetadataRequest + * @param metadata {Object} + */ + function CreateAChannelMetadataRequest(metadata) { + _classCallCheck(this, CreateAChannelMetadataRequest); + CreateAChannelMetadataRequest.initialize(this, metadata); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateAChannelMetadataRequest, null, [{ + key: "initialize", + value: function initialize(obj, metadata) { + obj['metadata'] = metadata; + } + + /** + * Constructs a CreateAChannelMetadataRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAChannelMetadataRequest} obj Optional instance to populate. + * @return {module:model/CreateAChannelMetadataRequest} The populated CreateAChannelMetadataRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAChannelMetadataRequest(); + if (data.hasOwnProperty('include_ts')) { + obj['include_ts'] = _ApiClient["default"].convertToType(data['include_ts'], 'Boolean'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} include_ts + */ +CreateAChannelMetadataRequest.prototype['include_ts'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAChannelMetadataRequest.prototype['metadata'] = undefined; +var _default = exports["default"] = CreateAChannelMetadataRequest; \ No newline at end of file diff --git a/dist/model/CreateAChannelMetadataResponse.js b/dist/model/CreateAChannelMetadataResponse.js new file mode 100644 index 0000000..9200dbc --- /dev/null +++ b/dist/model/CreateAChannelMetadataResponse.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateAChannelMetadataResponse model module. + * @module model/CreateAChannelMetadataResponse + * @version 2.0.0 + */ +var CreateAChannelMetadataResponse = /*#__PURE__*/function () { + /** + * Constructs a new CreateAChannelMetadataResponse. + * @alias module:model/CreateAChannelMetadataResponse + */ + function CreateAChannelMetadataResponse() { + _classCallCheck(this, CreateAChannelMetadataResponse); + CreateAChannelMetadataResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateAChannelMetadataResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a CreateAChannelMetadataResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAChannelMetadataResponse} obj Optional instance to populate. + * @return {module:model/CreateAChannelMetadataResponse} The populated CreateAChannelMetadataResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAChannelMetadataResponse(); + if (data.hasOwnProperty('include_ts')) { + obj['include_ts'] = _ApiClient["default"].convertToType(data['include_ts'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} include_ts + */ +CreateAChannelMetadataResponse.prototype['include_ts'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAChannelMetadataResponse.prototype['metadata'] = undefined; +var _default = exports["default"] = CreateAChannelMetadataResponse; \ No newline at end of file diff --git a/dist/model/CreateAGroupChannelRequest.js b/dist/model/CreateAGroupChannelRequest.js new file mode 100644 index 0000000..a8d93a8 --- /dev/null +++ b/dist/model/CreateAGroupChannelRequest.js @@ -0,0 +1,225 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateAGroupChannelRequest model module. + * @module model/CreateAGroupChannelRequest + * @version 2.0.0 + */ +var CreateAGroupChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateAGroupChannelRequest. + * @alias module:model/CreateAGroupChannelRequest + * @param users {Array.} + */ + function CreateAGroupChannelRequest(users) { + _classCallCheck(this, CreateAGroupChannelRequest); + CreateAGroupChannelRequest.initialize(this, users); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateAGroupChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, users) { + obj['users'] = users; + } + + /** + * Constructs a CreateAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/CreateAGroupChannelRequest} The populated CreateAGroupChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAGroupChannelRequest(); + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('block_sdk_user_channel_join')) { + obj['block_sdk_user_channel_join'] = _ApiClient["default"].convertToType(data['block_sdk_user_channel_join'], 'Boolean'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('hidden_status')) { + obj['hidden_status'] = _ApiClient["default"].convertToType(data['hidden_status'], Object); + } + if (data.hasOwnProperty('invitation_status')) { + obj['invitation_status'] = _ApiClient["default"].convertToType(data['invitation_status'], Object); + } + if (data.hasOwnProperty('inviter_id')) { + obj['inviter_id'] = _ApiClient["default"].convertToType(data['inviter_id'], 'String'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); + } + if (data.hasOwnProperty('strict')) { + obj['strict'] = _ApiClient["default"].convertToType(data['strict'], 'Boolean'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + if (data.hasOwnProperty('users')) { + obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendbirdUser["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} access_code + */ +CreateAGroupChannelRequest.prototype['access_code'] = undefined; + +/** + * @member {Boolean} block_sdk_user_channel_join + */ +CreateAGroupChannelRequest.prototype['block_sdk_user_channel_join'] = undefined; + +/** + * @member {String} channel_url + */ +CreateAGroupChannelRequest.prototype['channel_url'] = undefined; + +/** + * Uploads a file for the channel cover image. + * @member {File} cover_file + */ +CreateAGroupChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +CreateAGroupChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +CreateAGroupChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +CreateAGroupChannelRequest.prototype['data'] = undefined; + +/** + * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. + * @member {Object} hidden_status + */ +CreateAGroupChannelRequest.prototype['hidden_status'] = undefined; + +/** + * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) + * @member {Object} invitation_status + */ +CreateAGroupChannelRequest.prototype['invitation_status'] = undefined; + +/** + * @member {String} inviter_id + */ +CreateAGroupChannelRequest.prototype['inviter_id'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +CreateAGroupChannelRequest.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +CreateAGroupChannelRequest.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_public + */ +CreateAGroupChannelRequest.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +CreateAGroupChannelRequest.prototype['is_super'] = undefined; + +/** + * @member {String} name + */ +CreateAGroupChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +CreateAGroupChannelRequest.prototype['operator_ids'] = undefined; + +/** + * @member {Boolean} strict + */ +CreateAGroupChannelRequest.prototype['strict'] = undefined; + +/** + * @member {Array.} user_ids + */ +CreateAGroupChannelRequest.prototype['user_ids'] = undefined; + +/** + * @member {Array.} users + */ +CreateAGroupChannelRequest.prototype['users'] = undefined; +var _default = exports["default"] = CreateAGroupChannelRequest; \ No newline at end of file diff --git a/dist/model/CreateAUserRequest.js b/dist/model/CreateAUserRequest.js new file mode 100644 index 0000000..f4feba2 --- /dev/null +++ b/dist/model/CreateAUserRequest.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateAUserRequest model module. + * @module model/CreateAUserRequest + * @version 2.0.0 + */ +var CreateAUserRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateAUserRequest. + * @alias module:model/CreateAUserRequest + * @param nickname {String} + * @param profileUrl {String} + * @param userId {String} + */ + function CreateAUserRequest(nickname, profileUrl, userId) { + _classCallCheck(this, CreateAUserRequest); + CreateAUserRequest.initialize(this, nickname, profileUrl, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateAUserRequest, null, [{ + key: "initialize", + value: function initialize(obj, nickname, profileUrl, userId) { + obj['nickname'] = nickname; + obj['profile_url'] = profileUrl; + obj['user_id'] = userId; + } + + /** + * Constructs a CreateAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAUserRequest} obj Optional instance to populate. + * @return {module:model/CreateAUserRequest} The populated CreateAUserRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAUserRequest(); + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('issue_access_token')) { + obj['issue_access_token'] = _ApiClient["default"].convertToType(data['issue_access_token'], 'Boolean'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('profile_file')) { + obj['profile_file'] = _ApiClient["default"].convertToType(data['profile_file'], File); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} discovery_keys + */ +CreateAUserRequest.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} issue_access_token + */ +CreateAUserRequest.prototype['issue_access_token'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAUserRequest.prototype['metadata'] = undefined; + +/** + * @member {String} nickname + */ +CreateAUserRequest.prototype['nickname'] = undefined; + +/** + * Specifies the file of the user's profile image. An acceptable image is limited to a JPG, JPEG, or PNG file of up to 5 MB. When passing a file, you should send a multipart request. If the profile_file property is specified, the profile_url property is not required. + * @member {File} profile_file + */ +CreateAUserRequest.prototype['profile_file'] = undefined; + +/** + * @member {String} profile_url + */ +CreateAUserRequest.prototype['profile_url'] = undefined; + +/** + * @member {String} user_id + */ +CreateAUserRequest.prototype['user_id'] = undefined; +var _default = exports["default"] = CreateAUserRequest; \ No newline at end of file diff --git a/dist/model/CreateAnOpenChannelRequest.js b/dist/model/CreateAnOpenChannelRequest.js new file mode 100644 index 0000000..90db264 --- /dev/null +++ b/dist/model/CreateAnOpenChannelRequest.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateAnOpenChannelRequest model module. + * @module model/CreateAnOpenChannelRequest + * @version 2.0.0 + */ +var CreateAnOpenChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateAnOpenChannelRequest. + * @alias module:model/CreateAnOpenChannelRequest + */ + function CreateAnOpenChannelRequest() { + _classCallCheck(this, CreateAnOpenChannelRequest); + CreateAnOpenChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateAnOpenChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a CreateAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/CreateAnOpenChannelRequest} The populated CreateAnOpenChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAnOpenChannelRequest(); + if (data.hasOwnProperty('is_dynamic_partitioned')) { + obj['is_dynamic_partitioned'] = _ApiClient["default"].convertToType(data['is_dynamic_partitioned'], 'Boolean'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} is_dynamic_partitioned + */ +CreateAnOpenChannelRequest.prototype['is_dynamic_partitioned'] = undefined; + +/** + * @member {String} channel_url + */ +CreateAnOpenChannelRequest.prototype['channel_url'] = undefined; + +/** + * @member {File} cover_file + */ +CreateAnOpenChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +CreateAnOpenChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +CreateAnOpenChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +CreateAnOpenChannelRequest.prototype['data'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +CreateAnOpenChannelRequest.prototype['is_ephemeral'] = undefined; + +/** + * @member {String} name + */ +CreateAnOpenChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +CreateAnOpenChannelRequest.prototype['operator_ids'] = undefined; +var _default = exports["default"] = CreateAnOpenChannelRequest; \ No newline at end of file diff --git a/dist/model/CreateBotData.js b/dist/model/CreateBotData.js deleted file mode 100644 index 8928ef2..0000000 --- a/dist/model/CreateBotData.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateBotData model module. - * @module model/CreateBotData - * @version 0.0.16 - */ -var CreateBotData = /*#__PURE__*/function () { - /** - * Constructs a new CreateBotData. - * @alias module:model/CreateBotData - * @param botUserid {String} Specifies the unique ID of the bot. The length is limited to 80 characters. - * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. - * @param botProfileUrl {String} Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @param botType {String} Specifies the type of the bot that you can specify for categorization. The length is limited to 128 characters. - * @param botCallbackUrl {String} Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @param isPrivacyMode {Boolean} In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - */ - function CreateBotData(botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode) { - _classCallCheck(this, CreateBotData); - CreateBotData.initialize(this, botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateBotData, null, [{ - key: "initialize", - value: function initialize(obj, botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode) { - obj['bot_userid'] = botUserid; - obj['bot_nickname'] = botNickname; - obj['bot_profile_url'] = botProfileUrl; - obj['bot_type'] = botType; - obj['bot_callback_url'] = botCallbackUrl; - obj['is_privacy_mode'] = isPrivacyMode; - } - - /** - * Constructs a CreateBotData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotData} obj Optional instance to populate. - * @return {module:model/CreateBotData} The populated CreateBotData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotData(); - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_type')) { - obj['bot_type'] = _ApiClient["default"].convertToType(data['bot_type'], 'String'); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - }]); - return CreateBotData; -}(); -/** - * Specifies the unique ID of the bot. The length is limited to 80 characters. - * @member {String} bot_userid - */ -CreateBotData.prototype['bot_userid'] = undefined; - -/** - * Specifies the bot's nickname. The length is limited to 80 characters. - * @member {String} bot_nickname - */ -CreateBotData.prototype['bot_nickname'] = undefined; - -/** - * Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @member {String} bot_profile_url - */ -CreateBotData.prototype['bot_profile_url'] = undefined; - -/** - * Specifies the type of the bot that you can specify for categorization. The length is limited to 128 characters. - * @member {String} bot_type - */ -CreateBotData.prototype['bot_type'] = undefined; - -/** - * Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @member {String} bot_callback_url - */ -CreateBotData.prototype['bot_callback_url'] = undefined; - -/** - * In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @member {Boolean} is_privacy_mode - */ -CreateBotData.prototype['is_privacy_mode'] = undefined; - -/** - * Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @member {Boolean} enable_mark_as_read - */ -CreateBotData.prototype['enable_mark_as_read'] = undefined; - -/** - * Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @member {Boolean} show_member - */ -CreateBotData.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -CreateBotData.prototype['channel_invitation_preference'] = undefined; -var _default = CreateBotData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateBotResponse.js b/dist/model/CreateBotResponse.js deleted file mode 100644 index 299bde6..0000000 --- a/dist/model/CreateBotResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateBotResponseBot = _interopRequireDefault(require("./CreateBotResponseBot")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateBotResponse model module. - * @module model/CreateBotResponse - * @version 0.0.16 - */ -var CreateBotResponse = /*#__PURE__*/function () { - /** - * Constructs a new CreateBotResponse. - * @alias module:model/CreateBotResponse - */ - function CreateBotResponse() { - _classCallCheck(this, CreateBotResponse); - CreateBotResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateBotResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CreateBotResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotResponse} obj Optional instance to populate. - * @return {module:model/CreateBotResponse} The populated CreateBotResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotResponse(); - if (data.hasOwnProperty('bot')) { - obj['bot'] = _CreateBotResponseBot["default"].constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - }]); - return CreateBotResponse; -}(); -/** - * @member {module:model/CreateBotResponseBot} bot - */ -CreateBotResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -CreateBotResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -CreateBotResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -CreateBotResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -CreateBotResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -CreateBotResponse.prototype['channel_invitation_preference'] = undefined; -var _default = CreateBotResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateBotResponseBot.js b/dist/model/CreateBotResponseBot.js deleted file mode 100644 index bd63ab9..0000000 --- a/dist/model/CreateBotResponseBot.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateBotResponseBot model module. - * @module model/CreateBotResponseBot - * @version 0.0.16 - */ -var CreateBotResponseBot = /*#__PURE__*/function () { - /** - * Constructs a new CreateBotResponseBot. - * @alias module:model/CreateBotResponseBot - */ - function CreateBotResponseBot() { - _classCallCheck(this, CreateBotResponseBot); - CreateBotResponseBot.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateBotResponseBot, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CreateBotResponseBot from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotResponseBot} obj Optional instance to populate. - * @return {module:model/CreateBotResponseBot} The populated CreateBotResponseBot instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotResponseBot(); - if (data.hasOwnProperty('bot_token')) { - obj['bot_token'] = _ApiClient["default"].convertToType(data['bot_token'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_type')) { - obj['bot_type'] = _ApiClient["default"].convertToType(data['bot_type'], 'String'); - } - if (data.hasOwnProperty('bot_metadata')) { - obj['bot_metadata'] = _ApiClient["default"].convertToType(data['bot_metadata'], Object); - } - } - return obj; - } - }]); - return CreateBotResponseBot; -}(); -/** - * @member {String} bot_token - */ -CreateBotResponseBot.prototype['bot_token'] = undefined; - -/** - * @member {String} bot_profile_url - */ -CreateBotResponseBot.prototype['bot_profile_url'] = undefined; - -/** - * @member {String} bot_userid - */ -CreateBotResponseBot.prototype['bot_userid'] = undefined; - -/** - * @member {String} bot_nickname - */ -CreateBotResponseBot.prototype['bot_nickname'] = undefined; - -/** - * @member {String} bot_type - */ -CreateBotResponseBot.prototype['bot_type'] = undefined; - -/** - * @member {Object} bot_metadata - */ -CreateBotResponseBot.prototype['bot_metadata'] = undefined; -var _default = CreateBotResponseBot; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateChannelMetacounterData.js b/dist/model/CreateChannelMetacounterData.js deleted file mode 100644 index fccebe7..0000000 --- a/dist/model/CreateChannelMetacounterData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateChannelMetacounterData model module. - * @module model/CreateChannelMetacounterData - * @version 0.0.16 - */ -var CreateChannelMetacounterData = /*#__PURE__*/function () { - /** - * Constructs a new CreateChannelMetacounterData. - * @alias module:model/CreateChannelMetacounterData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the channel to store the metacounter in. - * @param metacounter {String} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - */ - function CreateChannelMetacounterData(channelType, channelUrl, metacounter) { - _classCallCheck(this, CreateChannelMetacounterData); - CreateChannelMetacounterData.initialize(this, channelType, channelUrl, metacounter); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateChannelMetacounterData, null, [{ - key: "initialize", - value: function initialize(obj, channelType, channelUrl, metacounter) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['metacounter'] = metacounter; - } - - /** - * Constructs a CreateChannelMetacounterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetacounterData} obj Optional instance to populate. - * @return {module:model/CreateChannelMetacounterData} The populated CreateChannelMetacounterData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetacounterData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('metacounter')) { - obj['metacounter'] = _ApiClient["default"].convertToType(data['metacounter'], 'String'); - } - } - return obj; - } - }]); - return CreateChannelMetacounterData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -CreateChannelMetacounterData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to store the metacounter in. - * @member {String} channel_url - */ -CreateChannelMetacounterData.prototype['channel_url'] = undefined; - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - * @member {String} metacounter - */ -CreateChannelMetacounterData.prototype['metacounter'] = undefined; -var _default = CreateChannelMetacounterData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateChannelMetadataData.js b/dist/model/CreateChannelMetadataData.js deleted file mode 100644 index 2c97306..0000000 --- a/dist/model/CreateChannelMetadataData.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateChannelMetadataData model module. - * @module model/CreateChannelMetadataData - * @version 0.0.16 - */ -var CreateChannelMetadataData = /*#__PURE__*/function () { - /** - * Constructs a new CreateChannelMetadataData. - * @alias module:model/CreateChannelMetadataData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the channel to store the metadata in. - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - */ - function CreateChannelMetadataData(channelType, channelUrl, metadata) { - _classCallCheck(this, CreateChannelMetadataData); - CreateChannelMetadataData.initialize(this, channelType, channelUrl, metadata); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateChannelMetadataData, null, [{ - key: "initialize", - value: function initialize(obj, channelType, channelUrl, metadata) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['metadata'] = metadata; - } - - /** - * Constructs a CreateChannelMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetadataData} obj Optional instance to populate. - * @return {module:model/CreateChannelMetadataData} The populated CreateChannelMetadataData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetadataData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('include_ts')) { - obj['include_ts'] = _ApiClient["default"].convertToType(data['include_ts'], 'Boolean'); - } - } - return obj; - } - }]); - return CreateChannelMetadataData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -CreateChannelMetadataData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to store the metadata in. - * @member {String} channel_url - */ -CreateChannelMetadataData.prototype['channel_url'] = undefined; - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateChannelMetadataData.prototype['metadata'] = undefined; - -/** - * Determines whether to include the timestamp of when a metadata has been created in the response. (Default: false) - * @member {Boolean} include_ts - */ -CreateChannelMetadataData.prototype['include_ts'] = undefined; -var _default = CreateChannelMetadataData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateChannelMetadataResponse.js b/dist/model/CreateChannelMetadataResponse.js deleted file mode 100644 index 640cfd3..0000000 --- a/dist/model/CreateChannelMetadataResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateChannelMetadataResponse model module. - * @module model/CreateChannelMetadataResponse - * @version 0.0.16 - */ -var CreateChannelMetadataResponse = /*#__PURE__*/function () { - /** - * Constructs a new CreateChannelMetadataResponse. - * @alias module:model/CreateChannelMetadataResponse - */ - function CreateChannelMetadataResponse() { - _classCallCheck(this, CreateChannelMetadataResponse); - CreateChannelMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateChannelMetadataResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CreateChannelMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetadataResponse} obj Optional instance to populate. - * @return {module:model/CreateChannelMetadataResponse} The populated CreateChannelMetadataResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetadataResponse(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], { - 'String': 'String' - }); - } - if (data.hasOwnProperty('include_ts')) { - obj['include_ts'] = _ApiClient["default"].convertToType(data['include_ts'], 'Number'); - } - } - return obj; - } - }]); - return CreateChannelMetadataResponse; -}(); -/** - * @member {Object.} metadata - */ -CreateChannelMetadataResponse.prototype['metadata'] = undefined; - -/** - * @member {Number} include_ts - */ -CreateChannelMetadataResponse.prototype['include_ts'] = undefined; -var _default = CreateChannelMetadataResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateUserData.js b/dist/model/CreateUserData.js deleted file mode 100644 index 381705a..0000000 --- a/dist/model/CreateUserData.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateUserData model module. - * @module model/CreateUserData - * @version 0.0.16 - */ -var CreateUserData = /*#__PURE__*/function () { - /** - * Constructs a new CreateUserData. - * @alias module:model/CreateUserData - * @param userId {String} Specifies a user's unique ID, which is used to sign into the Sendbird service. The length is limited to 80 characters.

Do not use PII (Personally Identifiable Information) of your service, such as user email address, legal name or phone number. - * @param nickname {String} Specifies a nickname for a new user. The length is limited to 80 characters. - * @param profileUrl {String} Specifies the URL of the user's profile image. If left empty, no profile image is set for the user. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - */ - function CreateUserData(userId, nickname, profileUrl) { - _classCallCheck(this, CreateUserData); - CreateUserData.initialize(this, userId, nickname, profileUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateUserData, null, [{ - key: "initialize", - value: function initialize(obj, userId, nickname, profileUrl) { - obj['user_id'] = userId; - obj['nickname'] = nickname; - obj['profile_url'] = profileUrl; - } - - /** - * Constructs a CreateUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserData} obj Optional instance to populate. - * @return {module:model/CreateUserData} The populated CreateUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserData(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('profile_file')) { - obj['profile_file'] = _ApiClient["default"].convertToType(data['profile_file'], File); - } - if (data.hasOwnProperty('issue_access_token')) { - obj['issue_access_token'] = _ApiClient["default"].convertToType(data['issue_access_token'], 'Boolean'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - } - return obj; - } - }]); - return CreateUserData; -}(); -/** - * Specifies a user's unique ID, which is used to sign into the Sendbird service. The length is limited to 80 characters.

Do not use PII (Personally Identifiable Information) of your service, such as user email address, legal name or phone number. - * @member {String} user_id - */ -CreateUserData.prototype['user_id'] = undefined; - -/** - * Specifies a nickname for a new user. The length is limited to 80 characters. - * @member {String} nickname - */ -CreateUserData.prototype['nickname'] = undefined; - -/** - * Specifies the URL of the user's profile image. If left empty, no profile image is set for the user. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - * @member {String} profile_url - */ -CreateUserData.prototype['profile_url'] = undefined; - -/** - * Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. - * @member {File} profile_file - */ -CreateUserData.prototype['profile_file'] = undefined; - -/** - * Determines whether to create an access token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_access_token - */ -CreateUserData.prototype['issue_access_token'] = undefined; - -/** - * Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. - * @member {Array.} discovery_keys - */ -CreateUserData.prototype['discovery_keys'] = undefined; - -/** - * Specifies a `JSON` object to store key-value items for additional user information such as phone number, email or a long description of the user. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateUserData.prototype['metadata'] = undefined; -var _default = CreateUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateUserMetadataData.js b/dist/model/CreateUserMetadataData.js deleted file mode 100644 index 87c04d7..0000000 --- a/dist/model/CreateUserMetadataData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateUserMetadataData model module. - * @module model/CreateUserMetadataData - * @version 0.0.16 - */ -var CreateUserMetadataData = /*#__PURE__*/function () { - /** - * Constructs a new CreateUserMetadataData. - * @alias module:model/CreateUserMetadataData - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - */ - function CreateUserMetadataData(metadata) { - _classCallCheck(this, CreateUserMetadataData); - CreateUserMetadataData.initialize(this, metadata); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateUserMetadataData, null, [{ - key: "initialize", - value: function initialize(obj, metadata) { - obj['metadata'] = metadata; - } - - /** - * Constructs a CreateUserMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserMetadataData} obj Optional instance to populate. - * @return {module:model/CreateUserMetadataData} The populated CreateUserMetadataData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserMetadataData(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - } - return obj; - } - }]); - return CreateUserMetadataData; -}(); -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateUserMetadataData.prototype['metadata'] = undefined; -var _default = CreateUserMetadataData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateUserMetadataResponse.js b/dist/model/CreateUserMetadataResponse.js deleted file mode 100644 index 8a0b1e7..0000000 --- a/dist/model/CreateUserMetadataResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateUserMetadataResponse model module. - * @module model/CreateUserMetadataResponse - * @version 0.0.16 - */ -var CreateUserMetadataResponse = /*#__PURE__*/function () { - /** - * Constructs a new CreateUserMetadataResponse. - * @alias module:model/CreateUserMetadataResponse - */ - function CreateUserMetadataResponse() { - _classCallCheck(this, CreateUserMetadataResponse); - CreateUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateUserMetadataResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CreateUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/CreateUserMetadataResponse} The populated CreateUserMetadataResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserMetadataResponse(); - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = _ApiClient["default"].convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - }]); - return CreateUserMetadataResponse; -}(); -/** - * @member {String} anyOf - */ -CreateUserMetadataResponse.prototype['anyOf'] = undefined; -var _default = CreateUserMetadataResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateUserTokenData.js b/dist/model/CreateUserTokenData.js deleted file mode 100644 index 28283d1..0000000 --- a/dist/model/CreateUserTokenData.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CreateUserTokenData model module. - * @module model/CreateUserTokenData - * @version 0.0.16 - */ -var CreateUserTokenData = /*#__PURE__*/function () { - /** - * Constructs a new CreateUserTokenData. - * @alias module:model/CreateUserTokenData - */ - function CreateUserTokenData() { - _classCallCheck(this, CreateUserTokenData); - CreateUserTokenData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CreateUserTokenData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CreateUserTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserTokenData} obj Optional instance to populate. - * @return {module:model/CreateUserTokenData} The populated CreateUserTokenData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserTokenData(); - if (data.hasOwnProperty('expires_at')) { - obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Number'); - } - } - return obj; - } - }]); - return CreateUserTokenData; -}(); -/** - * Specifies the expiration time of the new session token in Unix milliseconds format. By default, the expiration time of a session token is seven days from the timestamp when the token was issued. - * @member {Number} expires_at - */ -CreateUserTokenData.prototype['expires_at'] = undefined; -var _default = CreateUserTokenData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/CreateUserTokenRequest.js b/dist/model/CreateUserTokenRequest.js new file mode 100644 index 0000000..91bd200 --- /dev/null +++ b/dist/model/CreateUserTokenRequest.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The CreateUserTokenRequest model module. + * @module model/CreateUserTokenRequest + * @version 2.0.0 + */ +var CreateUserTokenRequest = /*#__PURE__*/function () { + /** + * Constructs a new CreateUserTokenRequest. + * @alias module:model/CreateUserTokenRequest + */ + function CreateUserTokenRequest() { + _classCallCheck(this, CreateUserTokenRequest); + CreateUserTokenRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(CreateUserTokenRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a CreateUserTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserTokenRequest} obj Optional instance to populate. + * @return {module:model/CreateUserTokenRequest} The populated CreateUserTokenRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserTokenRequest(); + if (data.hasOwnProperty('expires_at')) { + obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} expires_at + */ +CreateUserTokenRequest.prototype['expires_at'] = undefined; +var _default = exports["default"] = CreateUserTokenRequest; \ No newline at end of file diff --git a/dist/model/CreateUserTokenResponse.js b/dist/model/CreateUserTokenResponse.js index 3f45817..1b2bf3f 100644 --- a/dist/model/CreateUserTokenResponse.js +++ b/dist/model/CreateUserTokenResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The CreateUserTokenResponse model module. * @module model/CreateUserTokenResponse - * @version 0.0.16 + * @version 2.0.0 */ var CreateUserTokenResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var CreateUserTokenResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(CreateUserTokenResponse, null, [{ + return _createClass(CreateUserTokenResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -45,26 +59,24 @@ var CreateUserTokenResponse = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new CreateUserTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } if (data.hasOwnProperty('expires_at')) { obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Number'); } + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } } return obj; } }]); - return CreateUserTokenResponse; }(); /** - * @member {String} token + * @member {Number} expires_at */ -CreateUserTokenResponse.prototype['token'] = undefined; +CreateUserTokenResponse.prototype['expires_at'] = undefined; /** - * @member {Number} expires_at + * @member {String} token */ -CreateUserTokenResponse.prototype['expires_at'] = undefined; -var _default = CreateUserTokenResponse; -exports["default"] = _default; \ No newline at end of file +CreateUserTokenResponse.prototype['token'] = undefined; +var _default = exports["default"] = CreateUserTokenResponse; \ No newline at end of file diff --git a/dist/model/CustomTypeListBannedUsersResponse.js b/dist/model/CustomTypeListBannedUsersResponse.js deleted file mode 100644 index cf5e3cb..0000000 --- a/dist/model/CustomTypeListBannedUsersResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcListBannedUsersResponseBannedListInner = _interopRequireDefault(require("./OcListBannedUsersResponseBannedListInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The CustomTypeListBannedUsersResponse model module. - * @module model/CustomTypeListBannedUsersResponse - * @version 0.0.16 - */ -var CustomTypeListBannedUsersResponse = /*#__PURE__*/function () { - /** - * Constructs a new CustomTypeListBannedUsersResponse. - * @alias module:model/CustomTypeListBannedUsersResponse - */ - function CustomTypeListBannedUsersResponse() { - _classCallCheck(this, CustomTypeListBannedUsersResponse); - CustomTypeListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(CustomTypeListBannedUsersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a CustomTypeListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomTypeListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/CustomTypeListBannedUsersResponse} The populated CustomTypeListBannedUsersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomTypeListBannedUsersResponse(); - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = _ApiClient["default"].convertToType(data['banned_list'], [_OcListBannedUsersResponseBannedListInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return CustomTypeListBannedUsersResponse; -}(); -/** - * @member {Array.} banned_list - */ -CustomTypeListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {String} next - */ -CustomTypeListBannedUsersResponse.prototype['next'] = undefined; -var _default = CustomTypeListBannedUsersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/DeleteAllowedIpsFromWhitelistResponse.js b/dist/model/DeleteAllowedIpsFromWhitelistResponse.js deleted file mode 100644 index 05f9009..0000000 --- a/dist/model/DeleteAllowedIpsFromWhitelistResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The DeleteAllowedIpsFromWhitelistResponse model module. - * @module model/DeleteAllowedIpsFromWhitelistResponse - * @version 0.0.16 - */ -var DeleteAllowedIpsFromWhitelistResponse = /*#__PURE__*/function () { - /** - * Constructs a new DeleteAllowedIpsFromWhitelistResponse. - * @alias module:model/DeleteAllowedIpsFromWhitelistResponse - */ - function DeleteAllowedIpsFromWhitelistResponse() { - _classCallCheck(this, DeleteAllowedIpsFromWhitelistResponse); - DeleteAllowedIpsFromWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(DeleteAllowedIpsFromWhitelistResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a DeleteAllowedIpsFromWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAllowedIpsFromWhitelistResponse} obj Optional instance to populate. - * @return {module:model/DeleteAllowedIpsFromWhitelistResponse} The populated DeleteAllowedIpsFromWhitelistResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAllowedIpsFromWhitelistResponse(); - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = _ApiClient["default"].convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - }]); - return DeleteAllowedIpsFromWhitelistResponse; -}(); -/** - * @member {Array.} ip_whitelist_addresses - */ -DeleteAllowedIpsFromWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; -var _default = DeleteAllowedIpsFromWhitelistResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/DeleteApnsCertificateByIdResponse.js b/dist/model/DeleteApnsCertificateByIdResponse.js deleted file mode 100644 index 6604f4d..0000000 --- a/dist/model/DeleteApnsCertificateByIdResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The DeleteApnsCertificateByIdResponse model module. - * @module model/DeleteApnsCertificateByIdResponse - * @version 0.0.16 - */ -var DeleteApnsCertificateByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new DeleteApnsCertificateByIdResponse. - * @alias module:model/DeleteApnsCertificateByIdResponse - */ - function DeleteApnsCertificateByIdResponse() { - _classCallCheck(this, DeleteApnsCertificateByIdResponse); - DeleteApnsCertificateByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(DeleteApnsCertificateByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a DeleteApnsCertificateByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteApnsCertificateByIdResponse} obj Optional instance to populate. - * @return {module:model/DeleteApnsCertificateByIdResponse} The populated DeleteApnsCertificateByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteApnsCertificateByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], ['String']); - } - } - return obj; - } - }]); - return DeleteApnsCertificateByIdResponse; -}(); -/** - * @member {Array.} push_configurations - */ -DeleteApnsCertificateByIdResponse.prototype['push_configurations'] = undefined; -var _default = DeleteApnsCertificateByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EnableReactionsData.js b/dist/model/EnableReactionsData.js deleted file mode 100644 index 4c4ccb0..0000000 --- a/dist/model/EnableReactionsData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The EnableReactionsData model module. - * @module model/EnableReactionsData - * @version 0.0.16 - */ -var EnableReactionsData = /*#__PURE__*/function () { - /** - * Constructs a new EnableReactionsData. - * @alias module:model/EnableReactionsData - * @param enabled {Boolean} Determines whether to turn on the message reaction feature. (Default: false) - */ - function EnableReactionsData(enabled) { - _classCallCheck(this, EnableReactionsData); - EnableReactionsData.initialize(this, enabled); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(EnableReactionsData, null, [{ - key: "initialize", - value: function initialize(obj, enabled) { - obj['enabled'] = enabled; - } - - /** - * Constructs a EnableReactionsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EnableReactionsData} obj Optional instance to populate. - * @return {module:model/EnableReactionsData} The populated EnableReactionsData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EnableReactionsData(); - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean'); - } - } - return obj; - } - }]); - return EnableReactionsData; -}(); -/** - * Determines whether to turn on the message reaction feature. (Default: false) - * @member {Boolean} enabled - */ -EnableReactionsData.prototype['enabled'] = undefined; -var _default = EnableReactionsData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/EnableReactionsResponse.js b/dist/model/EnableReactionsResponse.js deleted file mode 100644 index 0fb9647..0000000 --- a/dist/model/EnableReactionsResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The EnableReactionsResponse model module. - * @module model/EnableReactionsResponse - * @version 0.0.16 - */ -var EnableReactionsResponse = /*#__PURE__*/function () { - /** - * Constructs a new EnableReactionsResponse. - * @alias module:model/EnableReactionsResponse - */ - function EnableReactionsResponse() { - _classCallCheck(this, EnableReactionsResponse); - EnableReactionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(EnableReactionsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a EnableReactionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EnableReactionsResponse} obj Optional instance to populate. - * @return {module:model/EnableReactionsResponse} The populated EnableReactionsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new EnableReactionsResponse(); - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = _ApiClient["default"].convertToType(data['reactions'], 'Boolean'); - } - } - return obj; - } - }]); - return EnableReactionsResponse; -}(); -/** - * @member {Boolean} reactions - */ -EnableReactionsResponse.prototype['reactions'] = undefined; -var _default = EnableReactionsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/File.js b/dist/model/File.js deleted file mode 100644 index 202f3fd..0000000 --- a/dist/model/File.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The File model module. - * @module model/File - * @version 0.0.16 - */ -var File = /*#__PURE__*/function () { - /** - * Constructs a new File. - * @alias module:model/File - */ - function File() { - _classCallCheck(this, File); - File.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(File, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a File from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/File} obj Optional instance to populate. - * @return {module:model/File} The populated File instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new File(); - if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = _ApiClient["default"].convertToType(data['last_modified'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('webkit_relative_path')) { - obj['webkit_relative_path'] = _ApiClient["default"].convertToType(data['webkit_relative_path'], 'String'); - } - } - return obj; - } - }]); - return File; -}(); -/** - * @member {Number} last_modified - */ -File.prototype['last_modified'] = undefined; - -/** - * @member {String} name - */ -File.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -File.prototype['size'] = undefined; - -/** - * @member {String} type - */ -File.prototype['type'] = undefined; - -/** - * @member {String} webkit_relative_path - */ -File.prototype['webkit_relative_path'] = undefined; -var _default = File; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/FreezeAGroupChannelRequest.js b/dist/model/FreezeAGroupChannelRequest.js new file mode 100644 index 0000000..664fa2f --- /dev/null +++ b/dist/model/FreezeAGroupChannelRequest.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The FreezeAGroupChannelRequest model module. + * @module model/FreezeAGroupChannelRequest + * @version 2.0.0 + */ +var FreezeAGroupChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new FreezeAGroupChannelRequest. + * @alias module:model/FreezeAGroupChannelRequest + * @param freeze {Boolean} + */ + function FreezeAGroupChannelRequest(freeze) { + _classCallCheck(this, FreezeAGroupChannelRequest); + FreezeAGroupChannelRequest.initialize(this, freeze); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(FreezeAGroupChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, freeze) { + obj['freeze'] = freeze; + } + + /** + * Constructs a FreezeAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FreezeAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/FreezeAGroupChannelRequest} The populated FreezeAGroupChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new FreezeAGroupChannelRequest(); + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} freeze + */ +FreezeAGroupChannelRequest.prototype['freeze'] = undefined; +var _default = exports["default"] = FreezeAGroupChannelRequest; \ No newline at end of file diff --git a/dist/model/FreezeAnOpenChannelRequest.js b/dist/model/FreezeAnOpenChannelRequest.js new file mode 100644 index 0000000..b172ed0 --- /dev/null +++ b/dist/model/FreezeAnOpenChannelRequest.js @@ -0,0 +1,78 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The FreezeAnOpenChannelRequest model module. + * @module model/FreezeAnOpenChannelRequest + * @version 2.0.0 + */ +var FreezeAnOpenChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new FreezeAnOpenChannelRequest. + * @alias module:model/FreezeAnOpenChannelRequest + * @param freeze {Boolean} Determines whether to freeze the channel. (Default: true) + */ + function FreezeAnOpenChannelRequest(freeze) { + _classCallCheck(this, FreezeAnOpenChannelRequest); + FreezeAnOpenChannelRequest.initialize(this, freeze); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(FreezeAnOpenChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, freeze) { + obj['freeze'] = freeze; + } + + /** + * Constructs a FreezeAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FreezeAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/FreezeAnOpenChannelRequest} The populated FreezeAnOpenChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new FreezeAnOpenChannelRequest(); + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * Determines whether to freeze the channel. (Default: true) + * @member {Boolean} freeze + */ +FreezeAnOpenChannelRequest.prototype['freeze'] = undefined; +var _default = exports["default"] = FreezeAnOpenChannelRequest; \ No newline at end of file diff --git a/dist/model/Function.js b/dist/model/Function.js deleted file mode 100644 index 5e22975..0000000 --- a/dist/model/Function.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The Function model module. - * @module model/Function - * @version 0.0.16 - */ -var Function = /*#__PURE__*/function () { - /** - * Constructs a new Function. - * @alias module:model/Function - */ - function Function() { - _classCallCheck(this, Function); - Function.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(Function, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a Function from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Function} obj Optional instance to populate. - * @return {module:model/Function} The populated Function instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new Function(); - if (data.hasOwnProperty('arguments')) { - obj['arguments'] = _ApiClient["default"].convertToType(data['arguments'], Object); - } - if (data.hasOwnProperty('caller')) { - obj['caller'] = Function.constructFromObject(data['caller']); - } - if (data.hasOwnProperty('length')) { - obj['length'] = _ApiClient["default"].convertToType(data['length'], 'Number'); - } - if (data.hasOwnProperty('prototype')) { - obj['prototype'] = _ApiClient["default"].convertToType(data['prototype'], Object); - } - } - return obj; - } - }]); - return Function; -}(); -/** - * @member {Object} arguments - */ -Function.prototype['arguments'] = undefined; - -/** - * @member {module:model/Function} caller - */ -Function.prototype['caller'] = undefined; - -/** - * @member {Number} length - */ -Function.prototype['length'] = undefined; - -/** - * @member {Object} prototype - */ -Function.prototype['prototype'] = undefined; -var _default = Function; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcAcceptInvitationData.js b/dist/model/GcAcceptInvitationData.js deleted file mode 100644 index 5b5cd9f..0000000 --- a/dist/model/GcAcceptInvitationData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcAcceptInvitationData model module. - * @module model/GcAcceptInvitationData - * @version 0.0.16 - */ -var GcAcceptInvitationData = /*#__PURE__*/function () { - /** - * Constructs a new GcAcceptInvitationData. - * @alias module:model/GcAcceptInvitationData - * @param channelUrl {String} Specifies the URL of the private group channel to join through accepting an invitation. - * @param userId {String} Specifies the unique ID of the user to accept an invitation to join the private group channel. - * @param accessCode {String} This property should be specified if the private group channel to join requires an access code to the invited users, which means that the is_access_code_required property of the channel resource is true. - */ - function GcAcceptInvitationData(channelUrl, userId, accessCode) { - _classCallCheck(this, GcAcceptInvitationData); - GcAcceptInvitationData.initialize(this, channelUrl, userId, accessCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcAcceptInvitationData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, accessCode) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['access_code'] = accessCode; - } - - /** - * Constructs a GcAcceptInvitationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcAcceptInvitationData} obj Optional instance to populate. - * @return {module:model/GcAcceptInvitationData} The populated GcAcceptInvitationData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcAcceptInvitationData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); - } - } - return obj; - } - }]); - return GcAcceptInvitationData; -}(); -/** - * Specifies the URL of the private group channel to join through accepting an invitation. - * @member {String} channel_url - */ -GcAcceptInvitationData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to accept an invitation to join the private group channel. - * @member {String} user_id - */ -GcAcceptInvitationData.prototype['user_id'] = undefined; - -/** - * This property should be specified if the private group channel to join requires an access code to the invited users, which means that the is_access_code_required property of the channel resource is true. - * @member {String} access_code - */ -GcAcceptInvitationData.prototype['access_code'] = undefined; -var _default = GcAcceptInvitationData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcBanUserData.js b/dist/model/GcBanUserData.js deleted file mode 100644 index a0c0f07..0000000 --- a/dist/model/GcBanUserData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcBanUserData model module. - * @module model/GcBanUserData - * @version 0.0.16 - */ -var GcBanUserData = /*#__PURE__*/function () { - /** - * Constructs a new GcBanUserData. - * @alias module:model/GcBanUserData - * @param channelUrl {String} Specifies the URL of the channel where to ban a user. - * @param userId {String} Specifies the unique ID of the user to ban. - * @param agentId {String} Specifies the ID of the agent (operator) who bans the user. - * @param seconds {Number} Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the banning. The length is limited to 250 characters. - */ - function GcBanUserData(channelUrl, userId, agentId, seconds, description) { - _classCallCheck(this, GcBanUserData); - GcBanUserData.initialize(this, channelUrl, userId, agentId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcBanUserData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, agentId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['agent_id'] = agentId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcBanUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcBanUserData} obj Optional instance to populate. - * @return {module:model/GcBanUserData} The populated GcBanUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcBanUserData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('agent_id')) { - obj['agent_id'] = _ApiClient["default"].convertToType(data['agent_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcBanUserData; -}(); -/** - * Specifies the URL of the channel where to ban a user. - * @member {String} channel_url - */ -GcBanUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to ban. - * @member {String} user_id - */ -GcBanUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the agent (operator) who bans the user. - * @member {String} agent_id - */ -GcBanUserData.prototype['agent_id'] = undefined; - -/** - * Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -GcBanUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the banning. The length is limited to 250 characters. - * @member {String} description - */ -GcBanUserData.prototype['description'] = undefined; -var _default = GcBanUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcBanUserResponse.js b/dist/model/GcBanUserResponse.js deleted file mode 100644 index c28a6dd..0000000 --- a/dist/model/GcBanUserResponse.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("./OcDeleteChannelByUrl200Response")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcBanUserResponse model module. - * @module model/GcBanUserResponse - * @version 0.0.16 - */ -var GcBanUserResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcBanUserResponse. - * @alias module:model/GcBanUserResponse - */ - function GcBanUserResponse() { - _classCallCheck(this, GcBanUserResponse); - GcBanUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcBanUserResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcBanUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcBanUserResponse} obj Optional instance to populate. - * @return {module:model/GcBanUserResponse} The populated GcBanUserResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcBanUserResponse(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _OcDeleteChannelByUrl200Response["default"].constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('next_url')) { - obj['next_url'] = _ApiClient["default"].convertToType(data['next_url'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return GcBanUserResponse; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -GcBanUserResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcBanUserResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcBanUserResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcBanUserResponse.prototype['description'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -GcBanUserResponse.prototype['metadata'] = undefined; - -/** - * @member {String} next_url - */ -GcBanUserResponse.prototype['next_url'] = undefined; - -/** - * @member {String} nickname - */ -GcBanUserResponse.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -GcBanUserResponse.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -GcBanUserResponse.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} user_id - */ -GcBanUserResponse.prototype['user_id'] = undefined; -var _default = GcBanUserResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcCheckIfMemberByIdResponse.js b/dist/model/GcCheckIfMemberByIdResponse.js deleted file mode 100644 index 916986e..0000000 --- a/dist/model/GcCheckIfMemberByIdResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcCheckIfMemberByIdResponse model module. - * @module model/GcCheckIfMemberByIdResponse - * @version 0.0.16 - */ -var GcCheckIfMemberByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcCheckIfMemberByIdResponse. - * @alias module:model/GcCheckIfMemberByIdResponse - */ - function GcCheckIfMemberByIdResponse() { - _classCallCheck(this, GcCheckIfMemberByIdResponse); - GcCheckIfMemberByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcCheckIfMemberByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcCheckIfMemberByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcCheckIfMemberByIdResponse} obj Optional instance to populate. - * @return {module:model/GcCheckIfMemberByIdResponse} The populated GcCheckIfMemberByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcCheckIfMemberByIdResponse(); - if (data.hasOwnProperty('is_member')) { - obj['is_member'] = _ApiClient["default"].convertToType(data['is_member'], 'Boolean'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); - } - } - return obj; - } - }]); - return GcCheckIfMemberByIdResponse; -}(); -/** - * @member {Boolean} is_member - */ -GcCheckIfMemberByIdResponse.prototype['is_member'] = undefined; - -/** - * @member {String} state - */ -GcCheckIfMemberByIdResponse.prototype['state'] = undefined; -var _default = GcCheckIfMemberByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcCreateChannelData.js b/dist/model/GcCreateChannelData.js deleted file mode 100644 index 8ac2fea..0000000 --- a/dist/model/GcCreateChannelData.js +++ /dev/null @@ -1,229 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcCreateChannelData model module. - * @module model/GcCreateChannelData - * @version 0.0.16 - */ -var GcCreateChannelData = /*#__PURE__*/function () { - /** - * Constructs a new GcCreateChannelData. - * @alias module:model/GcCreateChannelData - * @param userIds {Array.} Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. - */ - function GcCreateChannelData(userIds) { - _classCallCheck(this, GcCreateChannelData); - GcCreateChannelData.initialize(this, userIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcCreateChannelData, null, [{ - key: "initialize", - value: function initialize(obj, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a GcCreateChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcCreateChannelData} obj Optional instance to populate. - * @return {module:model/GcCreateChannelData} The populated GcCreateChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcCreateChannelData(); - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); - } - if (data.hasOwnProperty('inviter_id')) { - obj['inviter_id'] = _ApiClient["default"].convertToType(data['inviter_id'], 'String'); - } - if (data.hasOwnProperty('strict')) { - obj['strict'] = _ApiClient["default"].convertToType(data['strict'], 'Boolean'); - } - if (data.hasOwnProperty('invitation_status')) { - obj['invitation_status'] = _ApiClient["default"].convertToType(data['invitation_status'], Object); - } - if (data.hasOwnProperty('hidden_status')) { - obj['hidden_status'] = _ApiClient["default"].convertToType(data['hidden_status'], Object); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('block_sdk_user_channel_join')) { - obj['block_sdk_user_channel_join'] = _ApiClient["default"].convertToType(data['block_sdk_user_channel_join'], 'Boolean'); - } - } - return obj; - } - }]); - return GcCreateChannelData; -}(); -/** - * Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. - * @member {Array.} user_ids - */ -GcCreateChannelData.prototype['user_ids'] = undefined; - -/** - * Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. - * @member {Array.} users - */ -GcCreateChannelData.prototype['users'] = undefined; - -/** - * Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel) - * @member {String} name - */ -GcCreateChannelData.prototype['name'] = undefined; - -/** - * Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. - * @member {String} channel_url - */ -GcCreateChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -GcCreateChannelData.prototype['cover_url'] = undefined; - -/** - * Uploads the cover image file for the channel. - * @member {File} cover_file - */ -GcCreateChannelData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -GcCreateChannelData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -GcCreateChannelData.prototype['data'] = undefined; - -/** - * Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the same users in the user_ids or users property or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @member {Boolean} is_distinct - */ -GcCreateChannelData.prototype['is_distinct'] = undefined; - -/** - * Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @member {Boolean} is_public - */ -GcCreateChannelData.prototype['is_public'] = undefined; - -/** - * Determines whether to allow the channel to accommodate more than 2,000 members. (Default: false)

Supergroup channels are not supported with the is_distinct property and the property is false by default. - * @member {Boolean} is_super - */ -GcCreateChannelData.prototype['is_super'] = undefined; - -/** - * Determines whether to preserve the messages in the channel for the purpose of retrieving chat history. (Default: false) - * @member {Boolean} is_ephemeral - */ -GcCreateChannelData.prototype['is_ephemeral'] = undefined; - -/** - * This parameter can only be used when the channel operator creates a public group channel. They can set an access code for the corresponding type of channel. The channel then requires the specified access code to a user who attempts to join. If specified, the is_access_code_required property of the channel resource is set to true. - * @member {String} access_code - */ -GcCreateChannelData.prototype['access_code'] = undefined; - -/** - * Specifies the ID of the user who has invited other users as members of the channel. The inviter is not automatically registered to the channel as a member, so you should specify the ID of the inviter in the user_ids property below if needed. - * @member {String} inviter_id - */ -GcCreateChannelData.prototype['inviter_id'] = undefined; - -/** - * Determines whether to receive a `400111` error and cease channel creation when there is at least one non-existing user in the specified user_ids or users property above. If set to false, the channel will be created excluding the non-existing users without receiving the mentioned error. (Default: false) - * @member {Boolean} strict - */ -GcCreateChannelData.prototype['strict'] = undefined; - -/** - * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @member {Object} invitation_status - */ -GcCreateChannelData.prototype['invitation_status'] = undefined; - -/** - * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - * @member {Object} hidden_status - */ -GcCreateChannelData.prototype['hidden_status'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. You should also include these IDs in the user_ids property to invite them to the channel as members. They can delete any messages in the channel, and also view all messages without any filtering or throttling. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcCreateChannelData.prototype['operator_ids'] = undefined; - -/** - * Determines whether to block users from joining the channel through the Chat SDK. This parameter can be used in order to restrict the ways for users to join the channel, and only using the [join a channel](#2-join-a-channel) action can add a user to the channel. (Default: false) - * @member {Boolean} block_sdk_user_channel_join - */ -GcCreateChannelData.prototype['block_sdk_user_channel_join'] = undefined; -var _default = GcCreateChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcDeclineInvitationData.js b/dist/model/GcDeclineInvitationData.js deleted file mode 100644 index f04ac65..0000000 --- a/dist/model/GcDeclineInvitationData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcDeclineInvitationData model module. - * @module model/GcDeclineInvitationData - * @version 0.0.16 - */ -var GcDeclineInvitationData = /*#__PURE__*/function () { - /** - * Constructs a new GcDeclineInvitationData. - * @alias module:model/GcDeclineInvitationData - * @param channelUrl {String} Specifies the URL of the private group channel to decline an invitation from. - * @param userId {String} Specifies the unique ID of the user to decline an invitation. - */ - function GcDeclineInvitationData(channelUrl, userId) { - _classCallCheck(this, GcDeclineInvitationData); - GcDeclineInvitationData.initialize(this, channelUrl, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcDeclineInvitationData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - } - - /** - * Constructs a GcDeclineInvitationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcDeclineInvitationData} obj Optional instance to populate. - * @return {module:model/GcDeclineInvitationData} The populated GcDeclineInvitationData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcDeclineInvitationData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return GcDeclineInvitationData; -}(); -/** - * Specifies the URL of the private group channel to decline an invitation from. - * @member {String} channel_url - */ -GcDeclineInvitationData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to decline an invitation. - * @member {String} user_id - */ -GcDeclineInvitationData.prototype['user_id'] = undefined; -var _default = GcDeclineInvitationData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcFreezeChannelData.js b/dist/model/GcFreezeChannelData.js deleted file mode 100644 index 4240a17..0000000 --- a/dist/model/GcFreezeChannelData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcFreezeChannelData model module. - * @module model/GcFreezeChannelData - * @version 0.0.16 - */ -var GcFreezeChannelData = /*#__PURE__*/function () { - /** - * Constructs a new GcFreezeChannelData. - * @alias module:model/GcFreezeChannelData - * @param channelUrl {String} Specifies the URL of the channel to freeze. - * @param freeze {Boolean} Determines whether to freeze the channel. (Default: false) - */ - function GcFreezeChannelData(channelUrl, freeze) { - _classCallCheck(this, GcFreezeChannelData); - GcFreezeChannelData.initialize(this, channelUrl, freeze); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcFreezeChannelData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, freeze) { - obj['channel_url'] = channelUrl; - obj['freeze'] = freeze; - } - - /** - * Constructs a GcFreezeChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcFreezeChannelData} obj Optional instance to populate. - * @return {module:model/GcFreezeChannelData} The populated GcFreezeChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcFreezeChannelData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - }]); - return GcFreezeChannelData; -}(); -/** - * Specifies the URL of the channel to freeze. - * @member {String} channel_url - */ -GcFreezeChannelData.prototype['channel_url'] = undefined; - -/** - * Determines whether to freeze the channel. (Default: false) - * @member {Boolean} freeze - */ -GcFreezeChannelData.prototype['freeze'] = undefined; -var _default = GcFreezeChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcHideOrArchiveChannelData.js b/dist/model/GcHideOrArchiveChannelData.js deleted file mode 100644 index 95826a1..0000000 --- a/dist/model/GcHideOrArchiveChannelData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcHideOrArchiveChannelData model module. - * @module model/GcHideOrArchiveChannelData - * @version 0.0.16 - */ -var GcHideOrArchiveChannelData = /*#__PURE__*/function () { - /** - * Constructs a new GcHideOrArchiveChannelData. - * @alias module:model/GcHideOrArchiveChannelData - * @param channelUrl {String} Specifies the URL of the channel to hide or archive. - * @param userId {String} Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. - * @param allowAutoUnhide {Boolean} Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. - * @param shouldHideAll {Boolean} Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) - * @param hidePreviousMessages {Boolean} When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. - */ - function GcHideOrArchiveChannelData(channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages) { - _classCallCheck(this, GcHideOrArchiveChannelData); - GcHideOrArchiveChannelData.initialize(this, channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcHideOrArchiveChannelData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['allow_auto_unhide'] = allowAutoUnhide; - obj['should_hide_all'] = shouldHideAll; - obj['hide_previous_messages'] = hidePreviousMessages; - } - - /** - * Constructs a GcHideOrArchiveChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcHideOrArchiveChannelData} obj Optional instance to populate. - * @return {module:model/GcHideOrArchiveChannelData} The populated GcHideOrArchiveChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcHideOrArchiveChannelData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('allow_auto_unhide')) { - obj['allow_auto_unhide'] = _ApiClient["default"].convertToType(data['allow_auto_unhide'], 'Boolean'); - } - if (data.hasOwnProperty('should_hide_all')) { - obj['should_hide_all'] = _ApiClient["default"].convertToType(data['should_hide_all'], 'Boolean'); - } - if (data.hasOwnProperty('hide_previous_messages')) { - obj['hide_previous_messages'] = _ApiClient["default"].convertToType(data['hide_previous_messages'], 'Boolean'); - } - } - return obj; - } - }]); - return GcHideOrArchiveChannelData; -}(); -/** - * Specifies the URL of the channel to hide or archive. - * @member {String} channel_url - */ -GcHideOrArchiveChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. - * @member {String} user_id - */ -GcHideOrArchiveChannelData.prototype['user_id'] = undefined; - -/** - * Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. - * @member {Boolean} allow_auto_unhide - */ -GcHideOrArchiveChannelData.prototype['allow_auto_unhide'] = undefined; - -/** - * Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) - * @member {Boolean} should_hide_all - */ -GcHideOrArchiveChannelData.prototype['should_hide_all'] = undefined; - -/** - * When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. - * @member {Boolean} hide_previous_messages - */ -GcHideOrArchiveChannelData.prototype['hide_previous_messages'] = undefined; -var _default = GcHideOrArchiveChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcInviteAsMembersData.js b/dist/model/GcInviteAsMembersData.js deleted file mode 100644 index aecd5d3..0000000 --- a/dist/model/GcInviteAsMembersData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcInviteAsMembersData model module. - * @module model/GcInviteAsMembersData - * @version 0.0.16 - */ -var GcInviteAsMembersData = /*#__PURE__*/function () { - /** - * Constructs a new GcInviteAsMembersData. - * @alias module:model/GcInviteAsMembersData - * @param channelUrl {String} Specifies the URL of the channel to invite into. - * @param userIds {Array.} Specifies an array of one or more user IDs to invite into the channel. The maximum number of users to be invited at once is 100. The users can be used instead of this property. - * @param users {Array.} Specifies a list of one or more `JSON` objects which contain the user_id property to invite into the channel. The maximum number of users to be invited at once is 100. The user_ids can be used instead of this property. - * @param invitationStatus {Object} Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @param hiddenStatus {Object} Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - */ - function GcInviteAsMembersData(channelUrl, userIds, users, invitationStatus, hiddenStatus) { - _classCallCheck(this, GcInviteAsMembersData); - GcInviteAsMembersData.initialize(this, channelUrl, userIds, users, invitationStatus, hiddenStatus); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcInviteAsMembersData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userIds, users, invitationStatus, hiddenStatus) { - obj['channel_url'] = channelUrl; - obj['user_ids'] = userIds; - obj['users'] = users; - obj['invitation_status'] = invitationStatus; - obj['hidden_status'] = hiddenStatus; - } - - /** - * Constructs a GcInviteAsMembersData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcInviteAsMembersData} obj Optional instance to populate. - * @return {module:model/GcInviteAsMembersData} The populated GcInviteAsMembersData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcInviteAsMembersData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], ['String']); - } - if (data.hasOwnProperty('invitation_status')) { - obj['invitation_status'] = _ApiClient["default"].convertToType(data['invitation_status'], Object); - } - if (data.hasOwnProperty('hidden_status')) { - obj['hidden_status'] = _ApiClient["default"].convertToType(data['hidden_status'], Object); - } - } - return obj; - } - }]); - return GcInviteAsMembersData; -}(); -/** - * Specifies the URL of the channel to invite into. - * @member {String} channel_url - */ -GcInviteAsMembersData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more user IDs to invite into the channel. The maximum number of users to be invited at once is 100. The users can be used instead of this property. - * @member {Array.} user_ids - */ -GcInviteAsMembersData.prototype['user_ids'] = undefined; - -/** - * Specifies a list of one or more `JSON` objects which contain the user_id property to invite into the channel. The maximum number of users to be invited at once is 100. The user_ids can be used instead of this property. - * @member {Array.} users - */ -GcInviteAsMembersData.prototype['users'] = undefined; - -/** - * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @member {Object} invitation_status - */ -GcInviteAsMembersData.prototype['invitation_status'] = undefined; - -/** - * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - * @member {Object} hidden_status - */ -GcInviteAsMembersData.prototype['hidden_status'] = undefined; -var _default = GcInviteAsMembersData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcJoinChannelData.js b/dist/model/GcJoinChannelData.js deleted file mode 100644 index d95eaaa..0000000 --- a/dist/model/GcJoinChannelData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcJoinChannelData model module. - * @module model/GcJoinChannelData - * @version 0.0.16 - */ -var GcJoinChannelData = /*#__PURE__*/function () { - /** - * Constructs a new GcJoinChannelData. - * @alias module:model/GcJoinChannelData - * @param channelUrl {String} Specifies the URL of the channel to join. - * @param userId {String} Specifies the unique ID of the user to join the public group channel. - * @param accessCode {String} This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. - */ - function GcJoinChannelData(channelUrl, userId, accessCode) { - _classCallCheck(this, GcJoinChannelData); - GcJoinChannelData.initialize(this, channelUrl, userId, accessCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcJoinChannelData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, accessCode) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['access_code'] = accessCode; - } - - /** - * Constructs a GcJoinChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcJoinChannelData} obj Optional instance to populate. - * @return {module:model/GcJoinChannelData} The populated GcJoinChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcJoinChannelData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); - } - } - return obj; - } - }]); - return GcJoinChannelData; -}(); -/** - * Specifies the URL of the channel to join. - * @member {String} channel_url - */ -GcJoinChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to join the public group channel. - * @member {String} user_id - */ -GcJoinChannelData.prototype['user_id'] = undefined; - -/** - * This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. - * @member {String} access_code - */ -GcJoinChannelData.prototype['access_code'] = undefined; -var _default = GcJoinChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcLeaveChannelData.js b/dist/model/GcLeaveChannelData.js deleted file mode 100644 index d41ab42..0000000 --- a/dist/model/GcLeaveChannelData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcLeaveChannelData model module. - * @module model/GcLeaveChannelData - * @version 0.0.16 - */ -var GcLeaveChannelData = /*#__PURE__*/function () { - /** - * Constructs a new GcLeaveChannelData. - * @alias module:model/GcLeaveChannelData - * @param channelUrl {String} Specifies the URL of the channel to leave. - * @param userIds {Array.} Specifies an array of one or more IDs of the users to leave the channel. - * @param shouldLeaveAll {Boolean} Determines whether to make all members leave the channel. (Default: false) - */ - function GcLeaveChannelData(channelUrl, userIds, shouldLeaveAll) { - _classCallCheck(this, GcLeaveChannelData); - GcLeaveChannelData.initialize(this, channelUrl, userIds, shouldLeaveAll); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcLeaveChannelData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userIds, shouldLeaveAll) { - obj['channel_url'] = channelUrl; - obj['user_ids'] = userIds; - obj['should_leave_all'] = shouldLeaveAll; - } - - /** - * Constructs a GcLeaveChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcLeaveChannelData} obj Optional instance to populate. - * @return {module:model/GcLeaveChannelData} The populated GcLeaveChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcLeaveChannelData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('should_leave_all')) { - obj['should_leave_all'] = _ApiClient["default"].convertToType(data['should_leave_all'], 'Boolean'); - } - } - return obj; - } - }]); - return GcLeaveChannelData; -}(); -/** - * Specifies the URL of the channel to leave. - * @member {String} channel_url - */ -GcLeaveChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of the users to leave the channel. - * @member {Array.} user_ids - */ -GcLeaveChannelData.prototype['user_ids'] = undefined; - -/** - * Determines whether to make all members leave the channel. (Default: false) - * @member {Boolean} should_leave_all - */ -GcLeaveChannelData.prototype['should_leave_all'] = undefined; -var _default = GcLeaveChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcListBannedUsersResponse.js b/dist/model/GcListBannedUsersResponse.js deleted file mode 100644 index f7ac3bf..0000000 --- a/dist/model/GcListBannedUsersResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcListBannedUsersResponseBannedListInner = _interopRequireDefault(require("./OcListBannedUsersResponseBannedListInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcListBannedUsersResponse model module. - * @module model/GcListBannedUsersResponse - * @version 0.0.16 - */ -var GcListBannedUsersResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcListBannedUsersResponse. - * @alias module:model/GcListBannedUsersResponse - */ - function GcListBannedUsersResponse() { - _classCallCheck(this, GcListBannedUsersResponse); - GcListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcListBannedUsersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/GcListBannedUsersResponse} The populated GcListBannedUsersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListBannedUsersResponse(); - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = _ApiClient["default"].convertToType(data['banned_list'], [_OcListBannedUsersResponseBannedListInner["default"]]); - } - if (data.hasOwnProperty('total_ban_count')) { - obj['total_ban_count'] = _ApiClient["default"].convertToType(data['total_ban_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return GcListBannedUsersResponse; -}(); -/** - * @member {Array.} banned_list - */ -GcListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {Number} total_ban_count - */ -GcListBannedUsersResponse.prototype['total_ban_count'] = undefined; - -/** - * @member {String} next - */ -GcListBannedUsersResponse.prototype['next'] = undefined; -var _default = GcListBannedUsersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcListChannelsResponse.js b/dist/model/GcListChannelsResponse.js deleted file mode 100644 index 4cde74d..0000000 --- a/dist/model/GcListChannelsResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./SendBirdGroupChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcListChannelsResponse model module. - * @module model/GcListChannelsResponse - * @version 0.0.16 - */ -var GcListChannelsResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcListChannelsResponse. - * @alias module:model/GcListChannelsResponse - */ - function GcListChannelsResponse() { - _classCallCheck(this, GcListChannelsResponse); - GcListChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcListChannelsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcListChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListChannelsResponse} obj Optional instance to populate. - * @return {module:model/GcListChannelsResponse} The populated GcListChannelsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListChannelsResponse(); - if (data.hasOwnProperty('channels')) { - obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendBirdGroupChannel["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - if (data.hasOwnProperty('ts')) { - obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); - } - } - return obj; - } - }]); - return GcListChannelsResponse; -}(); -/** - * @member {Array.} channels - */ -GcListChannelsResponse.prototype['channels'] = undefined; - -/** - * @member {String} next - */ -GcListChannelsResponse.prototype['next'] = undefined; - -/** - * @member {Number} ts - */ -GcListChannelsResponse.prototype['ts'] = undefined; -var _default = GcListChannelsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcListMembersResponse.js b/dist/model/GcListMembersResponse.js deleted file mode 100644 index f57bc20..0000000 --- a/dist/model/GcListMembersResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcListMembersResponse model module. - * @module model/GcListMembersResponse - * @version 0.0.16 - */ -var GcListMembersResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcListMembersResponse. - * @alias module:model/GcListMembersResponse - */ - function GcListMembersResponse() { - _classCallCheck(this, GcListMembersResponse); - GcListMembersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcListMembersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcListMembersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListMembersResponse} obj Optional instance to populate. - * @return {module:model/GcListMembersResponse} The populated GcListMembersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListMembersResponse(); - if (data.hasOwnProperty('members')) { - obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return GcListMembersResponse; -}(); -/** - * @member {Array.} members - */ -GcListMembersResponse.prototype['members'] = undefined; - -/** - * @member {String} next - */ -GcListMembersResponse.prototype['next'] = undefined; -var _default = GcListMembersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcListMutedUsersResponse.js b/dist/model/GcListMutedUsersResponse.js deleted file mode 100644 index 3617a96..0000000 --- a/dist/model/GcListMutedUsersResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcListMutedUsersResponse model module. - * @module model/GcListMutedUsersResponse - * @version 0.0.16 - */ -var GcListMutedUsersResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcListMutedUsersResponse. - * @alias module:model/GcListMutedUsersResponse - */ - function GcListMutedUsersResponse() { - _classCallCheck(this, GcListMutedUsersResponse); - GcListMutedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcListMutedUsersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcListMutedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListMutedUsersResponse} obj Optional instance to populate. - * @return {module:model/GcListMutedUsersResponse} The populated GcListMutedUsersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListMutedUsersResponse(); - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = _ApiClient["default"].convertToType(data['muted_list'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('total_mute_count')) { - obj['total_mute_count'] = _ApiClient["default"].convertToType(data['total_mute_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return GcListMutedUsersResponse; -}(); -/** - * @member {Array.} muted_list - */ -GcListMutedUsersResponse.prototype['muted_list'] = undefined; - -/** - * @member {Number} total_mute_count - */ -GcListMutedUsersResponse.prototype['total_mute_count'] = undefined; - -/** - * @member {String} next - */ -GcListMutedUsersResponse.prototype['next'] = undefined; -var _default = GcListMutedUsersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcListOperatorsResponse.js b/dist/model/GcListOperatorsResponse.js deleted file mode 100644 index 4623b33..0000000 --- a/dist/model/GcListOperatorsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcListOperatorsResponse model module. - * @module model/GcListOperatorsResponse - * @version 0.0.16 - */ -var GcListOperatorsResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcListOperatorsResponse. - * @alias module:model/GcListOperatorsResponse - */ - function GcListOperatorsResponse() { - _classCallCheck(this, GcListOperatorsResponse); - GcListOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcListOperatorsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListOperatorsResponse} obj Optional instance to populate. - * @return {module:model/GcListOperatorsResponse} The populated GcListOperatorsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListOperatorsResponse(); - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return GcListOperatorsResponse; -}(); -/** - * @member {Array.} operators - */ -GcListOperatorsResponse.prototype['operators'] = undefined; - -/** - * @member {String} next - */ -GcListOperatorsResponse.prototype['next'] = undefined; -var _default = GcListOperatorsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcMarkAllMessagesAsDeliveredData.js b/dist/model/GcMarkAllMessagesAsDeliveredData.js deleted file mode 100644 index 3de8eef..0000000 --- a/dist/model/GcMarkAllMessagesAsDeliveredData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcMarkAllMessagesAsDeliveredData model module. - * @module model/GcMarkAllMessagesAsDeliveredData - * @version 0.0.16 - */ -var GcMarkAllMessagesAsDeliveredData = /*#__PURE__*/function () { - /** - * Constructs a new GcMarkAllMessagesAsDeliveredData. - * @alias module:model/GcMarkAllMessagesAsDeliveredData - * @param applicationId {String} Specifies the unique ID of your application. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the recipient to mark messages as delivered. - */ - function GcMarkAllMessagesAsDeliveredData(applicationId, channelUrl, userId) { - _classCallCheck(this, GcMarkAllMessagesAsDeliveredData); - GcMarkAllMessagesAsDeliveredData.initialize(this, applicationId, channelUrl, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcMarkAllMessagesAsDeliveredData, null, [{ - key: "initialize", - value: function initialize(obj, applicationId, channelUrl, userId) { - obj['application_id'] = applicationId; - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - } - - /** - * Constructs a GcMarkAllMessagesAsDeliveredData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsDeliveredData} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsDeliveredData} The populated GcMarkAllMessagesAsDeliveredData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsDeliveredData(); - if (data.hasOwnProperty('application_id')) { - obj['application_id'] = _ApiClient["default"].convertToType(data['application_id'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return GcMarkAllMessagesAsDeliveredData; -}(); -/** - * Specifies the unique ID of your application. - * @member {String} application_id - */ -GcMarkAllMessagesAsDeliveredData.prototype['application_id'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMarkAllMessagesAsDeliveredData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the recipient to mark messages as delivered. - * @member {String} user_id - */ -GcMarkAllMessagesAsDeliveredData.prototype['user_id'] = undefined; -var _default = GcMarkAllMessagesAsDeliveredData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcMarkAllMessagesAsDeliveredResponse.js b/dist/model/GcMarkAllMessagesAsDeliveredResponse.js deleted file mode 100644 index ca33230..0000000 --- a/dist/model/GcMarkAllMessagesAsDeliveredResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcMarkAllMessagesAsDeliveredResponse model module. - * @module model/GcMarkAllMessagesAsDeliveredResponse - * @version 0.0.16 - */ -var GcMarkAllMessagesAsDeliveredResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcMarkAllMessagesAsDeliveredResponse. - * @alias module:model/GcMarkAllMessagesAsDeliveredResponse - */ - function GcMarkAllMessagesAsDeliveredResponse() { - _classCallCheck(this, GcMarkAllMessagesAsDeliveredResponse); - GcMarkAllMessagesAsDeliveredResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcMarkAllMessagesAsDeliveredResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcMarkAllMessagesAsDeliveredResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsDeliveredResponse} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsDeliveredResponse} The populated GcMarkAllMessagesAsDeliveredResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsDeliveredResponse(); - if (data.hasOwnProperty('ts')) { - obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); - } - } - return obj; - } - }]); - return GcMarkAllMessagesAsDeliveredResponse; -}(); -/** - * @member {Number} ts - */ -GcMarkAllMessagesAsDeliveredResponse.prototype['ts'] = undefined; -var _default = GcMarkAllMessagesAsDeliveredResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcMarkAllMessagesAsReadData.js b/dist/model/GcMarkAllMessagesAsReadData.js deleted file mode 100644 index 352da2c..0000000 --- a/dist/model/GcMarkAllMessagesAsReadData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcMarkAllMessagesAsReadData model module. - * @module model/GcMarkAllMessagesAsReadData - * @version 0.0.16 - */ -var GcMarkAllMessagesAsReadData = /*#__PURE__*/function () { - /** - * Constructs a new GcMarkAllMessagesAsReadData. - * @alias module:model/GcMarkAllMessagesAsReadData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the user to mark all messages as read. - * @param timestamp {Number} Specifies the timestamp to be the reference point of marking as read. If specified, the messages received before the specified time are marked as read. - */ - function GcMarkAllMessagesAsReadData(channelUrl, userId, timestamp) { - _classCallCheck(this, GcMarkAllMessagesAsReadData); - GcMarkAllMessagesAsReadData.initialize(this, channelUrl, userId, timestamp); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcMarkAllMessagesAsReadData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, timestamp) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['timestamp'] = timestamp; - } - - /** - * Constructs a GcMarkAllMessagesAsReadData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsReadData} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsReadData} The populated GcMarkAllMessagesAsReadData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsReadData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'Number'); - } - } - return obj; - } - }]); - return GcMarkAllMessagesAsReadData; -}(); -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMarkAllMessagesAsReadData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the user to mark all messages as read. - * @member {String} user_id - */ -GcMarkAllMessagesAsReadData.prototype['user_id'] = undefined; - -/** - * Specifies the timestamp to be the reference point of marking as read. If specified, the messages received before the specified time are marked as read. - * @member {Number} timestamp - */ -GcMarkAllMessagesAsReadData.prototype['timestamp'] = undefined; -var _default = GcMarkAllMessagesAsReadData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcMuteUserData.js b/dist/model/GcMuteUserData.js deleted file mode 100644 index b62dc31..0000000 --- a/dist/model/GcMuteUserData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcMuteUserData model module. - * @module model/GcMuteUserData - * @version 0.0.16 - */ -var GcMuteUserData = /*#__PURE__*/function () { - /** - * Constructs a new GcMuteUserData. - * @alias module:model/GcMuteUserData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the target user to mute. - * @param seconds {Number} Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the muting. - */ - function GcMuteUserData(channelUrl, userId, seconds, description) { - _classCallCheck(this, GcMuteUserData); - GcMuteUserData.initialize(this, channelUrl, userId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcMuteUserData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcMuteUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMuteUserData} obj Optional instance to populate. - * @return {module:model/GcMuteUserData} The populated GcMuteUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMuteUserData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcMuteUserData; -}(); -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMuteUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the target user to mute. - * @member {String} user_id - */ -GcMuteUserData.prototype['user_id'] = undefined; - -/** - * Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -GcMuteUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the muting. - * @member {String} description - */ -GcMuteUserData.prototype['description'] = undefined; -var _default = GcMuteUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcRegisterOperatorsData.js b/dist/model/GcRegisterOperatorsData.js deleted file mode 100644 index 34ffcca..0000000 --- a/dist/model/GcRegisterOperatorsData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcRegisterOperatorsData model module. - * @module model/GcRegisterOperatorsData - * @version 0.0.16 - */ -var GcRegisterOperatorsData = /*#__PURE__*/function () { - /** - * Constructs a new GcRegisterOperatorsData. - * @alias module:model/GcRegisterOperatorsData - * @param channelUrl {String} Specifies the URL of the channel to register operators to. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - */ - function GcRegisterOperatorsData(channelUrl, operatorIds) { - _classCallCheck(this, GcRegisterOperatorsData); - GcRegisterOperatorsData.initialize(this, channelUrl, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcRegisterOperatorsData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, operatorIds) { - obj['channel_url'] = channelUrl; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a GcRegisterOperatorsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcRegisterOperatorsData} obj Optional instance to populate. - * @return {module:model/GcRegisterOperatorsData} The populated GcRegisterOperatorsData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcRegisterOperatorsData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - }]); - return GcRegisterOperatorsData; -}(); -/** - * Specifies the URL of the channel to register operators to. - * @member {String} channel_url - */ -GcRegisterOperatorsData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcRegisterOperatorsData.prototype['operator_ids'] = undefined; -var _default = GcRegisterOperatorsData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcRegisterOperatorsResponse.js b/dist/model/GcRegisterOperatorsResponse.js deleted file mode 100644 index 7dcc51f..0000000 --- a/dist/model/GcRegisterOperatorsResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcRegisterOperatorsResponse model module. - * @module model/GcRegisterOperatorsResponse - * @version 0.0.16 - */ -var GcRegisterOperatorsResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcRegisterOperatorsResponse. - * @alias module:model/GcRegisterOperatorsResponse - */ - function GcRegisterOperatorsResponse() { - _classCallCheck(this, GcRegisterOperatorsResponse); - GcRegisterOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcRegisterOperatorsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcRegisterOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcRegisterOperatorsResponse} obj Optional instance to populate. - * @return {module:model/GcRegisterOperatorsResponse} The populated GcRegisterOperatorsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcRegisterOperatorsResponse(); - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - }]); - return GcRegisterOperatorsResponse; -}(); -/** - * @member {Array.} operator_ids - */ -GcRegisterOperatorsResponse.prototype['operator_ids'] = undefined; -var _default = GcRegisterOperatorsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcResetChatHistoryData.js b/dist/model/GcResetChatHistoryData.js deleted file mode 100644 index a72db21..0000000 --- a/dist/model/GcResetChatHistoryData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcResetChatHistoryData model module. - * @module model/GcResetChatHistoryData - * @version 0.0.16 - */ -var GcResetChatHistoryData = /*#__PURE__*/function () { - /** - * Constructs a new GcResetChatHistoryData. - * @alias module:model/GcResetChatHistoryData - * @param channelUrl {String} Specifies the URL of the target channel to reset chat history. - * @param userId {String} Specifies the unique ID of the user whose chat history to reset in the channel. If this user_id property is specified, the reset_all property is not required. - * @param resetAll {Boolean} Determines whether to reset all users' chat history in the channel. If this reset_all property is specified, the user_id property is not required. - */ - function GcResetChatHistoryData(channelUrl, userId, resetAll) { - _classCallCheck(this, GcResetChatHistoryData); - GcResetChatHistoryData.initialize(this, channelUrl, userId, resetAll); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcResetChatHistoryData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, resetAll) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['reset_all'] = resetAll; - } - - /** - * Constructs a GcResetChatHistoryData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcResetChatHistoryData} obj Optional instance to populate. - * @return {module:model/GcResetChatHistoryData} The populated GcResetChatHistoryData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcResetChatHistoryData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('reset_all')) { - obj['reset_all'] = _ApiClient["default"].convertToType(data['reset_all'], 'Boolean'); - } - } - return obj; - } - }]); - return GcResetChatHistoryData; -}(); -/** - * Specifies the URL of the target channel to reset chat history. - * @member {String} channel_url - */ -GcResetChatHistoryData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user whose chat history to reset in the channel. If this user_id property is specified, the reset_all property is not required. - * @member {String} user_id - */ -GcResetChatHistoryData.prototype['user_id'] = undefined; - -/** - * Determines whether to reset all users' chat history in the channel. If this reset_all property is specified, the user_id property is not required. - * @member {Boolean} reset_all - */ -GcResetChatHistoryData.prototype['reset_all'] = undefined; -var _default = GcResetChatHistoryData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcResetChatHistoryResponse.js b/dist/model/GcResetChatHistoryResponse.js deleted file mode 100644 index 8b27dd9..0000000 --- a/dist/model/GcResetChatHistoryResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcResetChatHistoryResponse model module. - * @module model/GcResetChatHistoryResponse - * @version 0.0.16 - */ -var GcResetChatHistoryResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcResetChatHistoryResponse. - * @alias module:model/GcResetChatHistoryResponse - */ - function GcResetChatHistoryResponse() { - _classCallCheck(this, GcResetChatHistoryResponse); - GcResetChatHistoryResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcResetChatHistoryResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcResetChatHistoryResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcResetChatHistoryResponse} obj Optional instance to populate. - * @return {module:model/GcResetChatHistoryResponse} The populated GcResetChatHistoryResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcResetChatHistoryResponse(); - if (data.hasOwnProperty('ts_message_offset')) { - obj['ts_message_offset'] = _ApiClient["default"].convertToType(data['ts_message_offset'], 'Number'); - } - } - return obj; - } - }]); - return GcResetChatHistoryResponse; -}(); -/** - * @member {Number} ts_message_offset - */ -GcResetChatHistoryResponse.prototype['ts_message_offset'] = undefined; -var _default = GcResetChatHistoryResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcUpdateBanByIdData.js b/dist/model/GcUpdateBanByIdData.js deleted file mode 100644 index 7a010dc..0000000 --- a/dist/model/GcUpdateBanByIdData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcUpdateBanByIdData model module. - * @module model/GcUpdateBanByIdData - * @version 0.0.16 - */ -var GcUpdateBanByIdData = /*#__PURE__*/function () { - /** - * Constructs a new GcUpdateBanByIdData. - * @alias module:model/GcUpdateBanByIdData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param bannedUserId {String} Specifies the ID of the banned user to update. - * @param seconds {Number} Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @param description {String} Specifies a new reason for the banning to update. The length is limited to 250 characters. - */ - function GcUpdateBanByIdData(channelUrl, bannedUserId, seconds, description) { - _classCallCheck(this, GcUpdateBanByIdData); - GcUpdateBanByIdData.initialize(this, channelUrl, bannedUserId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcUpdateBanByIdData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, bannedUserId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['banned_user_id'] = bannedUserId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcUpdateBanByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateBanByIdData} obj Optional instance to populate. - * @return {module:model/GcUpdateBanByIdData} The populated GcUpdateBanByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateBanByIdData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('banned_user_id')) { - obj['banned_user_id'] = _ApiClient["default"].convertToType(data['banned_user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcUpdateBanByIdData; -}(); -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcUpdateBanByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the banned user to update. - * @member {String} banned_user_id - */ -GcUpdateBanByIdData.prototype['banned_user_id'] = undefined; - -/** - * Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @member {Number} seconds - */ -GcUpdateBanByIdData.prototype['seconds'] = undefined; - -/** - * Specifies a new reason for the banning to update. The length is limited to 250 characters. - * @member {String} description - */ -GcUpdateBanByIdData.prototype['description'] = undefined; -var _default = GcUpdateBanByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcUpdateBanByIdResponse.js b/dist/model/GcUpdateBanByIdResponse.js deleted file mode 100644 index e4e29fa..0000000 --- a/dist/model/GcUpdateBanByIdResponse.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcUpdateBanByIdResponse model module. - * @module model/GcUpdateBanByIdResponse - * @version 0.0.16 - */ -var GcUpdateBanByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcUpdateBanByIdResponse. - * @alias module:model/GcUpdateBanByIdResponse - */ - function GcUpdateBanByIdResponse() { - _classCallCheck(this, GcUpdateBanByIdResponse); - GcUpdateBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcUpdateBanByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcUpdateBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateBanByIdResponse} obj Optional instance to populate. - * @return {module:model/GcUpdateBanByIdResponse} The populated GcUpdateBanByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateBanByIdResponse(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcUpdateBanByIdResponse; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -GcUpdateBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcUpdateBanByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcUpdateBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcUpdateBanByIdResponse.prototype['description'] = undefined; -var _default = GcUpdateBanByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcUpdateChannelByUrlData.js b/dist/model/GcUpdateChannelByUrlData.js deleted file mode 100644 index a57fe0d..0000000 --- a/dist/model/GcUpdateChannelByUrlData.js +++ /dev/null @@ -1,165 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcUpdateChannelByUrlData model module. - * @module model/GcUpdateChannelByUrlData - * @version 0.0.16 - */ -var GcUpdateChannelByUrlData = /*#__PURE__*/function () { - /** - * Constructs a new GcUpdateChannelByUrlData. - * @alias module:model/GcUpdateChannelByUrlData - * @param channelUrl {String} Specifies the URL of the channel to update. - * @param name {String} Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. - * @param coverUrl {String} Specifies the unique URL of the cover image. The length is limited to 2,048 characters. - * @param coverFile {File} Uploads the cover image file for the channel. - * @param customType {String} Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @param data {String} Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @param isDistinct {Boolean} Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the current channel members users or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @param isPublic {Boolean} Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @param accessCode {String} This property can be used only when the channel operator wants to set an access code for a public group channel. If specified, the is_access_code_required property of the channel resource is then set to true, and the channel begins to require the specified access code to a user who attempts to join. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - */ - function GcUpdateChannelByUrlData(channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds) { - _classCallCheck(this, GcUpdateChannelByUrlData); - GcUpdateChannelByUrlData.initialize(this, channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcUpdateChannelByUrlData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds) { - obj['channel_url'] = channelUrl; - obj['name'] = name; - obj['cover_url'] = coverUrl; - obj['cover_file'] = coverFile; - obj['custom_type'] = customType; - obj['data'] = data; - obj['is_distinct'] = isDistinct; - obj['is_public'] = isPublic; - obj['access_code'] = accessCode; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a GcUpdateChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateChannelByUrlData} obj Optional instance to populate. - * @return {module:model/GcUpdateChannelByUrlData} The populated GcUpdateChannelByUrlData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateChannelByUrlData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - }]); - return GcUpdateChannelByUrlData; -}(); -/** - * Specifies the URL of the channel to update. - * @member {String} channel_url - */ -GcUpdateChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. - * @member {String} name - */ -GcUpdateChannelByUrlData.prototype['name'] = undefined; - -/** - * Specifies the unique URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -GcUpdateChannelByUrlData.prototype['cover_url'] = undefined; - -/** - * Uploads the cover image file for the channel. - * @member {File} cover_file - */ -GcUpdateChannelByUrlData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -GcUpdateChannelByUrlData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -GcUpdateChannelByUrlData.prototype['data'] = undefined; - -/** - * Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the current channel members users or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @member {Boolean} is_distinct - */ -GcUpdateChannelByUrlData.prototype['is_distinct'] = undefined; - -/** - * Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @member {Boolean} is_public - */ -GcUpdateChannelByUrlData.prototype['is_public'] = undefined; - -/** - * This property can be used only when the channel operator wants to set an access code for a public group channel. If specified, the is_access_code_required property of the channel resource is then set to true, and the channel begins to require the specified access code to a user who attempts to join. - * @member {String} access_code - */ -GcUpdateChannelByUrlData.prototype['access_code'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcUpdateChannelByUrlData.prototype['operator_ids'] = undefined; -var _default = GcUpdateChannelByUrlData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcViewBanByIdResponse.js b/dist/model/GcViewBanByIdResponse.js deleted file mode 100644 index 3ab0622..0000000 --- a/dist/model/GcViewBanByIdResponse.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcViewBanByIdResponse model module. - * @module model/GcViewBanByIdResponse - * @version 0.0.16 - */ -var GcViewBanByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcViewBanByIdResponse. - * @alias module:model/GcViewBanByIdResponse - */ - function GcViewBanByIdResponse() { - _classCallCheck(this, GcViewBanByIdResponse); - GcViewBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcViewBanByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcViewBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewBanByIdResponse} obj Optional instance to populate. - * @return {module:model/GcViewBanByIdResponse} The populated GcViewBanByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewBanByIdResponse(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcViewBanByIdResponse; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -GcViewBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcViewBanByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcViewBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcViewBanByIdResponse.prototype['description'] = undefined; -var _default = GcViewBanByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcViewMuteByIdResponse.js b/dist/model/GcViewMuteByIdResponse.js deleted file mode 100644 index 4fee162..0000000 --- a/dist/model/GcViewMuteByIdResponse.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcViewMuteByIdResponse model module. - * @module model/GcViewMuteByIdResponse - * @version 0.0.16 - */ -var GcViewMuteByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcViewMuteByIdResponse. - * @alias module:model/GcViewMuteByIdResponse - */ - function GcViewMuteByIdResponse() { - _classCallCheck(this, GcViewMuteByIdResponse); - GcViewMuteByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcViewMuteByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcViewMuteByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewMuteByIdResponse} obj Optional instance to populate. - * @return {module:model/GcViewMuteByIdResponse} The populated GcViewMuteByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewMuteByIdResponse(); - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('remaining_duration')) { - obj['remaining_duration'] = _ApiClient["default"].convertToType(data['remaining_duration'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return GcViewMuteByIdResponse; -}(); -/** - * @member {Boolean} is_muted - */ -GcViewMuteByIdResponse.prototype['is_muted'] = undefined; - -/** - * @member {Number} remaining_duration - */ -GcViewMuteByIdResponse.prototype['remaining_duration'] = undefined; - -/** - * @member {Number} start_at - */ -GcViewMuteByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcViewMuteByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcViewMuteByIdResponse.prototype['description'] = undefined; -var _default = GcViewMuteByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js b/dist/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js deleted file mode 100644 index d90e3e7..0000000 --- a/dist/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js +++ /dev/null @@ -1,64 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GcViewNumberOfEachMembersUnreadMessagesResponse model module. - * @module model/GcViewNumberOfEachMembersUnreadMessagesResponse - * @version 0.0.16 - */ -var GcViewNumberOfEachMembersUnreadMessagesResponse = /*#__PURE__*/function () { - /** - * Constructs a new GcViewNumberOfEachMembersUnreadMessagesResponse. - * @alias module:model/GcViewNumberOfEachMembersUnreadMessagesResponse - */ - function GcViewNumberOfEachMembersUnreadMessagesResponse() { - _classCallCheck(this, GcViewNumberOfEachMembersUnreadMessagesResponse); - GcViewNumberOfEachMembersUnreadMessagesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GcViewNumberOfEachMembersUnreadMessagesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GcViewNumberOfEachMembersUnreadMessagesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} obj Optional instance to populate. - * @return {module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} The populated GcViewNumberOfEachMembersUnreadMessagesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewNumberOfEachMembersUnreadMessagesResponse(); - if (data.hasOwnProperty('unread')) { - obj['unread'] = _ApiClient["default"].convertToType(data['unread'], { - 'String': 'Number' - }); - } - } - return obj; - } - }]); - return GcViewNumberOfEachMembersUnreadMessagesResponse; -}(); -/** - * @member {Object.} unread - */ -GcViewNumberOfEachMembersUnreadMessagesResponse.prototype['unread'] = undefined; -var _default = GcViewNumberOfEachMembersUnreadMessagesResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GenerateSecondaryApiTokenData.js b/dist/model/GenerateSecondaryApiTokenData.js deleted file mode 100644 index 2c73784..0000000 --- a/dist/model/GenerateSecondaryApiTokenData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GenerateSecondaryApiTokenData model module. - * @module model/GenerateSecondaryApiTokenData - * @version 0.0.16 - */ -var GenerateSecondaryApiTokenData = /*#__PURE__*/function () { - /** - * Constructs a new GenerateSecondaryApiTokenData. - * @alias module:model/GenerateSecondaryApiTokenData - * @param HTTP_API_TOKEN {String} Specifies the master API token of the application. - */ - function GenerateSecondaryApiTokenData(HTTP_API_TOKEN) { - _classCallCheck(this, GenerateSecondaryApiTokenData); - GenerateSecondaryApiTokenData.initialize(this, HTTP_API_TOKEN); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GenerateSecondaryApiTokenData, null, [{ - key: "initialize", - value: function initialize(obj, HTTP_API_TOKEN) { - obj['HTTP_API_TOKEN'] = HTTP_API_TOKEN; - } - - /** - * Constructs a GenerateSecondaryApiTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateSecondaryApiTokenData} obj Optional instance to populate. - * @return {module:model/GenerateSecondaryApiTokenData} The populated GenerateSecondaryApiTokenData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateSecondaryApiTokenData(); - if (data.hasOwnProperty('HTTP_API_TOKEN')) { - obj['HTTP_API_TOKEN'] = _ApiClient["default"].convertToType(data['HTTP_API_TOKEN'], 'String'); - } - } - return obj; - } - }]); - return GenerateSecondaryApiTokenData; -}(); -/** - * Specifies the master API token of the application. - * @member {String} HTTP_API_TOKEN - */ -GenerateSecondaryApiTokenData.prototype['HTTP_API_TOKEN'] = undefined; -var _default = GenerateSecondaryApiTokenData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GenerateSecondaryApiTokenResponse.js b/dist/model/GenerateSecondaryApiTokenResponse.js deleted file mode 100644 index 06fd100..0000000 --- a/dist/model/GenerateSecondaryApiTokenResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GenerateSecondaryApiTokenResponse model module. - * @module model/GenerateSecondaryApiTokenResponse - * @version 0.0.16 - */ -var GenerateSecondaryApiTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new GenerateSecondaryApiTokenResponse. - * @alias module:model/GenerateSecondaryApiTokenResponse - */ - function GenerateSecondaryApiTokenResponse() { - _classCallCheck(this, GenerateSecondaryApiTokenResponse); - GenerateSecondaryApiTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GenerateSecondaryApiTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GenerateSecondaryApiTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateSecondaryApiTokenResponse} obj Optional instance to populate. - * @return {module:model/GenerateSecondaryApiTokenResponse} The populated GenerateSecondaryApiTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateSecondaryApiTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return GenerateSecondaryApiTokenResponse; -}(); -/** - * @member {String} token - */ -GenerateSecondaryApiTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -GenerateSecondaryApiTokenResponse.prototype['created_at'] = undefined; -var _default = GenerateSecondaryApiTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetAGroupChannelResponse.js b/dist/model/GetAGroupChannelResponse.js new file mode 100644 index 0000000..9e86bc0 --- /dev/null +++ b/dist/model/GetAGroupChannelResponse.js @@ -0,0 +1,738 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _GetAGroupChannelResponseAllOf = _interopRequireDefault(require("./GetAGroupChannelResponseAllOf")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +var _SendbirdDisappearingMessage = _interopRequireDefault(require("./SendbirdDisappearingMessage")); +var _SendbirdGroupChannel = _interopRequireDefault(require("./SendbirdGroupChannel")); +var _SendbirdGroupChannelDetailChannel = _interopRequireDefault(require("./SendbirdGroupChannelDetailChannel")); +var _SendbirdMember = _interopRequireDefault(require("./SendbirdMember")); +var _SendbirdMessageResponse = _interopRequireDefault(require("./SendbirdMessageResponse")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +var _SendbirdSmsFallback = _interopRequireDefault(require("./SendbirdSmsFallback")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GetAGroupChannelResponse model module. + * @module model/GetAGroupChannelResponse + * @version 2.0.0 + */ +var GetAGroupChannelResponse = /*#__PURE__*/function () { + /** + * Constructs a new GetAGroupChannelResponse. + * @alias module:model/GetAGroupChannelResponse + * @implements module:model/GetAGroupChannelResponseAllOf + * @implements module:model/SendbirdGroupChannel + * @param channelUrl {String} + */ + function GetAGroupChannelResponse(channelUrl) { + _classCallCheck(this, GetAGroupChannelResponse); + _GetAGroupChannelResponseAllOf["default"].initialize(this); + _SendbirdGroupChannel["default"].initialize(this, channelUrl); + GetAGroupChannelResponse.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GetAGroupChannelResponse, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a GetAGroupChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAGroupChannelResponse} obj Optional instance to populate. + * @return {module:model/GetAGroupChannelResponse} The populated GetAGroupChannelResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAGroupChannelResponse(); + _GetAGroupChannelResponseAllOf["default"].constructFromObject(data, obj); + _SendbirdGroupChannel["default"].constructFromObject(data, obj); + if (data.hasOwnProperty('channel')) { + obj['channel'] = _SendbirdGroupChannelDetailChannel["default"].constructFromObject(data['channel']); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = _ApiClient["default"].convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = _SendbirdDisappearingMessage["default"].constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = _ApiClient["default"].convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = _ApiClient["default"].convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = _ApiClient["default"].convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = _ApiClient["default"].convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = _ApiClient["default"].convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = _ApiClient["default"].convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = _ApiClient["default"].convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = _ApiClient["default"].convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = _SendbirdMessageResponse["default"].constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = _ApiClient["default"].convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendbirdMember["default"]]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = _ApiClient["default"].convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = _ApiClient["default"].convertToType(data['read_receipt'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = _SendbirdSmsFallback["default"].constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = _ApiClient["default"].convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = _ApiClient["default"].convertToType(data['user_last_read'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +GetAGroupChannelResponse.prototype['channel'] = undefined; + +/** + * @member {String} channel_url + */ +GetAGroupChannelResponse.prototype['channel_url'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.CountPreferenceEnum} count_preference + */ +GetAGroupChannelResponse.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +GetAGroupChannelResponse.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +GetAGroupChannelResponse.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +GetAGroupChannelResponse.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +GetAGroupChannelResponse.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +GetAGroupChannelResponse.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +GetAGroupChannelResponse.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +GetAGroupChannelResponse.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +GetAGroupChannelResponse.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +GetAGroupChannelResponse.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +GetAGroupChannelResponse.prototype['has_bot'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.HiddenStateEnum} hidden_state + */ +GetAGroupChannelResponse.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +GetAGroupChannelResponse.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +GetAGroupChannelResponse.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +GetAGroupChannelResponse.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +GetAGroupChannelResponse.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +GetAGroupChannelResponse.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +GetAGroupChannelResponse.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +GetAGroupChannelResponse.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +GetAGroupChannelResponse.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +GetAGroupChannelResponse.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +GetAGroupChannelResponse.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +GetAGroupChannelResponse.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +GetAGroupChannelResponse.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +GetAGroupChannelResponse.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +GetAGroupChannelResponse.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +GetAGroupChannelResponse.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +GetAGroupChannelResponse.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +GetAGroupChannelResponse.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +GetAGroupChannelResponse.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +GetAGroupChannelResponse.prototype['member_count'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.MemberStateEnum} member_state + */ +GetAGroupChannelResponse.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +GetAGroupChannelResponse.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +GetAGroupChannelResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +GetAGroupChannelResponse.prototype['metadata'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.MyRoleEnum} my_role + */ +GetAGroupChannelResponse.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +GetAGroupChannelResponse.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +GetAGroupChannelResponse.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +GetAGroupChannelResponse.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +GetAGroupChannelResponse.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +GetAGroupChannelResponse.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +GetAGroupChannelResponse.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +GetAGroupChannelResponse.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +GetAGroupChannelResponse.prototype['user_last_read'] = undefined; + +// Implement GetAGroupChannelResponseAllOf interface: +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +_GetAGroupChannelResponseAllOf["default"].prototype['channel'] = undefined; +// Implement SendbirdGroupChannel interface: +/** + * @member {String} channel_url + */ +_SendbirdGroupChannel["default"].prototype['channel_url'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +_SendbirdGroupChannel["default"].prototype['count_preference'] = undefined; +/** + * @member {String} cover_url + */ +_SendbirdGroupChannel["default"].prototype['cover_url'] = undefined; +/** + * @member {Number} created_at + */ +_SendbirdGroupChannel["default"].prototype['created_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +_SendbirdGroupChannel["default"].prototype['created_by'] = undefined; +/** + * @member {String} custom_type + */ +_SendbirdGroupChannel["default"].prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +_SendbirdGroupChannel["default"].prototype['data'] = undefined; +/** + * @member {Object} delivery_receipt + */ +_SendbirdGroupChannel["default"].prototype['delivery_receipt'] = undefined; +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +_SendbirdGroupChannel["default"].prototype['disappearing_message'] = undefined; +/** + * @member {Boolean} freeze + */ +_SendbirdGroupChannel["default"].prototype['freeze'] = undefined; +/** + * @member {Boolean} has_ai_bot + */ +_SendbirdGroupChannel["default"].prototype['has_ai_bot'] = undefined; +/** + * @member {Boolean} has_bot + */ +_SendbirdGroupChannel["default"].prototype['has_bot'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +_SendbirdGroupChannel["default"].prototype['hidden_state'] = undefined; +/** + * @member {Boolean} ignore_profanity_filter + */ +_SendbirdGroupChannel["default"].prototype['ignore_profanity_filter'] = undefined; +/** + * @member {Number} invited_at + */ +_SendbirdGroupChannel["default"].prototype['invited_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +_SendbirdGroupChannel["default"].prototype['inviter'] = undefined; +/** + * @member {Boolean} is_access_code_required + */ +_SendbirdGroupChannel["default"].prototype['is_access_code_required'] = undefined; +/** + * @member {Boolean} is_broadcast + */ +_SendbirdGroupChannel["default"].prototype['is_broadcast'] = undefined; +/** + * @member {Boolean} is_discoverable + */ +_SendbirdGroupChannel["default"].prototype['is_discoverable'] = undefined; +/** + * @member {Boolean} is_distinct + */ +_SendbirdGroupChannel["default"].prototype['is_distinct'] = undefined; +/** + * @member {Boolean} is_ephemeral + */ +_SendbirdGroupChannel["default"].prototype['is_ephemeral'] = undefined; +/** + * @member {Boolean} is_exclusive + */ +_SendbirdGroupChannel["default"].prototype['is_exclusive'] = undefined; +/** + * @member {Boolean} is_hidden + */ +_SendbirdGroupChannel["default"].prototype['is_hidden'] = undefined; +/** + * @member {Boolean} is_muted + */ +_SendbirdGroupChannel["default"].prototype['is_muted'] = undefined; +/** + * @member {Boolean} is_public + */ +_SendbirdGroupChannel["default"].prototype['is_public'] = undefined; +/** + * @member {Boolean} is_push_enabled + */ +_SendbirdGroupChannel["default"].prototype['is_push_enabled'] = undefined; +/** + * @member {Boolean} is_super + */ +_SendbirdGroupChannel["default"].prototype['is_super'] = undefined; +/** + * @member {Number} joined_member_count + */ +_SendbirdGroupChannel["default"].prototype['joined_member_count'] = undefined; +/** + * @member {Number} joined_ts + */ +_SendbirdGroupChannel["default"].prototype['joined_ts'] = undefined; +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +_SendbirdGroupChannel["default"].prototype['last_message'] = undefined; +/** + * @member {Number} max_length_message + */ +_SendbirdGroupChannel["default"].prototype['max_length_message'] = undefined; +/** + * @member {Number} member_count + */ +_SendbirdGroupChannel["default"].prototype['member_count'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +_SendbirdGroupChannel["default"].prototype['member_state'] = undefined; +/** + * @member {Array.} members + */ +_SendbirdGroupChannel["default"].prototype['members'] = undefined; +/** + * @member {Number} message_survival_seconds + */ +_SendbirdGroupChannel["default"].prototype['message_survival_seconds'] = undefined; +/** + * @member {Object} metadata + */ +_SendbirdGroupChannel["default"].prototype['metadata'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +_SendbirdGroupChannel["default"].prototype['my_role'] = undefined; +/** + * @member {String} name + */ +_SendbirdGroupChannel["default"].prototype['name'] = undefined; +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +_SendbirdGroupChannel["default"].prototype['push_trigger_option'] = undefined; +/** + * @member {Object.} read_receipt + */ +_SendbirdGroupChannel["default"].prototype['read_receipt'] = undefined; +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +_SendbirdGroupChannel["default"].prototype['sms_fallback'] = undefined; +/** + * @member {Number} ts_message_offset + */ +_SendbirdGroupChannel["default"].prototype['ts_message_offset'] = undefined; +/** + * @member {Number} unread_mention_count + */ +_SendbirdGroupChannel["default"].prototype['unread_mention_count'] = undefined; +/** + * @member {Number} unread_message_count + */ +_SendbirdGroupChannel["default"].prototype['unread_message_count'] = undefined; +/** + * @member {Number} user_last_read + */ +_SendbirdGroupChannel["default"].prototype['user_last_read'] = undefined; + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['HiddenStateEnum'] = { + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['MemberStateEnum'] = { + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined", + /** + * value: "none" + * @const + */ + "none": "none" +}; + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['MyRoleEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; +var _default = exports["default"] = GetAGroupChannelResponse; \ No newline at end of file diff --git a/dist/model/GetAGroupChannelResponseAllOf.js b/dist/model/GetAGroupChannelResponseAllOf.js new file mode 100644 index 0000000..601ec23 --- /dev/null +++ b/dist/model/GetAGroupChannelResponseAllOf.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdGroupChannelDetailChannel = _interopRequireDefault(require("./SendbirdGroupChannelDetailChannel")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GetAGroupChannelResponseAllOf model module. + * @module model/GetAGroupChannelResponseAllOf + * @version 2.0.0 + */ +var GetAGroupChannelResponseAllOf = /*#__PURE__*/function () { + /** + * Constructs a new GetAGroupChannelResponseAllOf. + * @alias module:model/GetAGroupChannelResponseAllOf + */ + function GetAGroupChannelResponseAllOf() { + _classCallCheck(this, GetAGroupChannelResponseAllOf); + GetAGroupChannelResponseAllOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GetAGroupChannelResponseAllOf, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetAGroupChannelResponseAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAGroupChannelResponseAllOf} obj Optional instance to populate. + * @return {module:model/GetAGroupChannelResponseAllOf} The populated GetAGroupChannelResponseAllOf instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAGroupChannelResponseAllOf(); + if (data.hasOwnProperty('channel')) { + obj['channel'] = _SendbirdGroupChannelDetailChannel["default"].constructFromObject(data['channel']); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +GetAGroupChannelResponseAllOf.prototype['channel'] = undefined; +var _default = exports["default"] = GetAGroupChannelResponseAllOf; \ No newline at end of file diff --git a/dist/model/GetChannelInvitationPreferenceResponse.js b/dist/model/GetChannelInvitationPreferenceResponse.js new file mode 100644 index 0000000..b4feeb8 --- /dev/null +++ b/dist/model/GetChannelInvitationPreferenceResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GetChannelInvitationPreferenceResponse model module. + * @module model/GetChannelInvitationPreferenceResponse + * @version 2.0.0 + */ +var GetChannelInvitationPreferenceResponse = /*#__PURE__*/function () { + /** + * Constructs a new GetChannelInvitationPreferenceResponse. + * @alias module:model/GetChannelInvitationPreferenceResponse + */ + function GetChannelInvitationPreferenceResponse() { + _classCallCheck(this, GetChannelInvitationPreferenceResponse); + GetChannelInvitationPreferenceResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GetChannelInvitationPreferenceResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetChannelInvitationPreferenceResponse} obj Optional instance to populate. + * @return {module:model/GetChannelInvitationPreferenceResponse} The populated GetChannelInvitationPreferenceResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetChannelInvitationPreferenceResponse(); + if (data.hasOwnProperty('auto_accept')) { + obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} auto_accept + */ +GetChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; +var _default = exports["default"] = GetChannelInvitationPreferenceResponse; \ No newline at end of file diff --git a/dist/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js b/dist/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js deleted file mode 100644 index 4603e9d..0000000 --- a/dist/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetDetailedOpenRateOfAnnouncementByIdResponse model module. - * @module model/GetDetailedOpenRateOfAnnouncementByIdResponse - * @version 0.0.16 - */ -var GetDetailedOpenRateOfAnnouncementByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetDetailedOpenRateOfAnnouncementByIdResponse. - * @alias module:model/GetDetailedOpenRateOfAnnouncementByIdResponse - */ - function GetDetailedOpenRateOfAnnouncementByIdResponse() { - _classCallCheck(this, GetDetailedOpenRateOfAnnouncementByIdResponse); - GetDetailedOpenRateOfAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetDetailedOpenRateOfAnnouncementByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDetailedOpenRateOfAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} The populated GetDetailedOpenRateOfAnnouncementByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenRateOfAnnouncementByIdResponse(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('open_counts')) { - obj['open_counts'] = _ApiClient["default"].convertToType(data['open_counts'], ['Number']); - } - if (data.hasOwnProperty('open_rates')) { - obj['open_rates'] = _ApiClient["default"].convertToType(data['open_rates'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_counts')) { - obj['cumulative_open_counts'] = _ApiClient["default"].convertToType(data['cumulative_open_counts'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_rates')) { - obj['cumulative_open_rates'] = _ApiClient["default"].convertToType(data['cumulative_open_rates'], ['Number']); - } - } - return obj; - } - }]); - return GetDetailedOpenRateOfAnnouncementByIdResponse; -}(); -/** - * @member {String} unique_id - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {Array.} open_counts - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['open_counts'] = undefined; - -/** - * @member {Array.} open_rates - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['open_rates'] = undefined; - -/** - * @member {Array.} cumulative_open_counts - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['cumulative_open_counts'] = undefined; - -/** - * @member {Array.} cumulative_open_rates - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['cumulative_open_rates'] = undefined; -var _default = GetDetailedOpenRateOfAnnouncementByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js b/dist/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js deleted file mode 100644 index 48552d0..0000000 --- a/dist/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetDetailedOpenRateOfAnnouncementGroupResponse model module. - * @module model/GetDetailedOpenRateOfAnnouncementGroupResponse - * @version 0.0.16 - */ -var GetDetailedOpenRateOfAnnouncementGroupResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetDetailedOpenRateOfAnnouncementGroupResponse. - * @alias module:model/GetDetailedOpenRateOfAnnouncementGroupResponse - */ - function GetDetailedOpenRateOfAnnouncementGroupResponse() { - _classCallCheck(this, GetDetailedOpenRateOfAnnouncementGroupResponse); - GetDetailedOpenRateOfAnnouncementGroupResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetDetailedOpenRateOfAnnouncementGroupResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDetailedOpenRateOfAnnouncementGroupResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} The populated GetDetailedOpenRateOfAnnouncementGroupResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenRateOfAnnouncementGroupResponse(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('open_counts')) { - obj['open_counts'] = _ApiClient["default"].convertToType(data['open_counts'], ['Number']); - } - if (data.hasOwnProperty('open_rates')) { - obj['open_rates'] = _ApiClient["default"].convertToType(data['open_rates'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_counts')) { - obj['cumulative_open_counts'] = _ApiClient["default"].convertToType(data['cumulative_open_counts'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_rates')) { - obj['cumulative_open_rates'] = _ApiClient["default"].convertToType(data['cumulative_open_rates'], ['Number']); - } - } - return obj; - } - }]); - return GetDetailedOpenRateOfAnnouncementGroupResponse; -}(); -/** - * @member {String} unique_id - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['announcement_group'] = undefined; - -/** - * @member {Array.} open_counts - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['open_counts'] = undefined; - -/** - * @member {Array.} open_rates - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['open_rates'] = undefined; - -/** - * @member {Array.} cumulative_open_counts - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['cumulative_open_counts'] = undefined; - -/** - * @member {Array.} cumulative_open_rates - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['cumulative_open_rates'] = undefined; -var _default = GetDetailedOpenRateOfAnnouncementGroupResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js b/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js deleted file mode 100644 index 76b66e2..0000000 --- a/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner = _interopRequireDefault(require("./GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetDetailedOpenStatusOfAnnouncementByIdResponse model module. - * @module model/GetDetailedOpenStatusOfAnnouncementByIdResponse - * @version 0.0.16 - */ -var GetDetailedOpenStatusOfAnnouncementByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetDetailedOpenStatusOfAnnouncementByIdResponse. - * @alias module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse - */ - function GetDetailedOpenStatusOfAnnouncementByIdResponse() { - _classCallCheck(this, GetDetailedOpenStatusOfAnnouncementByIdResponse); - GetDetailedOpenStatusOfAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetDetailedOpenStatusOfAnnouncementByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDetailedOpenStatusOfAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} The populated GetDetailedOpenStatusOfAnnouncementByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenStatusOfAnnouncementByIdResponse(); - if (data.hasOwnProperty('open_status')) { - obj['open_status'] = _ApiClient["default"].convertToType(data['open_status'], [_GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return GetDetailedOpenStatusOfAnnouncementByIdResponse; -}(); -/** - * @member {Array.} open_status - */ -GetDetailedOpenStatusOfAnnouncementByIdResponse.prototype['open_status'] = undefined; - -/** - * @member {String} next - */ -GetDetailedOpenStatusOfAnnouncementByIdResponse.prototype['next'] = undefined; -var _default = GetDetailedOpenStatusOfAnnouncementByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js b/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js deleted file mode 100644 index 1502f38..0000000 --- a/dist/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner model module. - * @module model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - * @version 0.0.16 - */ -var GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner = /*#__PURE__*/function () { - /** - * Constructs a new GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner. - * @alias module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - */ - function GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner() { - _classCallCheck(this, GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner); - GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner} The populated GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('has_opened')) { - obj['has_opened'] = _ApiClient["default"].convertToType(data['has_opened'], 'Boolean'); - } - if (data.hasOwnProperty('sent_at')) { - obj['sent_at'] = _ApiClient["default"].convertToType(data['sent_at'], 'Number'); - } - if (data.hasOwnProperty('open_at')) { - obj['open_at'] = _ApiClient["default"].convertToType(data['open_at'], 'Number'); - } - } - return obj; - } - }]); - return GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner; -}(); -/** - * @member {String} user_id - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['user_id'] = undefined; - -/** - * @member {String} channel_url - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['channel_url'] = undefined; - -/** - * @member {Boolean} has_opened - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['has_opened'] = undefined; - -/** - * @member {Number} sent_at - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['sent_at'] = undefined; - -/** - * @member {Number} open_at - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['open_at'] = undefined; -var _default = GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetStatisticsDailyResponse.js b/dist/model/GetStatisticsDailyResponse.js deleted file mode 100644 index 6b3badf..0000000 --- a/dist/model/GetStatisticsDailyResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetStatisticsDailyResponseStatisticsInner = _interopRequireDefault(require("./GetStatisticsDailyResponseStatisticsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetStatisticsDailyResponse model module. - * @module model/GetStatisticsDailyResponse - * @version 0.0.16 - */ -var GetStatisticsDailyResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetStatisticsDailyResponse. - * @alias module:model/GetStatisticsDailyResponse - */ - function GetStatisticsDailyResponse() { - _classCallCheck(this, GetStatisticsDailyResponse); - GetStatisticsDailyResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetStatisticsDailyResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetStatisticsDailyResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsDailyResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsDailyResponse} The populated GetStatisticsDailyResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsDailyResponse(); - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = _ApiClient["default"].convertToType(data['statistics'], [_GetStatisticsDailyResponseStatisticsInner["default"]]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = _ApiClient["default"].convertToType(data['week'], 'Number'); - } - } - return obj; - } - }]); - return GetStatisticsDailyResponse; -}(); -/** - * @member {Array.} statistics - */ -GetStatisticsDailyResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsDailyResponse.prototype['week'] = undefined; -var _default = GetStatisticsDailyResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetStatisticsDailyResponseStatisticsInner.js b/dist/model/GetStatisticsDailyResponseStatisticsInner.js deleted file mode 100644 index c11b660..0000000 --- a/dist/model/GetStatisticsDailyResponseStatisticsInner.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetStatisticsDailyResponseStatisticsInner model module. - * @module model/GetStatisticsDailyResponseStatisticsInner - * @version 0.0.16 - */ -var GetStatisticsDailyResponseStatisticsInner = /*#__PURE__*/function () { - /** - * Constructs a new GetStatisticsDailyResponseStatisticsInner. - * @alias module:model/GetStatisticsDailyResponseStatisticsInner - */ - function GetStatisticsDailyResponseStatisticsInner() { - _classCallCheck(this, GetStatisticsDailyResponseStatisticsInner); - GetStatisticsDailyResponseStatisticsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetStatisticsDailyResponseStatisticsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetStatisticsDailyResponseStatisticsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsDailyResponseStatisticsInner} obj Optional instance to populate. - * @return {module:model/GetStatisticsDailyResponseStatisticsInner} The populated GetStatisticsDailyResponseStatisticsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsDailyResponseStatisticsInner(); - if (data.hasOwnProperty('date_range')) { - obj['date_range'] = _ApiClient["default"].convertToType(data['date_range'], 'String'); - } - if (data.hasOwnProperty('canceled_announcement_count')) { - obj['canceled_announcement_count'] = _ApiClient["default"].convertToType(data['canceled_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('stopped_announcement_count')) { - obj['stopped_announcement_count'] = _ApiClient["default"].convertToType(data['stopped_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('completed_announcement_count')) { - obj['completed_announcement_count'] = _ApiClient["default"].convertToType(data['completed_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('total_announcement_count')) { - obj['total_announcement_count'] = _ApiClient["default"].convertToType(data['total_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = _ApiClient["default"].convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); - } - } - return obj; - } - }]); - return GetStatisticsDailyResponseStatisticsInner; -}(); -/** - * @member {String} date_range - */ -GetStatisticsDailyResponseStatisticsInner.prototype['date_range'] = undefined; - -/** - * @member {Number} canceled_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['canceled_announcement_count'] = undefined; - -/** - * @member {Number} stopped_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['stopped_announcement_count'] = undefined; - -/** - * @member {Number} completed_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['completed_announcement_count'] = undefined; - -/** - * @member {Number} total_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['total_announcement_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['target_channel_count'] = undefined; - -/** - * @member {Number} target_user_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['target_user_count'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['sent_channel_count'] = undefined; - -/** - * @member {Number} sent_user_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_rate - */ -GetStatisticsDailyResponseStatisticsInner.prototype['open_rate'] = undefined; - -/** - * @member {Number} open_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['open_count'] = undefined; -var _default = GetStatisticsDailyResponseStatisticsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetStatisticsMonthlyResponse.js b/dist/model/GetStatisticsMonthlyResponse.js deleted file mode 100644 index ab69735..0000000 --- a/dist/model/GetStatisticsMonthlyResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetStatisticsDailyResponseStatisticsInner = _interopRequireDefault(require("./GetStatisticsDailyResponseStatisticsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetStatisticsMonthlyResponse model module. - * @module model/GetStatisticsMonthlyResponse - * @version 0.0.16 - */ -var GetStatisticsMonthlyResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetStatisticsMonthlyResponse. - * @alias module:model/GetStatisticsMonthlyResponse - */ - function GetStatisticsMonthlyResponse() { - _classCallCheck(this, GetStatisticsMonthlyResponse); - GetStatisticsMonthlyResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetStatisticsMonthlyResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetStatisticsMonthlyResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsMonthlyResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsMonthlyResponse} The populated GetStatisticsMonthlyResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsMonthlyResponse(); - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = _ApiClient["default"].convertToType(data['statistics'], [_GetStatisticsDailyResponseStatisticsInner["default"]]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = _ApiClient["default"].convertToType(data['week'], 'Number'); - } - } - return obj; - } - }]); - return GetStatisticsMonthlyResponse; -}(); -/** - * @member {Array.} statistics - */ -GetStatisticsMonthlyResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsMonthlyResponse.prototype['week'] = undefined; -var _default = GetStatisticsMonthlyResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetStatisticsResponse.js b/dist/model/GetStatisticsResponse.js deleted file mode 100644 index e34014c..0000000 --- a/dist/model/GetStatisticsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _GetStatisticsDailyResponseStatisticsInner = _interopRequireDefault(require("./GetStatisticsDailyResponseStatisticsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The GetStatisticsResponse model module. - * @module model/GetStatisticsResponse - * @version 0.0.16 - */ -var GetStatisticsResponse = /*#__PURE__*/function () { - /** - * Constructs a new GetStatisticsResponse. - * @alias module:model/GetStatisticsResponse - */ - function GetStatisticsResponse() { - _classCallCheck(this, GetStatisticsResponse); - GetStatisticsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(GetStatisticsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a GetStatisticsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsResponse} The populated GetStatisticsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsResponse(); - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = _ApiClient["default"].convertToType(data['statistics'], [_GetStatisticsDailyResponseStatisticsInner["default"]]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = _ApiClient["default"].convertToType(data['week'], 'Number'); - } - } - return obj; - } - }]); - return GetStatisticsResponse; -}(); -/** - * @member {Array.} statistics - */ -GetStatisticsResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsResponse.prototype['week'] = undefined; -var _default = GetStatisticsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/GetTotalNumberOfMessagesInAChannelResponse.js b/dist/model/GetTotalNumberOfMessagesInAChannelResponse.js new file mode 100644 index 0000000..b14da5a --- /dev/null +++ b/dist/model/GetTotalNumberOfMessagesInAChannelResponse.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GetTotalNumberOfMessagesInAChannelResponse model module. + * @module model/GetTotalNumberOfMessagesInAChannelResponse + * @version 2.0.0 + */ +var GetTotalNumberOfMessagesInAChannelResponse = /*#__PURE__*/function () { + /** + * Constructs a new GetTotalNumberOfMessagesInAChannelResponse. + * @alias module:model/GetTotalNumberOfMessagesInAChannelResponse + */ + function GetTotalNumberOfMessagesInAChannelResponse() { + _classCallCheck(this, GetTotalNumberOfMessagesInAChannelResponse); + GetTotalNumberOfMessagesInAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GetTotalNumberOfMessagesInAChannelResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GetTotalNumberOfMessagesInAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTotalNumberOfMessagesInAChannelResponse} obj Optional instance to populate. + * @return {module:model/GetTotalNumberOfMessagesInAChannelResponse} The populated GetTotalNumberOfMessagesInAChannelResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTotalNumberOfMessagesInAChannelResponse(); + if (data.hasOwnProperty('total')) { + obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} total + */ +GetTotalNumberOfMessagesInAChannelResponse.prototype['total'] = undefined; +var _default = exports["default"] = GetTotalNumberOfMessagesInAChannelResponse; \ No newline at end of file diff --git a/dist/model/GroupChannelListMembersResponse.js b/dist/model/GroupChannelListMembersResponse.js new file mode 100644 index 0000000..9af1d90 --- /dev/null +++ b/dist/model/GroupChannelListMembersResponse.js @@ -0,0 +1,86 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdMember = _interopRequireDefault(require("./SendbirdMember")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GroupChannelListMembersResponse model module. + * @module model/GroupChannelListMembersResponse + * @version 2.0.0 + */ +var GroupChannelListMembersResponse = /*#__PURE__*/function () { + /** + * Constructs a new GroupChannelListMembersResponse. + * @alias module:model/GroupChannelListMembersResponse + * @param members {Array.} + */ + function GroupChannelListMembersResponse(members) { + _classCallCheck(this, GroupChannelListMembersResponse); + GroupChannelListMembersResponse.initialize(this, members); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GroupChannelListMembersResponse, null, [{ + key: "initialize", + value: function initialize(obj, members) { + obj['members'] = members; + } + + /** + * Constructs a GroupChannelListMembersResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupChannelListMembersResponse} obj Optional instance to populate. + * @return {module:model/GroupChannelListMembersResponse} The populated GroupChannelListMembersResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupChannelListMembersResponse(); + if (data.hasOwnProperty('members')) { + obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendbirdMember["default"]]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} members + */ +GroupChannelListMembersResponse.prototype['members'] = undefined; + +/** + * @member {String} next + */ +GroupChannelListMembersResponse.prototype['next'] = undefined; +var _default = exports["default"] = GroupChannelListMembersResponse; \ No newline at end of file diff --git a/dist/model/GroupChatListChannelsResponse.js b/dist/model/GroupChatListChannelsResponse.js new file mode 100644 index 0000000..c95081b --- /dev/null +++ b/dist/model/GroupChatListChannelsResponse.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdGroupChannel = _interopRequireDefault(require("./SendbirdGroupChannel")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The GroupChatListChannelsResponse model module. + * @module model/GroupChatListChannelsResponse + * @version 2.0.0 + */ +var GroupChatListChannelsResponse = /*#__PURE__*/function () { + /** + * Constructs a new GroupChatListChannelsResponse. + * @alias module:model/GroupChatListChannelsResponse + */ + function GroupChatListChannelsResponse() { + _classCallCheck(this, GroupChatListChannelsResponse); + GroupChatListChannelsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(GroupChatListChannelsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a GroupChatListChannelsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupChatListChannelsResponse} obj Optional instance to populate. + * @return {module:model/GroupChatListChannelsResponse} The populated GroupChatListChannelsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupChatListChannelsResponse(); + if (data.hasOwnProperty('channels')) { + obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendbirdGroupChannel["default"]]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} channels + */ +GroupChatListChannelsResponse.prototype['channels'] = undefined; + +/** + * @member {String} next + */ +GroupChatListChannelsResponse.prototype['next'] = undefined; + +/** + * @member {Number} ts + */ +GroupChatListChannelsResponse.prototype['ts'] = undefined; +var _default = exports["default"] = GroupChatListChannelsResponse; \ No newline at end of file diff --git a/dist/model/HideAChannelRequest.js b/dist/model/HideAChannelRequest.js new file mode 100644 index 0000000..f0de40d --- /dev/null +++ b/dist/model/HideAChannelRequest.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The HideAChannelRequest model module. + * @module model/HideAChannelRequest + * @version 2.0.0 + */ +var HideAChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new HideAChannelRequest. + * @alias module:model/HideAChannelRequest + * @param userId {String} Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. + */ + function HideAChannelRequest(userId) { + _classCallCheck(this, HideAChannelRequest); + HideAChannelRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(HideAChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a HideAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HideAChannelRequest} obj Optional instance to populate. + * @return {module:model/HideAChannelRequest} The populated HideAChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new HideAChannelRequest(); + if (data.hasOwnProperty('allow_auto_unhide')) { + obj['allow_auto_unhide'] = _ApiClient["default"].convertToType(data['allow_auto_unhide'], 'Boolean'); + } + if (data.hasOwnProperty('hide_previous_messages')) { + obj['hide_previous_messages'] = _ApiClient["default"].convertToType(data['hide_previous_messages'], 'Boolean'); + } + if (data.hasOwnProperty('should_hide_all')) { + obj['should_hide_all'] = _ApiClient["default"].convertToType(data['should_hide_all'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. + * @member {Boolean} allow_auto_unhide + */ +HideAChannelRequest.prototype['allow_auto_unhide'] = undefined; + +/** + * When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. + * @member {Boolean} hide_previous_messages + */ +HideAChannelRequest.prototype['hide_previous_messages'] = undefined; + +/** + * Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) + * @member {Boolean} should_hide_all + */ +HideAChannelRequest.prototype['should_hide_all'] = undefined; + +/** + * Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. + * @member {String} user_id + */ +HideAChannelRequest.prototype['user_id'] = undefined; +var _default = exports["default"] = HideAChannelRequest; \ No newline at end of file diff --git a/dist/model/InviteAsMembersRequest.js b/dist/model/InviteAsMembersRequest.js new file mode 100644 index 0000000..1bca22f --- /dev/null +++ b/dist/model/InviteAsMembersRequest.js @@ -0,0 +1,103 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The InviteAsMembersRequest model module. + * @module model/InviteAsMembersRequest + * @version 2.0.0 + */ +var InviteAsMembersRequest = /*#__PURE__*/function () { + /** + * Constructs a new InviteAsMembersRequest. + * @alias module:model/InviteAsMembersRequest + * @param userIds {Array.} + */ + function InviteAsMembersRequest(userIds) { + _classCallCheck(this, InviteAsMembersRequest); + InviteAsMembersRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(InviteAsMembersRequest, null, [{ + key: "initialize", + value: function initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a InviteAsMembersRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersRequest} obj Optional instance to populate. + * @return {module:model/InviteAsMembersRequest} The populated InviteAsMembersRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersRequest(); + if (data.hasOwnProperty('hidden_status')) { + obj['hidden_status'] = _ApiClient["default"].convertToType(data['hidden_status'], Object); + } + if (data.hasOwnProperty('invitation_status')) { + obj['invitation_status'] = _ApiClient["default"].convertToType(data['invitation_status'], Object); + } + if (data.hasOwnProperty('inviter_id')) { + obj['inviter_id'] = _ApiClient["default"].convertToType(data['inviter_id'], 'String'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. + * @member {Object} hidden_status + */ +InviteAsMembersRequest.prototype['hidden_status'] = undefined; + +/** + * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) + * @member {Object} invitation_status + */ +InviteAsMembersRequest.prototype['invitation_status'] = undefined; + +/** + * @member {String} inviter_id + */ +InviteAsMembersRequest.prototype['inviter_id'] = undefined; + +/** + * @member {Array.} user_ids + */ +InviteAsMembersRequest.prototype['user_ids'] = undefined; +var _default = exports["default"] = InviteAsMembersRequest; \ No newline at end of file diff --git a/dist/model/InviteAsMembersResponse.js b/dist/model/InviteAsMembersResponse.js new file mode 100644 index 0000000..7c9651f --- /dev/null +++ b/dist/model/InviteAsMembersResponse.js @@ -0,0 +1,738 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _InviteAsMembersResponseAllOf = _interopRequireDefault(require("./InviteAsMembersResponseAllOf")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +var _SendbirdDisappearingMessage = _interopRequireDefault(require("./SendbirdDisappearingMessage")); +var _SendbirdGroupChannel = _interopRequireDefault(require("./SendbirdGroupChannel")); +var _SendbirdMember = _interopRequireDefault(require("./SendbirdMember")); +var _SendbirdMessageResponse = _interopRequireDefault(require("./SendbirdMessageResponse")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +var _SendbirdSmsFallback = _interopRequireDefault(require("./SendbirdSmsFallback")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The InviteAsMembersResponse model module. + * @module model/InviteAsMembersResponse + * @version 2.0.0 + */ +var InviteAsMembersResponse = /*#__PURE__*/function () { + /** + * Constructs a new InviteAsMembersResponse. + * @alias module:model/InviteAsMembersResponse + * @implements module:model/SendbirdGroupChannel + * @implements module:model/InviteAsMembersResponseAllOf + * @param channelUrl {String} + */ + function InviteAsMembersResponse(channelUrl) { + _classCallCheck(this, InviteAsMembersResponse); + _SendbirdGroupChannel["default"].initialize(this, channelUrl); + _InviteAsMembersResponseAllOf["default"].initialize(this); + InviteAsMembersResponse.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(InviteAsMembersResponse, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a InviteAsMembersResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersResponse} obj Optional instance to populate. + * @return {module:model/InviteAsMembersResponse} The populated InviteAsMembersResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersResponse(); + _SendbirdGroupChannel["default"].constructFromObject(data, obj); + _InviteAsMembersResponseAllOf["default"].constructFromObject(data, obj); + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = _ApiClient["default"].convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = _SendbirdDisappearingMessage["default"].constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = _ApiClient["default"].convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = _ApiClient["default"].convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = _ApiClient["default"].convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = _ApiClient["default"].convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = _ApiClient["default"].convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = _ApiClient["default"].convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = _ApiClient["default"].convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = _ApiClient["default"].convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = _SendbirdMessageResponse["default"].constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = _ApiClient["default"].convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendbirdMember["default"]]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = _ApiClient["default"].convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = _ApiClient["default"].convertToType(data['read_receipt'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = _SendbirdSmsFallback["default"].constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = _ApiClient["default"].convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = _ApiClient["default"].convertToType(data['user_last_read'], 'Number'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendbirdUser["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} channel_url + */ +InviteAsMembersResponse.prototype['channel_url'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.CountPreferenceEnum} count_preference + */ +InviteAsMembersResponse.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +InviteAsMembersResponse.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +InviteAsMembersResponse.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +InviteAsMembersResponse.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +InviteAsMembersResponse.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +InviteAsMembersResponse.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +InviteAsMembersResponse.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +InviteAsMembersResponse.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +InviteAsMembersResponse.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +InviteAsMembersResponse.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +InviteAsMembersResponse.prototype['has_bot'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.HiddenStateEnum} hidden_state + */ +InviteAsMembersResponse.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +InviteAsMembersResponse.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +InviteAsMembersResponse.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +InviteAsMembersResponse.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +InviteAsMembersResponse.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +InviteAsMembersResponse.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +InviteAsMembersResponse.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +InviteAsMembersResponse.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +InviteAsMembersResponse.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +InviteAsMembersResponse.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +InviteAsMembersResponse.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +InviteAsMembersResponse.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +InviteAsMembersResponse.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +InviteAsMembersResponse.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +InviteAsMembersResponse.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +InviteAsMembersResponse.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +InviteAsMembersResponse.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +InviteAsMembersResponse.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +InviteAsMembersResponse.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +InviteAsMembersResponse.prototype['member_count'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.MemberStateEnum} member_state + */ +InviteAsMembersResponse.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +InviteAsMembersResponse.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +InviteAsMembersResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +InviteAsMembersResponse.prototype['metadata'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.MyRoleEnum} my_role + */ +InviteAsMembersResponse.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +InviteAsMembersResponse.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +InviteAsMembersResponse.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +InviteAsMembersResponse.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +InviteAsMembersResponse.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +InviteAsMembersResponse.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +InviteAsMembersResponse.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +InviteAsMembersResponse.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +InviteAsMembersResponse.prototype['user_last_read'] = undefined; + +/** + * @member {Array.} operators + */ +InviteAsMembersResponse.prototype['operators'] = undefined; + +// Implement SendbirdGroupChannel interface: +/** + * @member {String} channel_url + */ +_SendbirdGroupChannel["default"].prototype['channel_url'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +_SendbirdGroupChannel["default"].prototype['count_preference'] = undefined; +/** + * @member {String} cover_url + */ +_SendbirdGroupChannel["default"].prototype['cover_url'] = undefined; +/** + * @member {Number} created_at + */ +_SendbirdGroupChannel["default"].prototype['created_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +_SendbirdGroupChannel["default"].prototype['created_by'] = undefined; +/** + * @member {String} custom_type + */ +_SendbirdGroupChannel["default"].prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +_SendbirdGroupChannel["default"].prototype['data'] = undefined; +/** + * @member {Object} delivery_receipt + */ +_SendbirdGroupChannel["default"].prototype['delivery_receipt'] = undefined; +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +_SendbirdGroupChannel["default"].prototype['disappearing_message'] = undefined; +/** + * @member {Boolean} freeze + */ +_SendbirdGroupChannel["default"].prototype['freeze'] = undefined; +/** + * @member {Boolean} has_ai_bot + */ +_SendbirdGroupChannel["default"].prototype['has_ai_bot'] = undefined; +/** + * @member {Boolean} has_bot + */ +_SendbirdGroupChannel["default"].prototype['has_bot'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +_SendbirdGroupChannel["default"].prototype['hidden_state'] = undefined; +/** + * @member {Boolean} ignore_profanity_filter + */ +_SendbirdGroupChannel["default"].prototype['ignore_profanity_filter'] = undefined; +/** + * @member {Number} invited_at + */ +_SendbirdGroupChannel["default"].prototype['invited_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +_SendbirdGroupChannel["default"].prototype['inviter'] = undefined; +/** + * @member {Boolean} is_access_code_required + */ +_SendbirdGroupChannel["default"].prototype['is_access_code_required'] = undefined; +/** + * @member {Boolean} is_broadcast + */ +_SendbirdGroupChannel["default"].prototype['is_broadcast'] = undefined; +/** + * @member {Boolean} is_discoverable + */ +_SendbirdGroupChannel["default"].prototype['is_discoverable'] = undefined; +/** + * @member {Boolean} is_distinct + */ +_SendbirdGroupChannel["default"].prototype['is_distinct'] = undefined; +/** + * @member {Boolean} is_ephemeral + */ +_SendbirdGroupChannel["default"].prototype['is_ephemeral'] = undefined; +/** + * @member {Boolean} is_exclusive + */ +_SendbirdGroupChannel["default"].prototype['is_exclusive'] = undefined; +/** + * @member {Boolean} is_hidden + */ +_SendbirdGroupChannel["default"].prototype['is_hidden'] = undefined; +/** + * @member {Boolean} is_muted + */ +_SendbirdGroupChannel["default"].prototype['is_muted'] = undefined; +/** + * @member {Boolean} is_public + */ +_SendbirdGroupChannel["default"].prototype['is_public'] = undefined; +/** + * @member {Boolean} is_push_enabled + */ +_SendbirdGroupChannel["default"].prototype['is_push_enabled'] = undefined; +/** + * @member {Boolean} is_super + */ +_SendbirdGroupChannel["default"].prototype['is_super'] = undefined; +/** + * @member {Number} joined_member_count + */ +_SendbirdGroupChannel["default"].prototype['joined_member_count'] = undefined; +/** + * @member {Number} joined_ts + */ +_SendbirdGroupChannel["default"].prototype['joined_ts'] = undefined; +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +_SendbirdGroupChannel["default"].prototype['last_message'] = undefined; +/** + * @member {Number} max_length_message + */ +_SendbirdGroupChannel["default"].prototype['max_length_message'] = undefined; +/** + * @member {Number} member_count + */ +_SendbirdGroupChannel["default"].prototype['member_count'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +_SendbirdGroupChannel["default"].prototype['member_state'] = undefined; +/** + * @member {Array.} members + */ +_SendbirdGroupChannel["default"].prototype['members'] = undefined; +/** + * @member {Number} message_survival_seconds + */ +_SendbirdGroupChannel["default"].prototype['message_survival_seconds'] = undefined; +/** + * @member {Object} metadata + */ +_SendbirdGroupChannel["default"].prototype['metadata'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +_SendbirdGroupChannel["default"].prototype['my_role'] = undefined; +/** + * @member {String} name + */ +_SendbirdGroupChannel["default"].prototype['name'] = undefined; +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +_SendbirdGroupChannel["default"].prototype['push_trigger_option'] = undefined; +/** + * @member {Object.} read_receipt + */ +_SendbirdGroupChannel["default"].prototype['read_receipt'] = undefined; +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +_SendbirdGroupChannel["default"].prototype['sms_fallback'] = undefined; +/** + * @member {Number} ts_message_offset + */ +_SendbirdGroupChannel["default"].prototype['ts_message_offset'] = undefined; +/** + * @member {Number} unread_mention_count + */ +_SendbirdGroupChannel["default"].prototype['unread_mention_count'] = undefined; +/** + * @member {Number} unread_message_count + */ +_SendbirdGroupChannel["default"].prototype['unread_message_count'] = undefined; +/** + * @member {Number} user_last_read + */ +_SendbirdGroupChannel["default"].prototype['user_last_read'] = undefined; +// Implement InviteAsMembersResponseAllOf interface: +/** + * @member {Array.} operators + */ +_InviteAsMembersResponseAllOf["default"].prototype['operators'] = undefined; + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['HiddenStateEnum'] = { + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['MemberStateEnum'] = { + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined", + /** + * value: "none" + * @const + */ + "none": "none" +}; + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['MyRoleEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; +var _default = exports["default"] = InviteAsMembersResponse; \ No newline at end of file diff --git a/dist/model/InviteAsMembersResponseAllOf.js b/dist/model/InviteAsMembersResponseAllOf.js new file mode 100644 index 0000000..1c95c12 --- /dev/null +++ b/dist/model/InviteAsMembersResponseAllOf.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The InviteAsMembersResponseAllOf model module. + * @module model/InviteAsMembersResponseAllOf + * @version 2.0.0 + */ +var InviteAsMembersResponseAllOf = /*#__PURE__*/function () { + /** + * Constructs a new InviteAsMembersResponseAllOf. + * @alias module:model/InviteAsMembersResponseAllOf + */ + function InviteAsMembersResponseAllOf() { + _classCallCheck(this, InviteAsMembersResponseAllOf); + InviteAsMembersResponseAllOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(InviteAsMembersResponseAllOf, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a InviteAsMembersResponseAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersResponseAllOf} obj Optional instance to populate. + * @return {module:model/InviteAsMembersResponseAllOf} The populated InviteAsMembersResponseAllOf instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersResponseAllOf(); + if (data.hasOwnProperty('operators')) { + obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendbirdUser["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} operators + */ +InviteAsMembersResponseAllOf.prototype['operators'] = undefined; +var _default = exports["default"] = InviteAsMembersResponseAllOf; \ No newline at end of file diff --git a/dist/model/JoinAChannelRequest.js b/dist/model/JoinAChannelRequest.js new file mode 100644 index 0000000..80ee3a4 --- /dev/null +++ b/dist/model/JoinAChannelRequest.js @@ -0,0 +1,87 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The JoinAChannelRequest model module. + * @module model/JoinAChannelRequest + * @version 2.0.0 + */ +var JoinAChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new JoinAChannelRequest. + * @alias module:model/JoinAChannelRequest + * @param userId {String} Specifies the unique ID of the user to join the public group channel. + */ + function JoinAChannelRequest(userId) { + _classCallCheck(this, JoinAChannelRequest); + JoinAChannelRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(JoinAChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a JoinAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JoinAChannelRequest} obj Optional instance to populate. + * @return {module:model/JoinAChannelRequest} The populated JoinAChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JoinAChannelRequest(); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Specifies the unique ID of the user to join the public group channel. + * @member {String} user_id + */ +JoinAChannelRequest.prototype['user_id'] = undefined; + +/** + * This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. + * @member {String} access_code + */ +JoinAChannelRequest.prototype['access_code'] = undefined; +var _default = exports["default"] = JoinAChannelRequest; \ No newline at end of file diff --git a/dist/model/JoinChannelsData.js b/dist/model/JoinChannelsData.js deleted file mode 100644 index b505611..0000000 --- a/dist/model/JoinChannelsData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The JoinChannelsData model module. - * @module model/JoinChannelsData - * @version 0.0.16 - */ -var JoinChannelsData = /*#__PURE__*/function () { - /** - * Constructs a new JoinChannelsData. - * @alias module:model/JoinChannelsData - * @param botUserid {String} Specifies the ID of the bot to join the channels. - * @param channelUrls {Array.} Specifies an array of one or more URLs of the channels to join. - */ - function JoinChannelsData(botUserid, channelUrls) { - _classCallCheck(this, JoinChannelsData); - JoinChannelsData.initialize(this, botUserid, channelUrls); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(JoinChannelsData, null, [{ - key: "initialize", - value: function initialize(obj, botUserid, channelUrls) { - obj['bot_userid'] = botUserid; - obj['channel_urls'] = channelUrls; - } - - /** - * Constructs a JoinChannelsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JoinChannelsData} obj Optional instance to populate. - * @return {module:model/JoinChannelsData} The populated JoinChannelsData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new JoinChannelsData(); - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - } - return obj; - } - }]); - return JoinChannelsData; -}(); -/** - * Specifies the ID of the bot to join the channels. - * @member {String} bot_userid - */ -JoinChannelsData.prototype['bot_userid'] = undefined; - -/** - * Specifies an array of one or more URLs of the channels to join. - * @member {Array.} channel_urls - */ -JoinChannelsData.prototype['channel_urls'] = undefined; -var _default = JoinChannelsData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/JoinChannelsRequest.js b/dist/model/JoinChannelsRequest.js new file mode 100644 index 0000000..ed712f8 --- /dev/null +++ b/dist/model/JoinChannelsRequest.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The JoinChannelsRequest model module. + * @module model/JoinChannelsRequest + * @version 2.0.0 + */ +var JoinChannelsRequest = /*#__PURE__*/function () { + /** + * Constructs a new JoinChannelsRequest. + * @alias module:model/JoinChannelsRequest + * @param channelUrls {Array.} + */ + function JoinChannelsRequest(channelUrls) { + _classCallCheck(this, JoinChannelsRequest); + JoinChannelsRequest.initialize(this, channelUrls); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(JoinChannelsRequest, null, [{ + key: "initialize", + value: function initialize(obj, channelUrls) { + obj['channel_urls'] = channelUrls; + } + + /** + * Constructs a JoinChannelsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JoinChannelsRequest} obj Optional instance to populate. + * @return {module:model/JoinChannelsRequest} The populated JoinChannelsRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new JoinChannelsRequest(); + if (data.hasOwnProperty('channel_urls')) { + obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} channel_urls + */ +JoinChannelsRequest.prototype['channel_urls'] = undefined; +var _default = exports["default"] = JoinChannelsRequest; \ No newline at end of file diff --git a/dist/model/JoinChannelsResponse.js b/dist/model/JoinChannelsResponse.js deleted file mode 100644 index 9675efe..0000000 --- a/dist/model/JoinChannelsResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./SendBirdGroupChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The JoinChannelsResponse model module. - * @module model/JoinChannelsResponse - * @version 0.0.16 - */ -var JoinChannelsResponse = /*#__PURE__*/function () { - /** - * Constructs a new JoinChannelsResponse. - * @alias module:model/JoinChannelsResponse - */ - function JoinChannelsResponse() { - _classCallCheck(this, JoinChannelsResponse); - JoinChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(JoinChannelsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a JoinChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JoinChannelsResponse} obj Optional instance to populate. - * @return {module:model/JoinChannelsResponse} The populated JoinChannelsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new JoinChannelsResponse(); - if (data.hasOwnProperty('channels')) { - obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendBirdGroupChannel["default"]]); - } - } - return obj; - } - }]); - return JoinChannelsResponse; -}(); -/** - * @member {Array.} channels - */ -JoinChannelsResponse.prototype['channels'] = undefined; -var _default = JoinChannelsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/LeaveAChannelRequest.js b/dist/model/LeaveAChannelRequest.js new file mode 100644 index 0000000..af9bc55 --- /dev/null +++ b/dist/model/LeaveAChannelRequest.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The LeaveAChannelRequest model module. + * @module model/LeaveAChannelRequest + * @version 2.0.0 + */ +var LeaveAChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new LeaveAChannelRequest. + * @alias module:model/LeaveAChannelRequest + * @param userIds {Array.} Specifies an array of one or more IDs of the users to leave the channel. + */ + function LeaveAChannelRequest(userIds) { + _classCallCheck(this, LeaveAChannelRequest); + LeaveAChannelRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(LeaveAChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a LeaveAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeaveAChannelRequest} obj Optional instance to populate. + * @return {module:model/LeaveAChannelRequest} The populated LeaveAChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LeaveAChannelRequest(); + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + if (data.hasOwnProperty('should_leave_all')) { + obj['should_leave_all'] = _ApiClient["default"].convertToType(data['should_leave_all'], 'Boolean'); + } + if (data.hasOwnProperty('should_remove_operator_status')) { + obj['should_remove_operator_status'] = _ApiClient["default"].convertToType(data['should_remove_operator_status'], 'Boolean'); + } + if (data.hasOwnProperty('reason')) { + obj['reason'] = _ApiClient["default"].convertToType(data['reason'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Specifies an array of one or more IDs of the users to leave the channel. + * @member {Array.} user_ids + */ +LeaveAChannelRequest.prototype['user_ids'] = undefined; + +/** + * Determines whether to make all members leave the channel. (Default: false) + * @member {Boolean} should_leave_all + */ +LeaveAChannelRequest.prototype['should_leave_all'] = undefined; + +/** + * Determines whether to remove a user from the channel's operator list if the user who is leaving the channel is an operator. (Default: false) + * @member {Boolean} should_remove_operator_status + */ +LeaveAChannelRequest.prototype['should_remove_operator_status'] = undefined; + +/** + * Specifies the reason for leaving a channel. Acceptable values are admin_removed, admin_deleted, admin_deactivated, left_by_own_choice, and channel_operator_removed. + * @member {module:model/LeaveAChannelRequest.ReasonEnum} reason + */ +LeaveAChannelRequest.prototype['reason'] = undefined; + +/** + * Allowed values for the reason property. + * @enum {String} + * @readonly + */ +LeaveAChannelRequest['ReasonEnum'] = { + /** + * value: "LEFT_BY_OWN_CHOICE" + * @const + */ + "LEFT_BY_OWN_CHOICE": "LEFT_BY_OWN_CHOICE", + /** + * value: "CHANNEL_OPERATOR_REMOVED" + * @const + */ + "CHANNEL_OPERATOR_REMOVED": "CHANNEL_OPERATOR_REMOVED", + /** + * value: "ADMIN_REMOVED" + * @const + */ + "ADMIN_REMOVED": "ADMIN_REMOVED", + /** + * value: "ADMIN_DELETED" + * @const + */ + "ADMIN_DELETED": "ADMIN_DELETED", + /** + * value: "ADMIN_DEACTIVATED" + * @const + */ + "ADMIN_DEACTIVATED": "ADMIN_DEACTIVATED" +}; +var _default = exports["default"] = LeaveAChannelRequest; \ No newline at end of file diff --git a/dist/model/LeaveMyGroupChannelsData.js b/dist/model/LeaveMyGroupChannelsData.js deleted file mode 100644 index 4490010..0000000 --- a/dist/model/LeaveMyGroupChannelsData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The LeaveMyGroupChannelsData model module. - * @module model/LeaveMyGroupChannelsData - * @version 0.0.16 - */ -var LeaveMyGroupChannelsData = /*#__PURE__*/function () { - /** - * Constructs a new LeaveMyGroupChannelsData. - * @alias module:model/LeaveMyGroupChannelsData - * @param customType {String} Specifies the custom channel type to make the user leave joined group channels with the corresponding type. - */ - function LeaveMyGroupChannelsData(customType) { - _classCallCheck(this, LeaveMyGroupChannelsData); - LeaveMyGroupChannelsData.initialize(this, customType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(LeaveMyGroupChannelsData, null, [{ - key: "initialize", - value: function initialize(obj, customType) { - obj['custom_type'] = customType; - } - - /** - * Constructs a LeaveMyGroupChannelsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeaveMyGroupChannelsData} obj Optional instance to populate. - * @return {module:model/LeaveMyGroupChannelsData} The populated LeaveMyGroupChannelsData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new LeaveMyGroupChannelsData(); - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - } - return obj; - } - }]); - return LeaveMyGroupChannelsData; -}(); -/** - * Specifies the custom channel type to make the user leave joined group channels with the corresponding type. - * @member {String} custom_type - */ -LeaveMyGroupChannelsData.prototype['custom_type'] = undefined; -var _default = LeaveMyGroupChannelsData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/LeaveMyGroupChannelsRequest.js b/dist/model/LeaveMyGroupChannelsRequest.js new file mode 100644 index 0000000..8166ba5 --- /dev/null +++ b/dist/model/LeaveMyGroupChannelsRequest.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The LeaveMyGroupChannelsRequest model module. + * @module model/LeaveMyGroupChannelsRequest + * @version 2.0.0 + */ +var LeaveMyGroupChannelsRequest = /*#__PURE__*/function () { + /** + * Constructs a new LeaveMyGroupChannelsRequest. + * @alias module:model/LeaveMyGroupChannelsRequest + */ + function LeaveMyGroupChannelsRequest() { + _classCallCheck(this, LeaveMyGroupChannelsRequest); + LeaveMyGroupChannelsRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(LeaveMyGroupChannelsRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a LeaveMyGroupChannelsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeaveMyGroupChannelsRequest} obj Optional instance to populate. + * @return {module:model/LeaveMyGroupChannelsRequest} The populated LeaveMyGroupChannelsRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new LeaveMyGroupChannelsRequest(); + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} custom_type + */ +LeaveMyGroupChannelsRequest.prototype['custom_type'] = undefined; +var _default = exports["default"] = LeaveMyGroupChannelsRequest; \ No newline at end of file diff --git a/dist/model/ListAllEmojisAndEmojiCategoriesResponse.js b/dist/model/ListAllEmojisAndEmojiCategoriesResponse.js deleted file mode 100644 index e3fb226..0000000 --- a/dist/model/ListAllEmojisAndEmojiCategoriesResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner = _interopRequireDefault(require("./ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAllEmojisAndEmojiCategoriesResponse model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponse - * @version 0.0.16 - */ -var ListAllEmojisAndEmojiCategoriesResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponse. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponse - */ - function ListAllEmojisAndEmojiCategoriesResponse() { - _classCallCheck(this, ListAllEmojisAndEmojiCategoriesResponse); - ListAllEmojisAndEmojiCategoriesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAllEmojisAndEmojiCategoriesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponse} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponse} The populated ListAllEmojisAndEmojiCategoriesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponse(); - if (data.hasOwnProperty('emoji_hash')) { - obj['emoji_hash'] = _ApiClient["default"].convertToType(data['emoji_hash'], 'String'); - } - if (data.hasOwnProperty('emoji_categories')) { - obj['emoji_categories'] = _ApiClient["default"].convertToType(data['emoji_categories'], [_ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner["default"]]); - } - } - return obj; - } - }]); - return ListAllEmojisAndEmojiCategoriesResponse; -}(); -/** - * @member {String} emoji_hash - */ -ListAllEmojisAndEmojiCategoriesResponse.prototype['emoji_hash'] = undefined; - -/** - * @member {Array.} emoji_categories - */ -ListAllEmojisAndEmojiCategoriesResponse.prototype['emoji_categories'] = undefined; -var _default = ListAllEmojisAndEmojiCategoriesResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js b/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js deleted file mode 100644 index a89370b..0000000 --- a/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner = _interopRequireDefault(require("./ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - * @version 0.0.16 - */ -var ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner = /*#__PURE__*/function () { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - */ - function ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner() { - _classCallCheck(this, ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner); - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner} The populated ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = _ApiClient["default"].convertToType(data['emojis'], [_ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner["default"]]); - } - } - return obj; - } - }]); - return ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner; -}(); -/** - * @member {Number} id - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['id'] = undefined; - -/** - * @member {String} name - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['name'] = undefined; - -/** - * @member {String} url - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['url'] = undefined; - -/** - * @member {Array.} emojis - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['emojis'] = undefined; -var _default = ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js b/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js deleted file mode 100644 index 7c45994..0000000 --- a/dist/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - * @version 0.0.16 - */ -var ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner = /*#__PURE__*/function () { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - */ - function ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner() { - _classCallCheck(this, ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner); - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner} The populated ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner; -}(); -/** - * @member {Number} id - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['id'] = undefined; - -/** - * @member {String} key - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['key'] = undefined; - -/** - * @member {String} url - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['url'] = undefined; -var _default = ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListAnnouncementGroupsResponse.js b/dist/model/ListAnnouncementGroupsResponse.js deleted file mode 100644 index 4ab989b..0000000 --- a/dist/model/ListAnnouncementGroupsResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAnnouncementGroupsResponse model module. - * @module model/ListAnnouncementGroupsResponse - * @version 0.0.16 - */ -var ListAnnouncementGroupsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListAnnouncementGroupsResponse. - * @alias module:model/ListAnnouncementGroupsResponse - */ - function ListAnnouncementGroupsResponse() { - _classCallCheck(this, ListAnnouncementGroupsResponse); - ListAnnouncementGroupsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAnnouncementGroupsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAnnouncementGroupsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementGroupsResponse} obj Optional instance to populate. - * @return {module:model/ListAnnouncementGroupsResponse} The populated ListAnnouncementGroupsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementGroupsResponse(); - if (data.hasOwnProperty('announcement_groups')) { - obj['announcement_groups'] = _ApiClient["default"].convertToType(data['announcement_groups'], ['String']); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListAnnouncementGroupsResponse; -}(); -/** - * @member {Array.} announcement_groups - */ -ListAnnouncementGroupsResponse.prototype['announcement_groups'] = undefined; - -/** - * @member {String} next - */ -ListAnnouncementGroupsResponse.prototype['next'] = undefined; -var _default = ListAnnouncementGroupsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListAnnouncementsResponse.js b/dist/model/ListAnnouncementsResponse.js deleted file mode 100644 index e8c19a6..0000000 --- a/dist/model/ListAnnouncementsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListAnnouncementsResponseAnnouncementsInner = _interopRequireDefault(require("./ListAnnouncementsResponseAnnouncementsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAnnouncementsResponse model module. - * @module model/ListAnnouncementsResponse - * @version 0.0.16 - */ -var ListAnnouncementsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListAnnouncementsResponse. - * @alias module:model/ListAnnouncementsResponse - */ - function ListAnnouncementsResponse() { - _classCallCheck(this, ListAnnouncementsResponse); - ListAnnouncementsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAnnouncementsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAnnouncementsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementsResponse} obj Optional instance to populate. - * @return {module:model/ListAnnouncementsResponse} The populated ListAnnouncementsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementsResponse(); - if (data.hasOwnProperty('announcements')) { - obj['announcements'] = _ApiClient["default"].convertToType(data['announcements'], [_ListAnnouncementsResponseAnnouncementsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListAnnouncementsResponse; -}(); -/** - * @member {Array.} announcements - */ -ListAnnouncementsResponse.prototype['announcements'] = undefined; - -/** - * @member {String} next - */ -ListAnnouncementsResponse.prototype['next'] = undefined; -var _default = ListAnnouncementsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListAnnouncementsResponseAnnouncementsInner.js b/dist/model/ListAnnouncementsResponseAnnouncementsInner.js deleted file mode 100644 index 9a930a1..0000000 --- a/dist/model/ListAnnouncementsResponseAnnouncementsInner.js +++ /dev/null @@ -1,232 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ScheduleAnnouncementResponseCreateChannelOptions = _interopRequireDefault(require("./ScheduleAnnouncementResponseCreateChannelOptions")); -var _ScheduleAnnouncementResponseMessage = _interopRequireDefault(require("./ScheduleAnnouncementResponseMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListAnnouncementsResponseAnnouncementsInner model module. - * @module model/ListAnnouncementsResponseAnnouncementsInner - * @version 0.0.16 - */ -var ListAnnouncementsResponseAnnouncementsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListAnnouncementsResponseAnnouncementsInner. - * @alias module:model/ListAnnouncementsResponseAnnouncementsInner - */ - function ListAnnouncementsResponseAnnouncementsInner() { - _classCallCheck(this, ListAnnouncementsResponseAnnouncementsInner); - ListAnnouncementsResponseAnnouncementsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListAnnouncementsResponseAnnouncementsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListAnnouncementsResponseAnnouncementsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementsResponseAnnouncementsInner} obj Optional instance to populate. - * @return {module:model/ListAnnouncementsResponseAnnouncementsInner} The populated ListAnnouncementsResponseAnnouncementsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementsResponseAnnouncementsInner(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ScheduleAnnouncementResponseMessage["default"].constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = _ScheduleAnnouncementResponseCreateChannelOptions["default"].constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = _ApiClient["default"].convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('target_custom_type')) { - obj['target_custom_type'] = _ApiClient["default"].convertToType(data['target_custom_type'], 'String'); - } - } - return obj; - } - }]); - return ListAnnouncementsResponseAnnouncementsInner; -}(); -/** - * @member {String} unique_id - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['open_rate'] = undefined; - -/** - * @member {Boolean} create_channel - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['create_channel'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['create_channel_options'] = undefined; - -/** - * @member {Number} end_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['end_at'] = undefined; - -/** - * @member {Boolean} mark_as_read - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['mark_as_read'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['sent_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_channel_type'] = undefined; - -/** - * @member {String} target_custom_type - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_custom_type'] = undefined; -var _default = ListAnnouncementsResponseAnnouncementsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListBannedChannelsResponse.js b/dist/model/ListBannedChannelsResponse.js deleted file mode 100644 index 764a657..0000000 --- a/dist/model/ListBannedChannelsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListBannedChannelsResponseBannedChannelsInner = _interopRequireDefault(require("./ListBannedChannelsResponseBannedChannelsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListBannedChannelsResponse model module. - * @module model/ListBannedChannelsResponse - * @version 0.0.16 - */ -var ListBannedChannelsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListBannedChannelsResponse. - * @alias module:model/ListBannedChannelsResponse - */ - function ListBannedChannelsResponse() { - _classCallCheck(this, ListBannedChannelsResponse); - ListBannedChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListBannedChannelsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListBannedChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListBannedChannelsResponse} obj Optional instance to populate. - * @return {module:model/ListBannedChannelsResponse} The populated ListBannedChannelsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListBannedChannelsResponse(); - if (data.hasOwnProperty('banned_channels')) { - obj['banned_channels'] = _ApiClient["default"].convertToType(data['banned_channels'], [_ListBannedChannelsResponseBannedChannelsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListBannedChannelsResponse; -}(); -/** - * @member {Array.} banned_channels - */ -ListBannedChannelsResponse.prototype['banned_channels'] = undefined; - -/** - * @member {String} next - */ -ListBannedChannelsResponse.prototype['next'] = undefined; -var _default = ListBannedChannelsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListBannedChannelsResponseBannedChannelsInner.js b/dist/model/ListBannedChannelsResponseBannedChannelsInner.js deleted file mode 100644 index eaccb2a..0000000 --- a/dist/model/ListBannedChannelsResponseBannedChannelsInner.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListBannedChannelsResponseBannedChannelsInner model module. - * @module model/ListBannedChannelsResponseBannedChannelsInner - * @version 0.0.16 - */ -var ListBannedChannelsResponseBannedChannelsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListBannedChannelsResponseBannedChannelsInner. - * @alias module:model/ListBannedChannelsResponseBannedChannelsInner - */ - function ListBannedChannelsResponseBannedChannelsInner() { - _classCallCheck(this, ListBannedChannelsResponseBannedChannelsInner); - ListBannedChannelsResponseBannedChannelsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListBannedChannelsResponseBannedChannelsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListBannedChannelsResponseBannedChannelsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListBannedChannelsResponseBannedChannelsInner} obj Optional instance to populate. - * @return {module:model/ListBannedChannelsResponseBannedChannelsInner} The populated ListBannedChannelsResponseBannedChannelsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListBannedChannelsResponseBannedChannelsInner(); - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - } - return obj; - } - }]); - return ListBannedChannelsResponseBannedChannelsInner; -}(); -/** - * @member {Number} start_at - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['start_at'] = undefined; - -/** - * @member {String} description - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['description'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['channel'] = undefined; - -/** - * @member {Number} end_at - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['end_at'] = undefined; -var _default = ListBannedChannelsResponseBannedChannelsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListBlockedUsersResponse.js b/dist/model/ListBlockedUsersResponse.js index be3307e..4014038 100644 --- a/dist/model/ListBlockedUsersResponse.js +++ b/dist/model/ListBlockedUsersResponse.js @@ -5,15 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListBlockedUsersResponse model module. * @module model/ListBlockedUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListBlockedUsersResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListBlockedUsersResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListBlockedUsersResponse, null, [{ + return _createClass(ListBlockedUsersResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -47,7 +61,7 @@ var ListBlockedUsersResponse = /*#__PURE__*/function () { if (data) { obj = obj || new ListBlockedUsersResponse(); if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendBirdUser["default"]]); + obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendbirdUser["default"]]); } if (data.hasOwnProperty('next')) { obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); @@ -56,10 +70,9 @@ var ListBlockedUsersResponse = /*#__PURE__*/function () { return obj; } }]); - return ListBlockedUsersResponse; }(); /** - * @member {Array.} users + * @member {Array.} users */ ListBlockedUsersResponse.prototype['users'] = undefined; @@ -67,5 +80,4 @@ ListBlockedUsersResponse.prototype['users'] = undefined; * @member {String} next */ ListBlockedUsersResponse.prototype['next'] = undefined; -var _default = ListBlockedUsersResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ListBlockedUsersResponse; \ No newline at end of file diff --git a/dist/model/ListBotsResponse.js b/dist/model/ListBotsResponse.js index 011bf8b..b815a40 100644 --- a/dist/model/ListBotsResponse.js +++ b/dist/model/ListBotsResponse.js @@ -6,14 +6,28 @@ Object.defineProperty(exports, "__esModule", { exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); var _ListBotsResponseBotsInner = _interopRequireDefault(require("./ListBotsResponseBotsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListBotsResponse model module. * @module model/ListBotsResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListBotsResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListBotsResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListBotsResponse, null, [{ + return _createClass(ListBotsResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -56,7 +70,6 @@ var ListBotsResponse = /*#__PURE__*/function () { return obj; } }]); - return ListBotsResponse; }(); /** * @member {Array.} bots @@ -67,5 +80,4 @@ ListBotsResponse.prototype['bots'] = undefined; * @member {String} next */ ListBotsResponse.prototype['next'] = undefined; -var _default = ListBotsResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ListBotsResponse; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInner.js b/dist/model/ListBotsResponseBotsInner.js index 61e5a5b..c4e7878 100644 --- a/dist/model/ListBotsResponseBotsInner.js +++ b/dist/model/ListBotsResponseBotsInner.js @@ -5,15 +5,33 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateBotResponseBot = _interopRequireDefault(require("./CreateBotResponseBot")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _ListBotsResponseBotsInnerAi = _interopRequireDefault(require("./ListBotsResponseBotsInnerAi")); +var _ListBotsResponseBotsInnerBot = _interopRequireDefault(require("./ListBotsResponseBotsInnerBot")); +var _ListBotsResponseBotsInnerBotStyle = _interopRequireDefault(require("./ListBotsResponseBotsInnerBotStyle")); +var _ListBotsResponseBotsInnerFirstMessagesInner = _interopRequireDefault(require("./ListBotsResponseBotsInnerFirstMessagesInner")); +var _ListBotsResponseBotsInnerSafeguard = _interopRequireDefault(require("./ListBotsResponseBotsInnerSafeguard")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListBotsResponseBotsInner model module. * @module model/ListBotsResponseBotsInner - * @version 0.0.16 + * @version 2.0.0 */ var ListBotsResponseBotsInner = /*#__PURE__*/function () { /** @@ -30,7 +48,7 @@ var ListBotsResponseBotsInner = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListBotsResponseBotsInner, null, [{ + return _createClass(ListBotsResponseBotsInner, null, [{ key: "initialize", value: function initialize(obj) {} @@ -46,32 +64,51 @@ var ListBotsResponseBotsInner = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new ListBotsResponseBotsInner(); + if (data.hasOwnProperty('ai')) { + obj['ai'] = _ListBotsResponseBotsInnerAi["default"].constructFromObject(data['ai']); + } if (data.hasOwnProperty('bot')) { - obj['bot'] = _CreateBotResponseBot["default"].constructFromObject(data['bot']); + obj['bot'] = _ListBotsResponseBotsInnerBot["default"].constructFromObject(data['bot']); } if (data.hasOwnProperty('bot_callback_url')) { obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); } + if (data.hasOwnProperty('bot_style')) { + obj['bot_style'] = _ListBotsResponseBotsInnerBotStyle["default"].constructFromObject(data['bot_style']); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } if (data.hasOwnProperty('enable_mark_as_read')) { obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); } + if (data.hasOwnProperty('first_messages')) { + obj['first_messages'] = _ApiClient["default"].convertToType(data['first_messages'], [_ListBotsResponseBotsInnerFirstMessagesInner["default"]]); + } if (data.hasOwnProperty('is_privacy_mode')) { obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); } + if (data.hasOwnProperty('safeguard')) { + obj['safeguard'] = _ListBotsResponseBotsInnerSafeguard["default"].constructFromObject(data['safeguard']); + } if (data.hasOwnProperty('show_member')) { obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } } return obj; } }]); - return ListBotsResponseBotsInner; }(); /** - * @member {module:model/CreateBotResponseBot} bot + * @member {module:model/ListBotsResponseBotsInnerAi} ai + */ +ListBotsResponseBotsInner.prototype['ai'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBot} bot */ ListBotsResponseBotsInner.prototype['bot'] = undefined; @@ -80,24 +117,43 @@ ListBotsResponseBotsInner.prototype['bot'] = undefined; */ ListBotsResponseBotsInner.prototype['bot_callback_url'] = undefined; +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyle} bot_style + */ +ListBotsResponseBotsInner.prototype['bot_style'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +ListBotsResponseBotsInner.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Number} created_at + */ +ListBotsResponseBotsInner.prototype['created_at'] = undefined; + /** * @member {Boolean} enable_mark_as_read */ ListBotsResponseBotsInner.prototype['enable_mark_as_read'] = undefined; +/** + * @member {Array.} first_messages + */ +ListBotsResponseBotsInner.prototype['first_messages'] = undefined; + /** * @member {Boolean} is_privacy_mode */ ListBotsResponseBotsInner.prototype['is_privacy_mode'] = undefined; /** - * @member {Boolean} show_member + * @member {module:model/ListBotsResponseBotsInnerSafeguard} safeguard */ -ListBotsResponseBotsInner.prototype['show_member'] = undefined; +ListBotsResponseBotsInner.prototype['safeguard'] = undefined; /** - * @member {Number} channel_invitation_preference + * @member {Boolean} show_member */ -ListBotsResponseBotsInner.prototype['channel_invitation_preference'] = undefined; -var _default = ListBotsResponseBotsInner; -exports["default"] = _default; \ No newline at end of file +ListBotsResponseBotsInner.prototype['show_member'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInner; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerAi.js b/dist/model/ListBotsResponseBotsInnerAi.js new file mode 100644 index 0000000..9eaf11b --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerAi.js @@ -0,0 +1,162 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerAi model module. + * @module model/ListBotsResponseBotsInnerAi + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerAi = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerAi. + * @alias module:model/ListBotsResponseBotsInnerAi + */ + function ListBotsResponseBotsInnerAi() { + _classCallCheck(this, ListBotsResponseBotsInnerAi); + ListBotsResponseBotsInnerAi.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerAi, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerAi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerAi} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerAi} The populated ListBotsResponseBotsInnerAi instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerAi(); + if (data.hasOwnProperty('backend')) { + obj['backend'] = _ApiClient["default"].convertToType(data['backend'], 'String'); + } + if (data.hasOwnProperty('feedback')) { + obj['feedback'] = _ApiClient["default"].convertToType(data['feedback'], 'Boolean'); + } + if (data.hasOwnProperty('frequency_penalty')) { + obj['frequency_penalty'] = _ApiClient["default"].convertToType(data['frequency_penalty'], 'Number'); + } + if (data.hasOwnProperty('instruction_mode')) { + obj['instruction_mode'] = _ApiClient["default"].convertToType(data['instruction_mode'], Object); + } + if (data.hasOwnProperty('max_tokens')) { + obj['max_tokens'] = _ApiClient["default"].convertToType(data['max_tokens'], 'Number'); + } + if (data.hasOwnProperty('model')) { + obj['model'] = _ApiClient["default"].convertToType(data['model'], 'String'); + } + if (data.hasOwnProperty('presence_penalty')) { + obj['presence_penalty'] = _ApiClient["default"].convertToType(data['presence_penalty'], 'Number'); + } + if (data.hasOwnProperty('stream')) { + obj['stream'] = _ApiClient["default"].convertToType(data['stream'], 'Boolean'); + } + if (data.hasOwnProperty('system_message')) { + obj['system_message'] = _ApiClient["default"].convertToType(data['system_message'], 'String'); + } + if (data.hasOwnProperty('system_message_for_context_prefix')) { + obj['system_message_for_context_prefix'] = _ApiClient["default"].convertToType(data['system_message_for_context_prefix'], 'String'); + } + if (data.hasOwnProperty('temperature')) { + obj['temperature'] = _ApiClient["default"].convertToType(data['temperature'], 'Number'); + } + if (data.hasOwnProperty('top_p')) { + obj['top_p'] = _ApiClient["default"].convertToType(data['top_p'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} backend + */ +ListBotsResponseBotsInnerAi.prototype['backend'] = undefined; + +/** + * @member {Boolean} feedback + */ +ListBotsResponseBotsInnerAi.prototype['feedback'] = undefined; + +/** + * @member {Number} frequency_penalty + */ +ListBotsResponseBotsInnerAi.prototype['frequency_penalty'] = undefined; + +/** + * @member {Object} instruction_mode + */ +ListBotsResponseBotsInnerAi.prototype['instruction_mode'] = undefined; + +/** + * @member {Number} max_tokens + */ +ListBotsResponseBotsInnerAi.prototype['max_tokens'] = undefined; + +/** + * @member {String} model + */ +ListBotsResponseBotsInnerAi.prototype['model'] = undefined; + +/** + * @member {Number} presence_penalty + */ +ListBotsResponseBotsInnerAi.prototype['presence_penalty'] = undefined; + +/** + * @member {Boolean} stream + */ +ListBotsResponseBotsInnerAi.prototype['stream'] = undefined; + +/** + * @member {String} system_message + */ +ListBotsResponseBotsInnerAi.prototype['system_message'] = undefined; + +/** + * @member {String} system_message_for_context_prefix + */ +ListBotsResponseBotsInnerAi.prototype['system_message_for_context_prefix'] = undefined; + +/** + * @member {Number} temperature + */ +ListBotsResponseBotsInnerAi.prototype['temperature'] = undefined; + +/** + * @member {Number} top_p + */ +ListBotsResponseBotsInnerAi.prototype['top_p'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerAi; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerBot.js b/dist/model/ListBotsResponseBotsInnerBot.js new file mode 100644 index 0000000..f8d90de --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerBot.js @@ -0,0 +1,133 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerBot model module. + * @module model/ListBotsResponseBotsInnerBot + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerBot = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerBot. + * @alias module:model/ListBotsResponseBotsInnerBot + * @param botUserid {String} + */ + function ListBotsResponseBotsInnerBot(botUserid) { + _classCallCheck(this, ListBotsResponseBotsInnerBot); + ListBotsResponseBotsInnerBot.initialize(this, botUserid); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerBot, null, [{ + key: "initialize", + value: function initialize(obj, botUserid) { + obj['bot_userid'] = botUserid; + } + + /** + * Constructs a ListBotsResponseBotsInnerBot from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBot} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBot} The populated ListBotsResponseBotsInnerBot instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBot(); + if (data.hasOwnProperty('ai_agent_type')) { + obj['ai_agent_type'] = _ApiClient["default"].convertToType(data['ai_agent_type'], 'String'); + } + if (data.hasOwnProperty('bot_metadata')) { + obj['bot_metadata'] = _ApiClient["default"].convertToType(data['bot_metadata'], Object); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_require_auth_for_profile_image')) { + obj['bot_require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['bot_require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('bot_token')) { + obj['bot_token'] = _ApiClient["default"].convertToType(data['bot_token'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = _ApiClient["default"].convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} ai_agent_type + */ +ListBotsResponseBotsInnerBot.prototype['ai_agent_type'] = undefined; + +/** + * @member {Object} bot_metadata + */ +ListBotsResponseBotsInnerBot.prototype['bot_metadata'] = undefined; + +/** + * @member {String} bot_nickname + */ +ListBotsResponseBotsInnerBot.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +ListBotsResponseBotsInnerBot.prototype['bot_profile_url'] = undefined; + +/** + * @member {Boolean} bot_require_auth_for_profile_image + */ +ListBotsResponseBotsInnerBot.prototype['bot_require_auth_for_profile_image'] = undefined; + +/** + * @member {String} bot_token + */ +ListBotsResponseBotsInnerBot.prototype['bot_token'] = undefined; + +/** + * @member {String} bot_type + */ +ListBotsResponseBotsInnerBot.prototype['bot_type'] = undefined; + +/** + * @member {String} bot_userid + */ +ListBotsResponseBotsInnerBot.prototype['bot_userid'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerBot; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerBotStyle.js b/dist/model/ListBotsResponseBotsInnerBotStyle.js new file mode 100644 index 0000000..ee2c04b --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerBotStyle.js @@ -0,0 +1,99 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ListBotsResponseBotsInnerBotStyleColor = _interopRequireDefault(require("./ListBotsResponseBotsInnerBotStyleColor")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerBotStyle model module. + * @module model/ListBotsResponseBotsInnerBotStyle + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerBotStyle = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerBotStyle. + * @alias module:model/ListBotsResponseBotsInnerBotStyle + */ + function ListBotsResponseBotsInnerBotStyle() { + _classCallCheck(this, ListBotsResponseBotsInnerBotStyle); + ListBotsResponseBotsInnerBotStyle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerBotStyle, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerBotStyle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBotStyle} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBotStyle} The populated ListBotsResponseBotsInnerBotStyle instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBotStyle(); + if (data.hasOwnProperty('auto_open')) { + obj['auto_open'] = _ApiClient["default"].convertToType(data['auto_open'], 'Boolean'); + } + if (data.hasOwnProperty('color')) { + obj['color'] = _ListBotsResponseBotsInnerBotStyleColor["default"].constructFromObject(data['color']); + } + if (data.hasOwnProperty('toggle_button_type')) { + obj['toggle_button_type'] = _ApiClient["default"].convertToType(data['toggle_button_type'], 'String'); + } + if (data.hasOwnProperty('toggle_button_url')) { + obj['toggle_button_url'] = _ApiClient["default"].convertToType(data['toggle_button_url'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} auto_open + */ +ListBotsResponseBotsInnerBotStyle.prototype['auto_open'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyleColor} color + */ +ListBotsResponseBotsInnerBotStyle.prototype['color'] = undefined; + +/** + * @member {String} toggle_button_type + */ +ListBotsResponseBotsInnerBotStyle.prototype['toggle_button_type'] = undefined; + +/** + * @member {String} toggle_button_url + */ +ListBotsResponseBotsInnerBotStyle.prototype['toggle_button_url'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerBotStyle; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerBotStyleColor.js b/dist/model/ListBotsResponseBotsInnerBotStyleColor.js new file mode 100644 index 0000000..3d5e7ec --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerBotStyleColor.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerBotStyleColor model module. + * @module model/ListBotsResponseBotsInnerBotStyleColor + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerBotStyleColor = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerBotStyleColor. + * @alias module:model/ListBotsResponseBotsInnerBotStyleColor + */ + function ListBotsResponseBotsInnerBotStyleColor() { + _classCallCheck(this, ListBotsResponseBotsInnerBotStyleColor); + ListBotsResponseBotsInnerBotStyleColor.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerBotStyleColor, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerBotStyleColor from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBotStyleColor} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBotStyleColor} The populated ListBotsResponseBotsInnerBotStyleColor instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBotStyleColor(); + if (data.hasOwnProperty('accent_color')) { + obj['accent_color'] = _ApiClient["default"].convertToType(data['accent_color'], 'String'); + } + if (data.hasOwnProperty('bot_message_color')) { + obj['bot_message_color'] = _ApiClient["default"].convertToType(data['bot_message_color'], 'String'); + } + if (data.hasOwnProperty('theme')) { + obj['theme'] = _ApiClient["default"].convertToType(data['theme'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} accent_color + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['accent_color'] = undefined; + +/** + * @member {String} bot_message_color + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['bot_message_color'] = undefined; + +/** + * @member {String} theme + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['theme'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerBotStyleColor; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerFirstMessagesInner.js b/dist/model/ListBotsResponseBotsInnerFirstMessagesInner.js new file mode 100644 index 0000000..20f4381 --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerFirstMessagesInner.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ListBotsResponseBotsInnerFirstMessagesInnerData = _interopRequireDefault(require("./ListBotsResponseBotsInnerFirstMessagesInnerData")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerFirstMessagesInner model module. + * @module model/ListBotsResponseBotsInnerFirstMessagesInner + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerFirstMessagesInner = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerFirstMessagesInner. + * @alias module:model/ListBotsResponseBotsInnerFirstMessagesInner + */ + function ListBotsResponseBotsInnerFirstMessagesInner() { + _classCallCheck(this, ListBotsResponseBotsInnerFirstMessagesInner); + ListBotsResponseBotsInnerFirstMessagesInner.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerFirstMessagesInner, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerFirstMessagesInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerFirstMessagesInner} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerFirstMessagesInner} The populated ListBotsResponseBotsInnerFirstMessagesInner instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerFirstMessagesInner(); + if (data.hasOwnProperty('data')) { + obj['data'] = _ListBotsResponseBotsInnerFirstMessagesInnerData["default"].constructFromObject(data['data']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} data + */ +ListBotsResponseBotsInnerFirstMessagesInner.prototype['data'] = undefined; + +/** + * @member {String} message + */ +ListBotsResponseBotsInnerFirstMessagesInner.prototype['message'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerFirstMessagesInner; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js b/dist/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js new file mode 100644 index 0000000..d421b8e --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerFirstMessagesInnerData model module. + * @module model/ListBotsResponseBotsInnerFirstMessagesInnerData + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerFirstMessagesInnerData = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerFirstMessagesInnerData. + * @alias module:model/ListBotsResponseBotsInnerFirstMessagesInnerData + */ + function ListBotsResponseBotsInnerFirstMessagesInnerData() { + _classCallCheck(this, ListBotsResponseBotsInnerFirstMessagesInnerData); + ListBotsResponseBotsInnerFirstMessagesInnerData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerFirstMessagesInnerData, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerFirstMessagesInnerData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} The populated ListBotsResponseBotsInnerFirstMessagesInnerData instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerFirstMessagesInnerData(); + if (data.hasOwnProperty('suggested_replies')) { + obj['suggested_replies'] = _ApiClient["default"].convertToType(data['suggested_replies'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} suggested_replies + */ +ListBotsResponseBotsInnerFirstMessagesInnerData.prototype['suggested_replies'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerFirstMessagesInnerData; \ No newline at end of file diff --git a/dist/model/ListBotsResponseBotsInnerSafeguard.js b/dist/model/ListBotsResponseBotsInnerSafeguard.js new file mode 100644 index 0000000..b0e7df9 --- /dev/null +++ b/dist/model/ListBotsResponseBotsInnerSafeguard.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListBotsResponseBotsInnerSafeguard model module. + * @module model/ListBotsResponseBotsInnerSafeguard + * @version 2.0.0 + */ +var ListBotsResponseBotsInnerSafeguard = /*#__PURE__*/function () { + /** + * Constructs a new ListBotsResponseBotsInnerSafeguard. + * @alias module:model/ListBotsResponseBotsInnerSafeguard + */ + function ListBotsResponseBotsInnerSafeguard() { + _classCallCheck(this, ListBotsResponseBotsInnerSafeguard); + ListBotsResponseBotsInnerSafeguard.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListBotsResponseBotsInnerSafeguard, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListBotsResponseBotsInnerSafeguard from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerSafeguard} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerSafeguard} The populated ListBotsResponseBotsInnerSafeguard instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerSafeguard(); + if (data.hasOwnProperty('banned_phrases')) { + obj['banned_phrases'] = _ApiClient["default"].convertToType(data['banned_phrases'], [Object]); + } + if (data.hasOwnProperty('enabled')) { + obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('pii_masking')) { + obj['pii_masking'] = _ApiClient["default"].convertToType(data['pii_masking'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} banned_phrases + */ +ListBotsResponseBotsInnerSafeguard.prototype['banned_phrases'] = undefined; + +/** + * @member {Boolean} enabled + */ +ListBotsResponseBotsInnerSafeguard.prototype['enabled'] = undefined; + +/** + * @member {String} message + */ +ListBotsResponseBotsInnerSafeguard.prototype['message'] = undefined; + +/** + * @member {Boolean} pii_masking + */ +ListBotsResponseBotsInnerSafeguard.prototype['pii_masking'] = undefined; +var _default = exports["default"] = ListBotsResponseBotsInnerSafeguard; \ No newline at end of file diff --git a/dist/model/ListDataExportsByMessageChannelOrUserResponse.js b/dist/model/ListDataExportsByMessageChannelOrUserResponse.js deleted file mode 100644 index aeef120..0000000 --- a/dist/model/ListDataExportsByMessageChannelOrUserResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInner = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListDataExportsByMessageChannelOrUserResponse model module. - * @module model/ListDataExportsByMessageChannelOrUserResponse - * @version 0.0.16 - */ -var ListDataExportsByMessageChannelOrUserResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponse. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponse - */ - function ListDataExportsByMessageChannelOrUserResponse() { - _classCallCheck(this, ListDataExportsByMessageChannelOrUserResponse); - ListDataExportsByMessageChannelOrUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListDataExportsByMessageChannelOrUserResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponse} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponse} The populated ListDataExportsByMessageChannelOrUserResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponse(); - if (data.hasOwnProperty('exported_data')) { - obj['exported_data'] = _ApiClient["default"].convertToType(data['exported_data'], [_ListDataExportsByMessageChannelOrUserResponseExportedDataInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListDataExportsByMessageChannelOrUserResponse; -}(); -/** - * @member {Array.} exported_data - */ -ListDataExportsByMessageChannelOrUserResponse.prototype['exported_data'] = undefined; - -/** - * @member {String} next - */ -ListDataExportsByMessageChannelOrUserResponse.prototype['next'] = undefined; -var _default = ListDataExportsByMessageChannelOrUserResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js b/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js deleted file mode 100644 index 5195058..0000000 --- a/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js +++ /dev/null @@ -1,151 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInner model module. - * @module model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner - * @version 0.0.16 - */ -var ListDataExportsByMessageChannelOrUserResponseExportedDataInner = /*#__PURE__*/function () { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponseExportedDataInner. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner - */ - function ListDataExportsByMessageChannelOrUserResponseExportedDataInner() { - _classCallCheck(this, ListDataExportsByMessageChannelOrUserResponseExportedDataInner); - ListDataExportsByMessageChannelOrUserResponseExportedDataInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListDataExportsByMessageChannelOrUserResponseExportedDataInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponseExportedDataInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner} The populated ListDataExportsByMessageChannelOrUserResponseExportedDataInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = _ApiClient["default"].convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = _ApiClient["default"].convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = _ApiClient["default"].convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = _ApiClient["default"].convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"].constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - }]); - return ListDataExportsByMessageChannelOrUserResponseExportedDataInner; -}(); -/** - * @member {String} request_id - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['request_id'] = undefined; - -/** - * @member {String} status - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['status'] = undefined; - -/** - * @member {String} format - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} sender_ids - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['user_ids'] = undefined; -var _default = ListDataExportsByMessageChannelOrUserResponseExportedDataInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js b/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js deleted file mode 100644 index 6f0fde0..0000000 --- a/dist/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile model module. - * @module model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - * @version 0.0.16 - */ -var ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = /*#__PURE__*/function () { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - */ - function ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile() { - _classCallCheck(this, ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile); - ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} The populated ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('expires_at')) { - obj['expires_at'] = _ApiClient["default"].convertToType(data['expires_at'], 'Number'); - } - } - return obj; - } - }]); - return ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile; -}(); -/** - * @member {String} url - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.prototype['url'] = undefined; - -/** - * @member {Number} expires_at - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.prototype['expires_at'] = undefined; -var _default = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListEmojisResponse.js b/dist/model/ListEmojisResponse.js deleted file mode 100644 index 63b75da..0000000 --- a/dist/model/ListEmojisResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdEmoji = _interopRequireDefault(require("./SendBirdEmoji")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListEmojisResponse model module. - * @module model/ListEmojisResponse - * @version 0.0.16 - */ -var ListEmojisResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListEmojisResponse. - * @alias module:model/ListEmojisResponse - */ - function ListEmojisResponse() { - _classCallCheck(this, ListEmojisResponse); - ListEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListEmojisResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListEmojisResponse} obj Optional instance to populate. - * @return {module:model/ListEmojisResponse} The populated ListEmojisResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListEmojisResponse(); - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = _ApiClient["default"].convertToType(data['emojis'], [_SendBirdEmoji["default"]]); - } - } - return obj; - } - }]); - return ListEmojisResponse; -}(); -/** - * @member {Array.} emojis - */ -ListEmojisResponse.prototype['emojis'] = undefined; -var _default = ListEmojisResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListGdprRequestsResponse.js b/dist/model/ListGdprRequestsResponse.js deleted file mode 100644 index c45c28d..0000000 --- a/dist/model/ListGdprRequestsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListGdprRequestsResponseRequestsInner = _interopRequireDefault(require("./ListGdprRequestsResponseRequestsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListGdprRequestsResponse model module. - * @module model/ListGdprRequestsResponse - * @version 0.0.16 - */ -var ListGdprRequestsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListGdprRequestsResponse. - * @alias module:model/ListGdprRequestsResponse - */ - function ListGdprRequestsResponse() { - _classCallCheck(this, ListGdprRequestsResponse); - ListGdprRequestsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListGdprRequestsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListGdprRequestsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGdprRequestsResponse} obj Optional instance to populate. - * @return {module:model/ListGdprRequestsResponse} The populated ListGdprRequestsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGdprRequestsResponse(); - if (data.hasOwnProperty('requests')) { - obj['requests'] = _ApiClient["default"].convertToType(data['requests'], [_ListGdprRequestsResponseRequestsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListGdprRequestsResponse; -}(); -/** - * @member {Array.} requests - */ -ListGdprRequestsResponse.prototype['requests'] = undefined; - -/** - * @member {String} next - */ -ListGdprRequestsResponse.prototype['next'] = undefined; -var _default = ListGdprRequestsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListGdprRequestsResponseRequestsInner.js b/dist/model/ListGdprRequestsResponseRequestsInner.js deleted file mode 100644 index 72179e9..0000000 --- a/dist/model/ListGdprRequestsResponseRequestsInner.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListGdprRequestsResponseRequestsInner model module. - * @module model/ListGdprRequestsResponseRequestsInner - * @version 0.0.16 - */ -var ListGdprRequestsResponseRequestsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListGdprRequestsResponseRequestsInner. - * @alias module:model/ListGdprRequestsResponseRequestsInner - */ - function ListGdprRequestsResponseRequestsInner() { - _classCallCheck(this, ListGdprRequestsResponseRequestsInner); - ListGdprRequestsResponseRequestsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListGdprRequestsResponseRequestsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListGdprRequestsResponseRequestsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGdprRequestsResponseRequestsInner} obj Optional instance to populate. - * @return {module:model/ListGdprRequestsResponseRequestsInner} The populated ListGdprRequestsResponseRequestsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGdprRequestsResponseRequestsInner(); - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('files')) { - obj['files'] = _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"].constructFromObject(data['files']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = _ApiClient["default"].convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ListGdprRequestsResponseRequestsInner; -}(); -/** - * @member {String} request_id - */ -ListGdprRequestsResponseRequestsInner.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -ListGdprRequestsResponseRequestsInner.prototype['action'] = undefined; - -/** - * @member {String} status - */ -ListGdprRequestsResponseRequestsInner.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -ListGdprRequestsResponseRequestsInner.prototype['user_id'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} files - */ -ListGdprRequestsResponseRequestsInner.prototype['files'] = undefined; - -/** - * @member {Array.} user_ids - */ -ListGdprRequestsResponseRequestsInner.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -ListGdprRequestsResponseRequestsInner.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -ListGdprRequestsResponseRequestsInner.prototype['created_at'] = undefined; -var _default = ListGdprRequestsResponseRequestsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMessagesResponse.js b/dist/model/ListMessagesResponse.js index e101daf..dc0e927 100644 --- a/dist/model/ListMessagesResponse.js +++ b/dist/model/ListMessagesResponse.js @@ -5,15 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListMessagesResponseMessagesInner = _interopRequireDefault(require("./ListMessagesResponseMessagesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdMessageResponse = _interopRequireDefault(require("./SendbirdMessageResponse")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListMessagesResponse model module. * @module model/ListMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListMessagesResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListMessagesResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListMessagesResponse, null, [{ + return _createClass(ListMessagesResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -47,17 +61,15 @@ var ListMessagesResponse = /*#__PURE__*/function () { if (data) { obj = obj || new ListMessagesResponse(); if (data.hasOwnProperty('messages')) { - obj['messages'] = _ApiClient["default"].convertToType(data['messages'], [_ListMessagesResponseMessagesInner["default"]]); + obj['messages'] = _ApiClient["default"].convertToType(data['messages'], [_SendbirdMessageResponse["default"]]); } } return obj; } }]); - return ListMessagesResponse; }(); /** - * @member {Array.} messages + * @member {Array.} messages */ ListMessagesResponse.prototype['messages'] = undefined; -var _default = ListMessagesResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ListMessagesResponse; \ No newline at end of file diff --git a/dist/model/ListMessagesResponseMessagesInner.js b/dist/model/ListMessagesResponseMessagesInner.js deleted file mode 100644 index 8b6e8f6..0000000 --- a/dist/model/ListMessagesResponseMessagesInner.js +++ /dev/null @@ -1,234 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListMessagesResponseMessagesInnerOgTag = _interopRequireDefault(require("./ListMessagesResponseMessagesInnerOgTag")); -var _ListMessagesResponseMessagesInnerSortedMetaarrayInner = _interopRequireDefault(require("./ListMessagesResponseMessagesInnerSortedMetaarrayInner")); -var _SendBirdMessageResponseMentionedUsersInner = _interopRequireDefault(require("./SendBirdMessageResponseMentionedUsersInner")); -var _SendBirdMessageResponseUser = _interopRequireDefault(require("./SendBirdMessageResponseUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMessagesResponseMessagesInner model module. - * @module model/ListMessagesResponseMessagesInner - * @version 0.0.16 - */ -var ListMessagesResponseMessagesInner = /*#__PURE__*/function () { - /** - * Constructs a new ListMessagesResponseMessagesInner. - * @alias module:model/ListMessagesResponseMessagesInner - */ - function ListMessagesResponseMessagesInner() { - _classCallCheck(this, ListMessagesResponseMessagesInner); - ListMessagesResponseMessagesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMessagesResponseMessagesInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMessagesResponseMessagesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInner} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInner} The populated ListMessagesResponseMessagesInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInner(); - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdMessageResponseMentionedUsersInner["default"]]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = _ApiClient["default"].convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = _ApiClient["default"].convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = _ApiClient["default"].convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdMessageResponseUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ApiClient["default"].convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = _ApiClient["default"].convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = _ApiClient["default"].convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_ListMessagesResponseMessagesInnerSortedMetaarrayInner["default"]]); - } - if (data.hasOwnProperty('og_tag')) { - obj['og_tag'] = _ListMessagesResponseMessagesInnerOgTag["default"].constructFromObject(data['og_tag']); - } - } - return obj; - } - }]); - return ListMessagesResponseMessagesInner; -}(); -/** - * @member {Number} message_survival_seconds - */ -ListMessagesResponseMessagesInner.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -ListMessagesResponseMessagesInner.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -ListMessagesResponseMessagesInner.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -ListMessagesResponseMessagesInner.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -ListMessagesResponseMessagesInner.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -ListMessagesResponseMessagesInner.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -ListMessagesResponseMessagesInner.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -ListMessagesResponseMessagesInner.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -ListMessagesResponseMessagesInner.prototype['file'] = undefined; - -/** - * @member {String} message - */ -ListMessagesResponseMessagesInner.prototype['message'] = undefined; - -/** - * @member {String} data - */ -ListMessagesResponseMessagesInner.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -ListMessagesResponseMessagesInner.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -ListMessagesResponseMessagesInner.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -ListMessagesResponseMessagesInner.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -ListMessagesResponseMessagesInner.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -ListMessagesResponseMessagesInner.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -ListMessagesResponseMessagesInner.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -ListMessagesResponseMessagesInner.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -ListMessagesResponseMessagesInner.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -ListMessagesResponseMessagesInner.prototype['message_id'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -ListMessagesResponseMessagesInner.prototype['sorted_metaarray'] = undefined; - -/** - * @member {module:model/ListMessagesResponseMessagesInnerOgTag} og_tag - */ -ListMessagesResponseMessagesInner.prototype['og_tag'] = undefined; -var _default = ListMessagesResponseMessagesInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMessagesResponseMessagesInnerOgTag.js b/dist/model/ListMessagesResponseMessagesInnerOgTag.js deleted file mode 100644 index 8ce2d88..0000000 --- a/dist/model/ListMessagesResponseMessagesInnerOgTag.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListMessagesResponseMessagesInnerOgTagOgImage = _interopRequireDefault(require("./ListMessagesResponseMessagesInnerOgTagOgImage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMessagesResponseMessagesInnerOgTag model module. - * @module model/ListMessagesResponseMessagesInnerOgTag - * @version 0.0.16 - */ -var ListMessagesResponseMessagesInnerOgTag = /*#__PURE__*/function () { - /** - * Constructs a new ListMessagesResponseMessagesInnerOgTag. - * @alias module:model/ListMessagesResponseMessagesInnerOgTag - */ - function ListMessagesResponseMessagesInnerOgTag() { - _classCallCheck(this, ListMessagesResponseMessagesInnerOgTag); - ListMessagesResponseMessagesInnerOgTag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMessagesResponseMessagesInnerOgTag, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMessagesResponseMessagesInnerOgTag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerOgTag} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerOgTag} The populated ListMessagesResponseMessagesInnerOgTag instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerOgTag(); - if (data.hasOwnProperty('og:url')) { - obj['og:url'] = _ApiClient["default"].convertToType(data['og:url'], 'String'); - } - if (data.hasOwnProperty('og:title')) { - obj['og:title'] = _ApiClient["default"].convertToType(data['og:title'], 'String'); - } - if (data.hasOwnProperty('og:description')) { - obj['og:description'] = _ApiClient["default"].convertToType(data['og:description'], 'String'); - } - if (data.hasOwnProperty('og:image')) { - obj['og:image'] = _ListMessagesResponseMessagesInnerOgTagOgImage["default"].constructFromObject(data['og:image']); - } - } - return obj; - } - }]); - return ListMessagesResponseMessagesInnerOgTag; -}(); -/** - * @member {String} og:url - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:url'] = undefined; - -/** - * @member {String} og:title - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:title'] = undefined; - -/** - * @member {String} og:description - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:description'] = undefined; - -/** - * @member {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} og:image - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:image'] = undefined; -var _default = ListMessagesResponseMessagesInnerOgTag; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMessagesResponseMessagesInnerOgTagOgImage.js b/dist/model/ListMessagesResponseMessagesInnerOgTagOgImage.js deleted file mode 100644 index ee71bc8..0000000 --- a/dist/model/ListMessagesResponseMessagesInnerOgTagOgImage.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMessagesResponseMessagesInnerOgTagOgImage model module. - * @module model/ListMessagesResponseMessagesInnerOgTagOgImage - * @version 0.0.16 - */ -var ListMessagesResponseMessagesInnerOgTagOgImage = /*#__PURE__*/function () { - /** - * Constructs a new ListMessagesResponseMessagesInnerOgTagOgImage. - * @alias module:model/ListMessagesResponseMessagesInnerOgTagOgImage - */ - function ListMessagesResponseMessagesInnerOgTagOgImage() { - _classCallCheck(this, ListMessagesResponseMessagesInnerOgTagOgImage); - ListMessagesResponseMessagesInnerOgTagOgImage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMessagesResponseMessagesInnerOgTagOgImage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMessagesResponseMessagesInnerOgTagOgImage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} The populated ListMessagesResponseMessagesInnerOgTagOgImage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerOgTagOgImage(); - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('secure_url')) { - obj['secure_url'] = _ApiClient["default"].convertToType(data['secure_url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); - } - if (data.hasOwnProperty('height')) { - obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); - } - } - return obj; - } - }]); - return ListMessagesResponseMessagesInnerOgTagOgImage; -}(); -/** - * @member {String} url - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['url'] = undefined; - -/** - * @member {String} secure_url - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['secure_url'] = undefined; - -/** - * @member {Number} width - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['width'] = undefined; - -/** - * @member {Number} height - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['height'] = undefined; -var _default = ListMessagesResponseMessagesInnerOgTagOgImage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js b/dist/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js deleted file mode 100644 index 22419a1..0000000 --- a/dist/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMessagesResponseMessagesInnerSortedMetaarrayInner model module. - * @module model/ListMessagesResponseMessagesInnerSortedMetaarrayInner - * @version 0.0.16 - */ -var ListMessagesResponseMessagesInnerSortedMetaarrayInner = /*#__PURE__*/function () { - /** - * Constructs a new ListMessagesResponseMessagesInnerSortedMetaarrayInner. - * @alias module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner - */ - function ListMessagesResponseMessagesInnerSortedMetaarrayInner() { - _classCallCheck(this, ListMessagesResponseMessagesInnerSortedMetaarrayInner); - ListMessagesResponseMessagesInnerSortedMetaarrayInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMessagesResponseMessagesInnerSortedMetaarrayInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMessagesResponseMessagesInnerSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner} The populated ListMessagesResponseMessagesInnerSortedMetaarrayInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], ['String']); - } - } - return obj; - } - }]); - return ListMessagesResponseMessagesInnerSortedMetaarrayInner; -}(); -/** - * @member {String} key - */ -ListMessagesResponseMessagesInnerSortedMetaarrayInner.prototype['key'] = undefined; - -/** - * @member {Array.} value - */ -ListMessagesResponseMessagesInnerSortedMetaarrayInner.prototype['value'] = undefined; -var _default = ListMessagesResponseMessagesInnerSortedMetaarrayInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMutedChannelsResponse.js b/dist/model/ListMutedChannelsResponse.js deleted file mode 100644 index 2c56da9..0000000 --- a/dist/model/ListMutedChannelsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMutedChannelsResponse model module. - * @module model/ListMutedChannelsResponse - * @version 0.0.16 - */ -var ListMutedChannelsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListMutedChannelsResponse. - * @alias module:model/ListMutedChannelsResponse - */ - function ListMutedChannelsResponse() { - _classCallCheck(this, ListMutedChannelsResponse); - ListMutedChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMutedChannelsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMutedChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMutedChannelsResponse} obj Optional instance to populate. - * @return {module:model/ListMutedChannelsResponse} The populated ListMutedChannelsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMutedChannelsResponse(); - if (data.hasOwnProperty('muted_channels')) { - obj['muted_channels'] = _ApiClient["default"].convertToType(data['muted_channels'], [_SendBirdChannelResponse["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListMutedChannelsResponse; -}(); -/** - * @member {Array.} muted_channels - */ -ListMutedChannelsResponse.prototype['muted_channels'] = undefined; - -/** - * @member {String} next - */ -ListMutedChannelsResponse.prototype['next'] = undefined; -var _default = ListMutedChannelsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js b/dist/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js deleted file mode 100644 index ef3d5d6..0000000 --- a/dist/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListMutedUsersInChannelsWithCustomChannelType200Response model module. - * @module model/ListMutedUsersInChannelsWithCustomChannelType200Response - * @version 0.0.16 - */ -var ListMutedUsersInChannelsWithCustomChannelType200Response = /*#__PURE__*/function () { - /** - * Constructs a new ListMutedUsersInChannelsWithCustomChannelType200Response. - * @alias module:model/ListMutedUsersInChannelsWithCustomChannelType200Response - */ - function ListMutedUsersInChannelsWithCustomChannelType200Response() { - _classCallCheck(this, ListMutedUsersInChannelsWithCustomChannelType200Response); - ListMutedUsersInChannelsWithCustomChannelType200Response.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListMutedUsersInChannelsWithCustomChannelType200Response, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListMutedUsersInChannelsWithCustomChannelType200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} obj Optional instance to populate. - * @return {module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} The populated ListMutedUsersInChannelsWithCustomChannelType200Response instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMutedUsersInChannelsWithCustomChannelType200Response(); - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = _ApiClient["default"].convertToType(data['muted_list'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListMutedUsersInChannelsWithCustomChannelType200Response; -}(); -/** - * @member {Array.} muted_list - */ -ListMutedUsersInChannelsWithCustomChannelType200Response.prototype['muted_list'] = undefined; - -/** - * @member {String} next - */ -ListMutedUsersInChannelsWithCustomChannelType200Response.prototype['next'] = undefined; -var _default = ListMutedUsersInChannelsWithCustomChannelType200Response; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListMyGroupChannelsResponse.js b/dist/model/ListMyGroupChannelsResponse.js index 081164d..277f472 100644 --- a/dist/model/ListMyGroupChannelsResponse.js +++ b/dist/model/ListMyGroupChannelsResponse.js @@ -5,15 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./SendBirdGroupChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdGroupChannel = _interopRequireDefault(require("./SendbirdGroupChannel")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListMyGroupChannelsResponse model module. * @module model/ListMyGroupChannelsResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListMyGroupChannelsResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListMyGroupChannelsResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListMyGroupChannelsResponse, null, [{ + return _createClass(ListMyGroupChannelsResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -47,7 +61,7 @@ var ListMyGroupChannelsResponse = /*#__PURE__*/function () { if (data) { obj = obj || new ListMyGroupChannelsResponse(); if (data.hasOwnProperty('channels')) { - obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendBirdGroupChannel["default"]]); + obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendbirdGroupChannel["default"]]); } if (data.hasOwnProperty('next')) { obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); @@ -59,10 +73,9 @@ var ListMyGroupChannelsResponse = /*#__PURE__*/function () { return obj; } }]); - return ListMyGroupChannelsResponse; }(); /** - * @member {Array.} channels + * @member {Array.} channels */ ListMyGroupChannelsResponse.prototype['channels'] = undefined; @@ -75,5 +88,4 @@ ListMyGroupChannelsResponse.prototype['next'] = undefined; * @member {Number} ts */ ListMyGroupChannelsResponse.prototype['ts'] = undefined; -var _default = ListMyGroupChannelsResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ListMyGroupChannelsResponse; \ No newline at end of file diff --git a/dist/model/ListOpenChannelsResponse.js b/dist/model/ListOpenChannelsResponse.js new file mode 100644 index 0000000..56b0482 --- /dev/null +++ b/dist/model/ListOpenChannelsResponse.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdOpenChannel = _interopRequireDefault(require("./SendbirdOpenChannel")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListOpenChannelsResponse model module. + * @module model/ListOpenChannelsResponse + * @version 2.0.0 + */ +var ListOpenChannelsResponse = /*#__PURE__*/function () { + /** + * Constructs a new ListOpenChannelsResponse. + * @alias module:model/ListOpenChannelsResponse + */ + function ListOpenChannelsResponse() { + _classCallCheck(this, ListOpenChannelsResponse); + ListOpenChannelsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListOpenChannelsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListOpenChannelsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListOpenChannelsResponse} obj Optional instance to populate. + * @return {module:model/ListOpenChannelsResponse} The populated ListOpenChannelsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListOpenChannelsResponse(); + if (data.hasOwnProperty('channels')) { + obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendbirdOpenChannel["default"]]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} channels + */ +ListOpenChannelsResponse.prototype['channels'] = undefined; + +/** + * @member {String} next + */ +ListOpenChannelsResponse.prototype['next'] = undefined; + +/** + * @member {Number} ts + */ +ListOpenChannelsResponse.prototype['ts'] = undefined; +var _default = exports["default"] = ListOpenChannelsResponse; \ No newline at end of file diff --git a/dist/model/ListOperatorsResponse.js b/dist/model/ListOperatorsResponse.js new file mode 100644 index 0000000..3c63cba --- /dev/null +++ b/dist/model/ListOperatorsResponse.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ListOperatorsResponse model module. + * @module model/ListOperatorsResponse + * @version 2.0.0 + */ +var ListOperatorsResponse = /*#__PURE__*/function () { + /** + * Constructs a new ListOperatorsResponse. + * @alias module:model/ListOperatorsResponse + */ + function ListOperatorsResponse() { + _classCallCheck(this, ListOperatorsResponse); + ListOperatorsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ListOperatorsResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListOperatorsResponse} obj Optional instance to populate. + * @return {module:model/ListOperatorsResponse} The populated ListOperatorsResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ListOperatorsResponse(); + if (data.hasOwnProperty('next')) { + obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendbirdBasicUserInfo["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} next + */ +ListOperatorsResponse.prototype['next'] = undefined; + +/** + * @member {Array.} operators + */ +ListOperatorsResponse.prototype['operators'] = undefined; +var _default = exports["default"] = ListOperatorsResponse; \ No newline at end of file diff --git a/dist/model/ListPushConfigurationsResponse.js b/dist/model/ListPushConfigurationsResponse.js deleted file mode 100644 index 8590452..0000000 --- a/dist/model/ListPushConfigurationsResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListPushConfigurationsResponsePushConfigurationsInner = _interopRequireDefault(require("./ListPushConfigurationsResponsePushConfigurationsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListPushConfigurationsResponse model module. - * @module model/ListPushConfigurationsResponse - * @version 0.0.16 - */ -var ListPushConfigurationsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListPushConfigurationsResponse. - * @alias module:model/ListPushConfigurationsResponse - */ - function ListPushConfigurationsResponse() { - _classCallCheck(this, ListPushConfigurationsResponse); - ListPushConfigurationsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListPushConfigurationsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListPushConfigurationsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushConfigurationsResponse} obj Optional instance to populate. - * @return {module:model/ListPushConfigurationsResponse} The populated ListPushConfigurationsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushConfigurationsResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], [_ListPushConfigurationsResponsePushConfigurationsInner["default"]]); - } - } - return obj; - } - }]); - return ListPushConfigurationsResponse; -}(); -/** - * @member {Array.} push_configurations - */ -ListPushConfigurationsResponse.prototype['push_configurations'] = undefined; -var _default = ListPushConfigurationsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListPushConfigurationsResponsePushConfigurationsInner.js b/dist/model/ListPushConfigurationsResponsePushConfigurationsInner.js deleted file mode 100644 index e88a749..0000000 --- a/dist/model/ListPushConfigurationsResponsePushConfigurationsInner.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListPushConfigurationsResponsePushConfigurationsInner model module. - * @module model/ListPushConfigurationsResponsePushConfigurationsInner - * @version 0.0.16 - */ -var ListPushConfigurationsResponsePushConfigurationsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListPushConfigurationsResponsePushConfigurationsInner. - * @alias module:model/ListPushConfigurationsResponsePushConfigurationsInner - */ - function ListPushConfigurationsResponsePushConfigurationsInner() { - _classCallCheck(this, ListPushConfigurationsResponsePushConfigurationsInner); - ListPushConfigurationsResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListPushConfigurationsResponsePushConfigurationsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListPushConfigurationsResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushConfigurationsResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/ListPushConfigurationsResponsePushConfigurationsInner} The populated ListPushConfigurationsResponsePushConfigurationsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushConfigurationsResponsePushConfigurationsInner(); - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = _ApiClient["default"].convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('sender_id')) { - obj['sender_id'] = _ApiClient["default"].convertToType(data['sender_id'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return ListPushConfigurationsResponsePushConfigurationsInner; -}(); -/** - * @member {String} id - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {Number} created_at - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['created_at'] = undefined; - -/** - * @member {String} api_key - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['api_key'] = undefined; - -/** - * @member {String} sender_id - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['sender_id'] = undefined; - -/** - * @member {String} push_sound - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['push_sound'] = undefined; -var _default = ListPushConfigurationsResponsePushConfigurationsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListPushNotificationContentTemplatesResponse.js b/dist/model/ListPushNotificationContentTemplatesResponse.js deleted file mode 100644 index 492ef48..0000000 --- a/dist/model/ListPushNotificationContentTemplatesResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner = _interopRequireDefault(require("./ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListPushNotificationContentTemplatesResponse model module. - * @module model/ListPushNotificationContentTemplatesResponse - * @version 0.0.16 - */ -var ListPushNotificationContentTemplatesResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListPushNotificationContentTemplatesResponse. - * @alias module:model/ListPushNotificationContentTemplatesResponse - */ - function ListPushNotificationContentTemplatesResponse() { - _classCallCheck(this, ListPushNotificationContentTemplatesResponse); - ListPushNotificationContentTemplatesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListPushNotificationContentTemplatesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListPushNotificationContentTemplatesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponse} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponse} The populated ListPushNotificationContentTemplatesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponse(); - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = _ApiClient["default"].convertToType(data['push_message_templates'], [_ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner["default"]]); - } - } - return obj; - } - }]); - return ListPushNotificationContentTemplatesResponse; -}(); -/** - * @member {Array.} push_message_templates - */ -ListPushNotificationContentTemplatesResponse.prototype['push_message_templates'] = undefined; -var _default = ListPushNotificationContentTemplatesResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js b/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js deleted file mode 100644 index b80c420..0000000 --- a/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate = _interopRequireDefault(require("./ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner model module. - * @module model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - * @version 0.0.16 - */ -var ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner = /*#__PURE__*/function () { - /** - * Constructs a new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner. - * @alias module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - */ - function ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner() { - _classCallCheck(this, ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner); - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner} The populated ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = _ApiClient["default"].convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate["default"].constructFromObject(data['template']); - } - } - return obj; - } - }]); - return ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner; -}(); -/** - * @member {String} template_name - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.prototype['template_name'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} template - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.prototype['template'] = undefined; -var _default = ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js b/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js deleted file mode 100644 index 1efe253..0000000 --- a/dist/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate model module. - * @module model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - * @version 0.0.16 - */ -var ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate = /*#__PURE__*/function () { - /** - * Constructs a new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate. - * @alias module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - */ - function ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate() { - _classCallCheck(this, ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate); - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} The populated ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - if (data.hasOwnProperty('MESG')) { - obj['MESG'] = _ApiClient["default"].convertToType(data['MESG'], 'String'); - } - if (data.hasOwnProperty('FILE')) { - obj['FILE'] = _ApiClient["default"].convertToType(data['FILE'], 'String'); - } - if (data.hasOwnProperty('ADMM')) { - obj['ADMM'] = _ApiClient["default"].convertToType(data['ADMM'], 'String'); - } - } - return obj; - } - }]); - return ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate; -}(); -/** - * @member {String} MESG - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['MESG'] = undefined; - -/** - * @member {String} FILE - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['FILE'] = undefined; - -/** - * @member {String} ADMM - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['ADMM'] = undefined; -var _default = ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReactionsOfMessageResponse.js b/dist/model/ListReactionsOfMessageResponse.js deleted file mode 100644 index ae56b48..0000000 --- a/dist/model/ListReactionsOfMessageResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReactionsOfMessageResponse model module. - * @module model/ListReactionsOfMessageResponse - * @version 0.0.16 - */ -var ListReactionsOfMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListReactionsOfMessageResponse. - * @alias module:model/ListReactionsOfMessageResponse - */ - function ListReactionsOfMessageResponse() { - _classCallCheck(this, ListReactionsOfMessageResponse); - ListReactionsOfMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReactionsOfMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReactionsOfMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReactionsOfMessageResponse} obj Optional instance to populate. - * @return {module:model/ListReactionsOfMessageResponse} The populated ListReactionsOfMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReactionsOfMessageResponse(); - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], ['String']); - } - } - return obj; - } - }]); - return ListReactionsOfMessageResponse; -}(); -/** - * @member {Array.} key - */ -ListReactionsOfMessageResponse.prototype['key'] = undefined; -var _default = ListReactionsOfMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListRegistrationOrDeviceTokensResponse.js b/dist/model/ListRegistrationOrDeviceTokensResponse.js index ab282c7..a91f553 100644 --- a/dist/model/ListRegistrationOrDeviceTokensResponse.js +++ b/dist/model/ListRegistrationOrDeviceTokensResponse.js @@ -5,15 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListRegistrationOrDeviceTokensResponse model module. * @module model/ListRegistrationOrDeviceTokensResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListRegistrationOrDeviceTokensResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListRegistrationOrDeviceTokensResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListRegistrationOrDeviceTokensResponse, null, [{ + return _createClass(ListRegistrationOrDeviceTokensResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -56,13 +70,12 @@ var ListRegistrationOrDeviceTokensResponse = /*#__PURE__*/function () { obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); } if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); + obj['user'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['user']); } } return obj; } }]); - return ListRegistrationOrDeviceTokensResponse; }(); /** * @member {Array.} token @@ -80,8 +93,7 @@ ListRegistrationOrDeviceTokensResponse.prototype['tokens'] = undefined; ListRegistrationOrDeviceTokensResponse.prototype['type'] = undefined; /** - * @member {module:model/SendBirdUser} user + * @member {module:model/SendbirdBasicUserInfo} user */ ListRegistrationOrDeviceTokensResponse.prototype['user'] = undefined; -var _default = ListRegistrationOrDeviceTokensResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ListRegistrationOrDeviceTokensResponse; \ No newline at end of file diff --git a/dist/model/ListReportsOnChannelByUrlResponse.js b/dist/model/ListReportsOnChannelByUrlResponse.js deleted file mode 100644 index 4a51f43..0000000 --- a/dist/model/ListReportsOnChannelByUrlResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListReportsOnMessageByIdResponseReportLogsInner = _interopRequireDefault(require("./ListReportsOnMessageByIdResponseReportLogsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsOnChannelByUrlResponse model module. - * @module model/ListReportsOnChannelByUrlResponse - * @version 0.0.16 - */ -var ListReportsOnChannelByUrlResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsOnChannelByUrlResponse. - * @alias module:model/ListReportsOnChannelByUrlResponse - */ - function ListReportsOnChannelByUrlResponse() { - _classCallCheck(this, ListReportsOnChannelByUrlResponse); - ListReportsOnChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsOnChannelByUrlResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsOnChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnChannelByUrlResponse} The populated ListReportsOnChannelByUrlResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnChannelByUrlResponse(); - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = _ApiClient["default"].convertToType(data['report_logs'], [_ListReportsOnMessageByIdResponseReportLogsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListReportsOnChannelByUrlResponse; -}(); -/** - * @member {Array.} report_logs - */ -ListReportsOnChannelByUrlResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnChannelByUrlResponse.prototype['next'] = undefined; -var _default = ListReportsOnChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReportsOnMessageByIdResponse.js b/dist/model/ListReportsOnMessageByIdResponse.js deleted file mode 100644 index 700ceaa..0000000 --- a/dist/model/ListReportsOnMessageByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListReportsOnMessageByIdResponseReportLogsInner = _interopRequireDefault(require("./ListReportsOnMessageByIdResponseReportLogsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsOnMessageByIdResponse model module. - * @module model/ListReportsOnMessageByIdResponse - * @version 0.0.16 - */ -var ListReportsOnMessageByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsOnMessageByIdResponse. - * @alias module:model/ListReportsOnMessageByIdResponse - */ - function ListReportsOnMessageByIdResponse() { - _classCallCheck(this, ListReportsOnMessageByIdResponse); - ListReportsOnMessageByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsOnMessageByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsOnMessageByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnMessageByIdResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnMessageByIdResponse} The populated ListReportsOnMessageByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnMessageByIdResponse(); - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = _ApiClient["default"].convertToType(data['report_logs'], [_ListReportsOnMessageByIdResponseReportLogsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListReportsOnMessageByIdResponse; -}(); -/** - * @member {Array.} report_logs - */ -ListReportsOnMessageByIdResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnMessageByIdResponse.prototype['next'] = undefined; -var _default = ListReportsOnMessageByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReportsOnMessageByIdResponseReportLogsInner.js b/dist/model/ListReportsOnMessageByIdResponseReportLogsInner.js deleted file mode 100644 index 634c294..0000000 --- a/dist/model/ListReportsOnMessageByIdResponseReportLogsInner.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsOnMessageByIdResponseReportLogsInner model module. - * @module model/ListReportsOnMessageByIdResponseReportLogsInner - * @version 0.0.16 - */ -var ListReportsOnMessageByIdResponseReportLogsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsOnMessageByIdResponseReportLogsInner. - * @alias module:model/ListReportsOnMessageByIdResponseReportLogsInner - */ - function ListReportsOnMessageByIdResponseReportLogsInner() { - _classCallCheck(this, ListReportsOnMessageByIdResponseReportLogsInner); - ListReportsOnMessageByIdResponseReportLogsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsOnMessageByIdResponseReportLogsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsOnMessageByIdResponseReportLogsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnMessageByIdResponseReportLogsInner} obj Optional instance to populate. - * @return {module:model/ListReportsOnMessageByIdResponseReportLogsInner} The populated ListReportsOnMessageByIdResponseReportLogsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnMessageByIdResponseReportLogsInner(); - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = _ApiClient["default"].convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = _SendBirdUser["default"].constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = _SendBirdUser["default"].constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ListReportsOnMessageByIdResponseReportLogsInner; -}(); -/** - * @member {String} report_type - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['created_at'] = undefined; -var _default = ListReportsOnMessageByIdResponseReportLogsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReportsOnUserByIdResponse.js b/dist/model/ListReportsOnUserByIdResponse.js deleted file mode 100644 index 4da44e2..0000000 --- a/dist/model/ListReportsOnUserByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListReportsOnMessageByIdResponseReportLogsInner = _interopRequireDefault(require("./ListReportsOnMessageByIdResponseReportLogsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsOnUserByIdResponse model module. - * @module model/ListReportsOnUserByIdResponse - * @version 0.0.16 - */ -var ListReportsOnUserByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsOnUserByIdResponse. - * @alias module:model/ListReportsOnUserByIdResponse - */ - function ListReportsOnUserByIdResponse() { - _classCallCheck(this, ListReportsOnUserByIdResponse); - ListReportsOnUserByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsOnUserByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsOnUserByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnUserByIdResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnUserByIdResponse} The populated ListReportsOnUserByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnUserByIdResponse(); - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = _ApiClient["default"].convertToType(data['report_logs'], [_ListReportsOnMessageByIdResponseReportLogsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListReportsOnUserByIdResponse; -}(); -/** - * @member {Array.} report_logs - */ -ListReportsOnUserByIdResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnUserByIdResponse.prototype['next'] = undefined; -var _default = ListReportsOnUserByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReportsResponse.js b/dist/model/ListReportsResponse.js deleted file mode 100644 index 9d49df0..0000000 --- a/dist/model/ListReportsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListReportsResponseReportLogsInner = _interopRequireDefault(require("./ListReportsResponseReportLogsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsResponse model module. - * @module model/ListReportsResponse - * @version 0.0.16 - */ -var ListReportsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsResponse. - * @alias module:model/ListReportsResponse - */ - function ListReportsResponse() { - _classCallCheck(this, ListReportsResponse); - ListReportsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsResponse} obj Optional instance to populate. - * @return {module:model/ListReportsResponse} The populated ListReportsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsResponse(); - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = _ApiClient["default"].convertToType(data['report_logs'], [_ListReportsResponseReportLogsInner["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return ListReportsResponse; -}(); -/** - * @member {Array.} report_logs - */ -ListReportsResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsResponse.prototype['next'] = undefined; -var _default = ListReportsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListReportsResponseReportLogsInner.js b/dist/model/ListReportsResponseReportLogsInner.js deleted file mode 100644 index 9da2f64..0000000 --- a/dist/model/ListReportsResponseReportLogsInner.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListReportsResponseReportLogsInner model module. - * @module model/ListReportsResponseReportLogsInner - * @version 0.0.16 - */ -var ListReportsResponseReportLogsInner = /*#__PURE__*/function () { - /** - * Constructs a new ListReportsResponseReportLogsInner. - * @alias module:model/ListReportsResponseReportLogsInner - */ - function ListReportsResponseReportLogsInner() { - _classCallCheck(this, ListReportsResponseReportLogsInner); - ListReportsResponseReportLogsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListReportsResponseReportLogsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListReportsResponseReportLogsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsResponseReportLogsInner} obj Optional instance to populate. - * @return {module:model/ListReportsResponseReportLogsInner} The populated ListReportsResponseReportLogsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsResponseReportLogsInner(); - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = _SendBirdUser["default"].constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = _ApiClient["default"].convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = _SendBirdUser["default"].constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ListReportsResponseReportLogsInner; -}(); -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ListReportsResponseReportLogsInner.prototype['reporting_user'] = undefined; - -/** - * @member {String} report_type - */ -ListReportsResponseReportLogsInner.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ListReportsResponseReportLogsInner.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ListReportsResponseReportLogsInner.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ListReportsResponseReportLogsInner.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListReportsResponseReportLogsInner.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ListReportsResponseReportLogsInner.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ListReportsResponseReportLogsInner.prototype['created_at'] = undefined; -var _default = ListReportsResponseReportLogsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListSecondaryApiTokensResponse.js b/dist/model/ListSecondaryApiTokensResponse.js deleted file mode 100644 index 103db91..0000000 --- a/dist/model/ListSecondaryApiTokensResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListSecondaryApiTokensResponseApiTokensInner = _interopRequireDefault(require("./ListSecondaryApiTokensResponseApiTokensInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListSecondaryApiTokensResponse model module. - * @module model/ListSecondaryApiTokensResponse - * @version 0.0.16 - */ -var ListSecondaryApiTokensResponse = /*#__PURE__*/function () { - /** - * Constructs a new ListSecondaryApiTokensResponse. - * @alias module:model/ListSecondaryApiTokensResponse - */ - function ListSecondaryApiTokensResponse() { - _classCallCheck(this, ListSecondaryApiTokensResponse); - ListSecondaryApiTokensResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListSecondaryApiTokensResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListSecondaryApiTokensResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSecondaryApiTokensResponse} obj Optional instance to populate. - * @return {module:model/ListSecondaryApiTokensResponse} The populated ListSecondaryApiTokensResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSecondaryApiTokensResponse(); - if (data.hasOwnProperty('api_tokens')) { - obj['api_tokens'] = _ApiClient["default"].convertToType(data['api_tokens'], [_ListSecondaryApiTokensResponseApiTokensInner["default"]]); - } - } - return obj; - } - }]); - return ListSecondaryApiTokensResponse; -}(); -/** - * @member {Array.} api_tokens - */ -ListSecondaryApiTokensResponse.prototype['api_tokens'] = undefined; -var _default = ListSecondaryApiTokensResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListSecondaryApiTokensResponseApiTokensInner.js b/dist/model/ListSecondaryApiTokensResponseApiTokensInner.js deleted file mode 100644 index a0f041b..0000000 --- a/dist/model/ListSecondaryApiTokensResponseApiTokensInner.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ListSecondaryApiTokensResponseApiTokensInner model module. - * @module model/ListSecondaryApiTokensResponseApiTokensInner - * @version 0.0.16 - */ -var ListSecondaryApiTokensResponseApiTokensInner = /*#__PURE__*/function () { - /** - * Constructs a new ListSecondaryApiTokensResponseApiTokensInner. - * @alias module:model/ListSecondaryApiTokensResponseApiTokensInner - */ - function ListSecondaryApiTokensResponseApiTokensInner() { - _classCallCheck(this, ListSecondaryApiTokensResponseApiTokensInner); - ListSecondaryApiTokensResponseApiTokensInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ListSecondaryApiTokensResponseApiTokensInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ListSecondaryApiTokensResponseApiTokensInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSecondaryApiTokensResponseApiTokensInner} obj Optional instance to populate. - * @return {module:model/ListSecondaryApiTokensResponseApiTokensInner} The populated ListSecondaryApiTokensResponseApiTokensInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSecondaryApiTokensResponseApiTokensInner(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ListSecondaryApiTokensResponseApiTokensInner; -}(); -/** - * @member {String} token - */ -ListSecondaryApiTokensResponseApiTokensInner.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -ListSecondaryApiTokensResponseApiTokensInner.prototype['created_at'] = undefined; -var _default = ListSecondaryApiTokensResponseApiTokensInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ListUsersResponse.js b/dist/model/ListUsersResponse.js index c9812c8..a48f5dc 100644 --- a/dist/model/ListUsersResponse.js +++ b/dist/model/ListUsersResponse.js @@ -5,15 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ListUsersResponse model module. * @module model/ListUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ var ListUsersResponse = /*#__PURE__*/function () { /** @@ -30,7 +44,7 @@ var ListUsersResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ListUsersResponse, null, [{ + return _createClass(ListUsersResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -46,26 +60,24 @@ var ListUsersResponse = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new ListUsersResponse(); - if (data.hasOwnProperty('users')) { - obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendBirdUser["default"]]); - } if (data.hasOwnProperty('next')) { obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); } + if (data.hasOwnProperty('users')) { + obj['users'] = _ApiClient["default"].convertToType(data['users'], [_SendbirdUser["default"]]); + } } return obj; } }]); - return ListUsersResponse; }(); /** - * @member {Array.} users + * @member {String} next */ -ListUsersResponse.prototype['users'] = undefined; +ListUsersResponse.prototype['next'] = undefined; /** - * @member {String} next + * @member {Array.} users */ -ListUsersResponse.prototype['next'] = undefined; -var _default = ListUsersResponse; -exports["default"] = _default; \ No newline at end of file +ListUsersResponse.prototype['users'] = undefined; +var _default = exports["default"] = ListUsersResponse; \ No newline at end of file diff --git a/dist/model/MarkAllMessagesAsReadData.js b/dist/model/MarkAllMessagesAsReadData.js deleted file mode 100644 index 73669e3..0000000 --- a/dist/model/MarkAllMessagesAsReadData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The MarkAllMessagesAsReadData model module. - * @module model/MarkAllMessagesAsReadData - * @version 0.0.16 - */ -var MarkAllMessagesAsReadData = /*#__PURE__*/function () { - /** - * Constructs a new MarkAllMessagesAsReadData. - * @alias module:model/MarkAllMessagesAsReadData - * @param channelUrls {Array.} Specifies an array of one or more group channel URLs to mark all of the unread messages in as read. If not specified, all of the unread messages in the joined group channels are marked as read. - */ - function MarkAllMessagesAsReadData(channelUrls) { - _classCallCheck(this, MarkAllMessagesAsReadData); - MarkAllMessagesAsReadData.initialize(this, channelUrls); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(MarkAllMessagesAsReadData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrls) { - obj['channel_urls'] = channelUrls; - } - - /** - * Constructs a MarkAllMessagesAsReadData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MarkAllMessagesAsReadData} obj Optional instance to populate. - * @return {module:model/MarkAllMessagesAsReadData} The populated MarkAllMessagesAsReadData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MarkAllMessagesAsReadData(); - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - } - return obj; - } - }]); - return MarkAllMessagesAsReadData; -}(); -/** - * Specifies an array of one or more group channel URLs to mark all of the unread messages in as read. If not specified, all of the unread messages in the joined group channels are marked as read. - * @member {Array.} channel_urls - */ -MarkAllMessagesAsReadData.prototype['channel_urls'] = undefined; -var _default = MarkAllMessagesAsReadData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/MarkAllMessagesAsReadRequest.js b/dist/model/MarkAllMessagesAsReadRequest.js new file mode 100644 index 0000000..7b5c39c --- /dev/null +++ b/dist/model/MarkAllMessagesAsReadRequest.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The MarkAllMessagesAsReadRequest model module. + * @module model/MarkAllMessagesAsReadRequest + * @version 2.0.0 + */ +var MarkAllMessagesAsReadRequest = /*#__PURE__*/function () { + /** + * Constructs a new MarkAllMessagesAsReadRequest. + * @alias module:model/MarkAllMessagesAsReadRequest + */ + function MarkAllMessagesAsReadRequest() { + _classCallCheck(this, MarkAllMessagesAsReadRequest); + MarkAllMessagesAsReadRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(MarkAllMessagesAsReadRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MarkAllMessagesAsReadRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MarkAllMessagesAsReadRequest} obj Optional instance to populate. + * @return {module:model/MarkAllMessagesAsReadRequest} The populated MarkAllMessagesAsReadRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MarkAllMessagesAsReadRequest(); + if (data.hasOwnProperty('channel_urls')) { + obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * Specifies an array of one or more group channel URLs where unread messages need to be marked as read. If not specified, unread messages in all group channels a user joined are marked as read. + * @member {Array.} channel_urls + */ +MarkAllMessagesAsReadRequest.prototype['channel_urls'] = undefined; +var _default = exports["default"] = MarkAllMessagesAsReadRequest; \ No newline at end of file diff --git a/dist/model/MarkChannelMessagesAsReadRequest.js b/dist/model/MarkChannelMessagesAsReadRequest.js new file mode 100644 index 0000000..e2ce8e8 --- /dev/null +++ b/dist/model/MarkChannelMessagesAsReadRequest.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The MarkChannelMessagesAsReadRequest model module. + * @module model/MarkChannelMessagesAsReadRequest + * @version 2.0.0 + */ +var MarkChannelMessagesAsReadRequest = /*#__PURE__*/function () { + /** + * Constructs a new MarkChannelMessagesAsReadRequest. + * @alias module:model/MarkChannelMessagesAsReadRequest + */ + function MarkChannelMessagesAsReadRequest() { + _classCallCheck(this, MarkChannelMessagesAsReadRequest); + MarkChannelMessagesAsReadRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(MarkChannelMessagesAsReadRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MarkChannelMessagesAsReadRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MarkChannelMessagesAsReadRequest} obj Optional instance to populate. + * @return {module:model/MarkChannelMessagesAsReadRequest} The populated MarkChannelMessagesAsReadRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MarkChannelMessagesAsReadRequest(); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} user_id + */ +MarkChannelMessagesAsReadRequest.prototype['user_id'] = undefined; +var _default = exports["default"] = MarkChannelMessagesAsReadRequest; \ No newline at end of file diff --git a/dist/model/MuteInChannelsWithCustomChannelTypesData.js b/dist/model/MuteInChannelsWithCustomChannelTypesData.js deleted file mode 100644 index d0b3d4f..0000000 --- a/dist/model/MuteInChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The MuteInChannelsWithCustomChannelTypesData model module. - * @module model/MuteInChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -var MuteInChannelsWithCustomChannelTypesData = /*#__PURE__*/function () { - /** - * Constructs a new MuteInChannelsWithCustomChannelTypesData. - * @alias module:model/MuteInChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to mute the user in channels with the channel types. The user is permanently muted unless unmuted (10 years, technically). - */ - function MuteInChannelsWithCustomChannelTypesData(channelCustomTypes) { - _classCallCheck(this, MuteInChannelsWithCustomChannelTypesData); - MuteInChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(MuteInChannelsWithCustomChannelTypesData, null, [{ - key: "initialize", - value: function initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a MuteInChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/MuteInChannelsWithCustomChannelTypesData} The populated MuteInChannelsWithCustomChannelTypesData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MuteInChannelsWithCustomChannelTypesData(); - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = _ApiClient["default"].convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - }]); - return MuteInChannelsWithCustomChannelTypesData; -}(); -/** - * Specifies an array of one or more custom channel types, in order to mute the user in channels with the channel types. The user is permanently muted unless unmuted (10 years, technically). - * @member {Array.} channel_custom_types - */ -MuteInChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; -var _default = MuteInChannelsWithCustomChannelTypesData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/MuteUsersInChannelsWithCustomChannelTypeData.js b/dist/model/MuteUsersInChannelsWithCustomChannelTypeData.js deleted file mode 100644 index 895805e..0000000 --- a/dist/model/MuteUsersInChannelsWithCustomChannelTypeData.js +++ /dev/null @@ -1,89 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The MuteUsersInChannelsWithCustomChannelTypeData model module. - * @module model/MuteUsersInChannelsWithCustomChannelTypeData - * @version 0.0.16 - */ -var MuteUsersInChannelsWithCustomChannelTypeData = /*#__PURE__*/function () { - /** - * Constructs a new MuteUsersInChannelsWithCustomChannelTypeData. - * @alias module:model/MuteUsersInChannelsWithCustomChannelTypeData - * @param userIds {Array.} - */ - function MuteUsersInChannelsWithCustomChannelTypeData(userIds) { - _classCallCheck(this, MuteUsersInChannelsWithCustomChannelTypeData); - MuteUsersInChannelsWithCustomChannelTypeData.initialize(this, userIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(MuteUsersInChannelsWithCustomChannelTypeData, null, [{ - key: "initialize", - value: function initialize(obj, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a MuteUsersInChannelsWithCustomChannelTypeData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} obj Optional instance to populate. - * @return {module:model/MuteUsersInChannelsWithCustomChannelTypeData} The populated MuteUsersInChannelsWithCustomChannelTypeData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new MuteUsersInChannelsWithCustomChannelTypeData(); - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('on_demand_upsert')) { - obj['on_demand_upsert'] = _ApiClient["default"].convertToType(data['on_demand_upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return MuteUsersInChannelsWithCustomChannelTypeData; -}(); -/** - * @member {Array.} user_ids - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['user_ids'] = undefined; - -/** - * @member {Number} seconds - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['seconds'] = undefined; - -/** - * @member {String} description - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['description'] = undefined; - -/** - * @member {Boolean} on_demand_upsert - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['on_demand_upsert'] = undefined; -var _default = MuteUsersInChannelsWithCustomChannelTypeData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcBanUserData.js b/dist/model/OcBanUserData.js deleted file mode 100644 index 478c6b7..0000000 --- a/dist/model/OcBanUserData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcBanUserData model module. - * @module model/OcBanUserData - * @version 0.0.16 - */ -var OcBanUserData = /*#__PURE__*/function () { - /** - * Constructs a new OcBanUserData. - * @alias module:model/OcBanUserData - * @param channelUrl {String} Specifies the URL of the channel where to ban the specified user. - * @param userId {String} Specifies the ID of the user to ban. - * @param agentId {String} Specifies the ID of the operator (agent) who bans the user. - * @param seconds {Number} Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the banning. The length is limited to 250 characters. - */ - function OcBanUserData(channelUrl, userId, agentId, seconds, description) { - _classCallCheck(this, OcBanUserData); - OcBanUserData.initialize(this, channelUrl, userId, agentId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcBanUserData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, userId, agentId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['agent_id'] = agentId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcBanUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcBanUserData} obj Optional instance to populate. - * @return {module:model/OcBanUserData} The populated OcBanUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcBanUserData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('agent_id')) { - obj['agent_id'] = _ApiClient["default"].convertToType(data['agent_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return OcBanUserData; -}(); -/** - * Specifies the URL of the channel where to ban the specified user. - * @member {String} channel_url - */ -OcBanUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the user to ban. - * @member {String} user_id - */ -OcBanUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the operator (agent) who bans the user. - * @member {String} agent_id - */ -OcBanUserData.prototype['agent_id'] = undefined; - -/** - * Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -OcBanUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the banning. The length is limited to 250 characters. - * @member {String} description - */ -OcBanUserData.prototype['description'] = undefined; -var _default = OcBanUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcBanUserResponse.js b/dist/model/OcBanUserResponse.js deleted file mode 100644 index d5a3bbe..0000000 --- a/dist/model/OcBanUserResponse.js +++ /dev/null @@ -1,136 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("./OcDeleteChannelByUrl200Response")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcBanUserResponse model module. - * @module model/OcBanUserResponse - * @version 0.0.16 - */ -var OcBanUserResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcBanUserResponse. - * @alias module:model/OcBanUserResponse - */ - function OcBanUserResponse() { - _classCallCheck(this, OcBanUserResponse); - OcBanUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcBanUserResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcBanUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcBanUserResponse} obj Optional instance to populate. - * @return {module:model/OcBanUserResponse} The populated OcBanUserResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcBanUserResponse(); - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('next_url')) { - obj['next_url'] = _ApiClient["default"].convertToType(data['next_url'], 'String'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _OcDeleteChannelByUrl200Response["default"].constructFromObject(data['metadata']); - } - } - return obj; - } - }]); - return OcBanUserResponse; -}(); -/** - * @member {Number} start_at - */ -OcBanUserResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcBanUserResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcBanUserResponse.prototype['description'] = undefined; - -/** - * @member {String} user_id - */ -OcBanUserResponse.prototype['user_id'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -OcBanUserResponse.prototype['user'] = undefined; - -/** - * @member {String} next_url - */ -OcBanUserResponse.prototype['next_url'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -OcBanUserResponse.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} nickname - */ -OcBanUserResponse.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -OcBanUserResponse.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -OcBanUserResponse.prototype['metadata'] = undefined; -var _default = OcBanUserResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcCreateChannelData.js b/dist/model/OcCreateChannelData.js deleted file mode 100644 index 9037f8c..0000000 --- a/dist/model/OcCreateChannelData.js +++ /dev/null @@ -1,144 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcCreateChannelData model module. - * @module model/OcCreateChannelData - * @version 0.0.16 - */ -var OcCreateChannelData = /*#__PURE__*/function () { - /** - * Constructs a new OcCreateChannelData. - * @alias module:model/OcCreateChannelData - */ - function OcCreateChannelData() { - _classCallCheck(this, OcCreateChannelData); - OcCreateChannelData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcCreateChannelData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcCreateChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcCreateChannelData} obj Optional instance to populate. - * @return {module:model/OcCreateChannelData} The populated OcCreateChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcCreateChannelData(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)')) { - obj['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'] = _ApiClient["default"].convertToType(data['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'], 'Boolean'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], ['String']); - } - } - return obj; - } - }]); - return OcCreateChannelData; -}(); -/** - * Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. (Default: open channel) - * @member {String} name - */ -OcCreateChannelData.prototype['name'] = undefined; - -/** - * Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. - * @member {String} channel_url - */ -OcCreateChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -OcCreateChannelData.prototype['cover_url'] = undefined; - -/** - * Uploads a file for the channel cover image. - * @member {File} cover_file - */ -OcCreateChannelData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -OcCreateChannelData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -OcCreateChannelData.prototype['data'] = undefined; - -/** - * Determines whether to preserve the messages in the channel for the purpose of retrieving chat history or not. It set to true, the messages in the channel are not saved in the Sendbird database and the chat history can't be retrieved. (Default: false) - * @member {Boolean} is_ephemeral - */ -OcCreateChannelData.prototype['is_ephemeral'] = undefined; - -/** - * Determines whether the channel is an open channel with dynamic partitioning or not. If the value of this property is true, the open channel can create several subchannels in order to accommodate a massive number of usres. (Default: false)

For the new Sendbird applications created after December 15, 2020, this property will be automatically set to true. - * @member {Boolean} [is_dynamic_partitioned](#2-how-dynamic-partitioning-works) - */ -OcCreateChannelData.prototype['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'] = undefined; - -/** - * Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @member {Array.} operator_ids - */ -OcCreateChannelData.prototype['operator_ids'] = undefined; - -/** - * (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - * @member {Array.} operators - */ -OcCreateChannelData.prototype['operators'] = undefined; -var _default = OcCreateChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcDeleteChannelByUrl200Response.js b/dist/model/OcDeleteChannelByUrl200Response.js deleted file mode 100644 index c367b4c..0000000 --- a/dist/model/OcDeleteChannelByUrl200Response.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcDeleteChannelByUrl200Response model module. - * @module model/OcDeleteChannelByUrl200Response - * @version 0.0.16 - */ -var OcDeleteChannelByUrl200Response = /*#__PURE__*/function () { - /** - * Constructs a new OcDeleteChannelByUrl200Response. - * @alias module:model/OcDeleteChannelByUrl200Response - */ - function OcDeleteChannelByUrl200Response() { - _classCallCheck(this, OcDeleteChannelByUrl200Response); - OcDeleteChannelByUrl200Response.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcDeleteChannelByUrl200Response, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcDeleteChannelByUrl200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcDeleteChannelByUrl200Response} obj Optional instance to populate. - * @return {module:model/OcDeleteChannelByUrl200Response} The populated OcDeleteChannelByUrl200Response instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcDeleteChannelByUrl200Response(); - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = _ApiClient["default"].convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - }]); - return OcDeleteChannelByUrl200Response; -}(); -/** - * @member {String} anyOf - */ -OcDeleteChannelByUrl200Response.prototype['anyOf'] = undefined; -var _default = OcDeleteChannelByUrl200Response; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcFreezeChannelData.js b/dist/model/OcFreezeChannelData.js deleted file mode 100644 index d675a41..0000000 --- a/dist/model/OcFreezeChannelData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcFreezeChannelData model module. - * @module model/OcFreezeChannelData - * @version 0.0.16 - */ -var OcFreezeChannelData = /*#__PURE__*/function () { - /** - * Constructs a new OcFreezeChannelData. - * @alias module:model/OcFreezeChannelData - * @param channelUrl {String} Specifies the URL of the channel to freeze. - * @param freeze {Boolean} Determines whether to freeze the channel. (Default: false) - */ - function OcFreezeChannelData(channelUrl, freeze) { - _classCallCheck(this, OcFreezeChannelData); - OcFreezeChannelData.initialize(this, channelUrl, freeze); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcFreezeChannelData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, freeze) { - obj['channel_url'] = channelUrl; - obj['freeze'] = freeze; - } - - /** - * Constructs a OcFreezeChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcFreezeChannelData} obj Optional instance to populate. - * @return {module:model/OcFreezeChannelData} The populated OcFreezeChannelData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcFreezeChannelData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - }]); - return OcFreezeChannelData; -}(); -/** - * Specifies the URL of the channel to freeze. - * @member {String} channel_url - */ -OcFreezeChannelData.prototype['channel_url'] = undefined; - -/** - * Determines whether to freeze the channel. (Default: false) - * @member {Boolean} freeze - */ -OcFreezeChannelData.prototype['freeze'] = undefined; -var _default = OcFreezeChannelData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListBannedUsersResponse.js b/dist/model/OcListBannedUsersResponse.js deleted file mode 100644 index 5781c14..0000000 --- a/dist/model/OcListBannedUsersResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcListBannedUsersResponseBannedListInner = _interopRequireDefault(require("./OcListBannedUsersResponseBannedListInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListBannedUsersResponse model module. - * @module model/OcListBannedUsersResponse - * @version 0.0.16 - */ -var OcListBannedUsersResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcListBannedUsersResponse. - * @alias module:model/OcListBannedUsersResponse - */ - function OcListBannedUsersResponse() { - _classCallCheck(this, OcListBannedUsersResponse); - OcListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListBannedUsersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/OcListBannedUsersResponse} The populated OcListBannedUsersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListBannedUsersResponse(); - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = _ApiClient["default"].convertToType(data['banned_list'], [_OcListBannedUsersResponseBannedListInner["default"]]); - } - if (data.hasOwnProperty('total_ban_count')) { - obj['total_ban_count'] = _ApiClient["default"].convertToType(data['total_ban_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return OcListBannedUsersResponse; -}(); -/** - * @member {Array.} banned_list - */ -OcListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {Number} total_ban_count - */ -OcListBannedUsersResponse.prototype['total_ban_count'] = undefined; - -/** - * @member {String} next - */ -OcListBannedUsersResponse.prototype['next'] = undefined; -var _default = OcListBannedUsersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListBannedUsersResponseBannedListInner.js b/dist/model/OcListBannedUsersResponseBannedListInner.js deleted file mode 100644 index 3616ac5..0000000 --- a/dist/model/OcListBannedUsersResponseBannedListInner.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListBannedUsersResponseBannedListInner model module. - * @module model/OcListBannedUsersResponseBannedListInner - * @version 0.0.16 - */ -var OcListBannedUsersResponseBannedListInner = /*#__PURE__*/function () { - /** - * Constructs a new OcListBannedUsersResponseBannedListInner. - * @alias module:model/OcListBannedUsersResponseBannedListInner - */ - function OcListBannedUsersResponseBannedListInner() { - _classCallCheck(this, OcListBannedUsersResponseBannedListInner); - OcListBannedUsersResponseBannedListInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListBannedUsersResponseBannedListInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListBannedUsersResponseBannedListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListBannedUsersResponseBannedListInner} obj Optional instance to populate. - * @return {module:model/OcListBannedUsersResponseBannedListInner} The populated OcListBannedUsersResponseBannedListInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListBannedUsersResponseBannedListInner(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return OcListBannedUsersResponseBannedListInner; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -OcListBannedUsersResponseBannedListInner.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -OcListBannedUsersResponseBannedListInner.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcListBannedUsersResponseBannedListInner.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcListBannedUsersResponseBannedListInner.prototype['description'] = undefined; -var _default = OcListBannedUsersResponseBannedListInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListChannelsResponse.js b/dist/model/OcListChannelsResponse.js deleted file mode 100644 index 1058c63..0000000 --- a/dist/model/OcListChannelsResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdOpenChannel = _interopRequireDefault(require("./SendBirdOpenChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListChannelsResponse model module. - * @module model/OcListChannelsResponse - * @version 0.0.16 - */ -var OcListChannelsResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcListChannelsResponse. - * @alias module:model/OcListChannelsResponse - */ - function OcListChannelsResponse() { - _classCallCheck(this, OcListChannelsResponse); - OcListChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListChannelsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListChannelsResponse} obj Optional instance to populate. - * @return {module:model/OcListChannelsResponse} The populated OcListChannelsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListChannelsResponse(); - if (data.hasOwnProperty('channels')) { - obj['channels'] = _ApiClient["default"].convertToType(data['channels'], [_SendBirdOpenChannel["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - if (data.hasOwnProperty('ts')) { - obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); - } - } - return obj; - } - }]); - return OcListChannelsResponse; -}(); -/** - * @member {Array.} channels - */ -OcListChannelsResponse.prototype['channels'] = undefined; - -/** - * @member {String} next - */ -OcListChannelsResponse.prototype['next'] = undefined; - -/** - * @member {Number} ts - */ -OcListChannelsResponse.prototype['ts'] = undefined; -var _default = OcListChannelsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListMutedUsersResponse.js b/dist/model/OcListMutedUsersResponse.js deleted file mode 100644 index d1e27c5..0000000 --- a/dist/model/OcListMutedUsersResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListMutedUsersResponse model module. - * @module model/OcListMutedUsersResponse - * @version 0.0.16 - */ -var OcListMutedUsersResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcListMutedUsersResponse. - * @alias module:model/OcListMutedUsersResponse - */ - function OcListMutedUsersResponse() { - _classCallCheck(this, OcListMutedUsersResponse); - OcListMutedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListMutedUsersResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListMutedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListMutedUsersResponse} obj Optional instance to populate. - * @return {module:model/OcListMutedUsersResponse} The populated OcListMutedUsersResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListMutedUsersResponse(); - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = _ApiClient["default"].convertToType(data['muted_list'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('total_mute_count')) { - obj['total_mute_count'] = _ApiClient["default"].convertToType(data['total_mute_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return OcListMutedUsersResponse; -}(); -/** - * @member {Array.} muted_list - */ -OcListMutedUsersResponse.prototype['muted_list'] = undefined; - -/** - * @member {Number} total_mute_count - */ -OcListMutedUsersResponse.prototype['total_mute_count'] = undefined; - -/** - * @member {String} next - */ -OcListMutedUsersResponse.prototype['next'] = undefined; -var _default = OcListMutedUsersResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListOperatorsResponse.js b/dist/model/OcListOperatorsResponse.js deleted file mode 100644 index e24c159..0000000 --- a/dist/model/OcListOperatorsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListOperatorsResponse model module. - * @module model/OcListOperatorsResponse - * @version 0.0.16 - */ -var OcListOperatorsResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcListOperatorsResponse. - * @alias module:model/OcListOperatorsResponse - */ - function OcListOperatorsResponse() { - _classCallCheck(this, OcListOperatorsResponse); - OcListOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListOperatorsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListOperatorsResponse} obj Optional instance to populate. - * @return {module:model/OcListOperatorsResponse} The populated OcListOperatorsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListOperatorsResponse(); - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return OcListOperatorsResponse; -}(); -/** - * @member {Array.} operators - */ -OcListOperatorsResponse.prototype['operators'] = undefined; - -/** - * @member {String} next - */ -OcListOperatorsResponse.prototype['next'] = undefined; -var _default = OcListOperatorsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcListParticipantsResponse.js b/dist/model/OcListParticipantsResponse.js deleted file mode 100644 index ca136a5..0000000 --- a/dist/model/OcListParticipantsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcListParticipantsResponse model module. - * @module model/OcListParticipantsResponse - * @version 0.0.16 - */ -var OcListParticipantsResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcListParticipantsResponse. - * @alias module:model/OcListParticipantsResponse - */ - function OcListParticipantsResponse() { - _classCallCheck(this, OcListParticipantsResponse); - OcListParticipantsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcListParticipantsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcListParticipantsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListParticipantsResponse} obj Optional instance to populate. - * @return {module:model/OcListParticipantsResponse} The populated OcListParticipantsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListParticipantsResponse(); - if (data.hasOwnProperty('participants')) { - obj['participants'] = _ApiClient["default"].convertToType(data['participants'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = _ApiClient["default"].convertToType(data['next'], 'String'); - } - } - return obj; - } - }]); - return OcListParticipantsResponse; -}(); -/** - * @member {Array.} participants - */ -OcListParticipantsResponse.prototype['participants'] = undefined; - -/** - * @member {String} next - */ -OcListParticipantsResponse.prototype['next'] = undefined; -var _default = OcListParticipantsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcMuteUserData.js b/dist/model/OcMuteUserData.js deleted file mode 100644 index 5b0607f..0000000 --- a/dist/model/OcMuteUserData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcMuteUserData model module. - * @module model/OcMuteUserData - * @version 0.0.16 - */ -var OcMuteUserData = /*#__PURE__*/function () { - /** - * Constructs a new OcMuteUserData. - * @alias module:model/OcMuteUserData - * @param userId {String} Specifies the ID of the target user to mute. - * @param seconds {Number} Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the muting. - */ - function OcMuteUserData(userId, seconds, description) { - _classCallCheck(this, OcMuteUserData); - OcMuteUserData.initialize(this, userId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcMuteUserData, null, [{ - key: "initialize", - value: function initialize(obj, userId, seconds, description) { - obj['user_id'] = userId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcMuteUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcMuteUserData} obj Optional instance to populate. - * @return {module:model/OcMuteUserData} The populated OcMuteUserData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcMuteUserData(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return OcMuteUserData; -}(); -/** - * Specifies the ID of the target user to mute. - * @member {String} user_id - */ -OcMuteUserData.prototype['user_id'] = undefined; - -/** - * Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -OcMuteUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the muting. - * @member {String} description - */ -OcMuteUserData.prototype['description'] = undefined; -var _default = OcMuteUserData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcRegisterOperatorsData.js b/dist/model/OcRegisterOperatorsData.js deleted file mode 100644 index e012eb9..0000000 --- a/dist/model/OcRegisterOperatorsData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcRegisterOperatorsData model module. - * @module model/OcRegisterOperatorsData - * @version 0.0.16 - */ -var OcRegisterOperatorsData = /*#__PURE__*/function () { - /** - * Constructs a new OcRegisterOperatorsData. - * @alias module:model/OcRegisterOperatorsData - * @param channelUrl {String} Specifies the URL of the channel to register operators to. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100. - */ - function OcRegisterOperatorsData(channelUrl, operatorIds) { - _classCallCheck(this, OcRegisterOperatorsData); - OcRegisterOperatorsData.initialize(this, channelUrl, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcRegisterOperatorsData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, operatorIds) { - obj['channel_url'] = channelUrl; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a OcRegisterOperatorsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcRegisterOperatorsData} obj Optional instance to populate. - * @return {module:model/OcRegisterOperatorsData} The populated OcRegisterOperatorsData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcRegisterOperatorsData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - }]); - return OcRegisterOperatorsData; -}(); -/** - * Specifies the URL of the channel to register operators to. - * @member {String} channel_url - */ -OcRegisterOperatorsData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -OcRegisterOperatorsData.prototype['operator_ids'] = undefined; -var _default = OcRegisterOperatorsData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcUpdateBanByIdData.js b/dist/model/OcUpdateBanByIdData.js deleted file mode 100644 index 08d7e50..0000000 --- a/dist/model/OcUpdateBanByIdData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcUpdateBanByIdData model module. - * @module model/OcUpdateBanByIdData - * @version 0.0.16 - */ -var OcUpdateBanByIdData = /*#__PURE__*/function () { - /** - * Constructs a new OcUpdateBanByIdData. - * @alias module:model/OcUpdateBanByIdData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param bannedUserId {String} Specifies the ID of the banned user to update. - * @param seconds {Number} Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @param description {String} Specifies a new reason for the banning to update. The length is limited to 250 characters. - */ - function OcUpdateBanByIdData(channelUrl, bannedUserId, seconds, description) { - _classCallCheck(this, OcUpdateBanByIdData); - OcUpdateBanByIdData.initialize(this, channelUrl, bannedUserId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcUpdateBanByIdData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, bannedUserId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['banned_user_id'] = bannedUserId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcUpdateBanByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateBanByIdData} obj Optional instance to populate. - * @return {module:model/OcUpdateBanByIdData} The populated OcUpdateBanByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateBanByIdData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('banned_user_id')) { - obj['banned_user_id'] = _ApiClient["default"].convertToType(data['banned_user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = _ApiClient["default"].convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return OcUpdateBanByIdData; -}(); -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -OcUpdateBanByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the banned user to update. - * @member {String} banned_user_id - */ -OcUpdateBanByIdData.prototype['banned_user_id'] = undefined; - -/** - * Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @member {Number} seconds - */ -OcUpdateBanByIdData.prototype['seconds'] = undefined; - -/** - * Specifies a new reason for the banning to update. The length is limited to 250 characters. - * @member {String} description - */ -OcUpdateBanByIdData.prototype['description'] = undefined; -var _default = OcUpdateBanByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcUpdateBanByIdResponse.js b/dist/model/OcUpdateBanByIdResponse.js deleted file mode 100644 index c869b63..0000000 --- a/dist/model/OcUpdateBanByIdResponse.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcUpdateBanByIdResponse model module. - * @module model/OcUpdateBanByIdResponse - * @version 0.0.16 - */ -var OcUpdateBanByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcUpdateBanByIdResponse. - * @alias module:model/OcUpdateBanByIdResponse - */ - function OcUpdateBanByIdResponse() { - _classCallCheck(this, OcUpdateBanByIdResponse); - OcUpdateBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcUpdateBanByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcUpdateBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateBanByIdResponse} obj Optional instance to populate. - * @return {module:model/OcUpdateBanByIdResponse} The populated OcUpdateBanByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateBanByIdResponse(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - }]); - return OcUpdateBanByIdResponse; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -OcUpdateBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {String} description - */ -OcUpdateBanByIdResponse.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -OcUpdateBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -OcUpdateBanByIdResponse.prototype['start_at'] = undefined; -var _default = OcUpdateBanByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcUpdateChannelByUrlData.js b/dist/model/OcUpdateChannelByUrlData.js deleted file mode 100644 index dd3dc45..0000000 --- a/dist/model/OcUpdateChannelByUrlData.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcUpdateChannelByUrlData model module. - * @module model/OcUpdateChannelByUrlData - * @version 0.0.16 - */ -var OcUpdateChannelByUrlData = /*#__PURE__*/function () { - /** - * Constructs a new OcUpdateChannelByUrlData. - * @alias module:model/OcUpdateChannelByUrlData - * @param channelUrl {String} Specifies the URL of the channel to update. - * @param name {String} Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. - * @param coverUrl {String} Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @param coverFile {File} Uploads the file for the channel cover image. - * @param customType {String} Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @param data {String} Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @param operatorIds {Array.} Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @param operators {Array.} (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - */ - function OcUpdateChannelByUrlData(channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators) { - _classCallCheck(this, OcUpdateChannelByUrlData); - OcUpdateChannelByUrlData.initialize(this, channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcUpdateChannelByUrlData, null, [{ - key: "initialize", - value: function initialize(obj, channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators) { - obj['channel_url'] = channelUrl; - obj['name'] = name; - obj['cover_url'] = coverUrl; - obj['cover_file'] = coverFile; - obj['custom_type'] = customType; - obj['data'] = data; - obj['operator_ids'] = operatorIds; - obj['operators'] = operators; - } - - /** - * Constructs a OcUpdateChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateChannelByUrlData} obj Optional instance to populate. - * @return {module:model/OcUpdateChannelByUrlData} The populated OcUpdateChannelByUrlData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateChannelByUrlData(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], ['String']); - } - } - return obj; - } - }]); - return OcUpdateChannelByUrlData; -}(); -/** - * Specifies the URL of the channel to update. - * @member {String} channel_url - */ -OcUpdateChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. - * @member {String} name - */ -OcUpdateChannelByUrlData.prototype['name'] = undefined; - -/** - * Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -OcUpdateChannelByUrlData.prototype['cover_url'] = undefined; - -/** - * Uploads the file for the channel cover image. - * @member {File} cover_file - */ -OcUpdateChannelByUrlData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -OcUpdateChannelByUrlData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -OcUpdateChannelByUrlData.prototype['data'] = undefined; - -/** - * Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @member {Array.} operator_ids - */ -OcUpdateChannelByUrlData.prototype['operator_ids'] = undefined; - -/** - * (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - * @member {Array.} operators - */ -OcUpdateChannelByUrlData.prototype['operators'] = undefined; -var _default = OcUpdateChannelByUrlData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcViewBanByIdResponse.js b/dist/model/OcViewBanByIdResponse.js deleted file mode 100644 index 12d9988..0000000 --- a/dist/model/OcViewBanByIdResponse.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcViewBanByIdResponse model module. - * @module model/OcViewBanByIdResponse - * @version 0.0.16 - */ -var OcViewBanByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcViewBanByIdResponse. - * @alias module:model/OcViewBanByIdResponse - */ - function OcViewBanByIdResponse() { - _classCallCheck(this, OcViewBanByIdResponse); - OcViewBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcViewBanByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcViewBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcViewBanByIdResponse} obj Optional instance to populate. - * @return {module:model/OcViewBanByIdResponse} The populated OcViewBanByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcViewBanByIdResponse(); - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - }]); - return OcViewBanByIdResponse; -}(); -/** - * @member {module:model/SendBirdUser} user - */ -OcViewBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {String} description - */ -OcViewBanByIdResponse.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -OcViewBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -OcViewBanByIdResponse.prototype['start_at'] = undefined; -var _default = OcViewBanByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/OcViewMuteByIdResponse.js b/dist/model/OcViewMuteByIdResponse.js deleted file mode 100644 index a22c83a..0000000 --- a/dist/model/OcViewMuteByIdResponse.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The OcViewMuteByIdResponse model module. - * @module model/OcViewMuteByIdResponse - * @version 0.0.16 - */ -var OcViewMuteByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new OcViewMuteByIdResponse. - * @alias module:model/OcViewMuteByIdResponse - */ - function OcViewMuteByIdResponse() { - _classCallCheck(this, OcViewMuteByIdResponse); - OcViewMuteByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(OcViewMuteByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a OcViewMuteByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcViewMuteByIdResponse} obj Optional instance to populate. - * @return {module:model/OcViewMuteByIdResponse} The populated OcViewMuteByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new OcViewMuteByIdResponse(); - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('remaining_duration')) { - obj['remaining_duration'] = _ApiClient["default"].convertToType(data['remaining_duration'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - } - return obj; - } - }]); - return OcViewMuteByIdResponse; -}(); -/** - * @member {Boolean} is_muted - */ -OcViewMuteByIdResponse.prototype['is_muted'] = undefined; - -/** - * @member {Number} remaining_duration - */ -OcViewMuteByIdResponse.prototype['remaining_duration'] = undefined; - -/** - * @member {Number} start_at - */ -OcViewMuteByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcViewMuteByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcViewMuteByIdResponse.prototype['description'] = undefined; -var _default = OcViewMuteByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterAndScheduleDataExportData.js b/dist/model/RegisterAndScheduleDataExportData.js deleted file mode 100644 index 052195a..0000000 --- a/dist/model/RegisterAndScheduleDataExportData.js +++ /dev/null @@ -1,176 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RegisterAndScheduleDataExportData model module. - * @module model/RegisterAndScheduleDataExportData - * @version 0.0.16 - */ -var RegisterAndScheduleDataExportData = /*#__PURE__*/function () { - /** - * Constructs a new RegisterAndScheduleDataExportData. - * @alias module:model/RegisterAndScheduleDataExportData - * @param startTs {Number} Specifies the starting timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @param endTs {Number} Specifies the ending timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - */ - function RegisterAndScheduleDataExportData(startTs, endTs) { - _classCallCheck(this, RegisterAndScheduleDataExportData); - RegisterAndScheduleDataExportData.initialize(this, startTs, endTs); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RegisterAndScheduleDataExportData, null, [{ - key: "initialize", - value: function initialize(obj, startTs, endTs) { - obj['start_ts'] = startTs; - obj['end_ts'] = endTs; - } - - /** - * Constructs a RegisterAndScheduleDataExportData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAndScheduleDataExportData} obj Optional instance to populate. - * @return {module:model/RegisterAndScheduleDataExportData} The populated RegisterAndScheduleDataExportData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAndScheduleDataExportData(); - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = _ApiClient["default"].convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = _ApiClient["default"].convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = _ApiClient["default"].convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = _ApiClient["default"].convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('exclude_sender_ids')) { - obj['exclude_sender_ids'] = _ApiClient["default"].convertToType(data['exclude_sender_ids'], ['String']); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('exclude_channel_urls')) { - obj['exclude_channel_urls'] = _ApiClient["default"].convertToType(data['exclude_channel_urls'], ['String']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('show_read_receipt')) { - obj['show_read_receipt'] = _ApiClient["default"].convertToType(data['show_read_receipt'], 'Boolean'); - } - if (data.hasOwnProperty('show_channel_metadata')) { - obj['show_channel_metadata'] = _ApiClient["default"].convertToType(data['show_channel_metadata'], 'Boolean'); - } - if (data.hasOwnProperty('neighboring_message_limit')) { - obj['neighboring_message_limit'] = _ApiClient["default"].convertToType(data['neighboring_message_limit'], 'Number'); - } - } - return obj; - } - }]); - return RegisterAndScheduleDataExportData; -}(); -/** - * Specifies the starting timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @member {Number} start_ts - */ -RegisterAndScheduleDataExportData.prototype['start_ts'] = undefined; - -/** - * Specifies the ending timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @member {Number} end_ts - */ -RegisterAndScheduleDataExportData.prototype['end_ts'] = undefined; - -/** - * Specifies the format of the file to export the messages to. Acceptable values are json and csv. (Default: json) - * @member {String} format - */ -RegisterAndScheduleDataExportData.prototype['format'] = undefined; - -/** - * Sets a single character delimiter to separate the values in each row of the csv file which stores two-dimensional arrays of the exported message data. Either English alphabets or special characters can be used as a delimiter, including a horizontal tab (\\t), a line feed (\\n), a vertical bar (\\ - * @member {String} csv_delimiter - */ -RegisterAndScheduleDataExportData.prototype['csv_delimiter'] = undefined; - -/** - * Specifies the timezone to be applied to the timestamp of the exported messages. For example, US/Pacific, Asia/Seoul, Europe/London, etc. (Default: UTC) - * @member {String} timezone - */ -RegisterAndScheduleDataExportData.prototype['timezone'] = undefined; - -/** - * Specifies an array of the IDs of the users which are used to filter the messages by its sender for the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs in the request. (Default: all messages sent by any user) - * @member {Array.} sender_ids - */ -RegisterAndScheduleDataExportData.prototype['sender_ids'] = undefined; - -/** - * Specifies an array of the IDs of the users which are used to exclude their sent messages from the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs. (Default: all messages sent by any user) - * @member {Array.} exclude_sender_ids - */ -RegisterAndScheduleDataExportData.prototype['exclude_sender_ids'] = undefined; - -/** - * Specifies an array of one or more URLs of channels to export the messages from. This property is effective only when the data_type parameter is set to messages or channels. (Default: all channels) - * @member {Array.} channel_urls - */ -RegisterAndScheduleDataExportData.prototype['channel_urls'] = undefined; - -/** - * Specifies an array of one or more URLs of channels to exclude when exporting the messages. This property is effective only when the data_type parameter is set to messages or channels. (Default: include all channels) - * @member {Array.} exclude_channel_urls - */ -RegisterAndScheduleDataExportData.prototype['exclude_channel_urls'] = undefined; - -/** - * Specifies an array of the IDs of the users to export their information. This property is effective only when the data_type parameter is set to users. (Default: all users) - * @member {Array.} user_ids - */ -RegisterAndScheduleDataExportData.prototype['user_ids'] = undefined; - -/** - * Determines whether to include information about the read receipts of each channel in the exported data. The read receipt indicates the timestamps of when each user has last read the messages in the channel, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). (Default: true) - * @member {Boolean} show_read_receipt - */ -RegisterAndScheduleDataExportData.prototype['show_read_receipt'] = undefined; - -/** - * Determines whether to include [channel metadata](/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata) in the result files. - * @member {Boolean} show_channel_metadata - */ -RegisterAndScheduleDataExportData.prototype['show_channel_metadata'] = undefined; - -/** - * Specifies the maximum number of other users' messages to be exported, which took place after the specified message of a user filtered by the sender_ids property. Even if there may be more messages that took place, if the quantity exceeds the number of the neighboring_message_limit, they are omitted. Only the messages that took place right after the specified message will be counted and exported. This can be used to better analyze the context. Acceptable values are 1 to 10, inclusive. (Default: 0) - * @member {Number} neighboring_message_limit - */ -RegisterAndScheduleDataExportData.prototype['neighboring_message_limit'] = undefined; -var _default = RegisterAndScheduleDataExportData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterAndScheduleDataExportResponse.js b/dist/model/RegisterAndScheduleDataExportResponse.js deleted file mode 100644 index fe0b6d4..0000000 --- a/dist/model/RegisterAndScheduleDataExportResponse.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RegisterAndScheduleDataExportResponse model module. - * @module model/RegisterAndScheduleDataExportResponse - * @version 0.0.16 - */ -var RegisterAndScheduleDataExportResponse = /*#__PURE__*/function () { - /** - * Constructs a new RegisterAndScheduleDataExportResponse. - * @alias module:model/RegisterAndScheduleDataExportResponse - */ - function RegisterAndScheduleDataExportResponse() { - _classCallCheck(this, RegisterAndScheduleDataExportResponse); - RegisterAndScheduleDataExportResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RegisterAndScheduleDataExportResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RegisterAndScheduleDataExportResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAndScheduleDataExportResponse} obj Optional instance to populate. - * @return {module:model/RegisterAndScheduleDataExportResponse} The populated RegisterAndScheduleDataExportResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAndScheduleDataExportResponse(); - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = _ApiClient["default"].convertToType(data['channel_custom_types'], ['String']); - } - if (data.hasOwnProperty('data_type')) { - obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String'); - } - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = _ApiClient["default"].convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = _ApiClient["default"].convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = _ApiClient["default"].convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = _ApiClient["default"].convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"].constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - }]); - return RegisterAndScheduleDataExportResponse; -}(); -/** - * @member {Array.} channel_custom_types - */ -RegisterAndScheduleDataExportResponse.prototype['channel_custom_types'] = undefined; - -/** - * @member {String} data_type - */ -RegisterAndScheduleDataExportResponse.prototype['data_type'] = undefined; - -/** - * @member {String} request_id - */ -RegisterAndScheduleDataExportResponse.prototype['request_id'] = undefined; - -/** - * @member {String} status - */ -RegisterAndScheduleDataExportResponse.prototype['status'] = undefined; - -/** - * @member {String} format - */ -RegisterAndScheduleDataExportResponse.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -RegisterAndScheduleDataExportResponse.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -RegisterAndScheduleDataExportResponse.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -RegisterAndScheduleDataExportResponse.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -RegisterAndScheduleDataExportResponse.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -RegisterAndScheduleDataExportResponse.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -RegisterAndScheduleDataExportResponse.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} sender_ids - */ -RegisterAndScheduleDataExportResponse.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -RegisterAndScheduleDataExportResponse.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -RegisterAndScheduleDataExportResponse.prototype['user_ids'] = undefined; -var _default = RegisterAndScheduleDataExportResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js b/dist/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js deleted file mode 100644 index 4381b11..0000000 --- a/dist/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RegisterAsOperatorToChannelsWithCustomChannelTypesData model module. - * @module model/RegisterAsOperatorToChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -var RegisterAsOperatorToChannelsWithCustomChannelTypesData = /*#__PURE__*/function () { - /** - * Constructs a new RegisterAsOperatorToChannelsWithCustomChannelTypesData. - * @alias module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to register the user as an operator to channels with the channel types. - */ - function RegisterAsOperatorToChannelsWithCustomChannelTypesData(channelCustomTypes) { - _classCallCheck(this, RegisterAsOperatorToChannelsWithCustomChannelTypesData); - RegisterAsOperatorToChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RegisterAsOperatorToChannelsWithCustomChannelTypesData, null, [{ - key: "initialize", - value: function initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a RegisterAsOperatorToChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} The populated RegisterAsOperatorToChannelsWithCustomChannelTypesData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAsOperatorToChannelsWithCustomChannelTypesData(); - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = _ApiClient["default"].convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - }]); - return RegisterAsOperatorToChannelsWithCustomChannelTypesData; -}(); -/** - * Specifies an array of one or more custom channel types, in order to register the user as an operator to channels with the channel types. - * @member {Array.} channel_custom_types - */ -RegisterAsOperatorToChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; -var _default = RegisterAsOperatorToChannelsWithCustomChannelTypesData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterGdprRequestData.js b/dist/model/RegisterGdprRequestData.js deleted file mode 100644 index 8e5ad06..0000000 --- a/dist/model/RegisterGdprRequestData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RegisterGdprRequestData model module. - * @module model/RegisterGdprRequestData - * @version 0.0.16 - */ -var RegisterGdprRequestData = /*#__PURE__*/function () { - /** - * Constructs a new RegisterGdprRequestData. - * @alias module:model/RegisterGdprRequestData - * @param action {String} Determines the type of a GDPR request. Acceptable values are limited to access and delete. If set to access, Sendbird server generates a downloadable zip file containing the data of the specified user with the user_id property to comply with GDPR's [right to access](https://gdpr-info.eu/art-15-gdpr/) of the data subject. If set to delete, the specified users with the user_ids property will be permanently deleted from your Sendbird application to comply with GDPR's [right to erasure](https://gdpr-info.eu/art-17-gdpr/) of the data subject. (Default: delete) - * @param userIds {Array.} Specifies an array of the IDs of the users to delete in order to meet the GDPR's requirements. The maximum number of users to be processed at once is 100. This should be specified when the value of the action property is delete. - * @param channelDeleteOption {String} Determines the scope of group channels to delete in addition to deleting the specified users with the user_ids property. Acceptable values are limited to the following:
- do_not_delete (default): the users will be deleted but their joined group channels will remain.
- 1_on_1: only 1-on-1 group channels of the users will be deleted. (This option can be useful when eliminating spam users)
- all: all joined group channels of the users will be deleted.

This only works when the value of the action property is delete. - * @param userId {String} Specifies the ID of the user to meet the GDPR's requirements. - */ - function RegisterGdprRequestData(action, userIds, channelDeleteOption, userId) { - _classCallCheck(this, RegisterGdprRequestData); - RegisterGdprRequestData.initialize(this, action, userIds, channelDeleteOption, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RegisterGdprRequestData, null, [{ - key: "initialize", - value: function initialize(obj, action, userIds, channelDeleteOption, userId) { - obj['action'] = action; - obj['user_ids'] = userIds; - obj['channel_delete_option'] = channelDeleteOption; - obj['user_id'] = userId; - } - - /** - * Constructs a RegisterGdprRequestData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterGdprRequestData} obj Optional instance to populate. - * @return {module:model/RegisterGdprRequestData} The populated RegisterGdprRequestData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterGdprRequestData(); - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = _ApiClient["default"].convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return RegisterGdprRequestData; -}(); -/** - * Determines the type of a GDPR request. Acceptable values are limited to access and delete. If set to access, Sendbird server generates a downloadable zip file containing the data of the specified user with the user_id property to comply with GDPR's [right to access](https://gdpr-info.eu/art-15-gdpr/) of the data subject. If set to delete, the specified users with the user_ids property will be permanently deleted from your Sendbird application to comply with GDPR's [right to erasure](https://gdpr-info.eu/art-17-gdpr/) of the data subject. (Default: delete) - * @member {String} action - */ -RegisterGdprRequestData.prototype['action'] = undefined; - -/** - * Specifies an array of the IDs of the users to delete in order to meet the GDPR's requirements. The maximum number of users to be processed at once is 100. This should be specified when the value of the action property is delete. - * @member {Array.} user_ids - */ -RegisterGdprRequestData.prototype['user_ids'] = undefined; - -/** - * Determines the scope of group channels to delete in addition to deleting the specified users with the user_ids property. Acceptable values are limited to the following:
- do_not_delete (default): the users will be deleted but their joined group channels will remain.
- 1_on_1: only 1-on-1 group channels of the users will be deleted. (This option can be useful when eliminating spam users)
- all: all joined group channels of the users will be deleted.

This only works when the value of the action property is delete. - * @member {String} channel_delete_option - */ -RegisterGdprRequestData.prototype['channel_delete_option'] = undefined; - -/** - * Specifies the ID of the user to meet the GDPR's requirements. - * @member {String} user_id - */ -RegisterGdprRequestData.prototype['user_id'] = undefined; -var _default = RegisterGdprRequestData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterGdprRequestResponse.js b/dist/model/RegisterGdprRequestResponse.js deleted file mode 100644 index 95cabbc..0000000 --- a/dist/model/RegisterGdprRequestResponse.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RegisterGdprRequestResponse model module. - * @module model/RegisterGdprRequestResponse - * @version 0.0.16 - */ -var RegisterGdprRequestResponse = /*#__PURE__*/function () { - /** - * Constructs a new RegisterGdprRequestResponse. - * @alias module:model/RegisterGdprRequestResponse - */ - function RegisterGdprRequestResponse() { - _classCallCheck(this, RegisterGdprRequestResponse); - RegisterGdprRequestResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RegisterGdprRequestResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RegisterGdprRequestResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterGdprRequestResponse} obj Optional instance to populate. - * @return {module:model/RegisterGdprRequestResponse} The populated RegisterGdprRequestResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterGdprRequestResponse(); - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = _ApiClient["default"].convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return RegisterGdprRequestResponse; -}(); -/** - * @member {String} request_id - */ -RegisterGdprRequestResponse.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -RegisterGdprRequestResponse.prototype['action'] = undefined; - -/** - * @member {String} status - */ -RegisterGdprRequestResponse.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -RegisterGdprRequestResponse.prototype['user_id'] = undefined; - -/** - * @member {Array.} user_ids - */ -RegisterGdprRequestResponse.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -RegisterGdprRequestResponse.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -RegisterGdprRequestResponse.prototype['created_at'] = undefined; -var _default = RegisterGdprRequestResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RegisterOperatorsToAGroupChannelRequest.js b/dist/model/RegisterOperatorsToAGroupChannelRequest.js new file mode 100644 index 0000000..a4571ce --- /dev/null +++ b/dist/model/RegisterOperatorsToAGroupChannelRequest.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The RegisterOperatorsToAGroupChannelRequest model module. + * @module model/RegisterOperatorsToAGroupChannelRequest + * @version 2.0.0 + */ +var RegisterOperatorsToAGroupChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new RegisterOperatorsToAGroupChannelRequest. + * @alias module:model/RegisterOperatorsToAGroupChannelRequest + * @param operatorIds {Array.} + */ + function RegisterOperatorsToAGroupChannelRequest(operatorIds) { + _classCallCheck(this, RegisterOperatorsToAGroupChannelRequest); + RegisterOperatorsToAGroupChannelRequest.initialize(this, operatorIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(RegisterOperatorsToAGroupChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, operatorIds) { + obj['operator_ids'] = operatorIds; + } + + /** + * Constructs a RegisterOperatorsToAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/RegisterOperatorsToAGroupChannelRequest} The populated RegisterOperatorsToAGroupChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RegisterOperatorsToAGroupChannelRequest(); + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} operator_ids + */ +RegisterOperatorsToAGroupChannelRequest.prototype['operator_ids'] = undefined; +var _default = exports["default"] = RegisterOperatorsToAGroupChannelRequest; \ No newline at end of file diff --git a/dist/model/RemoveARegistrationOrDeviceTokenResponse.js b/dist/model/RemoveARegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..0cd78af --- /dev/null +++ b/dist/model/RemoveARegistrationOrDeviceTokenResponse.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The RemoveARegistrationOrDeviceTokenResponse model module. + * @module model/RemoveARegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +var RemoveARegistrationOrDeviceTokenResponse = /*#__PURE__*/function () { + /** + * Constructs a new RemoveARegistrationOrDeviceTokenResponse. + * @alias module:model/RemoveARegistrationOrDeviceTokenResponse + */ + function RemoveARegistrationOrDeviceTokenResponse() { + _classCallCheck(this, RemoveARegistrationOrDeviceTokenResponse); + RemoveARegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(RemoveARegistrationOrDeviceTokenResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a RemoveARegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoveARegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/RemoveARegistrationOrDeviceTokenResponse} The populated RemoveARegistrationOrDeviceTokenResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoveARegistrationOrDeviceTokenResponse(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['user']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} token + */ +RemoveARegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +RemoveARegistrationOrDeviceTokenResponse.prototype['user'] = undefined; +var _default = exports["default"] = RemoveARegistrationOrDeviceTokenResponse; \ No newline at end of file diff --git a/dist/model/RemoveAllRegistrationOrDeviceTokenResponse.js b/dist/model/RemoveAllRegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..0f37c96 --- /dev/null +++ b/dist/model/RemoveAllRegistrationOrDeviceTokenResponse.js @@ -0,0 +1,83 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The RemoveAllRegistrationOrDeviceTokenResponse model module. + * @module model/RemoveAllRegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +var RemoveAllRegistrationOrDeviceTokenResponse = /*#__PURE__*/function () { + /** + * Constructs a new RemoveAllRegistrationOrDeviceTokenResponse. + * @alias module:model/RemoveAllRegistrationOrDeviceTokenResponse + */ + function RemoveAllRegistrationOrDeviceTokenResponse() { + _classCallCheck(this, RemoveAllRegistrationOrDeviceTokenResponse); + RemoveAllRegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(RemoveAllRegistrationOrDeviceTokenResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a RemoveAllRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoveAllRegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/RemoveAllRegistrationOrDeviceTokenResponse} The populated RemoveAllRegistrationOrDeviceTokenResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoveAllRegistrationOrDeviceTokenResponse(); + if (data.hasOwnProperty('token')) { + obj['token'] = _ApiClient["default"].convertToType(data['token'], ['String']); + } + if (data.hasOwnProperty('user')) { + obj['user'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['user']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} token + */ +RemoveAllRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +RemoveAllRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; +var _default = exports["default"] = RemoveAllRegistrationOrDeviceTokenResponse; \ No newline at end of file diff --git a/dist/model/RemovePushConfigurationByIdResponse.js b/dist/model/RemovePushConfigurationByIdResponse.js deleted file mode 100644 index 708df93..0000000 --- a/dist/model/RemovePushConfigurationByIdResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RemovePushConfigurationByIdResponse model module. - * @module model/RemovePushConfigurationByIdResponse - * @version 0.0.16 - */ -var RemovePushConfigurationByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new RemovePushConfigurationByIdResponse. - * @alias module:model/RemovePushConfigurationByIdResponse - */ - function RemovePushConfigurationByIdResponse() { - _classCallCheck(this, RemovePushConfigurationByIdResponse); - RemovePushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RemovePushConfigurationByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RemovePushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemovePushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/RemovePushConfigurationByIdResponse} The populated RemovePushConfigurationByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RemovePushConfigurationByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], ['String']); - } - } - return obj; - } - }]); - return RemovePushConfigurationByIdResponse; -}(); -/** - * @member {Array.} push_configurations - */ -RemovePushConfigurationByIdResponse.prototype['push_configurations'] = undefined; -var _default = RemovePushConfigurationByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoveReactionFromAMessageResponse.js b/dist/model/RemoveReactionFromAMessageResponse.js deleted file mode 100644 index 936599d..0000000 --- a/dist/model/RemoveReactionFromAMessageResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RemoveReactionFromAMessageResponse model module. - * @module model/RemoveReactionFromAMessageResponse - * @version 0.0.16 - */ -var RemoveReactionFromAMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new RemoveReactionFromAMessageResponse. - * @alias module:model/RemoveReactionFromAMessageResponse - */ - function RemoveReactionFromAMessageResponse() { - _classCallCheck(this, RemoveReactionFromAMessageResponse); - RemoveReactionFromAMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RemoveReactionFromAMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RemoveReactionFromAMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveReactionFromAMessageResponse} obj Optional instance to populate. - * @return {module:model/RemoveReactionFromAMessageResponse} The populated RemoveReactionFromAMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveReactionFromAMessageResponse(); - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = _ApiClient["default"].convertToType(data['reaction'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'Number'); - } - if (data.hasOwnProperty('success')) { - obj['success'] = _ApiClient["default"].convertToType(data['success'], 'Boolean'); - } - if (data.hasOwnProperty('msg_id')) { - obj['msg_id'] = _ApiClient["default"].convertToType(data['msg_id'], 'Number'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('operation')) { - obj['operation'] = _ApiClient["default"].convertToType(data['operation'], 'String'); - } - } - return obj; - } - }]); - return RemoveReactionFromAMessageResponse; -}(); -/** - * @member {String} reaction - */ -RemoveReactionFromAMessageResponse.prototype['reaction'] = undefined; - -/** - * @member {Number} user_id - */ -RemoveReactionFromAMessageResponse.prototype['user_id'] = undefined; - -/** - * @member {Boolean} success - */ -RemoveReactionFromAMessageResponse.prototype['success'] = undefined; - -/** - * @member {Number} msg_id - */ -RemoveReactionFromAMessageResponse.prototype['msg_id'] = undefined; - -/** - * @member {Number} updated_at - */ -RemoveReactionFromAMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {String} operation - */ -RemoveReactionFromAMessageResponse.prototype['operation'] = undefined; -var _default = RemoveReactionFromAMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js b/dist/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js deleted file mode 100644 index a00e5d5..0000000 --- a/dist/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RemoveRegistrationOrDeviceTokenByTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenByTokenResponse - * @version 0.0.16 - */ -var RemoveRegistrationOrDeviceTokenByTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenByTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenByTokenResponse - */ - function RemoveRegistrationOrDeviceTokenByTokenResponse() { - _classCallCheck(this, RemoveRegistrationOrDeviceTokenByTokenResponse); - RemoveRegistrationOrDeviceTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RemoveRegistrationOrDeviceTokenByTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RemoveRegistrationOrDeviceTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} The populated RemoveRegistrationOrDeviceTokenByTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenByTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], ['String']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - } - return obj; - } - }]); - return RemoveRegistrationOrDeviceTokenByTokenResponse; -}(); -/** - * @member {Array.} token - */ -RemoveRegistrationOrDeviceTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -RemoveRegistrationOrDeviceTokenByTokenResponse.prototype['user'] = undefined; -var _default = RemoveRegistrationOrDeviceTokenByTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js b/dist/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js deleted file mode 100644 index 5955ac1..0000000 --- a/dist/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - * @version 0.0.16 - */ -var RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - */ - function RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse() { - _classCallCheck(this, RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse); - RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} The populated RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse; -}(); -/** - * @member {String} user_id - */ -RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.prototype['user_id'] = undefined; -var _default = RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RemoveRegistrationOrDeviceTokenResponse.js b/dist/model/RemoveRegistrationOrDeviceTokenResponse.js deleted file mode 100644 index dddee06..0000000 --- a/dist/model/RemoveRegistrationOrDeviceTokenResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RemoveRegistrationOrDeviceTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenResponse - * @version 0.0.16 - */ -var RemoveRegistrationOrDeviceTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenResponse - */ - function RemoveRegistrationOrDeviceTokenResponse() { - _classCallCheck(this, RemoveRegistrationOrDeviceTokenResponse); - RemoveRegistrationOrDeviceTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RemoveRegistrationOrDeviceTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RemoveRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenResponse} The populated RemoveRegistrationOrDeviceTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], ['String']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdUser["default"].constructFromObject(data['user']); - } - } - return obj; - } - }]); - return RemoveRegistrationOrDeviceTokenResponse; -}(); -/** - * @member {Array.} token - */ -RemoveRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -RemoveRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; -var _default = RemoveRegistrationOrDeviceTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportChannelByUrlData.js b/dist/model/ReportChannelByUrlData.js deleted file mode 100644 index ded3c5e..0000000 --- a/dist/model/ReportChannelByUrlData.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportChannelByUrlData model module. - * @module model/ReportChannelByUrlData - * @version 0.0.16 - */ -var ReportChannelByUrlData = /*#__PURE__*/function () { - /** - * Constructs a new ReportChannelByUrlData. - * @alias module:model/ReportChannelByUrlData - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - */ - function ReportChannelByUrlData(reportCategory) { - _classCallCheck(this, ReportChannelByUrlData); - ReportChannelByUrlData.initialize(this, reportCategory); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportChannelByUrlData, null, [{ - key: "initialize", - value: function initialize(obj, reportCategory) { - obj['report_category'] = reportCategory; - } - - /** - * Constructs a ReportChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportChannelByUrlData} obj Optional instance to populate. - * @return {module:model/ReportChannelByUrlData} The populated ReportChannelByUrlData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportChannelByUrlData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = _ApiClient["default"].convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - } - return obj; - } - }]); - return ReportChannelByUrlData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportChannelByUrlData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to report for offensive messages or inappropriate activities. - * @member {String} channel_url - */ -ReportChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportChannelByUrlData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who reports the channel. - * @member {String} reporting_user_id - */ -ReportChannelByUrlData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportChannelByUrlData.prototype['report_description'] = undefined; -var _default = ReportChannelByUrlData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportChannelByUrlResponse.js b/dist/model/ReportChannelByUrlResponse.js deleted file mode 100644 index e4a7379..0000000 --- a/dist/model/ReportChannelByUrlResponse.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportChannelByUrlResponse model module. - * @module model/ReportChannelByUrlResponse - * @version 0.0.16 - */ -var ReportChannelByUrlResponse = /*#__PURE__*/function () { - /** - * Constructs a new ReportChannelByUrlResponse. - * @alias module:model/ReportChannelByUrlResponse - */ - function ReportChannelByUrlResponse() { - _classCallCheck(this, ReportChannelByUrlResponse); - ReportChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportChannelByUrlResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ReportChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ReportChannelByUrlResponse} The populated ReportChannelByUrlResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportChannelByUrlResponse(); - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = _ApiClient["default"].convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = _SendBirdUser["default"].constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = _SendBirdUser["default"].constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ReportChannelByUrlResponse; -}(); -/** - * @member {String} report_type - */ -ReportChannelByUrlResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportChannelByUrlResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportChannelByUrlResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportChannelByUrlResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportChannelByUrlResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportChannelByUrlResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportChannelByUrlResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportChannelByUrlResponse.prototype['created_at'] = undefined; -var _default = ReportChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportMessageByIdData.js b/dist/model/ReportMessageByIdData.js deleted file mode 100644 index 814d4d3..0000000 --- a/dist/model/ReportMessageByIdData.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportMessageByIdData model module. - * @module model/ReportMessageByIdData - * @version 0.0.16 - */ -var ReportMessageByIdData = /*#__PURE__*/function () { - /** - * Constructs a new ReportMessageByIdData. - * @alias module:model/ReportMessageByIdData - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @param offendingUserId {String} Specifies the unique ID of the user who has sent the message to report. - */ - function ReportMessageByIdData(reportCategory, offendingUserId) { - _classCallCheck(this, ReportMessageByIdData); - ReportMessageByIdData.initialize(this, reportCategory, offendingUserId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportMessageByIdData, null, [{ - key: "initialize", - value: function initialize(obj, reportCategory, offendingUserId) { - obj['report_category'] = reportCategory; - obj['offending_user_id'] = offendingUserId; - } - - /** - * Constructs a ReportMessageByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportMessageByIdData} obj Optional instance to populate. - * @return {module:model/ReportMessageByIdData} The populated ReportMessageByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportMessageByIdData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('offending_user_id')) { - obj['offending_user_id'] = _ApiClient["default"].convertToType(data['offending_user_id'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = _ApiClient["default"].convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - } - return obj; - } - }]); - return ReportMessageByIdData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportMessageByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel where the message to report is in. - * @member {String} channel_url - */ -ReportMessageByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to report. - * @member {String} message_id - */ -ReportMessageByIdData.prototype['message_id'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportMessageByIdData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who has sent the message to report. - * @member {String} offending_user_id - */ -ReportMessageByIdData.prototype['offending_user_id'] = undefined; - -/** - * Specifies the unique ID of the user who reports the message. - * @member {String} reporting_user_id - */ -ReportMessageByIdData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportMessageByIdData.prototype['report_description'] = undefined; -var _default = ReportMessageByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportMessageByIdResponse.js b/dist/model/ReportMessageByIdResponse.js deleted file mode 100644 index 5524bb3..0000000 --- a/dist/model/ReportMessageByIdResponse.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportMessageByIdResponse model module. - * @module model/ReportMessageByIdResponse - * @version 0.0.16 - */ -var ReportMessageByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ReportMessageByIdResponse. - * @alias module:model/ReportMessageByIdResponse - */ - function ReportMessageByIdResponse() { - _classCallCheck(this, ReportMessageByIdResponse); - ReportMessageByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportMessageByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ReportMessageByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportMessageByIdResponse} obj Optional instance to populate. - * @return {module:model/ReportMessageByIdResponse} The populated ReportMessageByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportMessageByIdResponse(); - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = _ApiClient["default"].convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = _SendBirdUser["default"].constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = _SendBirdUser["default"].constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ReportMessageByIdResponse; -}(); -/** - * @member {String} report_type - */ -ReportMessageByIdResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportMessageByIdResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportMessageByIdResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportMessageByIdResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportMessageByIdResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportMessageByIdResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportMessageByIdResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportMessageByIdResponse.prototype['created_at'] = undefined; -var _default = ReportMessageByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportUserByIdData.js b/dist/model/ReportUserByIdData.js deleted file mode 100644 index c8a2d52..0000000 --- a/dist/model/ReportUserByIdData.js +++ /dev/null @@ -1,113 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportUserByIdData model module. - * @module model/ReportUserByIdData - * @version 0.0.16 - */ -var ReportUserByIdData = /*#__PURE__*/function () { - /** - * Constructs a new ReportUserByIdData. - * @alias module:model/ReportUserByIdData - * @param offendingUserId {String} Specifies the unique ID of the user to report for using offensive or abusive language such as sending explicit messages or inappropriate comments. - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - */ - function ReportUserByIdData(offendingUserId, reportCategory) { - _classCallCheck(this, ReportUserByIdData); - ReportUserByIdData.initialize(this, offendingUserId, reportCategory); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportUserByIdData, null, [{ - key: "initialize", - value: function initialize(obj, offendingUserId, reportCategory) { - obj['offending_user_id'] = offendingUserId; - obj['report_category'] = reportCategory; - } - - /** - * Constructs a ReportUserByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportUserByIdData} obj Optional instance to populate. - * @return {module:model/ReportUserByIdData} The populated ReportUserByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportUserByIdData(); - if (data.hasOwnProperty('offending_user_id')) { - obj['offending_user_id'] = _ApiClient["default"].convertToType(data['offending_user_id'], 'String'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = _ApiClient["default"].convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - } - return obj; - } - }]); - return ReportUserByIdData; -}(); -/** - * Specifies the unique ID of the user to report for using offensive or abusive language such as sending explicit messages or inappropriate comments. - * @member {String} offending_user_id - */ -ReportUserByIdData.prototype['offending_user_id'] = undefined; - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportUserByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel where the user to report is in. - * @member {String} channel_url - */ -ReportUserByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportUserByIdData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who reports the offending user. - * @member {String} reporting_user_id - */ -ReportUserByIdData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportUserByIdData.prototype['report_description'] = undefined; -var _default = ReportUserByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ReportUserByIdResponse.js b/dist/model/ReportUserByIdResponse.js deleted file mode 100644 index 41503e8..0000000 --- a/dist/model/ReportUserByIdResponse.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdChannelResponse = _interopRequireDefault(require("./SendBirdChannelResponse")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ReportUserByIdResponse model module. - * @module model/ReportUserByIdResponse - * @version 0.0.16 - */ -var ReportUserByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ReportUserByIdResponse. - * @alias module:model/ReportUserByIdResponse - */ - function ReportUserByIdResponse() { - _classCallCheck(this, ReportUserByIdResponse); - ReportUserByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ReportUserByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ReportUserByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportUserByIdResponse} obj Optional instance to populate. - * @return {module:model/ReportUserByIdResponse} The populated ReportUserByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportUserByIdResponse(); - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = _ApiClient["default"].convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = _ApiClient["default"].convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = _SendBirdUser["default"].constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = _SendBirdUser["default"].constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdChannelResponse["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = _ApiClient["default"].convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ReportUserByIdResponse; -}(); -/** - * @member {String} report_type - */ -ReportUserByIdResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportUserByIdResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportUserByIdResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportUserByIdResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportUserByIdResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportUserByIdResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportUserByIdResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportUserByIdResponse.prototype['created_at'] = undefined; -var _default = ReportUserByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ResetChatHistoryRequest.js b/dist/model/ResetChatHistoryRequest.js new file mode 100644 index 0000000..2556d78 --- /dev/null +++ b/dist/model/ResetChatHistoryRequest.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ResetChatHistoryRequest model module. + * @module model/ResetChatHistoryRequest + * @version 2.0.0 + */ +var ResetChatHistoryRequest = /*#__PURE__*/function () { + /** + * Constructs a new ResetChatHistoryRequest. + * @alias module:model/ResetChatHistoryRequest + * @param userId {String} + */ + function ResetChatHistoryRequest(userId) { + _classCallCheck(this, ResetChatHistoryRequest); + ResetChatHistoryRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ResetChatHistoryRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a ResetChatHistoryRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetChatHistoryRequest} obj Optional instance to populate. + * @return {module:model/ResetChatHistoryRequest} The populated ResetChatHistoryRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetChatHistoryRequest(); + if (data.hasOwnProperty('reset_all')) { + obj['reset_all'] = _ApiClient["default"].convertToType(data['reset_all'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} reset_all + */ +ResetChatHistoryRequest.prototype['reset_all'] = undefined; + +/** + * @member {String} user_id + */ +ResetChatHistoryRequest.prototype['user_id'] = undefined; +var _default = exports["default"] = ResetChatHistoryRequest; \ No newline at end of file diff --git a/dist/model/ResetChatHistoryResponse.js b/dist/model/ResetChatHistoryResponse.js new file mode 100644 index 0000000..8ac076b --- /dev/null +++ b/dist/model/ResetChatHistoryResponse.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ResetChatHistoryResponse model module. + * @module model/ResetChatHistoryResponse + * @version 2.0.0 + */ +var ResetChatHistoryResponse = /*#__PURE__*/function () { + /** + * Constructs a new ResetChatHistoryResponse. + * @alias module:model/ResetChatHistoryResponse + */ + function ResetChatHistoryResponse() { + _classCallCheck(this, ResetChatHistoryResponse); + ResetChatHistoryResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ResetChatHistoryResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ResetChatHistoryResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetChatHistoryResponse} obj Optional instance to populate. + * @return {module:model/ResetChatHistoryResponse} The populated ResetChatHistoryResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetChatHistoryResponse(); + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = _ApiClient["default"].convertToType(data['ts_message_offset'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * The timestamp in Unix milliseconds indicating the point in time that determines when the user can view messages in a specific channel. Messages sent on or before this timestamp can't be viewed by the user. + * @member {Number} ts_message_offset + */ +ResetChatHistoryResponse.prototype['ts_message_offset'] = undefined; +var _default = exports["default"] = ResetChatHistoryResponse; \ No newline at end of file diff --git a/dist/model/ResetPushPreferencesResponse.js b/dist/model/ResetPushPreferencesResponse.js deleted file mode 100644 index 36efc6a..0000000 --- a/dist/model/ResetPushPreferencesResponse.js +++ /dev/null @@ -1,166 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ResetPushPreferencesResponse model module. - * @module model/ResetPushPreferencesResponse - * @version 0.0.16 - */ -var ResetPushPreferencesResponse = /*#__PURE__*/function () { - /** - * Constructs a new ResetPushPreferencesResponse. - * @alias module:model/ResetPushPreferencesResponse - */ - function ResetPushPreferencesResponse() { - _classCallCheck(this, ResetPushPreferencesResponse); - ResetPushPreferencesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ResetPushPreferencesResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ResetPushPreferencesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ResetPushPreferencesResponse} obj Optional instance to populate. - * @return {module:model/ResetPushPreferencesResponse} The populated ResetPushPreferencesResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ResetPushPreferencesResponse(); - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'String'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['Number']); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } - } - return obj; - } - }]); - return ResetPushPreferencesResponse; -}(); -/** - * @member {String} snooze_start_ts - */ -ResetPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} start_hour - */ -ResetPushPreferencesResponse.prototype['start_hour'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -ResetPushPreferencesResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} end_min - */ -ResetPushPreferencesResponse.prototype['end_min'] = undefined; - -/** - * @member {String} timezone - */ -ResetPushPreferencesResponse.prototype['timezone'] = undefined; - -/** - * @member {Boolean} block_push_from_bots - */ -ResetPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; - -/** - * @member {Array.} push_blocked_bot_ids - */ -ResetPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; - -/** - * @member {Number} start_min - */ -ResetPushPreferencesResponse.prototype['start_min'] = undefined; - -/** - * @member {String} snooze_end_ts - */ -ResetPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -ResetPushPreferencesResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} end_hour - */ -ResetPushPreferencesResponse.prototype['end_hour'] = undefined; - -/** - * @member {Boolean} enable_push_for_replies - */ -ResetPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; - -/** - * @member {String} push_sound - */ -ResetPushPreferencesResponse.prototype['push_sound'] = undefined; - -/** - * @member {String} push_trigger_option - */ -ResetPushPreferencesResponse.prototype['push_trigger_option'] = undefined; -var _default = ResetPushPreferencesResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RetrieveAdvancedAnalyticsMetricsResponse.js b/dist/model/RetrieveAdvancedAnalyticsMetricsResponse.js deleted file mode 100644 index 4ada5be..0000000 --- a/dist/model/RetrieveAdvancedAnalyticsMetricsResponse.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RetrieveAdvancedAnalyticsMetricsResponse model module. - * @module model/RetrieveAdvancedAnalyticsMetricsResponse - * @version 0.0.16 - */ -var RetrieveAdvancedAnalyticsMetricsResponse = /*#__PURE__*/function () { - /** - * Constructs a new RetrieveAdvancedAnalyticsMetricsResponse. - * @alias module:model/RetrieveAdvancedAnalyticsMetricsResponse - */ - function RetrieveAdvancedAnalyticsMetricsResponse() { - _classCallCheck(this, RetrieveAdvancedAnalyticsMetricsResponse); - RetrieveAdvancedAnalyticsMetricsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RetrieveAdvancedAnalyticsMetricsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RetrieveAdvancedAnalyticsMetricsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveAdvancedAnalyticsMetricsResponse} obj Optional instance to populate. - * @return {module:model/RetrieveAdvancedAnalyticsMetricsResponse} The populated RetrieveAdvancedAnalyticsMetricsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveAdvancedAnalyticsMetricsResponse(); - if (data.hasOwnProperty('segments')) { - obj['segments'] = _ApiClient["default"].convertToType(data['segments'], 'String'); - } - if (data.hasOwnProperty('date')) { - obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('custom_channel_type')) { - obj['custom_channel_type'] = _ApiClient["default"].convertToType(data['custom_channel_type'], 'String'); - } - if (data.hasOwnProperty('custom_message_type')) { - obj['custom_message_type'] = _ApiClient["default"].convertToType(data['custom_message_type'], 'String'); - } - } - return obj; - } - }]); - return RetrieveAdvancedAnalyticsMetricsResponse; -}(); -/** - * @member {String} segments - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['segments'] = undefined; - -/** - * @member {String} date - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['date'] = undefined; - -/** - * @member {Number} value - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['value'] = undefined; - -/** - * @member {String} channel_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['channel_type'] = undefined; - -/** - * @member {String} custom_channel_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['custom_channel_type'] = undefined; - -/** - * @member {String} custom_message_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['custom_message_type'] = undefined; -var _default = RetrieveAdvancedAnalyticsMetricsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RetrieveIpWhitelistResponse.js b/dist/model/RetrieveIpWhitelistResponse.js deleted file mode 100644 index f73b251..0000000 --- a/dist/model/RetrieveIpWhitelistResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RetrieveIpWhitelistResponse model module. - * @module model/RetrieveIpWhitelistResponse - * @version 0.0.16 - */ -var RetrieveIpWhitelistResponse = /*#__PURE__*/function () { - /** - * Constructs a new RetrieveIpWhitelistResponse. - * @alias module:model/RetrieveIpWhitelistResponse - */ - function RetrieveIpWhitelistResponse() { - _classCallCheck(this, RetrieveIpWhitelistResponse); - RetrieveIpWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RetrieveIpWhitelistResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RetrieveIpWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveIpWhitelistResponse} obj Optional instance to populate. - * @return {module:model/RetrieveIpWhitelistResponse} The populated RetrieveIpWhitelistResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveIpWhitelistResponse(); - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = _ApiClient["default"].convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - }]); - return RetrieveIpWhitelistResponse; -}(); -/** - * @member {Array.} ip_whitelist_addresses - */ -RetrieveIpWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; -var _default = RetrieveIpWhitelistResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RetrieveListOfSubscribedEventsResponse.js b/dist/model/RetrieveListOfSubscribedEventsResponse.js deleted file mode 100644 index 0c12dec..0000000 --- a/dist/model/RetrieveListOfSubscribedEventsResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _RetrieveListOfSubscribedEventsResponseWebhook = _interopRequireDefault(require("./RetrieveListOfSubscribedEventsResponseWebhook")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RetrieveListOfSubscribedEventsResponse model module. - * @module model/RetrieveListOfSubscribedEventsResponse - * @version 0.0.16 - */ -var RetrieveListOfSubscribedEventsResponse = /*#__PURE__*/function () { - /** - * Constructs a new RetrieveListOfSubscribedEventsResponse. - * @alias module:model/RetrieveListOfSubscribedEventsResponse - */ - function RetrieveListOfSubscribedEventsResponse() { - _classCallCheck(this, RetrieveListOfSubscribedEventsResponse); - RetrieveListOfSubscribedEventsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RetrieveListOfSubscribedEventsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RetrieveListOfSubscribedEventsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveListOfSubscribedEventsResponse} obj Optional instance to populate. - * @return {module:model/RetrieveListOfSubscribedEventsResponse} The populated RetrieveListOfSubscribedEventsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveListOfSubscribedEventsResponse(); - if (data.hasOwnProperty('webhook')) { - obj['webhook'] = _RetrieveListOfSubscribedEventsResponseWebhook["default"].constructFromObject(data['webhook']); - } - } - return obj; - } - }]); - return RetrieveListOfSubscribedEventsResponse; -}(); -/** - * @member {module:model/RetrieveListOfSubscribedEventsResponseWebhook} webhook - */ -RetrieveListOfSubscribedEventsResponse.prototype['webhook'] = undefined; -var _default = RetrieveListOfSubscribedEventsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RetrieveListOfSubscribedEventsResponseWebhook.js b/dist/model/RetrieveListOfSubscribedEventsResponseWebhook.js deleted file mode 100644 index ef3ab15..0000000 --- a/dist/model/RetrieveListOfSubscribedEventsResponseWebhook.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RetrieveListOfSubscribedEventsResponseWebhook model module. - * @module model/RetrieveListOfSubscribedEventsResponseWebhook - * @version 0.0.16 - */ -var RetrieveListOfSubscribedEventsResponseWebhook = /*#__PURE__*/function () { - /** - * Constructs a new RetrieveListOfSubscribedEventsResponseWebhook. - * @alias module:model/RetrieveListOfSubscribedEventsResponseWebhook - */ - function RetrieveListOfSubscribedEventsResponseWebhook() { - _classCallCheck(this, RetrieveListOfSubscribedEventsResponseWebhook); - RetrieveListOfSubscribedEventsResponseWebhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RetrieveListOfSubscribedEventsResponseWebhook, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RetrieveListOfSubscribedEventsResponseWebhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveListOfSubscribedEventsResponseWebhook} obj Optional instance to populate. - * @return {module:model/RetrieveListOfSubscribedEventsResponseWebhook} The populated RetrieveListOfSubscribedEventsResponseWebhook instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveListOfSubscribedEventsResponseWebhook(); - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = _ApiClient["default"].convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = _ApiClient["default"].convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = _ApiClient["default"].convertToType(data['enabled_events'], ['String']); - } - if (data.hasOwnProperty('all_webhook_categories')) { - obj['all_webhook_categories'] = _ApiClient["default"].convertToType(data['all_webhook_categories'], ['String']); - } - if (data.hasOwnProperty('include_unread_count')) { - obj['include_unread_count'] = _ApiClient["default"].convertToType(data['include_unread_count'], 'Boolean'); - } - } - return obj; - } - }]); - return RetrieveListOfSubscribedEventsResponseWebhook; -}(); -/** - * @member {Boolean} enabled - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['enabled'] = undefined; - -/** - * @member {String} url - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['url'] = undefined; - -/** - * @member {Boolean} include_members - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['include_members'] = undefined; - -/** - * @member {Array.} enabled_events - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['enabled_events'] = undefined; - -/** - * @member {Array.} all_webhook_categories - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['all_webhook_categories'] = undefined; - -/** - * @member {Boolean} include_unread_count - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['include_unread_count'] = undefined; -var _default = RetrieveListOfSubscribedEventsResponseWebhook; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/RevokeSecondaryApiTokenByTokenResponse.js b/dist/model/RevokeSecondaryApiTokenByTokenResponse.js deleted file mode 100644 index 4e53231..0000000 --- a/dist/model/RevokeSecondaryApiTokenByTokenResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The RevokeSecondaryApiTokenByTokenResponse model module. - * @module model/RevokeSecondaryApiTokenByTokenResponse - * @version 0.0.16 - */ -var RevokeSecondaryApiTokenByTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new RevokeSecondaryApiTokenByTokenResponse. - * @alias module:model/RevokeSecondaryApiTokenByTokenResponse - */ - function RevokeSecondaryApiTokenByTokenResponse() { - _classCallCheck(this, RevokeSecondaryApiTokenByTokenResponse); - RevokeSecondaryApiTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(RevokeSecondaryApiTokenByTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a RevokeSecondaryApiTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RevokeSecondaryApiTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/RevokeSecondaryApiTokenByTokenResponse} The populated RevokeSecondaryApiTokenByTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new RevokeSecondaryApiTokenByTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return RevokeSecondaryApiTokenByTokenResponse; -}(); -/** - * @member {String} token - */ -RevokeSecondaryApiTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -RevokeSecondaryApiTokenByTokenResponse.prototype['created_at'] = undefined; -var _default = RevokeSecondaryApiTokenByTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SBObject.js b/dist/model/SBObject.js deleted file mode 100644 index a21a1f3..0000000 --- a/dist/model/SBObject.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _Function = _interopRequireDefault(require("./Function")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SBObject model module. - * @module model/SBObject - * @version 0.0.16 - */ -var SBObject = /*#__PURE__*/function () { - /** - * Constructs a new SBObject. - * @alias module:model/SBObject - */ - function SBObject() { - _classCallCheck(this, SBObject); - SBObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SBObject, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SBObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SBObject} obj Optional instance to populate. - * @return {module:model/SBObject} The populated SBObject instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SBObject(); - if (data.hasOwnProperty('constructor')) { - obj['constructor'] = _Function["default"].constructFromObject(data['constructor']); - } - } - return obj; - } - }]); - return SBObject; -}(); -/** - * @member {module:model/Function} constructor - */ -SBObject.prototype['constructor'] = undefined; -var _default = SBObject; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ScheduleAnAnnouncementRequest.js b/dist/model/ScheduleAnAnnouncementRequest.js new file mode 100644 index 0000000..87293df --- /dev/null +++ b/dist/model/ScheduleAnAnnouncementRequest.js @@ -0,0 +1,212 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ScheduleAnAnnouncementRequestCreateChannelOptions = _interopRequireDefault(require("./ScheduleAnAnnouncementRequestCreateChannelOptions")); +var _ScheduleAnAnnouncementRequestMessage = _interopRequireDefault(require("./ScheduleAnAnnouncementRequestMessage")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ScheduleAnAnnouncementRequest model module. + * @module model/ScheduleAnAnnouncementRequest + * @version 2.0.0 + */ +var ScheduleAnAnnouncementRequest = /*#__PURE__*/function () { + /** + * Constructs a new ScheduleAnAnnouncementRequest. + * @alias module:model/ScheduleAnAnnouncementRequest + */ + function ScheduleAnAnnouncementRequest() { + _classCallCheck(this, ScheduleAnAnnouncementRequest); + ScheduleAnAnnouncementRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ScheduleAnAnnouncementRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ScheduleAnAnnouncementRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequest} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequest} The populated ScheduleAnAnnouncementRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequest(); + if (data.hasOwnProperty('announcement_group')) { + obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); + } + if (data.hasOwnProperty('assign_sender_as_channel_inviter')) { + obj['assign_sender_as_channel_inviter'] = _ApiClient["default"].convertToType(data['assign_sender_as_channel_inviter'], 'Boolean'); + } + if (data.hasOwnProperty('cease_at')) { + obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); + } + if (data.hasOwnProperty('create_channel')) { + obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); + } + if (data.hasOwnProperty('create_channel_options')) { + obj['create_channel_options'] = _ScheduleAnAnnouncementRequestCreateChannelOptions["default"].constructFromObject(data['create_channel_options']); + } + if (data.hasOwnProperty('enable_push')) { + obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); + } + if (data.hasOwnProperty('end_at')) { + obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); + } + if (data.hasOwnProperty('keep_channel_hidden_for_sender')) { + obj['keep_channel_hidden_for_sender'] = _ApiClient["default"].convertToType(data['keep_channel_hidden_for_sender'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ScheduleAnAnnouncementRequestMessage["default"].constructFromObject(data['message']); + } + if (data.hasOwnProperty('resume_at')) { + obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); + } + if (data.hasOwnProperty('scheduled_at')) { + obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); + } + if (data.hasOwnProperty('send_to_frozen_channels')) { + obj['send_to_frozen_channels'] = _ApiClient["default"].convertToType(data['send_to_frozen_channels'], 'Boolean'); + } + if (data.hasOwnProperty('target_at')) { + obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); + } + if (data.hasOwnProperty('target_channel_type')) { + obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); + } + if (data.hasOwnProperty('target_custom_type')) { + obj['target_custom_type'] = _ApiClient["default"].convertToType(data['target_custom_type'], 'String'); + } + if (data.hasOwnProperty('target_list')) { + obj['target_list'] = _ApiClient["default"].convertToType(data['target_list'], ['String']); + } + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} announcement_group + */ +ScheduleAnAnnouncementRequest.prototype['announcement_group'] = undefined; + +/** + * @member {Boolean} assign_sender_as_channel_inviter + */ +ScheduleAnAnnouncementRequest.prototype['assign_sender_as_channel_inviter'] = undefined; + +/** + * @member {String} cease_at + */ +ScheduleAnAnnouncementRequest.prototype['cease_at'] = undefined; + +/** + * @member {Boolean} create_channel + */ +ScheduleAnAnnouncementRequest.prototype['create_channel'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} create_channel_options + */ +ScheduleAnAnnouncementRequest.prototype['create_channel_options'] = undefined; + +/** + * @member {Boolean} enable_push + */ +ScheduleAnAnnouncementRequest.prototype['enable_push'] = undefined; + +/** + * @member {Number} end_at + */ +ScheduleAnAnnouncementRequest.prototype['end_at'] = undefined; + +/** + * @member {Boolean} keep_channel_hidden_for_sender + */ +ScheduleAnAnnouncementRequest.prototype['keep_channel_hidden_for_sender'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +ScheduleAnAnnouncementRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestMessage} message + */ +ScheduleAnAnnouncementRequest.prototype['message'] = undefined; + +/** + * @member {String} resume_at + */ +ScheduleAnAnnouncementRequest.prototype['resume_at'] = undefined; + +/** + * @member {Number} scheduled_at + */ +ScheduleAnAnnouncementRequest.prototype['scheduled_at'] = undefined; + +/** + * @member {Boolean} send_to_frozen_channels + */ +ScheduleAnAnnouncementRequest.prototype['send_to_frozen_channels'] = undefined; + +/** + * @member {String} target_at + */ +ScheduleAnAnnouncementRequest.prototype['target_at'] = undefined; + +/** + * @member {String} target_channel_type + */ +ScheduleAnAnnouncementRequest.prototype['target_channel_type'] = undefined; + +/** + * @member {String} target_custom_type + */ +ScheduleAnAnnouncementRequest.prototype['target_custom_type'] = undefined; + +/** + * @member {Array.} target_list + */ +ScheduleAnAnnouncementRequest.prototype['target_list'] = undefined; + +/** + * @member {String} unique_id + */ +ScheduleAnAnnouncementRequest.prototype['unique_id'] = undefined; +var _default = exports["default"] = ScheduleAnAnnouncementRequest; \ No newline at end of file diff --git a/dist/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js b/dist/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js new file mode 100644 index 0000000..abd577e --- /dev/null +++ b/dist/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ScheduleAnAnnouncementRequestCreateChannelOptions model module. + * @module model/ScheduleAnAnnouncementRequestCreateChannelOptions + * @version 2.0.0 + */ +var ScheduleAnAnnouncementRequestCreateChannelOptions = /*#__PURE__*/function () { + /** + * Constructs a new ScheduleAnAnnouncementRequestCreateChannelOptions. + * @alias module:model/ScheduleAnAnnouncementRequestCreateChannelOptions + */ + function ScheduleAnAnnouncementRequestCreateChannelOptions() { + _classCallCheck(this, ScheduleAnAnnouncementRequestCreateChannelOptions); + ScheduleAnAnnouncementRequestCreateChannelOptions.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ScheduleAnAnnouncementRequestCreateChannelOptions, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ScheduleAnAnnouncementRequestCreateChannelOptions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} The populated ScheduleAnAnnouncementRequestCreateChannelOptions instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequestCreateChannelOptions(); + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('distinct')) { + obj['distinct'] = _ApiClient["default"].convertToType(data['distinct'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} cover_url + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['data'] = undefined; + +/** + * @member {Boolean} distinct + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['distinct'] = undefined; + +/** + * @member {String} name + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['name'] = undefined; +var _default = exports["default"] = ScheduleAnAnnouncementRequestCreateChannelOptions; \ No newline at end of file diff --git a/dist/model/ScheduleAnAnnouncementRequestMessage.js b/dist/model/ScheduleAnAnnouncementRequestMessage.js new file mode 100644 index 0000000..87fe5b9 --- /dev/null +++ b/dist/model/ScheduleAnAnnouncementRequestMessage.js @@ -0,0 +1,106 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ScheduleAnAnnouncementRequestMessage model module. + * @module model/ScheduleAnAnnouncementRequestMessage + * @version 2.0.0 + */ +var ScheduleAnAnnouncementRequestMessage = /*#__PURE__*/function () { + /** + * Constructs a new ScheduleAnAnnouncementRequestMessage. + * @alias module:model/ScheduleAnAnnouncementRequestMessage + */ + function ScheduleAnAnnouncementRequestMessage() { + _classCallCheck(this, ScheduleAnAnnouncementRequestMessage); + ScheduleAnAnnouncementRequestMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ScheduleAnAnnouncementRequestMessage, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ScheduleAnAnnouncementRequestMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequestMessage} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequestMessage} The populated ScheduleAnAnnouncementRequestMessage instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequestMessage(); + if (data.hasOwnProperty('content')) { + obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} content + */ +ScheduleAnAnnouncementRequestMessage.prototype['content'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementRequestMessage.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementRequestMessage.prototype['data'] = undefined; + +/** + * @member {String} type + */ +ScheduleAnAnnouncementRequestMessage.prototype['type'] = undefined; + +/** + * @member {String} user_id + */ +ScheduleAnAnnouncementRequestMessage.prototype['user_id'] = undefined; +var _default = exports["default"] = ScheduleAnAnnouncementRequestMessage; \ No newline at end of file diff --git a/dist/model/ScheduleAnAnnouncementResponse.js b/dist/model/ScheduleAnAnnouncementResponse.js new file mode 100644 index 0000000..f9a6932 --- /dev/null +++ b/dist/model/ScheduleAnAnnouncementResponse.js @@ -0,0 +1,260 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _ScheduleAnAnnouncementRequestCreateChannelOptions = _interopRequireDefault(require("./ScheduleAnAnnouncementRequestCreateChannelOptions")); +var _ScheduleAnAnnouncementResponseMessage = _interopRequireDefault(require("./ScheduleAnAnnouncementResponseMessage")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ScheduleAnAnnouncementResponse model module. + * @module model/ScheduleAnAnnouncementResponse + * @version 2.0.0 + */ +var ScheduleAnAnnouncementResponse = /*#__PURE__*/function () { + /** + * Constructs a new ScheduleAnAnnouncementResponse. + * @alias module:model/ScheduleAnAnnouncementResponse + */ + function ScheduleAnAnnouncementResponse() { + _classCallCheck(this, ScheduleAnAnnouncementResponse); + ScheduleAnAnnouncementResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ScheduleAnAnnouncementResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ScheduleAnAnnouncementResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementResponse} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementResponse} The populated ScheduleAnAnnouncementResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementResponse(); + if (data.hasOwnProperty('announcement_group')) { + obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); + } + if (data.hasOwnProperty('cease_at')) { + obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); + } + if (data.hasOwnProperty('completed_at')) { + obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'Number'); + } + if (data.hasOwnProperty('create_channel')) { + obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); + } + if (data.hasOwnProperty('create_channel_options')) { + obj['create_channel_options'] = _ScheduleAnAnnouncementRequestCreateChannelOptions["default"].constructFromObject(data['create_channel_options']); + } + if (data.hasOwnProperty('enable_push')) { + obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); + } + if (data.hasOwnProperty('end_at')) { + obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ScheduleAnAnnouncementResponseMessage["default"].constructFromObject(data['message']); + } + if (data.hasOwnProperty('open_count')) { + obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); + } + if (data.hasOwnProperty('open_rate')) { + obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); + } + if (data.hasOwnProperty('priority')) { + obj['priority'] = _ApiClient["default"].convertToType(data['priority'], 'String'); + } + if (data.hasOwnProperty('resume_at')) { + obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); + } + if (data.hasOwnProperty('scheduled_at')) { + obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); + } + if (data.hasOwnProperty('send_to_frozen_channels')) { + obj['send_to_frozen_channels'] = _ApiClient["default"].convertToType(data['send_to_frozen_channels'], 'Boolean'); + } + if (data.hasOwnProperty('sent_channel_count')) { + obj['sent_channel_count'] = _ApiClient["default"].convertToType(data['sent_channel_count'], 'Number'); + } + if (data.hasOwnProperty('sent_user_count')) { + obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); + } + if (data.hasOwnProperty('target_at')) { + obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); + } + if (data.hasOwnProperty('target_channel_count')) { + obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); + } + if (data.hasOwnProperty('target_channel_type')) { + obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); + } + if (data.hasOwnProperty('target_custom_type')) { + obj['target_custom_type'] = _ApiClient["default"].convertToType(data['target_custom_type'], 'String'); + } + if (data.hasOwnProperty('target_user_count')) { + obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); + } + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} announcement_group + */ +ScheduleAnAnnouncementResponse.prototype['announcement_group'] = undefined; + +/** + * @member {String} cease_at + */ +ScheduleAnAnnouncementResponse.prototype['cease_at'] = undefined; + +/** + * @member {Number} completed_at + */ +ScheduleAnAnnouncementResponse.prototype['completed_at'] = undefined; + +/** + * @member {Boolean} create_channel + */ +ScheduleAnAnnouncementResponse.prototype['create_channel'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} create_channel_options + */ +ScheduleAnAnnouncementResponse.prototype['create_channel_options'] = undefined; + +/** + * @member {Boolean} enable_push + */ +ScheduleAnAnnouncementResponse.prototype['enable_push'] = undefined; + +/** + * @member {Number} end_at + */ +ScheduleAnAnnouncementResponse.prototype['end_at'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +ScheduleAnAnnouncementResponse.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementResponseMessage} message + */ +ScheduleAnAnnouncementResponse.prototype['message'] = undefined; + +/** + * @member {Number} open_count + */ +ScheduleAnAnnouncementResponse.prototype['open_count'] = undefined; + +/** + * @member {Number} open_rate + */ +ScheduleAnAnnouncementResponse.prototype['open_rate'] = undefined; + +/** + * @member {String} priority + */ +ScheduleAnAnnouncementResponse.prototype['priority'] = undefined; + +/** + * @member {String} resume_at + */ +ScheduleAnAnnouncementResponse.prototype['resume_at'] = undefined; + +/** + * @member {Number} scheduled_at + */ +ScheduleAnAnnouncementResponse.prototype['scheduled_at'] = undefined; + +/** + * @member {Boolean} send_to_frozen_channels + */ +ScheduleAnAnnouncementResponse.prototype['send_to_frozen_channels'] = undefined; + +/** + * @member {Number} sent_channel_count + */ +ScheduleAnAnnouncementResponse.prototype['sent_channel_count'] = undefined; + +/** + * @member {Number} sent_user_count + */ +ScheduleAnAnnouncementResponse.prototype['sent_user_count'] = undefined; + +/** + * @member {String} status + */ +ScheduleAnAnnouncementResponse.prototype['status'] = undefined; + +/** + * @member {String} target_at + */ +ScheduleAnAnnouncementResponse.prototype['target_at'] = undefined; + +/** + * @member {Number} target_channel_count + */ +ScheduleAnAnnouncementResponse.prototype['target_channel_count'] = undefined; + +/** + * @member {String} target_channel_type + */ +ScheduleAnAnnouncementResponse.prototype['target_channel_type'] = undefined; + +/** + * @member {String} target_custom_type + */ +ScheduleAnAnnouncementResponse.prototype['target_custom_type'] = undefined; + +/** + * @member {Number} target_user_count + */ +ScheduleAnAnnouncementResponse.prototype['target_user_count'] = undefined; + +/** + * @member {String} unique_id + */ +ScheduleAnAnnouncementResponse.prototype['unique_id'] = undefined; +var _default = exports["default"] = ScheduleAnAnnouncementResponse; \ No newline at end of file diff --git a/dist/model/ScheduleAnAnnouncementResponseMessage.js b/dist/model/ScheduleAnAnnouncementResponseMessage.js new file mode 100644 index 0000000..89967a2 --- /dev/null +++ b/dist/model/ScheduleAnAnnouncementResponseMessage.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ScheduleAnAnnouncementResponseMessage model module. + * @module model/ScheduleAnAnnouncementResponseMessage + * @version 2.0.0 + */ +var ScheduleAnAnnouncementResponseMessage = /*#__PURE__*/function () { + /** + * Constructs a new ScheduleAnAnnouncementResponseMessage. + * @alias module:model/ScheduleAnAnnouncementResponseMessage + */ + function ScheduleAnAnnouncementResponseMessage() { + _classCallCheck(this, ScheduleAnAnnouncementResponseMessage); + ScheduleAnAnnouncementResponseMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ScheduleAnAnnouncementResponseMessage, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ScheduleAnAnnouncementResponseMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementResponseMessage} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementResponseMessage} The populated ScheduleAnAnnouncementResponseMessage instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementResponseMessage(); + if (data.hasOwnProperty('content')) { + obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('message_retention_hour')) { + obj['message_retention_hour'] = _ApiClient["default"].convertToType(data['message_retention_hour'], 'Number'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} content + */ +ScheduleAnAnnouncementResponseMessage.prototype['content'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementResponseMessage.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementResponseMessage.prototype['data'] = undefined; + +/** + * @member {Number} message_retention_hour + */ +ScheduleAnAnnouncementResponseMessage.prototype['message_retention_hour'] = undefined; + +/** + * @member {String} type + */ +ScheduleAnAnnouncementResponseMessage.prototype['type'] = undefined; + +/** + * @member {String} user_id + */ +ScheduleAnAnnouncementResponseMessage.prototype['user_id'] = undefined; +var _default = exports["default"] = ScheduleAnAnnouncementResponseMessage; \ No newline at end of file diff --git a/dist/model/ScheduleAnnouncementData.js b/dist/model/ScheduleAnnouncementData.js deleted file mode 100644 index 811c527..0000000 --- a/dist/model/ScheduleAnnouncementData.js +++ /dev/null @@ -1,279 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ScheduleAnnouncementDataMessage = _interopRequireDefault(require("./ScheduleAnnouncementDataMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ScheduleAnnouncementData model module. - * @module model/ScheduleAnnouncementData - * @version 0.0.16 - */ -var ScheduleAnnouncementData = /*#__PURE__*/function () { - /** - * Constructs a new ScheduleAnnouncementData. - * @alias module:model/ScheduleAnnouncementData - * @param message {module:model/ScheduleAnnouncementDataMessage} - * @param targetAt {String} Specifies the target channels to send the announcement to. Acceptable values are the following:
- sender_all_channels (Default): sends the announcement to all of the sender's group channels.
- target_channels: sends the announcement to all target group channels. When the `message.type` of the announcement is ADMM, this is the only valid option.
- target_users_included_channels: sends the announcement to group channels consisting of the sender, target users, and other members.
- target_users_only_channels: sends the announcement to group channels consisting of the sender and target users only. - * @param targetList {Array.} Specifies an array of one or more target user IDs or target channel URLs to send the announcement to when the target_at is target_channels, target_users_only_channels, or target_users_included_channels.

When the target_at value is sender_all_channels, this property is not effective. - * @param targetChannelType {String} Determines which type of group channel to send the announcement to, based on the target_at and target_list. This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels and the target_list is specified. Acceptable values are limited to the following:
- all: send the announcement to all channels that have all target users and the sender in them, regardless of channel type.
- distinct (default): sends this announcement to the distinct channels. Distinct channels continue to use the same existing channels whenever someone attempts to create a new channel with the same members.
- non-distinct: sends this announcement to the non-distinct channels. Non-distinct channels always create a new channel even if there is an existing channel with the same members.

The distinct and non-distinct channels are a subtype of group channels, determined by the [is_distinct](/docs/chat/v3/platform-api/guides/group-channel#2-types-of-a-channel-3-resource-representation) property. - */ - function ScheduleAnnouncementData(message, targetAt, targetList, targetChannelType) { - _classCallCheck(this, ScheduleAnnouncementData); - ScheduleAnnouncementData.initialize(this, message, targetAt, targetList, targetChannelType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ScheduleAnnouncementData, null, [{ - key: "initialize", - value: function initialize(obj, message, targetAt, targetList, targetChannelType) { - obj['message'] = message; - obj['target_at'] = targetAt; - obj['target_list'] = targetList; - obj['target_channel_type'] = targetChannelType; - } - - /** - * Constructs a ScheduleAnnouncementData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementData} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementData} The populated ScheduleAnnouncementData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementData(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ScheduleAnnouncementDataMessage["default"].constructFromObject(data['message']); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_list')) { - obj['target_list'] = _ApiClient["default"].convertToType(data['target_list'], ['String']); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('message.custom_type')) { - obj['message.custom_type'] = _ApiClient["default"].convertToType(data['message.custom_type'], 'String'); - } - if (data.hasOwnProperty('message.data')) { - obj['message.data'] = _ApiClient["default"].convertToType(data['message.data'], 'String'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = _ApiClient["default"].convertToType(data['create_channel_options'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.name')) { - obj['create_channel_options.name'] = _ApiClient["default"].convertToType(data['create_channel_options.name'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.cover_url')) { - obj['create_channel_options.cover_url'] = _ApiClient["default"].convertToType(data['create_channel_options.cover_url'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.custom_type')) { - obj['create_channel_options.custom_type'] = _ApiClient["default"].convertToType(data['create_channel_options.custom_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.data')) { - obj['create_channel_options.data'] = _ApiClient["default"].convertToType(data['create_channel_options.data'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.distinct')) { - obj['create_channel_options.distinct'] = _ApiClient["default"].convertToType(data['create_channel_options.distinct'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('assign_sender_as_channel_inviter')) { - obj['assign_sender_as_channel_inviter'] = _ApiClient["default"].convertToType(data['assign_sender_as_channel_inviter'], 'Boolean'); - } - } - return obj; - } - }]); - return ScheduleAnnouncementData; -}(); -/** - * @member {module:model/ScheduleAnnouncementDataMessage} message - */ -ScheduleAnnouncementData.prototype['message'] = undefined; - -/** - * Specifies the type of the message, which can be either MESG for a text message and ADMM for an admin message. - * @member {String} message_type - */ -ScheduleAnnouncementData.prototype['message_type'] = undefined; - -/** - * Specifies the unique ID of the sender when the message.type is MESG. When the message.type value is ADMM, this property is not effective. - * @member {String} user_id - */ -ScheduleAnnouncementData.prototype['user_id'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} content - */ -ScheduleAnnouncementData.prototype['content'] = undefined; - -/** - * Specifies the target channels to send the announcement to. Acceptable values are the following:
- sender_all_channels (Default): sends the announcement to all of the sender's group channels.
- target_channels: sends the announcement to all target group channels. When the `message.type` of the announcement is ADMM, this is the only valid option.
- target_users_included_channels: sends the announcement to group channels consisting of the sender, target users, and other members.
- target_users_only_channels: sends the announcement to group channels consisting of the sender and target users only. - * @member {String} target_at - */ -ScheduleAnnouncementData.prototype['target_at'] = undefined; - -/** - * Specifies an array of one or more target user IDs or target channel URLs to send the announcement to when the target_at is target_channels, target_users_only_channels, or target_users_included_channels.

When the target_at value is sender_all_channels, this property is not effective. - * @member {Array.} target_list - */ -ScheduleAnnouncementData.prototype['target_list'] = undefined; - -/** - * Determines which type of group channel to send the announcement to, based on the target_at and target_list. This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels and the target_list is specified. Acceptable values are limited to the following:
- all: send the announcement to all channels that have all target users and the sender in them, regardless of channel type.
- distinct (default): sends this announcement to the distinct channels. Distinct channels continue to use the same existing channels whenever someone attempts to create a new channel with the same members.
- non-distinct: sends this announcement to the non-distinct channels. Non-distinct channels always create a new channel even if there is an existing channel with the same members.

The distinct and non-distinct channels are a subtype of group channels, determined by the [is_distinct](/docs/chat/v3/platform-api/guides/group-channel#2-types-of-a-channel-3-resource-representation) property. - * @member {String} target_channel_type - */ -ScheduleAnnouncementData.prototype['target_channel_type'] = undefined; - -/** - * Specifies the unique ID of the new announcement. The unique_id will be automatically created unless specified. - * @member {String} unique_id - */ -ScheduleAnnouncementData.prototype['unique_id'] = undefined; - -/** - * Specifies the custom message type of the message of the new announcement. - * @member {String} message.custom_type - */ -ScheduleAnnouncementData.prototype['message.custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} message.data - */ -ScheduleAnnouncementData.prototype['message.data'] = undefined; - -/** - * Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. By specifying the create_channel_options, you can configure the properties of newly created channels. (Default: false) - * @member {Boolean} create_channel - */ -ScheduleAnnouncementData.prototype['create_channel'] = undefined; - -/** - * Specifies the announcement group that the new announcement belongs to.

This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels. - * @member {String} announcement_group - */ -ScheduleAnnouncementData.prototype['announcement_group'] = undefined; - -/** - * A newly created channel configuration. - * @member {String} create_channel_options - */ -ScheduleAnnouncementData.prototype['create_channel_options'] = undefined; - -/** - * Specifies the name of channels to be created. (Default: Group Channel) - * @member {String} create_channel_options.name - */ -ScheduleAnnouncementData.prototype['create_channel_options.name'] = undefined; - -/** - * Specifies the URL of the cover image for the new channels. - * @member {String} create_channel_options.cover_url - */ -ScheduleAnnouncementData.prototype['create_channel_options.cover_url'] = undefined; - -/** - * Specifies the custom channel type of the new channels. - * @member {String} create_channel_options.custom_type - */ -ScheduleAnnouncementData.prototype['create_channel_options.custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} create_channel_options.data - */ -ScheduleAnnouncementData.prototype['create_channel_options.data'] = undefined; - -/** - * Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) - * @member {String} create_channel_options.distinct - */ -ScheduleAnnouncementData.prototype['create_channel_options.distinct'] = undefined; - -/** - * Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. If not specified, the default is the timestamp of when the request was delivered to Sendbird server. (Default: current timestamp) - * @member {Number} scheduled_at - */ -ScheduleAnnouncementData.prototype['scheduled_at'] = undefined; - -/** - * Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This should be specified in conjunction with the resume_at property.

If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. - * @member {String} cease_at - */ -ScheduleAnnouncementData.prototype['cease_at'] = undefined; - -/** - * Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This should be specified in conjunction with the cease_at property above.

If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. - * @member {String} resume_at - */ -ScheduleAnnouncementData.prototype['resume_at'] = undefined; - -/** - * Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous##2-timestamps) format. If this property is specified, the announcement ends even when the announcement is not sent to all its targets.

For the announcement to run safely, the end_at time should be set at least 10 minutes later than the scheduled_at time. - * @member {Number} end_at - */ -ScheduleAnnouncementData.prototype['end_at'] = undefined; - -/** - * Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for the announcement. (Default: true) - * @member {Boolean} enable_push - */ -ScheduleAnnouncementData.prototype['enable_push'] = undefined; - -/** - * Determines whether to assign an announcement sender as an inviter of the newly created channels. (Default: false) - * @member {Boolean} assign_sender_as_channel_inviter - */ -ScheduleAnnouncementData.prototype['assign_sender_as_channel_inviter'] = undefined; -var _default = ScheduleAnnouncementData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ScheduleAnnouncementDataMessage.js b/dist/model/ScheduleAnnouncementDataMessage.js deleted file mode 100644 index 3799da3..0000000 --- a/dist/model/ScheduleAnnouncementDataMessage.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ScheduleAnnouncementDataMessage model module. - * @module model/ScheduleAnnouncementDataMessage - * @version 0.0.16 - */ -var ScheduleAnnouncementDataMessage = /*#__PURE__*/function () { - /** - * Constructs a new ScheduleAnnouncementDataMessage. - * The [message](/docs/chat/v3/platform-api/guides/messages#-3-resource-representation) of a new announcement. - * @alias module:model/ScheduleAnnouncementDataMessage - */ - function ScheduleAnnouncementDataMessage() { - _classCallCheck(this, ScheduleAnnouncementDataMessage); - ScheduleAnnouncementDataMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ScheduleAnnouncementDataMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ScheduleAnnouncementDataMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementDataMessage} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementDataMessage} The populated ScheduleAnnouncementDataMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementDataMessage(); - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); - } - } - return obj; - } - }]); - return ScheduleAnnouncementDataMessage; -}(); -/** - * @member {String} type - */ -ScheduleAnnouncementDataMessage.prototype['type'] = undefined; - -/** - * @member {String} user_id - */ -ScheduleAnnouncementDataMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -ScheduleAnnouncementDataMessage.prototype['content'] = undefined; -var _default = ScheduleAnnouncementDataMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ScheduleAnnouncementResponse.js b/dist/model/ScheduleAnnouncementResponse.js deleted file mode 100644 index 83f9615..0000000 --- a/dist/model/ScheduleAnnouncementResponse.js +++ /dev/null @@ -1,200 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ScheduleAnnouncementResponseCreateChannelOptions = _interopRequireDefault(require("./ScheduleAnnouncementResponseCreateChannelOptions")); -var _ScheduleAnnouncementResponseMessage = _interopRequireDefault(require("./ScheduleAnnouncementResponseMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ScheduleAnnouncementResponse model module. - * @module model/ScheduleAnnouncementResponse - * @version 0.0.16 - */ -var ScheduleAnnouncementResponse = /*#__PURE__*/function () { - /** - * Constructs a new ScheduleAnnouncementResponse. - * @alias module:model/ScheduleAnnouncementResponse - */ - function ScheduleAnnouncementResponse() { - _classCallCheck(this, ScheduleAnnouncementResponse); - ScheduleAnnouncementResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ScheduleAnnouncementResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ScheduleAnnouncementResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponse} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponse} The populated ScheduleAnnouncementResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponse(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ScheduleAnnouncementResponseMessage["default"].constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = _ScheduleAnnouncementResponseCreateChannelOptions["default"].constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = _ApiClient["default"].convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); - } - } - return obj; - } - }]); - return ScheduleAnnouncementResponse; -}(); -/** - * @member {String} unique_id - */ -ScheduleAnnouncementResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ScheduleAnnouncementResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ScheduleAnnouncementResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ScheduleAnnouncementResponse.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ScheduleAnnouncementResponse.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ScheduleAnnouncementResponse.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ScheduleAnnouncementResponse.prototype['target_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ScheduleAnnouncementResponse.prototype['target_channel_type'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ScheduleAnnouncementResponse.prototype['create_channel_options'] = undefined; - -/** - * @member {String} status - */ -ScheduleAnnouncementResponse.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ScheduleAnnouncementResponse.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ScheduleAnnouncementResponse.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ScheduleAnnouncementResponse.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ScheduleAnnouncementResponse.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ScheduleAnnouncementResponse.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ScheduleAnnouncementResponse.prototype['sent_channel_count'] = undefined; - -/** - * @member {Number} open_count - */ -ScheduleAnnouncementResponse.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ScheduleAnnouncementResponse.prototype['open_rate'] = undefined; -var _default = ScheduleAnnouncementResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ScheduleAnnouncementResponseCreateChannelOptions.js b/dist/model/ScheduleAnnouncementResponseCreateChannelOptions.js deleted file mode 100644 index bc7b1bf..0000000 --- a/dist/model/ScheduleAnnouncementResponseCreateChannelOptions.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ScheduleAnnouncementResponseCreateChannelOptions model module. - * @module model/ScheduleAnnouncementResponseCreateChannelOptions - * @version 0.0.16 - */ -var ScheduleAnnouncementResponseCreateChannelOptions = /*#__PURE__*/function () { - /** - * Constructs a new ScheduleAnnouncementResponseCreateChannelOptions. - * @alias module:model/ScheduleAnnouncementResponseCreateChannelOptions - */ - function ScheduleAnnouncementResponseCreateChannelOptions() { - _classCallCheck(this, ScheduleAnnouncementResponseCreateChannelOptions); - ScheduleAnnouncementResponseCreateChannelOptions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ScheduleAnnouncementResponseCreateChannelOptions, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ScheduleAnnouncementResponseCreateChannelOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponseCreateChannelOptions} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponseCreateChannelOptions} The populated ScheduleAnnouncementResponseCreateChannelOptions instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponseCreateChannelOptions(); - if (data.hasOwnProperty('distinct')) { - obj['distinct'] = _ApiClient["default"].convertToType(data['distinct'], 'Boolean'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - } - return obj; - } - }]); - return ScheduleAnnouncementResponseCreateChannelOptions; -}(); -/** - * @member {Boolean} distinct - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['distinct'] = undefined; - -/** - * @member {String} data - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['data'] = undefined; - -/** - * @member {String} name - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['name'] = undefined; - -/** - * @member {String} cover_url - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['cover_url'] = undefined; - -/** - * @member {String} custom_type - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['custom_type'] = undefined; -var _default = ScheduleAnnouncementResponseCreateChannelOptions; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ScheduleAnnouncementResponseMessage.js b/dist/model/ScheduleAnnouncementResponseMessage.js deleted file mode 100644 index da1384b..0000000 --- a/dist/model/ScheduleAnnouncementResponseMessage.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ScheduleAnnouncementResponseMessage model module. - * @module model/ScheduleAnnouncementResponseMessage - * @version 0.0.16 - */ -var ScheduleAnnouncementResponseMessage = /*#__PURE__*/function () { - /** - * Constructs a new ScheduleAnnouncementResponseMessage. - * @alias module:model/ScheduleAnnouncementResponseMessage - */ - function ScheduleAnnouncementResponseMessage() { - _classCallCheck(this, ScheduleAnnouncementResponseMessage); - ScheduleAnnouncementResponseMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ScheduleAnnouncementResponseMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ScheduleAnnouncementResponseMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponseMessage} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponseMessage} The populated ScheduleAnnouncementResponseMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponseMessage(); - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - } - return obj; - } - }]); - return ScheduleAnnouncementResponseMessage; -}(); -/** - * @member {String} type - */ -ScheduleAnnouncementResponseMessage.prototype['type'] = undefined; - -/** - * @member {String} custom_type - */ -ScheduleAnnouncementResponseMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} user_id - */ -ScheduleAnnouncementResponseMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -ScheduleAnnouncementResponseMessage.prototype['content'] = undefined; - -/** - * @member {String} data - */ -ScheduleAnnouncementResponseMessage.prototype['data'] = undefined; -var _default = ScheduleAnnouncementResponseMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendABotMessageRequest.js b/dist/model/SendABotMessageRequest.js new file mode 100644 index 0000000..5b50b60 --- /dev/null +++ b/dist/model/SendABotMessageRequest.js @@ -0,0 +1,152 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdExtendedMessagePayload = _interopRequireDefault(require("./SendbirdExtendedMessagePayload")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendABotMessageRequest model module. + * @module model/SendABotMessageRequest + * @version 2.0.0 + */ +var SendABotMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new SendABotMessageRequest. + * @alias module:model/SendABotMessageRequest + * @param channelUrl {String} + * @param message {String} + */ + function SendABotMessageRequest(channelUrl, message) { + _classCallCheck(this, SendABotMessageRequest); + SendABotMessageRequest.initialize(this, channelUrl, message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendABotMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl, message) { + obj['channel_url'] = channelUrl; + obj['message'] = message; + } + + /** + * Constructs a SendABotMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendABotMessageRequest} obj Optional instance to populate. + * @return {module:model/SendABotMessageRequest} The populated SendABotMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendABotMessageRequest(); + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('extended_message_payload')) { + obj['extended_message_payload'] = _SendbirdExtendedMessagePayload["default"].constructFromObject(data['extended_message_payload']); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mentioned')) { + obj['mentioned'] = _ApiClient["default"].convertToType(data['mentioned'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} channel_url + */ +SendABotMessageRequest.prototype['channel_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendABotMessageRequest.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendABotMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendABotMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendABotMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {module:model/SendbirdExtendedMessagePayload} extended_message_payload + */ +SendABotMessageRequest.prototype['extended_message_payload'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendABotMessageRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {Array.} mentioned + */ +SendABotMessageRequest.prototype['mentioned'] = undefined; + +/** + * @member {String} message + */ +SendABotMessageRequest.prototype['message'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendABotMessageRequest.prototype['send_push'] = undefined; +var _default = exports["default"] = SendABotMessageRequest; \ No newline at end of file diff --git a/dist/model/SendAMessageRequest.js b/dist/model/SendAMessageRequest.js new file mode 100644 index 0000000..4138d7d --- /dev/null +++ b/dist/model/SendAMessageRequest.js @@ -0,0 +1,537 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendAdminMessageRequestBody = _interopRequireDefault(require("./SendAdminMessageRequestBody")); +var _SendFileMessageRequestBody = _interopRequireDefault(require("./SendFileMessageRequestBody")); +var _SendTextMessageRequestBody = _interopRequireDefault(require("./SendTextMessageRequestBody")); +var _SendTextMessageRequestBodyPushMessageTemplate = _interopRequireDefault(require("./SendTextMessageRequestBodyPushMessageTemplate")); +var _SendbirdFile = _interopRequireDefault(require("./SendbirdFile")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendAMessageRequest model module. + * @module model/SendAMessageRequest + * @version 2.0.0 + */ +var SendAMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new SendAMessageRequest. + * @alias module:model/SendAMessageRequest + * @implements module:model/SendTextMessageRequestBody + * @implements module:model/SendFileMessageRequestBody + * @implements module:model/SendAdminMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendAMessageRequest.MessageTypeEnum} Specifies the type of the message. The value of ADMM represents an admin message. + * @param files {module:model/SendbirdFile} + */ + function SendAMessageRequest(message, messageType, files) { + _classCallCheck(this, SendAMessageRequest); + _SendTextMessageRequestBody["default"].initialize(this, message, messageType); + _SendFileMessageRequestBody["default"].initialize(this, files, messageType); + _SendAdminMessageRequestBody["default"].initialize(this, message, messageType); + SendAMessageRequest.initialize(this, message, messageType, files); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendAMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, message, messageType, files) { + obj['message'] = message; + obj['message_type'] = messageType; + obj['files'] = files; + } + + /** + * Constructs a SendAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendAMessageRequest} obj Optional instance to populate. + * @return {module:model/SendAMessageRequest} The populated SendAMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendAMessageRequest(); + _SendTextMessageRequestBody["default"].constructFromObject(data, obj); + _SendFileMessageRequestBody["default"].constructFromObject(data, obj); + _SendAdminMessageRequestBody["default"].constructFromObject(data, obj); + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = _ApiClient["default"].convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = _ApiClient["default"].convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('include_poll_details')) { + obj['include_poll_details'] = _ApiClient["default"].convertToType(data['include_poll_details'], 'Boolean'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('poll_id')) { + obj['poll_id'] = _ApiClient["default"].convertToType(data['poll_id'], 'Number'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = _SendTextMessageRequestBodyPushMessageTemplate["default"].constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = _ApiClient["default"].convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = _ApiClient["default"].convertToType(data['volume'], 'Number'); + } + if (data.hasOwnProperty('files')) { + obj['files'] = _SendbirdFile["default"].constructFromObject(data['files']); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('thumbnail1')) { + obj['thumbnail1'] = _ApiClient["default"].convertToType(data['thumbnail1'], 'String'); + } + if (data.hasOwnProperty('thumbnail2')) { + obj['thumbnail2'] = _ApiClient["default"].convertToType(data['thumbnail2'], 'String'); + } + if (data.hasOwnProperty('thumbnail3')) { + obj['thumbnail3'] = _ApiClient["default"].convertToType(data['thumbnail3'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = _ApiClient["default"].convertToType(data['thumbnails'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} apns_bundle_id + */ +SendAMessageRequest.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendAMessageRequest.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendAMessageRequest.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendAMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendAMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendAMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} include_poll_details + */ +SendAMessageRequest.prototype['include_poll_details'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendAMessageRequest.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendAMessageRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendAMessageRequest.MentionTypeEnum} mention_type + */ +SendAMessageRequest.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendAMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendAMessageRequest.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAMessageRequest.MessageTypeEnum} message_type + */ +SendAMessageRequest.prototype['message_type'] = undefined; + +/** + * @member {Number} poll_id + */ +SendAMessageRequest.prototype['poll_id'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendAMessageRequest.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendAMessageRequest.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendAMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendAMessageRequest.prototype['sound'] = undefined; + +/** + * @member {Number} volume + */ +SendAMessageRequest.prototype['volume'] = undefined; + +/** + * @member {module:model/SendbirdFile} files + */ +SendAMessageRequest.prototype['files'] = undefined; + +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +SendAMessageRequest.prototype['require_auth'] = undefined; + +/** + * @member {String} thumbnail1 + */ +SendAMessageRequest.prototype['thumbnail1'] = undefined; + +/** + * @member {String} thumbnail2 + */ +SendAMessageRequest.prototype['thumbnail2'] = undefined; + +/** + * @member {String} thumbnail3 + */ +SendAMessageRequest.prototype['thumbnail3'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendAMessageRequest.prototype['thumbnails'] = undefined; + +// Implement SendTextMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +_SendTextMessageRequestBody["default"].prototype['apns_bundle_id'] = undefined; +/** + * @member {Object} apple_critical_alert_options + */ +_SendTextMessageRequestBody["default"].prototype['apple_critical_alert_options'] = undefined; +/** + * @member {Number} created_at + */ +_SendTextMessageRequestBody["default"].prototype['created_at'] = undefined; +/** + * @member {String} custom_type + */ +_SendTextMessageRequestBody["default"].prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +_SendTextMessageRequestBody["default"].prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +_SendTextMessageRequestBody["default"].prototype['dedup_id'] = undefined; +/** + * @member {Boolean} include_poll_details + */ +_SendTextMessageRequestBody["default"].prototype['include_poll_details'] = undefined; +/** + * @member {Boolean} is_silent + */ +_SendTextMessageRequestBody["default"].prototype['is_silent'] = undefined; +/** + * @member {Boolean} mark_as_read + */ +_SendTextMessageRequestBody["default"].prototype['mark_as_read'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBody.MentionTypeEnum} mention_type + */ +_SendTextMessageRequestBody["default"].prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_SendTextMessageRequestBody["default"].prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} message + */ +_SendTextMessageRequestBody["default"].prototype['message'] = undefined; +/** + * Specifies the type of the message. The value of MESG represents a text message. + * @member {module:model/SendTextMessageRequestBody.MessageTypeEnum} message_type + */ +_SendTextMessageRequestBody["default"].prototype['message_type'] = undefined; +/** + * @member {Number} poll_id + */ +_SendTextMessageRequestBody["default"].prototype['poll_id'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +_SendTextMessageRequestBody["default"].prototype['push_message_template'] = undefined; +/** + * @member {Boolean} send_push + */ +_SendTextMessageRequestBody["default"].prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_SendTextMessageRequestBody["default"].prototype['sorted_metaarray'] = undefined; +/** + * @member {String} sound + */ +_SendTextMessageRequestBody["default"].prototype['sound'] = undefined; +/** + * @member {Number} volume + */ +_SendTextMessageRequestBody["default"].prototype['volume'] = undefined; +// Implement SendFileMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +_SendFileMessageRequestBody["default"].prototype['apns_bundle_id'] = undefined; +/** + * @member {Object} apple_critical_alert_options + */ +_SendFileMessageRequestBody["default"].prototype['apple_critical_alert_options'] = undefined; +/** + * @member {Number} created_at + */ +_SendFileMessageRequestBody["default"].prototype['created_at'] = undefined; +/** + * @member {String} custom_type + */ +_SendFileMessageRequestBody["default"].prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +_SendFileMessageRequestBody["default"].prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +_SendFileMessageRequestBody["default"].prototype['dedup_id'] = undefined; +/** + * @member {module:model/SendbirdFile} files + */ +_SendFileMessageRequestBody["default"].prototype['files'] = undefined; +/** + * @member {Boolean} is_silent + */ +_SendFileMessageRequestBody["default"].prototype['is_silent'] = undefined; +/** + * @member {Boolean} mark_as_read + */ +_SendFileMessageRequestBody["default"].prototype['mark_as_read'] = undefined; +/** + * @member {module:model/SendFileMessageRequestBody.MentionTypeEnum} mention_type + */ +_SendFileMessageRequestBody["default"].prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_SendFileMessageRequestBody["default"].prototype['mentioned_user_ids'] = undefined; +/** + * Specifies the type of the message. The value of FILE represents a file message. + * @member {module:model/SendFileMessageRequestBody.MessageTypeEnum} message_type + */ +_SendFileMessageRequestBody["default"].prototype['message_type'] = undefined; +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +_SendFileMessageRequestBody["default"].prototype['require_auth'] = undefined; +/** + * @member {Boolean} send_push + */ +_SendFileMessageRequestBody["default"].prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_SendFileMessageRequestBody["default"].prototype['sorted_metaarray'] = undefined; +/** + * @member {String} sound + */ +_SendFileMessageRequestBody["default"].prototype['sound'] = undefined; +/** + * @member {String} thumbnail1 + */ +_SendFileMessageRequestBody["default"].prototype['thumbnail1'] = undefined; +/** + * @member {String} thumbnail2 + */ +_SendFileMessageRequestBody["default"].prototype['thumbnail2'] = undefined; +/** + * @member {String} thumbnail3 + */ +_SendFileMessageRequestBody["default"].prototype['thumbnail3'] = undefined; +/** + * @member {Array.} thumbnails + */ +_SendFileMessageRequestBody["default"].prototype['thumbnails'] = undefined; +/** + * @member {Number} volume + */ +_SendFileMessageRequestBody["default"].prototype['volume'] = undefined; +// Implement SendAdminMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +_SendAdminMessageRequestBody["default"].prototype['apns_bundle_id'] = undefined; +/** + * @member {String} custom_type + */ +_SendAdminMessageRequestBody["default"].prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +_SendAdminMessageRequestBody["default"].prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +_SendAdminMessageRequestBody["default"].prototype['dedup_id'] = undefined; +/** + * @member {Boolean} is_silent + */ +_SendAdminMessageRequestBody["default"].prototype['is_silent'] = undefined; +/** + * @member {module:model/SendAdminMessageRequestBody.MentionTypeEnum} mention_type + */ +_SendAdminMessageRequestBody["default"].prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_SendAdminMessageRequestBody["default"].prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} message + */ +_SendAdminMessageRequestBody["default"].prototype['message'] = undefined; +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAdminMessageRequestBody.MessageTypeEnum} message_type + */ +_SendAdminMessageRequestBody["default"].prototype['message_type'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +_SendAdminMessageRequestBody["default"].prototype['push_message_template'] = undefined; +/** + * @member {Boolean} send_push + */ +_SendAdminMessageRequestBody["default"].prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_SendAdminMessageRequestBody["default"].prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendAMessageRequest['MentionTypeEnum'] = { + /** + * value: "users" + * @const + */ + "users": "users", + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendAMessageRequest['MessageTypeEnum'] = { + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; +var _default = exports["default"] = SendAMessageRequest; \ No newline at end of file diff --git a/dist/model/SendAdminMessageRequestBody.js b/dist/model/SendAdminMessageRequestBody.js new file mode 100644 index 0000000..5d6091a --- /dev/null +++ b/dist/model/SendAdminMessageRequestBody.js @@ -0,0 +1,201 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendTextMessageRequestBodyPushMessageTemplate = _interopRequireDefault(require("./SendTextMessageRequestBodyPushMessageTemplate")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendAdminMessageRequestBody model module. + * @module model/SendAdminMessageRequestBody + * @version 2.0.0 + */ +var SendAdminMessageRequestBody = /*#__PURE__*/function () { + /** + * Constructs a new SendAdminMessageRequestBody. + * @alias module:model/SendAdminMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendAdminMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of ADMM represents an admin message. + */ + function SendAdminMessageRequestBody(message, messageType) { + _classCallCheck(this, SendAdminMessageRequestBody); + SendAdminMessageRequestBody.initialize(this, message, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendAdminMessageRequestBody, null, [{ + key: "initialize", + value: function initialize(obj, message, messageType) { + obj['message'] = message; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendAdminMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendAdminMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendAdminMessageRequestBody} The populated SendAdminMessageRequestBody instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendAdminMessageRequestBody(); + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = _ApiClient["default"].convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = _SendTextMessageRequestBodyPushMessageTemplate["default"].constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} apns_bundle_id + */ +SendAdminMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {String} custom_type + */ +SendAdminMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendAdminMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendAdminMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendAdminMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {module:model/SendAdminMessageRequestBody.MentionTypeEnum} mention_type + */ +SendAdminMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendAdminMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendAdminMessageRequestBody.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAdminMessageRequestBody.MessageTypeEnum} message_type + */ +SendAdminMessageRequestBody.prototype['message_type'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendAdminMessageRequestBody.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendAdminMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendAdminMessageRequestBody.prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendAdminMessageRequestBody['MentionTypeEnum'] = { + /** + * value: "users" + * @const + */ + "users": "users", + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendAdminMessageRequestBody['MessageTypeEnum'] = { + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; +var _default = exports["default"] = SendAdminMessageRequestBody; \ No newline at end of file diff --git a/dist/model/SendBirdAdminMessage.js b/dist/model/SendBirdAdminMessage.js deleted file mode 100644 index 9958ab3..0000000 --- a/dist/model/SendBirdAdminMessage.js +++ /dev/null @@ -1,310 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SBObject = _interopRequireDefault(require("./SBObject")); -var _SendBirdAppleCriticalAlertOptions = _interopRequireDefault(require("./SendBirdAppleCriticalAlertOptions")); -var _SendBirdMessageMetaArray = _interopRequireDefault(require("./SendBirdMessageMetaArray")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdOGMetaData = _interopRequireDefault(require("./SendBirdOGMetaData")); -var _SendBirdReaction = _interopRequireDefault(require("./SendBirdReaction")); -var _SendBirdThreadInfo = _interopRequireDefault(require("./SendBirdThreadInfo")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdAdminMessage model module. - * @module model/SendBirdAdminMessage - * @version 0.0.16 - */ -var SendBirdAdminMessage = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdAdminMessage. - * @alias module:model/SendBirdAdminMessage - */ - function SendBirdAdminMessage() { - _classCallCheck(this, SendBirdAdminMessage); - SendBirdAdminMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdAdminMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdAdminMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAdminMessage} obj Optional instance to populate. - * @return {module:model/SendBirdAdminMessage} The populated SendBirdAdminMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAdminMessage(); - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = _SendBirdAppleCriticalAlertOptions["default"].constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('meta_array')) { - obj['meta_array'] = _SBObject["default"].constructFromObject(data['meta_array']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = _ApiClient["default"].convertToType(data['meta_arrays'], [_SendBirdMessageMetaArray["default"]]); - } - if (data.hasOwnProperty('og_meta_data')) { - obj['og_meta_data'] = _SendBirdOGMetaData["default"].constructFromObject(data['og_meta_data']); - } - if (data.hasOwnProperty('parent_message')) { - obj['parent_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['parent_message']); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_text')) { - obj['parent_message_text'] = _ApiClient["default"].convertToType(data['parent_message_text'], 'String'); - } - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = _ApiClient["default"].convertToType(data['reactions'], [_SendBirdReaction["default"]]); - } - if (data.hasOwnProperty('sending_status')) { - obj['sending_status'] = _ApiClient["default"].convertToType(data['sending_status'], 'String'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = _SendBirdThreadInfo["default"].constructFromObject(data['thread_info']); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = _SBObject["default"].constructFromObject(data['translations']); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdAdminMessage; -}(); -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdAdminMessage.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdAdminMessage.prototype['channel_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdAdminMessage.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdAdminMessage.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdAdminMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdAdminMessage.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdAdminMessage.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdAdminMessage.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdAdminMessage.prototype['mentioned_users'] = undefined; - -/** - * @member {String} message - */ -SendBirdAdminMessage.prototype['message'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdAdminMessage.prototype['message_id'] = undefined; - -/** - * @member {module:model/SendBirdAdminMessage.MessageTypeEnum} message_type - */ -SendBirdAdminMessage.prototype['message_type'] = undefined; - -/** - * @member {module:model/SBObject} meta_array - */ -SendBirdAdminMessage.prototype['meta_array'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdAdminMessage.prototype['meta_arrays'] = undefined; - -/** - * @member {module:model/SendBirdOGMetaData} og_meta_data - */ -SendBirdAdminMessage.prototype['og_meta_data'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} parent_message - */ -SendBirdAdminMessage.prototype['parent_message'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdAdminMessage.prototype['parent_message_id'] = undefined; - -/** - * @member {String} parent_message_text - */ -SendBirdAdminMessage.prototype['parent_message_text'] = undefined; - -/** - * @member {Array.} reactions - */ -SendBirdAdminMessage.prototype['reactions'] = undefined; - -/** - * @member {module:model/SendBirdAdminMessage.SendingStatusEnum} sending_status - */ -SendBirdAdminMessage.prototype['sending_status'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdAdminMessage.prototype['silent'] = undefined; - -/** - * @member {module:model/SendBirdThreadInfo} thread_info - */ -SendBirdAdminMessage.prototype['thread_info'] = undefined; - -/** - * @member {module:model/SBObject} translations - */ -SendBirdAdminMessage.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdAdminMessage.prototype['updated_at'] = undefined; - -/** - * Allowed values for the message_type property. - * @enum {String} - * @readonly - */ -SendBirdAdminMessage['MessageTypeEnum'] = { - /** - * value: "MESG" - * @const - */ - "MESG": "MESG", - /** - * value: "ADMM" - * @const - */ - "ADMM": "ADMM", - /** - * value: "FILE" - * @const - */ - "FILE": "FILE" -}; - -/** - * Allowed values for the sending_status property. - * @enum {String} - * @readonly - */ -SendBirdAdminMessage['SendingStatusEnum'] = { - /** - * value: "canceled" - * @const - */ - "canceled": "canceled", - /** - * value: "failed" - * @const - */ - "failed": "failed", - /** - * value: "none" - * @const - */ - "none": "none", - /** - * value: "pending" - * @const - */ - "pending": "pending", - /** - * value: "succeeded" - * @const - */ - "succeeded": "succeeded" -}; -var _default = SendBirdAdminMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdAppleCriticalAlertOptions.js b/dist/model/SendBirdAppleCriticalAlertOptions.js deleted file mode 100644 index c8956fe..0000000 --- a/dist/model/SendBirdAppleCriticalAlertOptions.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdAppleCriticalAlertOptions model module. - * @module model/SendBirdAppleCriticalAlertOptions - * @version 0.0.16 - */ -var SendBirdAppleCriticalAlertOptions = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdAppleCriticalAlertOptions. - * @alias module:model/SendBirdAppleCriticalAlertOptions - */ - function SendBirdAppleCriticalAlertOptions() { - _classCallCheck(this, SendBirdAppleCriticalAlertOptions); - SendBirdAppleCriticalAlertOptions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdAppleCriticalAlertOptions, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdAppleCriticalAlertOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAppleCriticalAlertOptions} obj Optional instance to populate. - * @return {module:model/SendBirdAppleCriticalAlertOptions} The populated SendBirdAppleCriticalAlertOptions instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAppleCriticalAlertOptions(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = _ApiClient["default"].convertToType(data['volume'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdAppleCriticalAlertOptions; -}(); -/** - * @member {String} name - */ -SendBirdAppleCriticalAlertOptions.prototype['name'] = undefined; - -/** - * @member {Number} volume - */ -SendBirdAppleCriticalAlertOptions.prototype['volume'] = undefined; -var _default = SendBirdAppleCriticalAlertOptions; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdAutoEventMessageSettings.js b/dist/model/SendBirdAutoEventMessageSettings.js deleted file mode 100644 index 1c96113..0000000 --- a/dist/model/SendBirdAutoEventMessageSettings.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ConfigureAutoEventDataAutoEventMessage = _interopRequireDefault(require("./ConfigureAutoEventDataAutoEventMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdAutoEventMessageSettings model module. - * @module model/SendBirdAutoEventMessageSettings - * @version 0.0.16 - */ -var SendBirdAutoEventMessageSettings = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdAutoEventMessageSettings. - * @alias module:model/SendBirdAutoEventMessageSettings - */ - function SendBirdAutoEventMessageSettings() { - _classCallCheck(this, SendBirdAutoEventMessageSettings); - SendBirdAutoEventMessageSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdAutoEventMessageSettings, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdAutoEventMessageSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAutoEventMessageSettings} obj Optional instance to populate. - * @return {module:model/SendBirdAutoEventMessageSettings} The populated SendBirdAutoEventMessageSettings instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAutoEventMessageSettings(); - if (data.hasOwnProperty('auto_event_message')) { - obj['auto_event_message'] = _ConfigureAutoEventDataAutoEventMessage["default"].constructFromObject(data['auto_event_message']); - } - } - return obj; - } - }]); - return SendBirdAutoEventMessageSettings; -}(); -/** - * @member {module:model/ConfigureAutoEventDataAutoEventMessage} auto_event_message - */ -SendBirdAutoEventMessageSettings.prototype['auto_event_message'] = undefined; -var _default = SendBirdAutoEventMessageSettings; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdBaseChannel.js b/dist/model/SendBirdBaseChannel.js deleted file mode 100644 index 4c6eb68..0000000 --- a/dist/model/SendBirdBaseChannel.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdBaseChannel model module. - * @module model/SendBirdBaseChannel - * @version 0.0.16 - */ -var SendBirdBaseChannel = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdBaseChannel. - * @alias module:model/SendBirdBaseChannel - */ - function SendBirdBaseChannel() { - _classCallCheck(this, SendBirdBaseChannel); - SendBirdBaseChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdBaseChannel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdBaseChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdBaseChannel} obj Optional instance to populate. - * @return {module:model/SendBirdBaseChannel} The populated SendBirdBaseChannel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdBaseChannel(); - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = _SendBirdUser["default"].constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = _ApiClient["default"].convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return SendBirdBaseChannel; -}(); -/** - * @member {String} cover_url - */ -SendBirdBaseChannel.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdBaseChannel.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdBaseChannel.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdBaseChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdBaseChannel.prototype['data'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdBaseChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdBaseChannel.prototype['is_frozen'] = undefined; - -/** - * @member {String} name - */ -SendBirdBaseChannel.prototype['name'] = undefined; - -/** - * @member {String} url - */ -SendBirdBaseChannel.prototype['url'] = undefined; -var _default = SendBirdBaseChannel; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdBaseMessageInstance.js b/dist/model/SendBirdBaseMessageInstance.js deleted file mode 100644 index 05df007..0000000 --- a/dist/model/SendBirdBaseMessageInstance.js +++ /dev/null @@ -1,300 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SBObject = _interopRequireDefault(require("./SBObject")); -var _SendBirdAppleCriticalAlertOptions = _interopRequireDefault(require("./SendBirdAppleCriticalAlertOptions")); -var _SendBirdMessageMetaArray = _interopRequireDefault(require("./SendBirdMessageMetaArray")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdOGMetaData = _interopRequireDefault(require("./SendBirdOGMetaData")); -var _SendBirdReaction = _interopRequireDefault(require("./SendBirdReaction")); -var _SendBirdThreadInfo = _interopRequireDefault(require("./SendBirdThreadInfo")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdBaseMessageInstance model module. - * @module model/SendBirdBaseMessageInstance - * @version 0.0.16 - */ -var SendBirdBaseMessageInstance = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdBaseMessageInstance. - * Message - * @alias module:model/SendBirdBaseMessageInstance - */ - function SendBirdBaseMessageInstance() { - _classCallCheck(this, SendBirdBaseMessageInstance); - SendBirdBaseMessageInstance.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdBaseMessageInstance, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdBaseMessageInstance from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdBaseMessageInstance} obj Optional instance to populate. - * @return {module:model/SendBirdBaseMessageInstance} The populated SendBirdBaseMessageInstance instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdBaseMessageInstance(); - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = _SendBirdAppleCriticalAlertOptions["default"].constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('meta_array')) { - obj['meta_array'] = _SBObject["default"].constructFromObject(data['meta_array']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = _ApiClient["default"].convertToType(data['meta_arrays'], [_SendBirdMessageMetaArray["default"]]); - } - if (data.hasOwnProperty('og_meta_data')) { - obj['og_meta_data'] = _SendBirdOGMetaData["default"].constructFromObject(data['og_meta_data']); - } - if (data.hasOwnProperty('parent_message')) { - obj['parent_message'] = _SendBirdMessageResponse["default"].constructFromObject(data['parent_message']); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_text')) { - obj['parent_message_text'] = _ApiClient["default"].convertToType(data['parent_message_text'], 'String'); - } - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = _ApiClient["default"].convertToType(data['reactions'], [_SendBirdReaction["default"]]); - } - if (data.hasOwnProperty('sending_status')) { - obj['sending_status'] = _ApiClient["default"].convertToType(data['sending_status'], 'String'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = _SendBirdThreadInfo["default"].constructFromObject(data['thread_info']); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdBaseMessageInstance; -}(); -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdBaseMessageInstance.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdBaseMessageInstance.prototype['channel_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdBaseMessageInstance.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdBaseMessageInstance.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdBaseMessageInstance.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdBaseMessageInstance.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdBaseMessageInstance.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdBaseMessageInstance.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdBaseMessageInstance.prototype['mentioned_users'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdBaseMessageInstance.prototype['message_id'] = undefined; - -/** - * @member {module:model/SendBirdBaseMessageInstance.MessageTypeEnum} message_type - */ -SendBirdBaseMessageInstance.prototype['message_type'] = undefined; - -/** - * @member {module:model/SBObject} meta_array - */ -SendBirdBaseMessageInstance.prototype['meta_array'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdBaseMessageInstance.prototype['meta_arrays'] = undefined; - -/** - * @member {module:model/SendBirdOGMetaData} og_meta_data - */ -SendBirdBaseMessageInstance.prototype['og_meta_data'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} parent_message - */ -SendBirdBaseMessageInstance.prototype['parent_message'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdBaseMessageInstance.prototype['parent_message_id'] = undefined; - -/** - * @member {String} parent_message_text - */ -SendBirdBaseMessageInstance.prototype['parent_message_text'] = undefined; - -/** - * @member {Array.} reactions - */ -SendBirdBaseMessageInstance.prototype['reactions'] = undefined; - -/** - * @member {module:model/SendBirdBaseMessageInstance.SendingStatusEnum} sending_status - */ -SendBirdBaseMessageInstance.prototype['sending_status'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdBaseMessageInstance.prototype['silent'] = undefined; - -/** - * @member {module:model/SendBirdThreadInfo} thread_info - */ -SendBirdBaseMessageInstance.prototype['thread_info'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdBaseMessageInstance.prototype['updated_at'] = undefined; - -/** - * Allowed values for the message_type property. - * @enum {String} - * @readonly - */ -SendBirdBaseMessageInstance['MessageTypeEnum'] = { - /** - * value: "admin" - * @const - */ - "admin": "admin", - /** - * value: "base" - * @const - */ - "base": "base", - /** - * value: "file" - * @const - */ - "file": "file", - /** - * value: "user" - * @const - */ - "user": "user" -}; - -/** - * Allowed values for the sending_status property. - * @enum {String} - * @readonly - */ -SendBirdBaseMessageInstance['SendingStatusEnum'] = { - /** - * value: "canceled" - * @const - */ - "canceled": "canceled", - /** - * value: "failed" - * @const - */ - "failed": "failed", - /** - * value: "none" - * @const - */ - "none": "none", - /** - * value: "pending" - * @const - */ - "pending": "pending", - /** - * value: "succeeded" - * @const - */ - "succeeded": "succeeded" -}; -var _default = SendBirdBaseMessageInstance; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdChannelResponse.js b/dist/model/SendBirdChannelResponse.js deleted file mode 100644 index aefb7b0..0000000 --- a/dist/model/SendBirdChannelResponse.js +++ /dev/null @@ -1,788 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./SendBirdGroupChannel")); -var _SendBirdGroupChannelChannel = _interopRequireDefault(require("./SendBirdGroupChannelChannel")); -var _SendBirdGroupChannelCreatedBy = _interopRequireDefault(require("./SendBirdGroupChannelCreatedBy")); -var _SendBirdGroupChannelDisappearingMessage = _interopRequireDefault(require("./SendBirdGroupChannelDisappearingMessage")); -var _SendBirdGroupChannelInviter = _interopRequireDefault(require("./SendBirdGroupChannelInviter")); -var _SendBirdGroupChannelLastMessage = _interopRequireDefault(require("./SendBirdGroupChannelLastMessage")); -var _SendBirdGroupChannelSmsFallback = _interopRequireDefault(require("./SendBirdGroupChannelSmsFallback")); -var _SendBirdMember = _interopRequireDefault(require("./SendBirdMember")); -var _SendBirdOpenChannel = _interopRequireDefault(require("./SendBirdOpenChannel")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdChannelResponse model module. - * @module model/SendBirdChannelResponse - * @version 0.0.16 - */ -var SendBirdChannelResponse = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdChannelResponse. - * @alias module:model/SendBirdChannelResponse - * @implements module:model/SendBirdGroupChannel - * @implements module:model/SendBirdOpenChannel - */ - function SendBirdChannelResponse() { - _classCallCheck(this, SendBirdChannelResponse); - _SendBirdGroupChannel["default"].initialize(this); - _SendBirdOpenChannel["default"].initialize(this); - SendBirdChannelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdChannelResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdChannelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdChannelResponse} obj Optional instance to populate. - * @return {module:model/SendBirdChannelResponse} The populated SendBirdChannelResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdChannelResponse(); - _SendBirdGroupChannel["default"].constructFromObject(data, obj); - _SendBirdOpenChannel["default"].constructFromObject(data, obj); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = _SendBirdGroupChannelCreatedBy["default"].constructFromObject(data['created_by']); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = _SendBirdUser["default"].constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('disappearing_message')) { - obj['disappearing_message'] = _SendBirdGroupChannelDisappearingMessage["default"].constructFromObject(data['disappearing_message']); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); - } - if (data.hasOwnProperty('ignore_profanity_filter')) { - obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); - } - if (data.hasOwnProperty('hidden_state')) { - obj['hidden_state'] = _ApiClient["default"].convertToType(data['hidden_state'], 'String'); - } - if (data.hasOwnProperty('invited_at')) { - obj['invited_at'] = _ApiClient["default"].convertToType(data['invited_at'], 'Number'); - } - if (data.hasOwnProperty('inviter')) { - obj['inviter'] = _SendBirdGroupChannelInviter["default"].constructFromObject(data['inviter']); - } - if (data.hasOwnProperty('is_access_code_required')) { - obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); - } - if (data.hasOwnProperty('is_broadcast')) { - obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = _ApiClient["default"].convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('is_discoverable')) { - obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = _ApiClient["default"].convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('is_hidden')) { - obj['is_hidden'] = _ApiClient["default"].convertToType(data['is_hidden'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_push_enabled')) { - obj['is_push_enabled'] = _ApiClient["default"].convertToType(data['is_push_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('joined_at')) { - obj['joined_at'] = _ApiClient["default"].convertToType(data['joined_at'], 'Number'); - } - if (data.hasOwnProperty('joined_member_count')) { - obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); - } - if (data.hasOwnProperty('last_message')) { - obj['last_message'] = _SendBirdGroupChannelLastMessage["default"].constructFromObject(data['last_message']); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); - } - if (data.hasOwnProperty('members')) { - obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendBirdMember["default"]]); - } - if (data.hasOwnProperty('message_offset_timestamp')) { - obj['message_offset_timestamp'] = _ApiClient["default"].convertToType(data['message_offset_timestamp'], 'Number'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('my_count_preference')) { - obj['my_count_preference'] = _ApiClient["default"].convertToType(data['my_count_preference'], 'String'); - } - if (data.hasOwnProperty('my_last_read')) { - obj['my_last_read'] = _ApiClient["default"].convertToType(data['my_last_read'], 'Number'); - } - if (data.hasOwnProperty('my_member_state')) { - obj['my_member_state'] = _ApiClient["default"].convertToType(data['my_member_state'], 'String'); - } - if (data.hasOwnProperty('my_muted_state')) { - obj['my_muted_state'] = _ApiClient["default"].convertToType(data['my_muted_state'], 'String'); - } - if (data.hasOwnProperty('my_push_trigger_option')) { - obj['my_push_trigger_option'] = _ApiClient["default"].convertToType(data['my_push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('my_role')) { - obj['my_role'] = _ApiClient["default"].convertToType(data['my_role'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('sms_fallback')) { - obj['sms_fallback'] = _SendBirdGroupChannelSmsFallback["default"].constructFromObject(data['sms_fallback']); - } - if (data.hasOwnProperty('unread_mention_count')) { - obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('unread_message_count')) { - obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdGroupChannelChannel["default"].constructFromObject(data['channel']); - } - if (data.hasOwnProperty('is_dynamic_partitioned')) { - obj['is_dynamic_partitioned'] = _ApiClient["default"].convertToType(data['is_dynamic_partitioned'], 'Boolean'); - } - if (data.hasOwnProperty('participant_count')) { - obj['participant_count'] = _ApiClient["default"].convertToType(data['participant_count'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdChannelResponse; -}(); -/** - * @member {String} channel_url - */ -SendBirdChannelResponse.prototype['channel_url'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdChannelResponse.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdChannelResponse.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -SendBirdChannelResponse.prototype['created_by'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdChannelResponse.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdChannelResponse.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdChannelResponse.prototype['data'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -SendBirdChannelResponse.prototype['disappearing_message'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdChannelResponse.prototype['freeze'] = undefined; - -/** - * @member {Boolean} ignore_profanity_filter - */ -SendBirdChannelResponse.prototype['ignore_profanity_filter'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.HiddenStateEnum} hidden_state - */ -SendBirdChannelResponse.prototype['hidden_state'] = undefined; - -/** - * @member {Number} invited_at - */ -SendBirdChannelResponse.prototype['invited_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -SendBirdChannelResponse.prototype['inviter'] = undefined; - -/** - * @member {Boolean} is_access_code_required - */ -SendBirdChannelResponse.prototype['is_access_code_required'] = undefined; - -/** - * @member {Boolean} is_broadcast - */ -SendBirdChannelResponse.prototype['is_broadcast'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdChannelResponse.prototype['is_created'] = undefined; - -/** - * @member {Boolean} is_discoverable - */ -SendBirdChannelResponse.prototype['is_discoverable'] = undefined; - -/** - * @member {Boolean} is_distinct - */ -SendBirdChannelResponse.prototype['is_distinct'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdChannelResponse.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdChannelResponse.prototype['is_frozen'] = undefined; - -/** - * @member {Boolean} is_hidden - */ -SendBirdChannelResponse.prototype['is_hidden'] = undefined; - -/** - * @member {Boolean} is_public - */ -SendBirdChannelResponse.prototype['is_public'] = undefined; - -/** - * @member {Boolean} is_push_enabled - */ -SendBirdChannelResponse.prototype['is_push_enabled'] = undefined; - -/** - * @member {Boolean} is_super - */ -SendBirdChannelResponse.prototype['is_super'] = undefined; - -/** - * @member {Number} joined_at - */ -SendBirdChannelResponse.prototype['joined_at'] = undefined; - -/** - * @member {Number} joined_member_count - */ -SendBirdChannelResponse.prototype['joined_member_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -SendBirdChannelResponse.prototype['last_message'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdChannelResponse.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdChannelResponse.prototype['member_count'] = undefined; - -/** - * @member {Array.} members - */ -SendBirdChannelResponse.prototype['members'] = undefined; - -/** - * @member {Number} message_offset_timestamp - */ -SendBirdChannelResponse.prototype['message_offset_timestamp'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdChannelResponse.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} my_count_preference - */ -SendBirdChannelResponse.prototype['my_count_preference'] = undefined; - -/** - * @member {Number} my_last_read - */ -SendBirdChannelResponse.prototype['my_last_read'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyMemberStateEnum} my_member_state - */ -SendBirdChannelResponse.prototype['my_member_state'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyMutedStateEnum} my_muted_state - */ -SendBirdChannelResponse.prototype['my_muted_state'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyPushTriggerOptionEnum} my_push_trigger_option - */ -SendBirdChannelResponse.prototype['my_push_trigger_option'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyRoleEnum} my_role - */ -SendBirdChannelResponse.prototype['my_role'] = undefined; - -/** - * @member {String} name - */ -SendBirdChannelResponse.prototype['name'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdChannelResponse.prototype['operators'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -SendBirdChannelResponse.prototype['sms_fallback'] = undefined; - -/** - * @member {Number} unread_mention_count - */ -SendBirdChannelResponse.prototype['unread_mention_count'] = undefined; - -/** - * @member {Number} unread_message_count - */ -SendBirdChannelResponse.prototype['unread_message_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -SendBirdChannelResponse.prototype['channel'] = undefined; - -/** - * @member {Boolean} is_dynamic_partitioned - */ -SendBirdChannelResponse.prototype['is_dynamic_partitioned'] = undefined; - -/** - * @member {Number} participant_count - */ -SendBirdChannelResponse.prototype['participant_count'] = undefined; - -// Implement SendBirdGroupChannel interface: -/** - * @member {String} channel_url - */ -_SendBirdGroupChannel["default"].prototype['channel_url'] = undefined; -/** - * @member {String} cover_url - */ -_SendBirdGroupChannel["default"].prototype['cover_url'] = undefined; -/** - * @member {Number} created_at - */ -_SendBirdGroupChannel["default"].prototype['created_at'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -_SendBirdGroupChannel["default"].prototype['created_by'] = undefined; -/** - * @member {module:model/SendBirdUser} creator - */ -_SendBirdGroupChannel["default"].prototype['creator'] = undefined; -/** - * @member {String} custom_type - */ -_SendBirdGroupChannel["default"].prototype['custom_type'] = undefined; -/** - * @member {String} data - */ -_SendBirdGroupChannel["default"].prototype['data'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -_SendBirdGroupChannel["default"].prototype['disappearing_message'] = undefined; -/** - * @member {Boolean} freeze - */ -_SendBirdGroupChannel["default"].prototype['freeze'] = undefined; -/** - * @member {Boolean} ignore_profanity_filter - */ -_SendBirdGroupChannel["default"].prototype['ignore_profanity_filter'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.HiddenStateEnum} hidden_state - */ -_SendBirdGroupChannel["default"].prototype['hidden_state'] = undefined; -/** - * @member {Number} invited_at - */ -_SendBirdGroupChannel["default"].prototype['invited_at'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -_SendBirdGroupChannel["default"].prototype['inviter'] = undefined; -/** - * @member {Boolean} is_access_code_required - */ -_SendBirdGroupChannel["default"].prototype['is_access_code_required'] = undefined; -/** - * @member {Boolean} is_broadcast - */ -_SendBirdGroupChannel["default"].prototype['is_broadcast'] = undefined; -/** - * @member {Boolean} is_created - */ -_SendBirdGroupChannel["default"].prototype['is_created'] = undefined; -/** - * @member {Boolean} is_discoverable - */ -_SendBirdGroupChannel["default"].prototype['is_discoverable'] = undefined; -/** - * @member {Boolean} is_distinct - */ -_SendBirdGroupChannel["default"].prototype['is_distinct'] = undefined; -/** - * @member {Boolean} is_ephemeral - */ -_SendBirdGroupChannel["default"].prototype['is_ephemeral'] = undefined; -/** - * @member {Boolean} is_frozen - */ -_SendBirdGroupChannel["default"].prototype['is_frozen'] = undefined; -/** - * @member {Boolean} is_hidden - */ -_SendBirdGroupChannel["default"].prototype['is_hidden'] = undefined; -/** - * @member {Boolean} is_public - */ -_SendBirdGroupChannel["default"].prototype['is_public'] = undefined; -/** - * @member {Boolean} is_push_enabled - */ -_SendBirdGroupChannel["default"].prototype['is_push_enabled'] = undefined; -/** - * @member {Boolean} is_super - */ -_SendBirdGroupChannel["default"].prototype['is_super'] = undefined; -/** - * @member {Number} joined_at - */ -_SendBirdGroupChannel["default"].prototype['joined_at'] = undefined; -/** - * @member {Number} joined_member_count - */ -_SendBirdGroupChannel["default"].prototype['joined_member_count'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -_SendBirdGroupChannel["default"].prototype['last_message'] = undefined; -/** - * @member {Number} max_length_message - */ -_SendBirdGroupChannel["default"].prototype['max_length_message'] = undefined; -/** - * @member {Number} member_count - */ -_SendBirdGroupChannel["default"].prototype['member_count'] = undefined; -/** - * @member {Array.} members - */ -_SendBirdGroupChannel["default"].prototype['members'] = undefined; -/** - * @member {Number} message_offset_timestamp - */ -_SendBirdGroupChannel["default"].prototype['message_offset_timestamp'] = undefined; -/** - * @member {Number} message_survival_seconds - */ -_SendBirdGroupChannel["default"].prototype['message_survival_seconds'] = undefined; -/** - * @member {String} my_count_preference - */ -_SendBirdGroupChannel["default"].prototype['my_count_preference'] = undefined; -/** - * @member {Number} my_last_read - */ -_SendBirdGroupChannel["default"].prototype['my_last_read'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyMemberStateEnum} my_member_state - */ -_SendBirdGroupChannel["default"].prototype['my_member_state'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyMutedStateEnum} my_muted_state - */ -_SendBirdGroupChannel["default"].prototype['my_muted_state'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyPushTriggerOptionEnum} my_push_trigger_option - */ -_SendBirdGroupChannel["default"].prototype['my_push_trigger_option'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyRoleEnum} my_role - */ -_SendBirdGroupChannel["default"].prototype['my_role'] = undefined; -/** - * @member {String} name - */ -_SendBirdGroupChannel["default"].prototype['name'] = undefined; -/** - * @member {Array.} operators - */ -_SendBirdGroupChannel["default"].prototype['operators'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -_SendBirdGroupChannel["default"].prototype['sms_fallback'] = undefined; -/** - * @member {Number} unread_mention_count - */ -_SendBirdGroupChannel["default"].prototype['unread_mention_count'] = undefined; -/** - * @member {Number} unread_message_count - */ -_SendBirdGroupChannel["default"].prototype['unread_message_count'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -_SendBirdGroupChannel["default"].prototype['channel'] = undefined; -// Implement SendBirdOpenChannel interface: -/** - * @member {String} name - */ -_SendBirdOpenChannel["default"].prototype['name'] = undefined; -/** - * @member {String} custom_type - */ -_SendBirdOpenChannel["default"].prototype['custom_type'] = undefined; -/** - * @member {String} channel_url - */ -_SendBirdOpenChannel["default"].prototype['channel_url'] = undefined; -/** - * @member {Number} created_at - */ -_SendBirdOpenChannel["default"].prototype['created_at'] = undefined; -/** - * @member {String} cover_url - */ -_SendBirdOpenChannel["default"].prototype['cover_url'] = undefined; -/** - * @member {module:model/SendBirdUser} creator - */ -_SendBirdOpenChannel["default"].prototype['creator'] = undefined; -/** - * @member {String} data - */ -_SendBirdOpenChannel["default"].prototype['data'] = undefined; -/** - * @member {Boolean} is_dynamic_partitioned - */ -_SendBirdOpenChannel["default"].prototype['is_dynamic_partitioned'] = undefined; -/** - * @member {Boolean} is_ephemeral - */ -_SendBirdOpenChannel["default"].prototype['is_ephemeral'] = undefined; -/** - * @member {Boolean} is_frozen - */ -_SendBirdOpenChannel["default"].prototype['is_frozen'] = undefined; -/** - * @member {Number} max_length_message - */ -_SendBirdOpenChannel["default"].prototype['max_length_message'] = undefined; -/** - * @member {Array.} operators - */ -_SendBirdOpenChannel["default"].prototype['operators'] = undefined; -/** - * @member {Number} participant_count - */ -_SendBirdOpenChannel["default"].prototype['participant_count'] = undefined; -/** - * @member {Boolean} freeze - */ -_SendBirdOpenChannel["default"].prototype['freeze'] = undefined; - -/** - * Allowed values for the hidden_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['HiddenStateEnum'] = { - /** - * value: "hidden_allow_auto_unhide" - * @const - */ - "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", - /** - * value: "hidden_prevent_auto_unhide" - * @const - */ - "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", - /** - * value: "unhidden" - * @const - */ - "unhidden": "unhidden" -}; - -/** - * Allowed values for the my_member_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyMemberStateEnum'] = { - /** - * value: "invited" - * @const - */ - "invited": "invited", - /** - * value: "joined" - * @const - */ - "joined": "joined", - /** - * value: "none" - * @const - */ - "none": "none" -}; - -/** - * Allowed values for the my_muted_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyMutedStateEnum'] = { - /** - * value: "muted" - * @const - */ - "muted": "muted", - /** - * value: "unmuted" - * @const - */ - "unmuted": "unmuted" -}; - -/** - * Allowed values for the my_push_trigger_option property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyPushTriggerOptionEnum'] = { - /** - * value: "all" - * @const - */ - "all": "all", - /** - * value: "default" - * @const - */ - "default": "default", - /** - * value: "mention_only" - * @const - */ - "mention_only": "mention_only", - /** - * value: "false" - * @const - */ - "false": "false" -}; - -/** - * Allowed values for the my_role property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyRoleEnum'] = { - /** - * value: "" - * @const - */ - "empty": "", - /** - * value: "none" - * @const - */ - "none": "none", - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; -var _default = SendBirdChannelResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdEmoji.js b/dist/model/SendBirdEmoji.js deleted file mode 100644 index 44292ec..0000000 --- a/dist/model/SendBirdEmoji.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdEmoji model module. - * @module model/SendBirdEmoji - * @version 0.0.16 - */ -var SendBirdEmoji = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdEmoji. - * @alias module:model/SendBirdEmoji - */ - function SendBirdEmoji() { - _classCallCheck(this, SendBirdEmoji); - SendBirdEmoji.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdEmoji, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdEmoji from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdEmoji} obj Optional instance to populate. - * @return {module:model/SendBirdEmoji} The populated SendBirdEmoji instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdEmoji(); - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return SendBirdEmoji; -}(); -/** - * @member {String} key - */ -SendBirdEmoji.prototype['key'] = undefined; - -/** - * @member {String} url - */ -SendBirdEmoji.prototype['url'] = undefined; -var _default = SendBirdEmoji; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdEmojiCategory.js b/dist/model/SendBirdEmojiCategory.js deleted file mode 100644 index 9450b85..0000000 --- a/dist/model/SendBirdEmojiCategory.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdEmoji = _interopRequireDefault(require("./SendBirdEmoji")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdEmojiCategory model module. - * @module model/SendBirdEmojiCategory - * @version 0.0.16 - */ -var SendBirdEmojiCategory = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdEmojiCategory. - * @alias module:model/SendBirdEmojiCategory - */ - function SendBirdEmojiCategory() { - _classCallCheck(this, SendBirdEmojiCategory); - SendBirdEmojiCategory.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdEmojiCategory, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdEmojiCategory from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdEmojiCategory} obj Optional instance to populate. - * @return {module:model/SendBirdEmojiCategory} The populated SendBirdEmojiCategory instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdEmojiCategory(); - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = _ApiClient["default"].convertToType(data['emojis'], [_SendBirdEmoji["default"]]); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return SendBirdEmojiCategory; -}(); -/** - * @member {Array.} emojis - */ -SendBirdEmojiCategory.prototype['emojis'] = undefined; - -/** - * @member {Number} id - */ -SendBirdEmojiCategory.prototype['id'] = undefined; - -/** - * @member {String} name - */ -SendBirdEmojiCategory.prototype['name'] = undefined; - -/** - * @member {String} url - */ -SendBirdEmojiCategory.prototype['url'] = undefined; -var _default = SendBirdEmojiCategory; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdFileMessageParams.js b/dist/model/SendBirdFileMessageParams.js deleted file mode 100644 index 63b1562..0000000 --- a/dist/model/SendBirdFileMessageParams.js +++ /dev/null @@ -1,230 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdAppleCriticalAlertOptions = _interopRequireDefault(require("./SendBirdAppleCriticalAlertOptions")); -var _SendBirdMessageMetaArray = _interopRequireDefault(require("./SendBirdMessageMetaArray")); -var _SendBirdThumbnailSize = _interopRequireDefault(require("./SendBirdThumbnailSize")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdFileMessageParams model module. - * @module model/SendBirdFileMessageParams - * @version 0.0.16 - */ -var SendBirdFileMessageParams = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdFileMessageParams. - * @alias module:model/SendBirdFileMessageParams - */ - function SendBirdFileMessageParams() { - _classCallCheck(this, SendBirdFileMessageParams); - SendBirdFileMessageParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdFileMessageParams, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdFileMessageParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdFileMessageParams} obj Optional instance to populate. - * @return {module:model/SendBirdFileMessageParams} The populated SendBirdFileMessageParams instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdFileMessageParams(); - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = _SendBirdAppleCriticalAlertOptions["default"].constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('file')) { - obj['file'] = 'Blob'.constructFromObject(data['file']); - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String'); - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'Number'); - } - if (data.hasOwnProperty('file_url')) { - obj['file_url'] = _ApiClient["default"].convertToType(data['file_url'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('meta_array_keys')) { - obj['meta_array_keys'] = _ApiClient["default"].convertToType(data['meta_array_keys'], ['String']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = _ApiClient["default"].convertToType(data['meta_arrays'], [_SendBirdMessageMetaArray["default"]]); - } - if (data.hasOwnProperty('mime_type')) { - obj['mime_type'] = _ApiClient["default"].convertToType(data['mime_type'], 'String'); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('push_notification_delivery_option')) { - obj['push_notification_delivery_option'] = _ApiClient["default"].convertToType(data['push_notification_delivery_option'], 'String'); - } - if (data.hasOwnProperty('thumbnail_sizes')) { - obj['thumbnail_sizes'] = _ApiClient["default"].convertToType(data['thumbnail_sizes'], [_SendBirdThumbnailSize["default"]]); - } - } - return obj; - } - }]); - return SendBirdFileMessageParams; -}(); -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdFileMessageParams.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdFileMessageParams.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdFileMessageParams.prototype['data'] = undefined; - -/** - * @member {Blob} file - */ -SendBirdFileMessageParams.prototype['file'] = undefined; - -/** - * @member {String} file_name - */ -SendBirdFileMessageParams.prototype['file_name'] = undefined; - -/** - * @member {Number} file_size - */ -SendBirdFileMessageParams.prototype['file_size'] = undefined; - -/** - * @member {String} file_url - */ -SendBirdFileMessageParams.prototype['file_url'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdFileMessageParams.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {module:model/SendBirdFileMessageParams.MentionTypeEnum} mention_type - */ -SendBirdFileMessageParams.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_user_ids - */ -SendBirdFileMessageParams.prototype['mentioned_user_ids'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdFileMessageParams.prototype['mentioned_users'] = undefined; - -/** - * @member {Array.} meta_array_keys - */ -SendBirdFileMessageParams.prototype['meta_array_keys'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdFileMessageParams.prototype['meta_arrays'] = undefined; - -/** - * @member {String} mime_type - */ -SendBirdFileMessageParams.prototype['mime_type'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdFileMessageParams.prototype['parent_message_id'] = undefined; - -/** - * @member {module:model/SendBirdFileMessageParams.PushNotificationDeliveryOptionEnum} push_notification_delivery_option - */ -SendBirdFileMessageParams.prototype['push_notification_delivery_option'] = undefined; - -/** - * @member {Array.} thumbnail_sizes - */ -SendBirdFileMessageParams.prototype['thumbnail_sizes'] = undefined; - -/** - * Allowed values for the mention_type property. - * @enum {String} - * @readonly - */ -SendBirdFileMessageParams['MentionTypeEnum'] = { - /** - * value: "channel" - * @const - */ - "channel": "channel", - /** - * value: "users" - * @const - */ - "users": "users" -}; - -/** - * Allowed values for the push_notification_delivery_option property. - * @enum {String} - * @readonly - */ -SendBirdFileMessageParams['PushNotificationDeliveryOptionEnum'] = { - /** - * value: "default" - * @const - */ - "default": "default", - /** - * value: "suppress" - * @const - */ - "suppress": "suppress" -}; -var _default = SendBirdFileMessageParams; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannel.js b/dist/model/SendBirdGroupChannel.js deleted file mode 100644 index 37fb22e..0000000 --- a/dist/model/SendBirdGroupChannel.js +++ /dev/null @@ -1,529 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannelChannel = _interopRequireDefault(require("./SendBirdGroupChannelChannel")); -var _SendBirdGroupChannelCreatedBy = _interopRequireDefault(require("./SendBirdGroupChannelCreatedBy")); -var _SendBirdGroupChannelDisappearingMessage = _interopRequireDefault(require("./SendBirdGroupChannelDisappearingMessage")); -var _SendBirdGroupChannelInviter = _interopRequireDefault(require("./SendBirdGroupChannelInviter")); -var _SendBirdGroupChannelLastMessage = _interopRequireDefault(require("./SendBirdGroupChannelLastMessage")); -var _SendBirdGroupChannelSmsFallback = _interopRequireDefault(require("./SendBirdGroupChannelSmsFallback")); -var _SendBirdMember = _interopRequireDefault(require("./SendBirdMember")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannel model module. - * @module model/SendBirdGroupChannel - * @version 0.0.16 - */ -var SendBirdGroupChannel = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannel. - * @alias module:model/SendBirdGroupChannel - */ - function SendBirdGroupChannel() { - _classCallCheck(this, SendBirdGroupChannel); - SendBirdGroupChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannel} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannel} The populated SendBirdGroupChannel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannel(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = _SendBirdGroupChannelCreatedBy["default"].constructFromObject(data['created_by']); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = _SendBirdUser["default"].constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('disappearing_message')) { - obj['disappearing_message'] = _SendBirdGroupChannelDisappearingMessage["default"].constructFromObject(data['disappearing_message']); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); - } - if (data.hasOwnProperty('ignore_profanity_filter')) { - obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); - } - if (data.hasOwnProperty('hidden_state')) { - obj['hidden_state'] = _ApiClient["default"].convertToType(data['hidden_state'], 'String'); - } - if (data.hasOwnProperty('invited_at')) { - obj['invited_at'] = _ApiClient["default"].convertToType(data['invited_at'], 'Number'); - } - if (data.hasOwnProperty('inviter')) { - obj['inviter'] = _SendBirdGroupChannelInviter["default"].constructFromObject(data['inviter']); - } - if (data.hasOwnProperty('is_access_code_required')) { - obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); - } - if (data.hasOwnProperty('is_broadcast')) { - obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = _ApiClient["default"].convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('is_discoverable')) { - obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = _ApiClient["default"].convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('is_hidden')) { - obj['is_hidden'] = _ApiClient["default"].convertToType(data['is_hidden'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_push_enabled')) { - obj['is_push_enabled'] = _ApiClient["default"].convertToType(data['is_push_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('joined_at')) { - obj['joined_at'] = _ApiClient["default"].convertToType(data['joined_at'], 'Number'); - } - if (data.hasOwnProperty('joined_member_count')) { - obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); - } - if (data.hasOwnProperty('last_message')) { - obj['last_message'] = _SendBirdGroupChannelLastMessage["default"].constructFromObject(data['last_message']); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); - } - if (data.hasOwnProperty('members')) { - obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendBirdMember["default"]]); - } - if (data.hasOwnProperty('message_offset_timestamp')) { - obj['message_offset_timestamp'] = _ApiClient["default"].convertToType(data['message_offset_timestamp'], 'Number'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('my_count_preference')) { - obj['my_count_preference'] = _ApiClient["default"].convertToType(data['my_count_preference'], 'String'); - } - if (data.hasOwnProperty('my_last_read')) { - obj['my_last_read'] = _ApiClient["default"].convertToType(data['my_last_read'], 'Number'); - } - if (data.hasOwnProperty('my_member_state')) { - obj['my_member_state'] = _ApiClient["default"].convertToType(data['my_member_state'], 'String'); - } - if (data.hasOwnProperty('my_muted_state')) { - obj['my_muted_state'] = _ApiClient["default"].convertToType(data['my_muted_state'], 'String'); - } - if (data.hasOwnProperty('my_push_trigger_option')) { - obj['my_push_trigger_option'] = _ApiClient["default"].convertToType(data['my_push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('my_role')) { - obj['my_role'] = _ApiClient["default"].convertToType(data['my_role'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [Object]); - } - if (data.hasOwnProperty('sms_fallback')) { - obj['sms_fallback'] = _SendBirdGroupChannelSmsFallback["default"].constructFromObject(data['sms_fallback']); - } - if (data.hasOwnProperty('unread_mention_count')) { - obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('unread_message_count')) { - obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = _SendBirdGroupChannelChannel["default"].constructFromObject(data['channel']); - } - } - return obj; - } - }]); - return SendBirdGroupChannel; -}(); -/** - * @member {String} channel_url - */ -SendBirdGroupChannel.prototype['channel_url'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdGroupChannel.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannel.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -SendBirdGroupChannel.prototype['created_by'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdGroupChannel.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannel.prototype['data'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -SendBirdGroupChannel.prototype['disappearing_message'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdGroupChannel.prototype['freeze'] = undefined; - -/** - * @member {Boolean} ignore_profanity_filter - */ -SendBirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.HiddenStateEnum} hidden_state - */ -SendBirdGroupChannel.prototype['hidden_state'] = undefined; - -/** - * @member {Number} invited_at - */ -SendBirdGroupChannel.prototype['invited_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -SendBirdGroupChannel.prototype['inviter'] = undefined; - -/** - * @member {Boolean} is_access_code_required - */ -SendBirdGroupChannel.prototype['is_access_code_required'] = undefined; - -/** - * @member {Boolean} is_broadcast - */ -SendBirdGroupChannel.prototype['is_broadcast'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdGroupChannel.prototype['is_created'] = undefined; - -/** - * @member {Boolean} is_discoverable - */ -SendBirdGroupChannel.prototype['is_discoverable'] = undefined; - -/** - * @member {Boolean} is_distinct - */ -SendBirdGroupChannel.prototype['is_distinct'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdGroupChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdGroupChannel.prototype['is_frozen'] = undefined; - -/** - * @member {Boolean} is_hidden - */ -SendBirdGroupChannel.prototype['is_hidden'] = undefined; - -/** - * @member {Boolean} is_public - */ -SendBirdGroupChannel.prototype['is_public'] = undefined; - -/** - * @member {Boolean} is_push_enabled - */ -SendBirdGroupChannel.prototype['is_push_enabled'] = undefined; - -/** - * @member {Boolean} is_super - */ -SendBirdGroupChannel.prototype['is_super'] = undefined; - -/** - * @member {Number} joined_at - */ -SendBirdGroupChannel.prototype['joined_at'] = undefined; - -/** - * @member {Number} joined_member_count - */ -SendBirdGroupChannel.prototype['joined_member_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -SendBirdGroupChannel.prototype['last_message'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdGroupChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdGroupChannel.prototype['member_count'] = undefined; - -/** - * @member {Array.} members - */ -SendBirdGroupChannel.prototype['members'] = undefined; - -/** - * @member {Number} message_offset_timestamp - */ -SendBirdGroupChannel.prototype['message_offset_timestamp'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannel.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} my_count_preference - */ -SendBirdGroupChannel.prototype['my_count_preference'] = undefined; - -/** - * @member {Number} my_last_read - */ -SendBirdGroupChannel.prototype['my_last_read'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyMemberStateEnum} my_member_state - */ -SendBirdGroupChannel.prototype['my_member_state'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyMutedStateEnum} my_muted_state - */ -SendBirdGroupChannel.prototype['my_muted_state'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyPushTriggerOptionEnum} my_push_trigger_option - */ -SendBirdGroupChannel.prototype['my_push_trigger_option'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyRoleEnum} my_role - */ -SendBirdGroupChannel.prototype['my_role'] = undefined; - -/** - * @member {String} name - */ -SendBirdGroupChannel.prototype['name'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdGroupChannel.prototype['operators'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -SendBirdGroupChannel.prototype['sms_fallback'] = undefined; - -/** - * @member {Number} unread_mention_count - */ -SendBirdGroupChannel.prototype['unread_mention_count'] = undefined; - -/** - * @member {Number} unread_message_count - */ -SendBirdGroupChannel.prototype['unread_message_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -SendBirdGroupChannel.prototype['channel'] = undefined; - -/** - * Allowed values for the hidden_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['HiddenStateEnum'] = { - /** - * value: "hidden_allow_auto_unhide" - * @const - */ - "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", - /** - * value: "hidden_prevent_auto_unhide" - * @const - */ - "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", - /** - * value: "unhidden" - * @const - */ - "unhidden": "unhidden" -}; - -/** - * Allowed values for the my_member_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyMemberStateEnum'] = { - /** - * value: "invited" - * @const - */ - "invited": "invited", - /** - * value: "joined" - * @const - */ - "joined": "joined", - /** - * value: "none" - * @const - */ - "none": "none" -}; - -/** - * Allowed values for the my_muted_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyMutedStateEnum'] = { - /** - * value: "muted" - * @const - */ - "muted": "muted", - /** - * value: "unmuted" - * @const - */ - "unmuted": "unmuted" -}; - -/** - * Allowed values for the my_push_trigger_option property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyPushTriggerOptionEnum'] = { - /** - * value: "all" - * @const - */ - "all": "all", - /** - * value: "default" - * @const - */ - "default": "default", - /** - * value: "mention_only" - * @const - */ - "mention_only": "mention_only", - /** - * value: "false" - * @const - */ - "false": "false" -}; - -/** - * Allowed values for the my_role property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyRoleEnum'] = { - /** - * value: "" - * @const - */ - "empty": "", - /** - * value: "none" - * @const - */ - "none": "none", - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; -var _default = SendBirdGroupChannel; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelChannel.js b/dist/model/SendBirdGroupChannelChannel.js deleted file mode 100644 index b9b6146..0000000 --- a/dist/model/SendBirdGroupChannelChannel.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelChannel model module. - * @module model/SendBirdGroupChannelChannel - * @version 0.0.16 - */ -var SendBirdGroupChannelChannel = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelChannel. - * @alias module:model/SendBirdGroupChannelChannel - */ - function SendBirdGroupChannelChannel() { - _classCallCheck(this, SendBirdGroupChannelChannel); - SendBirdGroupChannelChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelChannel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelChannel} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelChannel} The populated SendBirdGroupChannelChannel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelChannel(); - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelChannel; -}(); -/** - * @member {String} channel_url - */ -SendBirdGroupChannelChannel.prototype['channel_url'] = undefined; - -/** - * @member {String} name - */ -SendBirdGroupChannelChannel.prototype['name'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdGroupChannelChannel.prototype['cover_url'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannelChannel.prototype['data'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelChannel.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannelChannel.prototype['custom_type'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdGroupChannelChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdGroupChannelChannel.prototype['member_count'] = undefined; -var _default = SendBirdGroupChannelChannel; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelCollection.js b/dist/model/SendBirdGroupChannelCollection.js deleted file mode 100644 index 76590ea..0000000 --- a/dist/model/SendBirdGroupChannelCollection.js +++ /dev/null @@ -1,71 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdGroupChannel = _interopRequireDefault(require("./SendBirdGroupChannel")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelCollection model module. - * @module model/SendBirdGroupChannelCollection - * @version 0.0.16 - */ -var SendBirdGroupChannelCollection = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelCollection. - * @alias module:model/SendBirdGroupChannelCollection - */ - function SendBirdGroupChannelCollection() { - _classCallCheck(this, SendBirdGroupChannelCollection); - SendBirdGroupChannelCollection.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelCollection, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelCollection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelCollection} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelCollection} The populated SendBirdGroupChannelCollection instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelCollection(); - if (data.hasOwnProperty('channel_list')) { - obj['channel_list'] = _ApiClient["default"].convertToType(data['channel_list'], [_SendBirdGroupChannel["default"]]); - } - if (data.hasOwnProperty('has_more')) { - obj['has_more'] = _ApiClient["default"].convertToType(data['has_more'], 'Boolean'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelCollection; -}(); -/** - * @member {Array.} channel_list - */ -SendBirdGroupChannelCollection.prototype['channel_list'] = undefined; - -/** - * @member {Boolean} has_more - */ -SendBirdGroupChannelCollection.prototype['has_more'] = undefined; -var _default = SendBirdGroupChannelCollection; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelCreatedBy.js b/dist/model/SendBirdGroupChannelCreatedBy.js deleted file mode 100644 index d12a493..0000000 --- a/dist/model/SendBirdGroupChannelCreatedBy.js +++ /dev/null @@ -1,86 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelCreatedBy model module. - * @module model/SendBirdGroupChannelCreatedBy - * @version 0.0.16 - */ -var SendBirdGroupChannelCreatedBy = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelCreatedBy. - * @alias module:model/SendBirdGroupChannelCreatedBy - */ - function SendBirdGroupChannelCreatedBy() { - _classCallCheck(this, SendBirdGroupChannelCreatedBy); - SendBirdGroupChannelCreatedBy.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelCreatedBy, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelCreatedBy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelCreatedBy} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelCreatedBy} The populated SendBirdGroupChannelCreatedBy instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelCreatedBy(); - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelCreatedBy; -}(); -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdGroupChannelCreatedBy.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdGroupChannelCreatedBy.prototype['nickname'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdGroupChannelCreatedBy.prototype['user_id'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdGroupChannelCreatedBy.prototype['profile_url'] = undefined; -var _default = SendBirdGroupChannelCreatedBy; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelDisappearingMessage.js b/dist/model/SendBirdGroupChannelDisappearingMessage.js deleted file mode 100644 index cc8ca43..0000000 --- a/dist/model/SendBirdGroupChannelDisappearingMessage.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelDisappearingMessage model module. - * @module model/SendBirdGroupChannelDisappearingMessage - * @version 0.0.16 - */ -var SendBirdGroupChannelDisappearingMessage = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelDisappearingMessage. - * @alias module:model/SendBirdGroupChannelDisappearingMessage - */ - function SendBirdGroupChannelDisappearingMessage() { - _classCallCheck(this, SendBirdGroupChannelDisappearingMessage); - SendBirdGroupChannelDisappearingMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelDisappearingMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelDisappearingMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelDisappearingMessage} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelDisappearingMessage} The populated SendBirdGroupChannelDisappearingMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelDisappearingMessage(); - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('is_triggered_by_message_read')) { - obj['is_triggered_by_message_read'] = _ApiClient["default"].convertToType(data['is_triggered_by_message_read'], 'Boolean'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelDisappearingMessage; -}(); -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannelDisappearingMessage.prototype['message_survival_seconds'] = undefined; - -/** - * @member {Boolean} is_triggered_by_message_read - */ -SendBirdGroupChannelDisappearingMessage.prototype['is_triggered_by_message_read'] = undefined; -var _default = SendBirdGroupChannelDisappearingMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelInviter.js b/dist/model/SendBirdGroupChannelInviter.js deleted file mode 100644 index ec5d33a..0000000 --- a/dist/model/SendBirdGroupChannelInviter.js +++ /dev/null @@ -1,336 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelInviter model module. - * @module model/SendBirdGroupChannelInviter - * @version 0.0.16 - */ -var SendBirdGroupChannelInviter = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelInviter. - * @alias module:model/SendBirdGroupChannelInviter - * @implements module:model/SendBirdUser - */ - function SendBirdGroupChannelInviter() { - _classCallCheck(this, SendBirdGroupChannelInviter); - _SendBirdUser["default"].initialize(this); - SendBirdGroupChannelInviter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelInviter, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelInviter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelInviter} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelInviter} The populated SendBirdGroupChannelInviter instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelInviter(); - _SendBirdUser["default"].constructFromObject(data, obj); - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = _ApiClient["default"].convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('has_ever_logged_in')) { - obj['has_ever_logged_in'] = _ApiClient["default"].convertToType(data['has_ever_logged_in'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('session_tokens')) { - obj['session_tokens'] = _ApiClient["default"].convertToType(data['session_tokens'], [Object]); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('phone_number')) { - obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String'); - } - if (data.hasOwnProperty('local')) { - obj['local'] = _ApiClient["default"].convertToType(data['local'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('is_hide_me_from_friends')) { - obj['is_hide_me_from_friends'] = _ApiClient["default"].convertToType(data['is_hide_me_from_friends'], 'Boolean'); - } - if (data.hasOwnProperty('is_shadow_blocked')) { - obj['is_shadow_blocked'] = _ApiClient["default"].convertToType(data['is_shadow_blocked'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = _ApiClient["default"].convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelInviter; -}(); -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdGroupChannelInviter.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdGroupChannelInviter.prototype['is_online'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdGroupChannelInviter.prototype['user_id'] = undefined; - -/** - * @member {String} access_token - */ -SendBirdGroupChannelInviter.prototype['access_token'] = undefined; - -/** - * @member {Boolean} has_ever_logged_in - */ -SendBirdGroupChannelInviter.prototype['has_ever_logged_in'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdGroupChannelInviter.prototype['is_active'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdGroupChannelInviter.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdGroupChannelInviter.prototype['nickname'] = undefined; - -/** - * @member {Array.} discovery_keys - */ -SendBirdGroupChannelInviter.prototype['discovery_keys'] = undefined; - -/** - * @member {Array.} session_tokens - */ -SendBirdGroupChannelInviter.prototype['session_tokens'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdGroupChannelInviter.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdGroupChannelInviter.prototype['profile_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelInviter.prototype['created_at'] = undefined; - -/** - * @member {String} phone_number - */ -SendBirdGroupChannelInviter.prototype['phone_number'] = undefined; - -/** - * @member {String} local - */ -SendBirdGroupChannelInviter.prototype['local'] = undefined; - -/** - * @member {String} locale - */ -SendBirdGroupChannelInviter.prototype['locale'] = undefined; - -/** - * @member {Boolean} is_hide_me_from_friends - */ -SendBirdGroupChannelInviter.prototype['is_hide_me_from_friends'] = undefined; - -/** - * @member {Boolean} is_shadow_blocked - */ -SendBirdGroupChannelInviter.prototype['is_shadow_blocked'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdGroupChannelInviter.prototype['is_created'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdGroupChannelInviter.prototype['metadata'] = undefined; - -/** - * @member {String} description - */ -SendBirdGroupChannelInviter.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdGroupChannelInviter.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -SendBirdGroupChannelInviter.prototype['start_at'] = undefined; - -// Implement SendBirdUser interface: -/** - * @member {Boolean} require_auth_for_profile_image - */ -_SendBirdUser["default"].prototype['require_auth_for_profile_image'] = undefined; -/** - * @member {Boolean} is_online - */ -_SendBirdUser["default"].prototype['is_online'] = undefined; -/** - * @member {String} user_id - */ -_SendBirdUser["default"].prototype['user_id'] = undefined; -/** - * @member {String} access_token - */ -_SendBirdUser["default"].prototype['access_token'] = undefined; -/** - * @member {Boolean} has_ever_logged_in - */ -_SendBirdUser["default"].prototype['has_ever_logged_in'] = undefined; -/** - * @member {Boolean} is_active - */ -_SendBirdUser["default"].prototype['is_active'] = undefined; -/** - * @member {Number} last_seen_at - */ -_SendBirdUser["default"].prototype['last_seen_at'] = undefined; -/** - * @member {String} nickname - */ -_SendBirdUser["default"].prototype['nickname'] = undefined; -/** - * @member {Array.} discovery_keys - */ -_SendBirdUser["default"].prototype['discovery_keys'] = undefined; -/** - * @member {Array.} session_tokens - */ -_SendBirdUser["default"].prototype['session_tokens'] = undefined; -/** - * @member {Array.} preferred_languages - */ -_SendBirdUser["default"].prototype['preferred_languages'] = undefined; -/** - * @member {String} profile_url - */ -_SendBirdUser["default"].prototype['profile_url'] = undefined; -/** - * @member {Number} created_at - */ -_SendBirdUser["default"].prototype['created_at'] = undefined; -/** - * @member {String} phone_number - */ -_SendBirdUser["default"].prototype['phone_number'] = undefined; -/** - * @member {String} local - */ -_SendBirdUser["default"].prototype['local'] = undefined; -/** - * @member {String} locale - */ -_SendBirdUser["default"].prototype['locale'] = undefined; -/** - * @member {Boolean} is_hide_me_from_friends - */ -_SendBirdUser["default"].prototype['is_hide_me_from_friends'] = undefined; -/** - * @member {Boolean} is_shadow_blocked - */ -_SendBirdUser["default"].prototype['is_shadow_blocked'] = undefined; -/** - * @member {Boolean} is_created - */ -_SendBirdUser["default"].prototype['is_created'] = undefined; -/** - * @member {Object} metadata - */ -_SendBirdUser["default"].prototype['metadata'] = undefined; -/** - * @member {String} description - */ -_SendBirdUser["default"].prototype['description'] = undefined; -/** - * @member {Number} end_at - */ -_SendBirdUser["default"].prototype['end_at'] = undefined; -/** - * @member {Number} start_at - */ -_SendBirdUser["default"].prototype['start_at'] = undefined; -var _default = SendBirdGroupChannelInviter; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelLastMessage.js b/dist/model/SendBirdGroupChannelLastMessage.js deleted file mode 100644 index 47e8b80..0000000 --- a/dist/model/SendBirdGroupChannelLastMessage.js +++ /dev/null @@ -1,386 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdMessageResponse = _interopRequireDefault(require("./SendBirdMessageResponse")); -var _SendBirdMessageResponseMentionedUsersInner = _interopRequireDefault(require("./SendBirdMessageResponseMentionedUsersInner")); -var _SendBirdMessageResponseUser = _interopRequireDefault(require("./SendBirdMessageResponseUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelLastMessage model module. - * @module model/SendBirdGroupChannelLastMessage - * @version 0.0.16 - */ -var SendBirdGroupChannelLastMessage = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelLastMessage. - * @alias module:model/SendBirdGroupChannelLastMessage - * @implements module:model/SendBirdMessageResponse - */ - function SendBirdGroupChannelLastMessage() { - _classCallCheck(this, SendBirdGroupChannelLastMessage); - _SendBirdMessageResponse["default"].initialize(this); - SendBirdGroupChannelLastMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelLastMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelLastMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelLastMessage} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelLastMessage} The populated SendBirdGroupChannelLastMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelLastMessage(); - _SendBirdMessageResponse["default"].constructFromObject(data, obj); - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdMessageResponseMentionedUsersInner["default"]]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = _ApiClient["default"].convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = _ApiClient["default"].convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = _ApiClient["default"].convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdMessageResponseUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ApiClient["default"].convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = _ApiClient["default"].convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = _ApiClient["default"].convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = _ApiClient["default"].convertToType(data['thread_info'], Object); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_info')) { - obj['parent_message_info'] = _ApiClient["default"].convertToType(data['parent_message_info'], Object); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - } - return obj; - } - }]); - return SendBirdGroupChannelLastMessage; -}(); -/** - * @member {Boolean} require_auth - */ -SendBirdGroupChannelLastMessage.prototype['require_auth'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannelLastMessage.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannelLastMessage.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdGroupChannelLastMessage.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -SendBirdGroupChannelLastMessage.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdGroupChannelLastMessage.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -SendBirdGroupChannelLastMessage.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -SendBirdGroupChannelLastMessage.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -SendBirdGroupChannelLastMessage.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -SendBirdGroupChannelLastMessage.prototype['file'] = undefined; - -/** - * @member {String} message - */ -SendBirdGroupChannelLastMessage.prototype['message'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannelLastMessage.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -SendBirdGroupChannelLastMessage.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdGroupChannelLastMessage.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -SendBirdGroupChannelLastMessage.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelLastMessage.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdGroupChannelLastMessage.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -SendBirdGroupChannelLastMessage.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdGroupChannelLastMessage.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdGroupChannelLastMessage.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdGroupChannelLastMessage.prototype['message_id'] = undefined; - -/** - * @member {Number} size - */ -SendBirdGroupChannelLastMessage.prototype['size'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -SendBirdGroupChannelLastMessage.prototype['sorted_metaarray'] = undefined; - -/** - * @member {Object} thread_info - */ -SendBirdGroupChannelLastMessage.prototype['thread_info'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdGroupChannelLastMessage.prototype['parent_message_id'] = undefined; - -/** - * @member {Object} parent_message_info - */ -SendBirdGroupChannelLastMessage.prototype['parent_message_info'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdGroupChannelLastMessage.prototype['is_reply_to_channel'] = undefined; - -// Implement SendBirdMessageResponse interface: -/** - * @member {Boolean} require_auth - */ -_SendBirdMessageResponse["default"].prototype['require_auth'] = undefined; -/** - * @member {Number} message_survival_seconds - */ -_SendBirdMessageResponse["default"].prototype['message_survival_seconds'] = undefined; -/** - * @member {String} custom_type - */ -_SendBirdMessageResponse["default"].prototype['custom_type'] = undefined; -/** - * @member {Array.} mentioned_users - */ -_SendBirdMessageResponse["default"].prototype['mentioned_users'] = undefined; -/** - * @member {Object} translations - */ -_SendBirdMessageResponse["default"].prototype['translations'] = undefined; -/** - * @member {Number} updated_at - */ -_SendBirdMessageResponse["default"].prototype['updated_at'] = undefined; -/** - * @member {Boolean} is_op_msg - */ -_SendBirdMessageResponse["default"].prototype['is_op_msg'] = undefined; -/** - * @member {Boolean} is_removed - */ -_SendBirdMessageResponse["default"].prototype['is_removed'] = undefined; -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -_SendBirdMessageResponse["default"].prototype['user'] = undefined; -/** - * @member {Object} file - */ -_SendBirdMessageResponse["default"].prototype['file'] = undefined; -/** - * @member {String} message - */ -_SendBirdMessageResponse["default"].prototype['message'] = undefined; -/** - * @member {String} data - */ -_SendBirdMessageResponse["default"].prototype['data'] = undefined; -/** - * @member {Number} message_retention_hour - */ -_SendBirdMessageResponse["default"].prototype['message_retention_hour'] = undefined; -/** - * @member {Boolean} silent - */ -_SendBirdMessageResponse["default"].prototype['silent'] = undefined; -/** - * @member {String} type - */ -_SendBirdMessageResponse["default"].prototype['type'] = undefined; -/** - * @member {Number} created_at - */ -_SendBirdMessageResponse["default"].prototype['created_at'] = undefined; -/** - * @member {String} channel_type - */ -_SendBirdMessageResponse["default"].prototype['channel_type'] = undefined; -/** - * @member {String} req_id - */ -_SendBirdMessageResponse["default"].prototype['req_id'] = undefined; -/** - * @member {String} mention_type - */ -_SendBirdMessageResponse["default"].prototype['mention_type'] = undefined; -/** - * @member {String} channel_url - */ -_SendBirdMessageResponse["default"].prototype['channel_url'] = undefined; -/** - * @member {Number} message_id - */ -_SendBirdMessageResponse["default"].prototype['message_id'] = undefined; -/** - * @member {Number} size - */ -_SendBirdMessageResponse["default"].prototype['size'] = undefined; -/** - * @member {Array.} sorted_metaarray - */ -_SendBirdMessageResponse["default"].prototype['sorted_metaarray'] = undefined; -/** - * @member {Object} thread_info - */ -_SendBirdMessageResponse["default"].prototype['thread_info'] = undefined; -/** - * @member {Number} parent_message_id - */ -_SendBirdMessageResponse["default"].prototype['parent_message_id'] = undefined; -/** - * @member {Object} parent_message_info - */ -_SendBirdMessageResponse["default"].prototype['parent_message_info'] = undefined; -/** - * @member {Boolean} is_reply_to_channel - */ -_SendBirdMessageResponse["default"].prototype['is_reply_to_channel'] = undefined; -var _default = SendBirdGroupChannelLastMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdGroupChannelSmsFallback.js b/dist/model/SendBirdGroupChannelSmsFallback.js deleted file mode 100644 index 8e4c323..0000000 --- a/dist/model/SendBirdGroupChannelSmsFallback.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdGroupChannelSmsFallback model module. - * @module model/SendBirdGroupChannelSmsFallback - * @version 0.0.16 - */ -var SendBirdGroupChannelSmsFallback = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdGroupChannelSmsFallback. - * @alias module:model/SendBirdGroupChannelSmsFallback - */ - function SendBirdGroupChannelSmsFallback() { - _classCallCheck(this, SendBirdGroupChannelSmsFallback); - SendBirdGroupChannelSmsFallback.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdGroupChannelSmsFallback, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdGroupChannelSmsFallback from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelSmsFallback} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelSmsFallback} The populated SendBirdGroupChannelSmsFallback instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelSmsFallback(); - if (data.hasOwnProperty('wait_seconds')) { - obj['wait_seconds'] = _ApiClient["default"].convertToType(data['wait_seconds'], 'Number'); - } - if (data.hasOwnProperty('exclude_user_ids')) { - obj['exclude_user_ids'] = _ApiClient["default"].convertToType(data['exclude_user_ids'], ['String']); - } - } - return obj; - } - }]); - return SendBirdGroupChannelSmsFallback; -}(); -/** - * @member {Number} wait_seconds - */ -SendBirdGroupChannelSmsFallback.prototype['wait_seconds'] = undefined; - -/** - * @member {Array.} exclude_user_ids - */ -SendBirdGroupChannelSmsFallback.prototype['exclude_user_ids'] = undefined; -var _default = SendBirdGroupChannelSmsFallback; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdMember.js b/dist/model/SendBirdMember.js deleted file mode 100644 index b84432d..0000000 --- a/dist/model/SendBirdMember.js +++ /dev/null @@ -1,261 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdRestrictionInfo = _interopRequireDefault(require("./SendBirdRestrictionInfo")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdMember model module. - * @module model/SendBirdMember - * @version 0.0.16 - */ -var SendBirdMember = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdMember. - * @alias module:model/SendBirdMember - */ - function SendBirdMember() { - _classCallCheck(this, SendBirdMember); - SendBirdMember.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdMember, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdMember from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMember} obj Optional instance to populate. - * @return {module:model/SendBirdMember} The populated SendBirdMember instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMember(); - if (data.hasOwnProperty('connection_status')) { - obj['connection_status'] = _ApiClient["default"].convertToType(data['connection_status'], 'String'); - } - if (data.hasOwnProperty('friend_discovery_key')) { - obj['friend_discovery_key'] = _ApiClient["default"].convertToType(data['friend_discovery_key'], 'String'); - } - if (data.hasOwnProperty('friend_name')) { - obj['friend_name'] = _ApiClient["default"].convertToType(data['friend_name'], 'String'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('plain_profile_url')) { - obj['plain_profile_url'] = _ApiClient["default"].convertToType(data['plain_profile_url'], 'String'); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = _ApiClient["default"].convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('muted_end_at')) { - obj['muted_end_at'] = _ApiClient["default"].convertToType(data['muted_end_at'], 'Number'); - } - if (data.hasOwnProperty('muted_description')) { - obj['muted_description'] = _ApiClient["default"].convertToType(data['muted_description'], 'String'); - } - if (data.hasOwnProperty('restriction_info')) { - obj['restriction_info'] = _SendBirdRestrictionInfo["default"].constructFromObject(data['restriction_info']); - } - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return SendBirdMember; -}(); -/** - * @member {String} connection_status - */ -SendBirdMember.prototype['connection_status'] = undefined; - -/** - * @member {String} friend_discovery_key - */ -SendBirdMember.prototype['friend_discovery_key'] = undefined; - -/** - * @member {String} friend_name - */ -SendBirdMember.prototype['friend_name'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdMember.prototype['is_active'] = undefined; - -/** - * @member {Boolean} is_muted - */ -SendBirdMember.prototype['is_muted'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdMember.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMember.prototype['nickname'] = undefined; - -/** - * @member {String} plain_profile_url - */ -SendBirdMember.prototype['plain_profile_url'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdMember.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMember.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth - */ -SendBirdMember.prototype['require_auth'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdMember.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdMember.prototype['metadata'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdMember.prototype['is_online'] = undefined; - -/** - * @member {Number} muted_end_at - */ -SendBirdMember.prototype['muted_end_at'] = undefined; - -/** - * @member {String} muted_description - */ -SendBirdMember.prototype['muted_description'] = undefined; - -/** - * @member {module:model/SendBirdRestrictionInfo} restriction_info - */ -SendBirdMember.prototype['restriction_info'] = undefined; - -/** - * @member {module:model/SendBirdMember.RoleEnum} role - */ -SendBirdMember.prototype['role'] = undefined; - -/** - * @member {module:model/SendBirdMember.StateEnum} state - */ -SendBirdMember.prototype['state'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdMember.prototype['user_id'] = undefined; - -/** - * Allowed values for the role property. - * @enum {String} - * @readonly - */ -SendBirdMember['RoleEnum'] = { - /** - * value: "" - * @const - */ - "empty": "", - /** - * value: "none" - * @const - */ - "none": "none", - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; - -/** - * Allowed values for the state property. - * @enum {String} - * @readonly - */ -SendBirdMember['StateEnum'] = { - /** - * value: "" - * @const - */ - "empty": "", - /** - * value: "invited" - * @const - */ - "invited": "invited", - /** - * value: "joined" - * @const - */ - "joined": "joined" -}; -var _default = SendBirdMember; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdMessageMetaArray.js b/dist/model/SendBirdMessageMetaArray.js deleted file mode 100644 index 07215e7..0000000 --- a/dist/model/SendBirdMessageMetaArray.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdMessageMetaArray model module. - * @module model/SendBirdMessageMetaArray - * @version 0.0.16 - */ -var SendBirdMessageMetaArray = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdMessageMetaArray. - * @alias module:model/SendBirdMessageMetaArray - */ - function SendBirdMessageMetaArray() { - _classCallCheck(this, SendBirdMessageMetaArray); - SendBirdMessageMetaArray.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdMessageMetaArray, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdMessageMetaArray from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageMetaArray} obj Optional instance to populate. - * @return {module:model/SendBirdMessageMetaArray} The populated SendBirdMessageMetaArray instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageMetaArray(); - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], ['String']); - } - } - return obj; - } - }]); - return SendBirdMessageMetaArray; -}(); -/** - * @member {String} key - */ -SendBirdMessageMetaArray.prototype['key'] = undefined; - -/** - * @member {Array.} value - */ -SendBirdMessageMetaArray.prototype['value'] = undefined; -var _default = SendBirdMessageMetaArray; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdMessageResponse.js b/dist/model/SendBirdMessageResponse.js deleted file mode 100644 index 575366f..0000000 --- a/dist/model/SendBirdMessageResponse.js +++ /dev/null @@ -1,272 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdMessageResponseMentionedUsersInner = _interopRequireDefault(require("./SendBirdMessageResponseMentionedUsersInner")); -var _SendBirdMessageResponseUser = _interopRequireDefault(require("./SendBirdMessageResponseUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdMessageResponse model module. - * @module model/SendBirdMessageResponse - * @version 0.0.16 - */ -var SendBirdMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdMessageResponse. - * @alias module:model/SendBirdMessageResponse - */ - function SendBirdMessageResponse() { - _classCallCheck(this, SendBirdMessageResponse); - SendBirdMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponse} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponse} The populated SendBirdMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponse(); - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdMessageResponseMentionedUsersInner["default"]]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = _ApiClient["default"].convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = _ApiClient["default"].convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = _ApiClient["default"].convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = _SendBirdMessageResponseUser["default"].constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ApiClient["default"].convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = _ApiClient["default"].convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = _ApiClient["default"].convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = _ApiClient["default"].convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = _ApiClient["default"].convertToType(data['thread_info'], Object); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_info')) { - obj['parent_message_info'] = _ApiClient["default"].convertToType(data['parent_message_info'], Object); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - } - return obj; - } - }]); - return SendBirdMessageResponse; -}(); -/** - * @member {Boolean} require_auth - */ -SendBirdMessageResponse.prototype['require_auth'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdMessageResponse.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdMessageResponse.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdMessageResponse.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -SendBirdMessageResponse.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -SendBirdMessageResponse.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -SendBirdMessageResponse.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -SendBirdMessageResponse.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -SendBirdMessageResponse.prototype['file'] = undefined; - -/** - * @member {String} message - */ -SendBirdMessageResponse.prototype['message'] = undefined; - -/** - * @member {String} data - */ -SendBirdMessageResponse.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -SendBirdMessageResponse.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdMessageResponse.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -SendBirdMessageResponse.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdMessageResponse.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdMessageResponse.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -SendBirdMessageResponse.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdMessageResponse.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdMessageResponse.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdMessageResponse.prototype['message_id'] = undefined; - -/** - * @member {Number} size - */ -SendBirdMessageResponse.prototype['size'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -SendBirdMessageResponse.prototype['sorted_metaarray'] = undefined; - -/** - * @member {Object} thread_info - */ -SendBirdMessageResponse.prototype['thread_info'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdMessageResponse.prototype['parent_message_id'] = undefined; - -/** - * @member {Object} parent_message_info - */ -SendBirdMessageResponse.prototype['parent_message_info'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdMessageResponse.prototype['is_reply_to_channel'] = undefined; -var _default = SendBirdMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdMessageResponseMentionedUsersInner.js b/dist/model/SendBirdMessageResponseMentionedUsersInner.js deleted file mode 100644 index 94bc3b3..0000000 --- a/dist/model/SendBirdMessageResponseMentionedUsersInner.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("./OcDeleteChannelByUrl200Response")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdMessageResponseMentionedUsersInner model module. - * @module model/SendBirdMessageResponseMentionedUsersInner - * @version 0.0.16 - */ -var SendBirdMessageResponseMentionedUsersInner = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdMessageResponseMentionedUsersInner. - * @alias module:model/SendBirdMessageResponseMentionedUsersInner - */ - function SendBirdMessageResponseMentionedUsersInner() { - _classCallCheck(this, SendBirdMessageResponseMentionedUsersInner); - SendBirdMessageResponseMentionedUsersInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdMessageResponseMentionedUsersInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdMessageResponseMentionedUsersInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponseMentionedUsersInner} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponseMentionedUsersInner} The populated SendBirdMessageResponseMentionedUsersInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponseMentionedUsersInner(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _OcDeleteChannelByUrl200Response["default"].constructFromObject(data['metadata']); - } - } - return obj; - } - }]); - return SendBirdMessageResponseMentionedUsersInner; -}(); -/** - * @member {String} user_id - */ -SendBirdMessageResponseMentionedUsersInner.prototype['user_id'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMessageResponseMentionedUsersInner.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMessageResponseMentionedUsersInner.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -SendBirdMessageResponseMentionedUsersInner.prototype['metadata'] = undefined; -var _default = SendBirdMessageResponseMentionedUsersInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdMessageResponseUser.js b/dist/model/SendBirdMessageResponseUser.js deleted file mode 100644 index 6b44652..0000000 --- a/dist/model/SendBirdMessageResponseUser.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _OcDeleteChannelByUrl200Response = _interopRequireDefault(require("./OcDeleteChannelByUrl200Response")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdMessageResponseUser model module. - * @module model/SendBirdMessageResponseUser - * @version 0.0.16 - */ -var SendBirdMessageResponseUser = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdMessageResponseUser. - * @alias module:model/SendBirdMessageResponseUser - */ - function SendBirdMessageResponseUser() { - _classCallCheck(this, SendBirdMessageResponseUser); - SendBirdMessageResponseUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdMessageResponseUser, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdMessageResponseUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponseUser} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponseUser} The populated SendBirdMessageResponseUser instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponseUser(); - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _OcDeleteChannelByUrl200Response["default"].constructFromObject(data['metadata']); - } - } - return obj; - } - }]); - return SendBirdMessageResponseUser; -}(); -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdMessageResponseUser.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdMessageResponseUser.prototype['is_active'] = undefined; - -/** - * @member {String} role - */ -SendBirdMessageResponseUser.prototype['role'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdMessageResponseUser.prototype['user_id'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMessageResponseUser.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMessageResponseUser.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -SendBirdMessageResponseUser.prototype['metadata'] = undefined; -var _default = SendBirdMessageResponseUser; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdOGImage.js b/dist/model/SendBirdOGImage.js deleted file mode 100644 index 8176b25..0000000 --- a/dist/model/SendBirdOGImage.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdOGImage model module. - * @module model/SendBirdOGImage - * @version 0.0.16 - */ -var SendBirdOGImage = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdOGImage. - * @alias module:model/SendBirdOGImage - */ - function SendBirdOGImage() { - _classCallCheck(this, SendBirdOGImage); - SendBirdOGImage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdOGImage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdOGImage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOGImage} obj Optional instance to populate. - * @return {module:model/SendBirdOGImage} The populated SendBirdOGImage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOGImage(); - if (data.hasOwnProperty('alt')) { - obj['alt'] = _ApiClient["default"].convertToType(data['alt'], 'String'); - } - if (data.hasOwnProperty('height')) { - obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); - } - if (data.hasOwnProperty('secure_url')) { - obj['secure_url'] = _ApiClient["default"].convertToType(data['secure_url'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdOGImage; -}(); -/** - * @member {String} alt - */ -SendBirdOGImage.prototype['alt'] = undefined; - -/** - * @member {Number} height - */ -SendBirdOGImage.prototype['height'] = undefined; - -/** - * @member {String} secure_url - */ -SendBirdOGImage.prototype['secure_url'] = undefined; - -/** - * @member {String} type - */ -SendBirdOGImage.prototype['type'] = undefined; - -/** - * @member {String} url - */ -SendBirdOGImage.prototype['url'] = undefined; - -/** - * @member {Number} width - */ -SendBirdOGImage.prototype['width'] = undefined; -var _default = SendBirdOGImage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdOGMetaData.js b/dist/model/SendBirdOGMetaData.js deleted file mode 100644 index ca1a763..0000000 --- a/dist/model/SendBirdOGMetaData.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdOGImage = _interopRequireDefault(require("./SendBirdOGImage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdOGMetaData model module. - * @module model/SendBirdOGMetaData - * @version 0.0.16 - */ -var SendBirdOGMetaData = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdOGMetaData. - * @alias module:model/SendBirdOGMetaData - */ - function SendBirdOGMetaData() { - _classCallCheck(this, SendBirdOGMetaData); - SendBirdOGMetaData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdOGMetaData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdOGMetaData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOGMetaData} obj Optional instance to populate. - * @return {module:model/SendBirdOGMetaData} The populated SendBirdOGMetaData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOGMetaData(); - if (data.hasOwnProperty('default_image')) { - obj['default_image'] = _SendBirdOGImage["default"].constructFromObject(data['default_image']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return SendBirdOGMetaData; -}(); -/** - * @member {module:model/SendBirdOGImage} default_image - */ -SendBirdOGMetaData.prototype['default_image'] = undefined; - -/** - * @member {String} description - */ -SendBirdOGMetaData.prototype['description'] = undefined; - -/** - * @member {String} title - */ -SendBirdOGMetaData.prototype['title'] = undefined; - -/** - * @member {String} url - */ -SendBirdOGMetaData.prototype['url'] = undefined; -var _default = SendBirdOGMetaData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdOpenChannel.js b/dist/model/SendBirdOpenChannel.js deleted file mode 100644 index 825476f..0000000 --- a/dist/model/SendBirdOpenChannel.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdOpenChannel model module. - * @module model/SendBirdOpenChannel - * @version 0.0.16 - */ -var SendBirdOpenChannel = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdOpenChannel. - * @alias module:model/SendBirdOpenChannel - */ - function SendBirdOpenChannel() { - _classCallCheck(this, SendBirdOpenChannel); - SendBirdOpenChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdOpenChannel, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdOpenChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOpenChannel} obj Optional instance to populate. - * @return {module:model/SendBirdOpenChannel} The populated SendBirdOpenChannel instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOpenChannel(); - if (data.hasOwnProperty('name')) { - obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = _SendBirdUser["default"].constructFromObject(data['creator']); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_dynamic_partitioned')) { - obj['is_dynamic_partitioned'] = _ApiClient["default"].convertToType(data['is_dynamic_partitioned'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = _ApiClient["default"].convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('participant_count')) { - obj['participant_count'] = _ApiClient["default"].convertToType(data['participant_count'], 'Number'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - }]); - return SendBirdOpenChannel; -}(); -/** - * @member {String} name - */ -SendBirdOpenChannel.prototype['name'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdOpenChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdOpenChannel.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdOpenChannel.prototype['created_at'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdOpenChannel.prototype['cover_url'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdOpenChannel.prototype['creator'] = undefined; - -/** - * @member {String} data - */ -SendBirdOpenChannel.prototype['data'] = undefined; - -/** - * @member {Boolean} is_dynamic_partitioned - */ -SendBirdOpenChannel.prototype['is_dynamic_partitioned'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdOpenChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdOpenChannel.prototype['is_frozen'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdOpenChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdOpenChannel.prototype['operators'] = undefined; - -/** - * @member {Number} participant_count - */ -SendBirdOpenChannel.prototype['participant_count'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdOpenChannel.prototype['freeze'] = undefined; -var _default = SendBirdOpenChannel; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdPlugin.js b/dist/model/SendBirdPlugin.js deleted file mode 100644 index 209acd2..0000000 --- a/dist/model/SendBirdPlugin.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdPlugin model module. - * @module model/SendBirdPlugin - * @version 0.0.16 - */ -var SendBirdPlugin = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdPlugin. - * @alias module:model/SendBirdPlugin - */ - function SendBirdPlugin() { - _classCallCheck(this, SendBirdPlugin); - SendBirdPlugin.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdPlugin, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdPlugin from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPlugin} obj Optional instance to populate. - * @return {module:model/SendBirdPlugin} The populated SendBirdPlugin instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPlugin(); - if (data.hasOwnProperty('detail')) { - obj['detail'] = _ApiClient["default"].convertToType(data['detail'], Object); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('vendor')) { - obj['vendor'] = _ApiClient["default"].convertToType(data['vendor'], 'String'); - } - } - return obj; - } - }]); - return SendBirdPlugin; -}(); -/** - * @member {Object} detail - */ -SendBirdPlugin.prototype['detail'] = undefined; - -/** - * @member {String} type - */ -SendBirdPlugin.prototype['type'] = undefined; - -/** - * @member {String} vendor - */ -SendBirdPlugin.prototype['vendor'] = undefined; -var _default = SendBirdPlugin; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdPoll.js b/dist/model/SendBirdPoll.js deleted file mode 100644 index 6835ee3..0000000 --- a/dist/model/SendBirdPoll.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdPollDetails = _interopRequireDefault(require("./SendBirdPollDetails")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdPoll model module. - * @module model/SendBirdPoll - * @version 0.0.16 - */ -var SendBirdPoll = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdPoll. - * @alias module:model/SendBirdPoll - */ - function SendBirdPoll() { - _classCallCheck(this, SendBirdPoll); - SendBirdPoll.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdPoll, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdPoll from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPoll} obj Optional instance to populate. - * @return {module:model/SendBirdPoll} The populated SendBirdPoll instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPoll(); - if (data.hasOwnProperty('details')) { - obj['details'] = _SendBirdPollDetails["default"].constructFromObject(data['details']); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); - } - } - return obj; - } - }]); - return SendBirdPoll; -}(); -/** - * @member {module:model/SendBirdPollDetails} details - */ -SendBirdPoll.prototype['details'] = undefined; - -/** - * @member {Number} id - */ -SendBirdPoll.prototype['id'] = undefined; - -/** - * @member {String} title - */ -SendBirdPoll.prototype['title'] = undefined; -var _default = SendBirdPoll; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdPollDetails.js b/dist/model/SendBirdPollDetails.js deleted file mode 100644 index c51492f..0000000 --- a/dist/model/SendBirdPollDetails.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdPollOption = _interopRequireDefault(require("./SendBirdPollOption")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdPollDetails model module. - * @module model/SendBirdPollDetails - * @version 0.0.16 - */ -var SendBirdPollDetails = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdPollDetails. - * @alias module:model/SendBirdPollDetails - */ - function SendBirdPollDetails() { - _classCallCheck(this, SendBirdPollDetails); - SendBirdPollDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdPollDetails, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdPollDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollDetails} obj Optional instance to populate. - * @return {module:model/SendBirdPollDetails} The populated SendBirdPollDetails instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollDetails(); - if (data.hasOwnProperty('allow_multiple_votes')) { - obj['allow_multiple_votes'] = _ApiClient["default"].convertToType(data['allow_multiple_votes'], 'Boolean'); - } - if (data.hasOwnProperty('allow_user_suggestion')) { - obj['allow_user_suggestion'] = _ApiClient["default"].convertToType(data['allow_user_suggestion'], 'Boolean'); - } - if (data.hasOwnProperty('close_at')) { - obj['close_at'] = _ApiClient["default"].convertToType(data['close_at'], 'Number'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = _ApiClient["default"].convertToType(data['created_by'], 'String'); - } - if (data.hasOwnProperty('is_anonymous')) { - obj['is_anonymous'] = _ApiClient["default"].convertToType(data['is_anonymous'], 'Boolean'); - } - if (data.hasOwnProperty('options')) { - obj['options'] = _ApiClient["default"].convertToType(data['options'], [_SendBirdPollOption["default"]]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('voter_count')) { - obj['voter_count'] = _ApiClient["default"].convertToType(data['voter_count'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdPollDetails; -}(); -/** - * @member {Boolean} allow_multiple_votes - */ -SendBirdPollDetails.prototype['allow_multiple_votes'] = undefined; - -/** - * @member {Boolean} allow_user_suggestion - */ -SendBirdPollDetails.prototype['allow_user_suggestion'] = undefined; - -/** - * @member {Number} close_at - */ -SendBirdPollDetails.prototype['close_at'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdPollDetails.prototype['created_at'] = undefined; - -/** - * @member {String} created_by - */ -SendBirdPollDetails.prototype['created_by'] = undefined; - -/** - * @member {Boolean} is_anonymous - */ -SendBirdPollDetails.prototype['is_anonymous'] = undefined; - -/** - * @member {Array.} options - */ -SendBirdPollDetails.prototype['options'] = undefined; - -/** - * @member {module:model/SendBirdPollDetails.StatusEnum} status - */ -SendBirdPollDetails.prototype['status'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdPollDetails.prototype['updated_at'] = undefined; - -/** - * @member {Number} voter_count - */ -SendBirdPollDetails.prototype['voter_count'] = undefined; - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -SendBirdPollDetails['StatusEnum'] = { - /** - * value: "closed" - * @const - */ - "closed": "closed", - /** - * value: "open" - * @const - */ - "open": "open", - /** - * value: "removed" - * @const - */ - "removed": "removed" -}; -var _default = SendBirdPollDetails; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdPollOption.js b/dist/model/SendBirdPollOption.js deleted file mode 100644 index 3bd68b8..0000000 --- a/dist/model/SendBirdPollOption.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdPollOption model module. - * @module model/SendBirdPollOption - * @version 0.0.16 - */ -var SendBirdPollOption = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdPollOption. - * @alias module:model/SendBirdPollOption - */ - function SendBirdPollOption() { - _classCallCheck(this, SendBirdPollOption); - SendBirdPollOption.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdPollOption, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdPollOption from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollOption} obj Optional instance to populate. - * @return {module:model/SendBirdPollOption} The populated SendBirdPollOption instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollOption(); - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = _ApiClient["default"].convertToType(data['created_by'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('partial_voters')) { - obj['partial_voters'] = _ApiClient["default"].convertToType(data['partial_voters'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('poll_id')) { - obj['poll_id'] = _ApiClient["default"].convertToType(data['poll_id'], 'Number'); - } - if (data.hasOwnProperty('text')) { - obj['text'] = _ApiClient["default"].convertToType(data['text'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('vote_count')) { - obj['vote_count'] = _ApiClient["default"].convertToType(data['vote_count'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdPollOption; -}(); -/** - * @member {Number} created_at - */ -SendBirdPollOption.prototype['created_at'] = undefined; - -/** - * @member {String} created_by - */ -SendBirdPollOption.prototype['created_by'] = undefined; - -/** - * @member {Number} id - */ -SendBirdPollOption.prototype['id'] = undefined; - -/** - * @member {Array.} partial_voters - */ -SendBirdPollOption.prototype['partial_voters'] = undefined; - -/** - * @member {Number} poll_id - */ -SendBirdPollOption.prototype['poll_id'] = undefined; - -/** - * @member {String} text - */ -SendBirdPollOption.prototype['text'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdPollOption.prototype['updated_at'] = undefined; - -/** - * @member {Number} vote_count - */ -SendBirdPollOption.prototype['vote_count'] = undefined; -var _default = SendBirdPollOption; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdPollUpdatedVoteCount.js b/dist/model/SendBirdPollUpdatedVoteCount.js deleted file mode 100644 index d09fb77..0000000 --- a/dist/model/SendBirdPollUpdatedVoteCount.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdPollUpdatedVoteCount model module. - * @module model/SendBirdPollUpdatedVoteCount - * @version 0.0.16 - */ -var SendBirdPollUpdatedVoteCount = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdPollUpdatedVoteCount. - * @alias module:model/SendBirdPollUpdatedVoteCount - */ - function SendBirdPollUpdatedVoteCount() { - _classCallCheck(this, SendBirdPollUpdatedVoteCount); - SendBirdPollUpdatedVoteCount.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdPollUpdatedVoteCount, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdPollUpdatedVoteCount from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollUpdatedVoteCount} obj Optional instance to populate. - * @return {module:model/SendBirdPollUpdatedVoteCount} The populated SendBirdPollUpdatedVoteCount instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollUpdatedVoteCount(); - if (data.hasOwnProperty('option_id')) { - obj['option_id'] = _ApiClient["default"].convertToType(data['option_id'], 'Number'); - } - if (data.hasOwnProperty('vote_count')) { - obj['vote_count'] = _ApiClient["default"].convertToType(data['vote_count'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdPollUpdatedVoteCount; -}(); -/** - * @member {Number} option_id - */ -SendBirdPollUpdatedVoteCount.prototype['option_id'] = undefined; - -/** - * @member {Number} vote_count - */ -SendBirdPollUpdatedVoteCount.prototype['vote_count'] = undefined; -var _default = SendBirdPollUpdatedVoteCount; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdReaction.js b/dist/model/SendBirdReaction.js deleted file mode 100644 index fc07e1e..0000000 --- a/dist/model/SendBirdReaction.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdReaction model module. - * @module model/SendBirdReaction - * @version 0.0.16 - */ -var SendBirdReaction = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdReaction. - * @alias module:model/SendBirdReaction - */ - function SendBirdReaction() { - _classCallCheck(this, SendBirdReaction); - SendBirdReaction.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdReaction, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdReaction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdReaction} obj Optional instance to populate. - * @return {module:model/SendBirdReaction} The populated SendBirdReaction instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdReaction(); - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - }]); - return SendBirdReaction; -}(); -/** - * @member {String} key - */ -SendBirdReaction.prototype['key'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdReaction.prototype['updated_at'] = undefined; - -/** - * @member {Array.} user_ids - */ -SendBirdReaction.prototype['user_ids'] = undefined; -var _default = SendBirdReaction; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdRestrictionInfo.js b/dist/model/SendBirdRestrictionInfo.js deleted file mode 100644 index e083023..0000000 --- a/dist/model/SendBirdRestrictionInfo.js +++ /dev/null @@ -1,96 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdRestrictionInfo model module. - * @module model/SendBirdRestrictionInfo - * @version 0.0.16 - */ -var SendBirdRestrictionInfo = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdRestrictionInfo. - * @alias module:model/SendBirdRestrictionInfo - */ - function SendBirdRestrictionInfo() { - _classCallCheck(this, SendBirdRestrictionInfo); - SendBirdRestrictionInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdRestrictionInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdRestrictionInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdRestrictionInfo} obj Optional instance to populate. - * @return {module:model/SendBirdRestrictionInfo} The populated SendBirdRestrictionInfo instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdRestrictionInfo(); - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('restriction_type')) { - obj['restriction_type'] = _ApiClient["default"].convertToType(data['restriction_type'], 'String'); - } - } - return obj; - } - }]); - return SendBirdRestrictionInfo; -}(); -/** - * @member {String} description - */ -SendBirdRestrictionInfo.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdRestrictionInfo.prototype['end_at'] = undefined; - -/** - * @member {module:model/SendBirdRestrictionInfo.RestrictionTypeEnum} restriction_type - */ -SendBirdRestrictionInfo.prototype['restriction_type'] = undefined; - -/** - * Allowed values for the restriction_type property. - * @enum {String} - * @readonly - */ -SendBirdRestrictionInfo['RestrictionTypeEnum'] = { - /** - * value: "banned" - * @const - */ - "banned": "banned", - /** - * value: "muted" - * @const - */ - "muted": "muted" -}; -var _default = SendBirdRestrictionInfo; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdSender.js b/dist/model/SendBirdSender.js deleted file mode 100644 index c2f9d28..0000000 --- a/dist/model/SendBirdSender.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdSender model module. - * @module model/SendBirdSender - * @version 0.0.16 - */ -var SendBirdSender = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdSender. - * @alias module:model/SendBirdSender - */ - function SendBirdSender() { - _classCallCheck(this, SendBirdSender); - SendBirdSender.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdSender, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdSender from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdSender} obj Optional instance to populate. - * @return {module:model/SendBirdSender} The populated SendBirdSender instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdSender(); - if (data.hasOwnProperty('connection_status')) { - obj['connection_status'] = _ApiClient["default"].convertToType(data['connection_status'], 'String'); - } - if (data.hasOwnProperty('friend_discovery_key')) { - obj['friend_discovery_key'] = _ApiClient["default"].convertToType(data['friend_discovery_key'], 'String'); - } - if (data.hasOwnProperty('friend_name')) { - obj['friend_name'] = _ApiClient["default"].convertToType(data['friend_name'], 'String'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('is_blocked_by_me')) { - obj['is_blocked_by_me'] = _ApiClient["default"].convertToType(data['is_blocked_by_me'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('plain_profile_url')) { - obj['plain_profile_url'] = _ApiClient["default"].convertToType(data['plain_profile_url'], 'String'); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return SendBirdSender; -}(); -/** - * @member {String} connection_status - */ -SendBirdSender.prototype['connection_status'] = undefined; - -/** - * @member {String} friend_discovery_key - */ -SendBirdSender.prototype['friend_discovery_key'] = undefined; - -/** - * @member {String} friend_name - */ -SendBirdSender.prototype['friend_name'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdSender.prototype['is_active'] = undefined; - -/** - * @member {Boolean} is_blocked_by_me - */ -SendBirdSender.prototype['is_blocked_by_me'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdSender.prototype['last_seen_at'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdSender.prototype['metadata'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdSender.prototype['nickname'] = undefined; - -/** - * @member {String} plain_profile_url - */ -SendBirdSender.prototype['plain_profile_url'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdSender.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdSender.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth - */ -SendBirdSender.prototype['require_auth'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdSender.prototype['user_id'] = undefined; -var _default = SendBirdSender; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdThreadInfo.js b/dist/model/SendBirdThreadInfo.js deleted file mode 100644 index 46718bf..0000000 --- a/dist/model/SendBirdThreadInfo.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdThreadInfo model module. - * @module model/SendBirdThreadInfo - * @version 0.0.16 - */ -var SendBirdThreadInfo = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdThreadInfo. - * @alias module:model/SendBirdThreadInfo - */ - function SendBirdThreadInfo() { - _classCallCheck(this, SendBirdThreadInfo); - SendBirdThreadInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdThreadInfo, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdThreadInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThreadInfo} obj Optional instance to populate. - * @return {module:model/SendBirdThreadInfo} The populated SendBirdThreadInfo instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThreadInfo(); - if (data.hasOwnProperty('last_replied_at')) { - obj['last_replied_at'] = _ApiClient["default"].convertToType(data['last_replied_at'], 'Number'); - } - if (data.hasOwnProperty('most_replied_users')) { - obj['most_replied_users'] = _ApiClient["default"].convertToType(data['most_replied_users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('reply_count')) { - obj['reply_count'] = _ApiClient["default"].convertToType(data['reply_count'], 'Number'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdThreadInfo; -}(); -/** - * @member {Number} last_replied_at - */ -SendBirdThreadInfo.prototype['last_replied_at'] = undefined; - -/** - * @member {Array.} most_replied_users - */ -SendBirdThreadInfo.prototype['most_replied_users'] = undefined; - -/** - * @member {Number} reply_count - */ -SendBirdThreadInfo.prototype['reply_count'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdThreadInfo.prototype['updated_at'] = undefined; -var _default = SendBirdThreadInfo; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdThumbnailSBObject.js b/dist/model/SendBirdThumbnailSBObject.js deleted file mode 100644 index aceca82..0000000 --- a/dist/model/SendBirdThumbnailSBObject.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdThumbnailSBObject model module. - * @module model/SendBirdThumbnailSBObject - * @version 0.0.16 - */ -var SendBirdThumbnailSBObject = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdThumbnailSBObject. - * @alias module:model/SendBirdThumbnailSBObject - */ - function SendBirdThumbnailSBObject() { - _classCallCheck(this, SendBirdThumbnailSBObject); - SendBirdThumbnailSBObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdThumbnailSBObject, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdThumbnailSBObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThumbnailSBObject} obj Optional instance to populate. - * @return {module:model/SendBirdThumbnailSBObject} The populated SendBirdThumbnailSBObject instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThumbnailSBObject(); - if (data.hasOwnProperty('height')) { - obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); - } - if (data.hasOwnProperty('plain_url')) { - obj['plain_url'] = _ApiClient["default"].convertToType(data['plain_url'], 'String'); - } - if (data.hasOwnProperty('real_height')) { - obj['real_height'] = _ApiClient["default"].convertToType(data['real_height'], 'Number'); - } - if (data.hasOwnProperty('real_width')) { - obj['real_width'] = _ApiClient["default"].convertToType(data['real_width'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdThumbnailSBObject; -}(); -/** - * @member {Number} height - */ -SendBirdThumbnailSBObject.prototype['height'] = undefined; - -/** - * @member {String} plain_url - */ -SendBirdThumbnailSBObject.prototype['plain_url'] = undefined; - -/** - * @member {Number} real_height - */ -SendBirdThumbnailSBObject.prototype['real_height'] = undefined; - -/** - * @member {Number} real_width - */ -SendBirdThumbnailSBObject.prototype['real_width'] = undefined; - -/** - * @member {String} url - */ -SendBirdThumbnailSBObject.prototype['url'] = undefined; - -/** - * @member {Number} width - */ -SendBirdThumbnailSBObject.prototype['width'] = undefined; -var _default = SendBirdThumbnailSBObject; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdThumbnailSize.js b/dist/model/SendBirdThumbnailSize.js deleted file mode 100644 index 79e6023..0000000 --- a/dist/model/SendBirdThumbnailSize.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdThumbnailSize model module. - * @module model/SendBirdThumbnailSize - * @version 0.0.16 - */ -var SendBirdThumbnailSize = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdThumbnailSize. - * @alias module:model/SendBirdThumbnailSize - */ - function SendBirdThumbnailSize() { - _classCallCheck(this, SendBirdThumbnailSize); - SendBirdThumbnailSize.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdThumbnailSize, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdThumbnailSize from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThumbnailSize} obj Optional instance to populate. - * @return {module:model/SendBirdThumbnailSize} The populated SendBirdThumbnailSize instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThumbnailSize(); - if (data.hasOwnProperty('max_height')) { - obj['max_height'] = _ApiClient["default"].convertToType(data['max_height'], 'Number'); - } - if (data.hasOwnProperty('max_width')) { - obj['max_width'] = _ApiClient["default"].convertToType(data['max_width'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdThumbnailSize; -}(); -/** - * @member {Number} max_height - */ -SendBirdThumbnailSize.prototype['max_height'] = undefined; - -/** - * @member {Number} max_width - */ -SendBirdThumbnailSize.prototype['max_width'] = undefined; -var _default = SendBirdThumbnailSize; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdUser.js b/dist/model/SendBirdUser.js deleted file mode 100644 index 6ca358d..0000000 --- a/dist/model/SendBirdUser.js +++ /dev/null @@ -1,239 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdUser model module. - * @module model/SendBirdUser - * @version 0.0.16 - */ -var SendBirdUser = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdUser. - * User - * @alias module:model/SendBirdUser - */ - function SendBirdUser() { - _classCallCheck(this, SendBirdUser); - SendBirdUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdUser, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdUser} obj Optional instance to populate. - * @return {module:model/SendBirdUser} The populated SendBirdUser instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdUser(); - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = _ApiClient["default"].convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('has_ever_logged_in')) { - obj['has_ever_logged_in'] = _ApiClient["default"].convertToType(data['has_ever_logged_in'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('session_tokens')) { - obj['session_tokens'] = _ApiClient["default"].convertToType(data['session_tokens'], [Object]); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('phone_number')) { - obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String'); - } - if (data.hasOwnProperty('local')) { - obj['local'] = _ApiClient["default"].convertToType(data['local'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('is_hide_me_from_friends')) { - obj['is_hide_me_from_friends'] = _ApiClient["default"].convertToType(data['is_hide_me_from_friends'], 'Boolean'); - } - if (data.hasOwnProperty('is_shadow_blocked')) { - obj['is_shadow_blocked'] = _ApiClient["default"].convertToType(data['is_shadow_blocked'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = _ApiClient["default"].convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('description')) { - obj['description'] = _ApiClient["default"].convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = _ApiClient["default"].convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBirdUser; -}(); -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdUser.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdUser.prototype['is_online'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdUser.prototype['user_id'] = undefined; - -/** - * @member {String} access_token - */ -SendBirdUser.prototype['access_token'] = undefined; - -/** - * @member {Boolean} has_ever_logged_in - */ -SendBirdUser.prototype['has_ever_logged_in'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdUser.prototype['is_active'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdUser.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdUser.prototype['nickname'] = undefined; - -/** - * @member {Array.} discovery_keys - */ -SendBirdUser.prototype['discovery_keys'] = undefined; - -/** - * @member {Array.} session_tokens - */ -SendBirdUser.prototype['session_tokens'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdUser.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdUser.prototype['profile_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdUser.prototype['created_at'] = undefined; - -/** - * @member {String} phone_number - */ -SendBirdUser.prototype['phone_number'] = undefined; - -/** - * @member {String} local - */ -SendBirdUser.prototype['local'] = undefined; - -/** - * @member {String} locale - */ -SendBirdUser.prototype['locale'] = undefined; - -/** - * @member {Boolean} is_hide_me_from_friends - */ -SendBirdUser.prototype['is_hide_me_from_friends'] = undefined; - -/** - * @member {Boolean} is_shadow_blocked - */ -SendBirdUser.prototype['is_shadow_blocked'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdUser.prototype['is_created'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdUser.prototype['metadata'] = undefined; - -/** - * @member {String} description - */ -SendBirdUser.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdUser.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -SendBirdUser.prototype['start_at'] = undefined; -var _default = SendBirdUser; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBirdUserMessageParams.js b/dist/model/SendBirdUserMessageParams.js deleted file mode 100644 index 01296b9..0000000 --- a/dist/model/SendBirdUserMessageParams.js +++ /dev/null @@ -1,213 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SendBirdAppleCriticalAlertOptions = _interopRequireDefault(require("./SendBirdAppleCriticalAlertOptions")); -var _SendBirdMessageMetaArray = _interopRequireDefault(require("./SendBirdMessageMetaArray")); -var _SendBirdUser = _interopRequireDefault(require("./SendBirdUser")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBirdUserMessageParams model module. - * @module model/SendBirdUserMessageParams - * @version 0.0.16 - */ -var SendBirdUserMessageParams = /*#__PURE__*/function () { - /** - * Constructs a new SendBirdUserMessageParams. - * @alias module:model/SendBirdUserMessageParams - */ - function SendBirdUserMessageParams() { - _classCallCheck(this, SendBirdUserMessageParams); - SendBirdUserMessageParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBirdUserMessageParams, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SendBirdUserMessageParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdUserMessageParams} obj Optional instance to populate. - * @return {module:model/SendBirdUserMessageParams} The populated SendBirdUserMessageParams instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdUserMessageParams(); - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = _SendBirdAppleCriticalAlertOptions["default"].constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendBirdUser["default"]]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('meta_array_keys')) { - obj['meta_array_keys'] = _ApiClient["default"].convertToType(data['meta_array_keys'], ['String']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = _ApiClient["default"].convertToType(data['meta_arrays'], [_SendBirdMessageMetaArray["default"]]); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('poll_id')) { - obj['poll_id'] = _ApiClient["default"].convertToType(data['poll_id'], 'Number'); - } - if (data.hasOwnProperty('push_notification_delivery_option')) { - obj['push_notification_delivery_option'] = _ApiClient["default"].convertToType(data['push_notification_delivery_option'], 'String'); - } - if (data.hasOwnProperty('target_languages')) { - obj['target_languages'] = _ApiClient["default"].convertToType(data['target_languages'], ['String']); - } - if (data.hasOwnProperty('translation_target_languages')) { - obj['translation_target_languages'] = _ApiClient["default"].convertToType(data['translation_target_languages'], ['String']); - } - } - return obj; - } - }]); - return SendBirdUserMessageParams; -}(); -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdUserMessageParams.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdUserMessageParams.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdUserMessageParams.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdUserMessageParams.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {module:model/SendBirdUserMessageParams.MentionTypeEnum} mention_type - */ -SendBirdUserMessageParams.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_user_ids - */ -SendBirdUserMessageParams.prototype['mentioned_user_ids'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdUserMessageParams.prototype['mentioned_users'] = undefined; - -/** - * @member {String} message - */ -SendBirdUserMessageParams.prototype['message'] = undefined; - -/** - * @member {Array.} meta_array_keys - */ -SendBirdUserMessageParams.prototype['meta_array_keys'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdUserMessageParams.prototype['meta_arrays'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdUserMessageParams.prototype['parent_message_id'] = undefined; - -/** - * @member {Number} poll_id - */ -SendBirdUserMessageParams.prototype['poll_id'] = undefined; - -/** - * @member {module:model/SendBirdUserMessageParams.PushNotificationDeliveryOptionEnum} push_notification_delivery_option - */ -SendBirdUserMessageParams.prototype['push_notification_delivery_option'] = undefined; - -/** - * @member {Array.} target_languages - */ -SendBirdUserMessageParams.prototype['target_languages'] = undefined; - -/** - * @member {Array.} translation_target_languages - */ -SendBirdUserMessageParams.prototype['translation_target_languages'] = undefined; - -/** - * Allowed values for the mention_type property. - * @enum {String} - * @readonly - */ -SendBirdUserMessageParams['MentionTypeEnum'] = { - /** - * value: "channel" - * @const - */ - "channel": "channel", - /** - * value: "users" - * @const - */ - "users": "users" -}; - -/** - * Allowed values for the push_notification_delivery_option property. - * @enum {String} - * @readonly - */ -SendBirdUserMessageParams['PushNotificationDeliveryOptionEnum'] = { - /** - * value: "default" - * @const - */ - "default": "default", - /** - * value: "suppress" - * @const - */ - "suppress": "suppress" -}; -var _default = SendBirdUserMessageParams; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendBotSMessageData.js b/dist/model/SendBotSMessageData.js deleted file mode 100644 index 8947719..0000000 --- a/dist/model/SendBotSMessageData.js +++ /dev/null @@ -1,140 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendBotSMessageData model module. - * @module model/SendBotSMessageData - * @version 0.0.16 - */ -var SendBotSMessageData = /*#__PURE__*/function () { - /** - * Constructs a new SendBotSMessageData. - * @alias module:model/SendBotSMessageData - * @param message {String} Specifies the content of the message sent by the bot. - * @param channelUrl {String} Specifies the URL of the channel where the message is sent to. - */ - function SendBotSMessageData(message, channelUrl) { - _classCallCheck(this, SendBotSMessageData); - SendBotSMessageData.initialize(this, message, channelUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendBotSMessageData, null, [{ - key: "initialize", - value: function initialize(obj, message, channelUrl) { - obj['message'] = message; - obj['channel_url'] = channelUrl; - } - - /** - * Constructs a SendBotSMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBotSMessageData} obj Optional instance to populate. - * @return {module:model/SendBotSMessageData} The populated SendBotSMessageData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBotSMessageData(); - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('send_push')) { - obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); - } - if (data.hasOwnProperty('mentioned')) { - obj['mentioned'] = _ApiClient["default"].convertToType(data['mentioned'], ['String']); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('dedup_id')) { - obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return SendBotSMessageData; -}(); -/** - * Specifies the content of the message sent by the bot. - * @member {String} message - */ -SendBotSMessageData.prototype['message'] = undefined; - -/** - * Specifies the URL of the channel where the message is sent to. - * @member {String} channel_url - */ -SendBotSMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters. - * @member {String} custom_type - */ -SendBotSMessageData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -SendBotSMessageData.prototype['data'] = undefined; - -/** - * Determines whether to send a push notification for the message to the members of the channel (Default: true) - * @member {Boolean} send_push - */ -SendBotSMessageData.prototype['send_push'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who get a notification for the message. - * @member {Array.} mentioned - */ -SendBotSMessageData.prototype['mentioned'] = undefined; - -/** - * Determines whether to mark the message as read for the bot. If set to false, the bot's unread_count and read_receipt remain unchanged after the message is sent. (Default: true) - * @member {Boolean} mark_as_read - */ -SendBotSMessageData.prototype['mark_as_read'] = undefined; - -/** - * Specifies the unique ID for the message to prevent the same message data from getting sent to the channel. - * @member {String} dedup_id - */ -SendBotSMessageData.prototype['dedup_id'] = undefined; - -/** - * Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. - * @member {Number} created_at - */ -SendBotSMessageData.prototype['created_at'] = undefined; -var _default = SendBotSMessageData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendFileMessageRequestBody.js b/dist/model/SendFileMessageRequestBody.js new file mode 100644 index 0000000..3aba93d --- /dev/null +++ b/dist/model/SendFileMessageRequestBody.js @@ -0,0 +1,274 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdFile = _interopRequireDefault(require("./SendbirdFile")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendFileMessageRequestBody model module. + * @module model/SendFileMessageRequestBody + * @version 2.0.0 + */ +var SendFileMessageRequestBody = /*#__PURE__*/function () { + /** + * Constructs a new SendFileMessageRequestBody. + * @alias module:model/SendFileMessageRequestBody + * @param files {module:model/SendbirdFile} + * @param messageType {module:model/SendFileMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of FILE represents a file message. + */ + function SendFileMessageRequestBody(files, messageType) { + _classCallCheck(this, SendFileMessageRequestBody); + SendFileMessageRequestBody.initialize(this, files, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendFileMessageRequestBody, null, [{ + key: "initialize", + value: function initialize(obj, files, messageType) { + obj['files'] = files; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendFileMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendFileMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendFileMessageRequestBody} The populated SendFileMessageRequestBody instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendFileMessageRequestBody(); + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = _ApiClient["default"].convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = _ApiClient["default"].convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('files')) { + obj['files'] = _SendbirdFile["default"].constructFromObject(data['files']); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = _ApiClient["default"].convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('thumbnail1')) { + obj['thumbnail1'] = _ApiClient["default"].convertToType(data['thumbnail1'], 'String'); + } + if (data.hasOwnProperty('thumbnail2')) { + obj['thumbnail2'] = _ApiClient["default"].convertToType(data['thumbnail2'], 'String'); + } + if (data.hasOwnProperty('thumbnail3')) { + obj['thumbnail3'] = _ApiClient["default"].convertToType(data['thumbnail3'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = _ApiClient["default"].convertToType(data['thumbnails'], ['String']); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = _ApiClient["default"].convertToType(data['volume'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} apns_bundle_id + */ +SendFileMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendFileMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendFileMessageRequestBody.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendFileMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendFileMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendFileMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {module:model/SendbirdFile} files + */ +SendFileMessageRequestBody.prototype['files'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendFileMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendFileMessageRequestBody.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendFileMessageRequestBody.MentionTypeEnum} mention_type + */ +SendFileMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendFileMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * Specifies the type of the message. The value of FILE represents a file message. + * @member {module:model/SendFileMessageRequestBody.MessageTypeEnum} message_type + */ +SendFileMessageRequestBody.prototype['message_type'] = undefined; + +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +SendFileMessageRequestBody.prototype['require_auth'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendFileMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendFileMessageRequestBody.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendFileMessageRequestBody.prototype['sound'] = undefined; + +/** + * @member {String} thumbnail1 + */ +SendFileMessageRequestBody.prototype['thumbnail1'] = undefined; + +/** + * @member {String} thumbnail2 + */ +SendFileMessageRequestBody.prototype['thumbnail2'] = undefined; + +/** + * @member {String} thumbnail3 + */ +SendFileMessageRequestBody.prototype['thumbnail3'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendFileMessageRequestBody.prototype['thumbnails'] = undefined; + +/** + * @member {Number} volume + */ +SendFileMessageRequestBody.prototype['volume'] = undefined; + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendFileMessageRequestBody['MentionTypeEnum'] = { + /** + * value: "users" + * @const + */ + "users": "users", + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendFileMessageRequestBody['MessageTypeEnum'] = { + /** + * value: "FILE" + * @const + */ + "FILE": "FILE" +}; +var _default = exports["default"] = SendFileMessageRequestBody; \ No newline at end of file diff --git a/dist/model/SendMessageData.js b/dist/model/SendMessageData.js deleted file mode 100644 index fd9d14c..0000000 --- a/dist/model/SendMessageData.js +++ /dev/null @@ -1,286 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SendMessageData model module. - * @module model/SendMessageData - * @version 0.0.16 - */ -var SendMessageData = /*#__PURE__*/function () { - /** - * Constructs a new SendMessageData. - * @alias module:model/SendMessageData - * @param userId {String} Specifies the user ID of the sender. - * @param messageType {String} Specifies the type of the message as MESG, FILE or ADMM - * @param message {String} Specifies the content of the message. - */ - function SendMessageData(userId, messageType, message) { - _classCallCheck(this, SendMessageData); - SendMessageData.initialize(this, userId, messageType, message); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SendMessageData, null, [{ - key: "initialize", - value: function initialize(obj, userId, messageType, message) { - obj['user_id'] = userId; - obj['message_type'] = messageType; - obj['message'] = message; - } - - /** - * Constructs a SendMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendMessageData} obj Optional instance to populate. - * @return {module:model/SendMessageData} The populated SendMessageData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SendMessageData(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('send_push')) { - obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('is_silent')) { - obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('dedup_id')) { - obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); - } - if (data.hasOwnProperty('apns_bundle_id')) { - obj['apns_bundle_id'] = _ApiClient["default"].convertToType(data['apns_bundle_id'], 'String'); - } - if (data.hasOwnProperty('sound')) { - obj['sound'] = _ApiClient["default"].convertToType(data['sound'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = _ApiClient["default"].convertToType(data['volume'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ApiClient["default"].convertToType(data['file'], 'String'); - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String'); - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'Number'); - } - if (data.hasOwnProperty('file_type')) { - obj['file_type'] = _ApiClient["default"].convertToType(data['file_type'], 'String'); - } - if (data.hasOwnProperty('thumbnails')) { - obj['thumbnails'] = _ApiClient["default"].convertToType(data['thumbnails'], ['String']); - } - if (data.hasOwnProperty('thumbnail1')) { - obj['thumbnail1'] = _ApiClient["default"].convertToType(data['thumbnail1'], 'String'); - } - if (data.hasOwnProperty('thumbnail2')) { - obj['thumbnail2'] = _ApiClient["default"].convertToType(data['thumbnail2'], 'String'); - } - if (data.hasOwnProperty('thumbnail3')) { - obj['thumbnail3'] = _ApiClient["default"].convertToType(data['thumbnail3'], 'String'); - } - } - return obj; - } - }]); - return SendMessageData; -}(); -/** - * Specifies the user ID of the sender. - * @member {String} user_id - */ -SendMessageData.prototype['user_id'] = undefined; - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -SendMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to send a message to. - * @member {String} channel_url - */ -SendMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the type of the message as MESG, FILE or ADMM - * @member {String} message_type - */ -SendMessageData.prototype['message_type'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message - */ -SendMessageData.prototype['message'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -SendMessageData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -SendMessageData.prototype['data'] = undefined; - -/** - * Determines whether to send a push notification for the message to the members of the channel (applicable to group channels only). Unlike text and file messages, a push notification for an admin message is not sent by default. (Default: true) - * @member {Boolean} send_push - */ -SendMessageData.prototype['send_push'] = undefined; - -/** - * Specifies the mentioning type which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) - * @member {String} mention_type - */ -SendMessageData.prototype['mention_type'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who will get a notification for the message. - * @member {Array.} mentioned_user_ids - */ -SendMessageData.prototype['mentioned_user_ids'] = undefined; - -/** - * Determines whether to send a message without updating some of the channel properties. If a message is sent in a channel, with this property set to true, the channel's last_message is updated only for the sender while its unread_message_count remains unchanged for all channel members. Also, the message doesn't send a push notification to message receivers. If the message is sent to a hidden channel, the channel still remains hidden. (Default: false)

Once the value of this property is set, it can't be reverted. - * @member {Boolean} is_silent - */ -SendMessageData.prototype['is_silent'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -SendMessageData.prototype['sorted_metaarray'] = undefined; - -/** - * Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. This property can be used when migrating the messages of other system to Sendbird server. If specified, the server sets the message's creation time as the property value. - * @member {Number} created_at - */ -SendMessageData.prototype['created_at'] = undefined; - -/** - * Specifies the unique message ID created by other system. In general, this property is used to prevent the same message data from getting inserted when migrating the messages of the other system to Sendbird server. If specified, the server performs a duplicate check using the property value. - * @member {String} dedup_id - */ -SendMessageData.prototype['dedup_id'] = undefined; - -/** - * Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Notifications > Push notification services - * @member {String} apns_bundle_id - */ -SendMessageData.prototype['apns_bundle_id'] = undefined; - -/** - * Specifies the name of the file that sounds for critical alerts. - * @member {String} sound - */ -SendMessageData.prototype['sound'] = undefined; - -/** - * Specifies the volume of the critical alert sound. The volume ranges from 0.0 to 1.0, which indicates silent and full volume, respectively. (Default 1.0) - * @member {Number} volume - */ -SendMessageData.prototype['volume'] = undefined; - -/** - * @member {String} url - */ -SendMessageData.prototype['url'] = undefined; - -/** - * @member {String} file - */ -SendMessageData.prototype['file'] = undefined; - -/** - * @member {String} file_name - */ -SendMessageData.prototype['file_name'] = undefined; - -/** - * @member {Number} file_size - */ -SendMessageData.prototype['file_size'] = undefined; - -/** - * @member {String} file_type - */ -SendMessageData.prototype['file_type'] = undefined; - -/** - * @member {Array.} thumbnails - */ -SendMessageData.prototype['thumbnails'] = undefined; - -/** - * @member {String} thumbnail1 - */ -SendMessageData.prototype['thumbnail1'] = undefined; - -/** - * @member {String} thumbnail2 - */ -SendMessageData.prototype['thumbnail2'] = undefined; - -/** - * @member {String} thumbnail3 - */ -SendMessageData.prototype['thumbnail3'] = undefined; -var _default = SendMessageData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SendTextMessageRequestBody.js b/dist/model/SendTextMessageRequestBody.js new file mode 100644 index 0000000..bb6c414 --- /dev/null +++ b/dist/model/SendTextMessageRequestBody.js @@ -0,0 +1,257 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendTextMessageRequestBodyPushMessageTemplate = _interopRequireDefault(require("./SendTextMessageRequestBodyPushMessageTemplate")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendTextMessageRequestBody model module. + * @module model/SendTextMessageRequestBody + * @version 2.0.0 + */ +var SendTextMessageRequestBody = /*#__PURE__*/function () { + /** + * Constructs a new SendTextMessageRequestBody. + * @alias module:model/SendTextMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendTextMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of MESG represents a text message. + */ + function SendTextMessageRequestBody(message, messageType) { + _classCallCheck(this, SendTextMessageRequestBody); + SendTextMessageRequestBody.initialize(this, message, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendTextMessageRequestBody, null, [{ + key: "initialize", + value: function initialize(obj, message, messageType) { + obj['message'] = message; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendTextMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBody} The populated SendTextMessageRequestBody instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBody(); + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = _ApiClient["default"].convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = _ApiClient["default"].convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('include_poll_details')) { + obj['include_poll_details'] = _ApiClient["default"].convertToType(data['include_poll_details'], 'Boolean'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('poll_id')) { + obj['poll_id'] = _ApiClient["default"].convertToType(data['poll_id'], 'Number'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = _SendTextMessageRequestBodyPushMessageTemplate["default"].constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = _ApiClient["default"].convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = _ApiClient["default"].convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = _ApiClient["default"].convertToType(data['volume'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} apns_bundle_id + */ +SendTextMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendTextMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendTextMessageRequestBody.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendTextMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendTextMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendTextMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} include_poll_details + */ +SendTextMessageRequestBody.prototype['include_poll_details'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendTextMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendTextMessageRequestBody.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBody.MentionTypeEnum} mention_type + */ +SendTextMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendTextMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendTextMessageRequestBody.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of MESG represents a text message. + * @member {module:model/SendTextMessageRequestBody.MessageTypeEnum} message_type + */ +SendTextMessageRequestBody.prototype['message_type'] = undefined; + +/** + * @member {Number} poll_id + */ +SendTextMessageRequestBody.prototype['poll_id'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendTextMessageRequestBody.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendTextMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendTextMessageRequestBody.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendTextMessageRequestBody.prototype['sound'] = undefined; + +/** + * @member {Number} volume + */ +SendTextMessageRequestBody.prototype['volume'] = undefined; + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendTextMessageRequestBody['MentionTypeEnum'] = { + /** + * value: "users" + * @const + */ + "users": "users", + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendTextMessageRequestBody['MessageTypeEnum'] = { + /** + * value: "MESG" + * @const + */ + "MESG": "MESG" +}; +var _default = exports["default"] = SendTextMessageRequestBody; \ No newline at end of file diff --git a/dist/model/SendTextMessageRequestBodyPushMessageTemplate.js b/dist/model/SendTextMessageRequestBodyPushMessageTemplate.js new file mode 100644 index 0000000..4c2c20b --- /dev/null +++ b/dist/model/SendTextMessageRequestBodyPushMessageTemplate.js @@ -0,0 +1,101 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendTextMessageRequestBodyPushMessageTemplateOneOf = _interopRequireDefault(require("./SendTextMessageRequestBodyPushMessageTemplateOneOf")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendTextMessageRequestBodyPushMessageTemplate model module. + * @module model/SendTextMessageRequestBodyPushMessageTemplate + * @version 2.0.0 + */ +var SendTextMessageRequestBodyPushMessageTemplate = /*#__PURE__*/function () { + /** + * Constructs a new SendTextMessageRequestBodyPushMessageTemplate. + * Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. + * @alias module:model/SendTextMessageRequestBodyPushMessageTemplate + * @implements module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf + */ + function SendTextMessageRequestBodyPushMessageTemplate() { + _classCallCheck(this, SendTextMessageRequestBodyPushMessageTemplate); + _SendTextMessageRequestBodyPushMessageTemplateOneOf["default"].initialize(this); + SendTextMessageRequestBodyPushMessageTemplate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendTextMessageRequestBodyPushMessageTemplate, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendTextMessageRequestBodyPushMessageTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBodyPushMessageTemplate} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBodyPushMessageTemplate} The populated SendTextMessageRequestBodyPushMessageTemplate instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBodyPushMessageTemplate(); + _SendTextMessageRequestBodyPushMessageTemplateOneOf["default"].constructFromObject(data, obj); + if (data.hasOwnProperty('title')) { + obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('body')) { + obj['body'] = _ApiClient["default"].convertToType(data['body'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +SendTextMessageRequestBodyPushMessageTemplate.prototype['title'] = undefined; + +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +SendTextMessageRequestBodyPushMessageTemplate.prototype['body'] = undefined; + +// Implement SendTextMessageRequestBodyPushMessageTemplateOneOf interface: +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +_SendTextMessageRequestBodyPushMessageTemplateOneOf["default"].prototype['title'] = undefined; +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +_SendTextMessageRequestBodyPushMessageTemplateOneOf["default"].prototype['body'] = undefined; +var _default = exports["default"] = SendTextMessageRequestBodyPushMessageTemplate; \ No newline at end of file diff --git a/dist/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js b/dist/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js new file mode 100644 index 0000000..8c7b417 --- /dev/null +++ b/dist/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js @@ -0,0 +1,84 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendTextMessageRequestBodyPushMessageTemplateOneOf model module. + * @module model/SendTextMessageRequestBodyPushMessageTemplateOneOf + * @version 2.0.0 + */ +var SendTextMessageRequestBodyPushMessageTemplateOneOf = /*#__PURE__*/function () { + /** + * Constructs a new SendTextMessageRequestBodyPushMessageTemplateOneOf. + * @alias module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf + */ + function SendTextMessageRequestBodyPushMessageTemplateOneOf() { + _classCallCheck(this, SendTextMessageRequestBodyPushMessageTemplateOneOf); + SendTextMessageRequestBodyPushMessageTemplateOneOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendTextMessageRequestBodyPushMessageTemplateOneOf, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendTextMessageRequestBodyPushMessageTemplateOneOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf} The populated SendTextMessageRequestBodyPushMessageTemplateOneOf instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBodyPushMessageTemplateOneOf(); + if (data.hasOwnProperty('title')) { + obj['title'] = _ApiClient["default"].convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('body')) { + obj['body'] = _ApiClient["default"].convertToType(data['body'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['title'] = undefined; + +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['body'] = undefined; +var _default = exports["default"] = SendTextMessageRequestBodyPushMessageTemplateOneOf; \ No newline at end of file diff --git a/dist/model/SendbirdBasicUserInfo.js b/dist/model/SendbirdBasicUserInfo.js new file mode 100644 index 0000000..67e80e3 --- /dev/null +++ b/dist/model/SendbirdBasicUserInfo.js @@ -0,0 +1,156 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdBasicUserInfo model module. + * @module model/SendbirdBasicUserInfo + * @version 2.0.0 + */ +var SendbirdBasicUserInfo = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdBasicUserInfo. + * @alias module:model/SendbirdBasicUserInfo + * @param userId {String} + */ + function SendbirdBasicUserInfo(userId) { + _classCallCheck(this, SendbirdBasicUserInfo); + SendbirdBasicUserInfo.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdBasicUserInfo, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdBasicUserInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdBasicUserInfo} obj Optional instance to populate. + * @return {module:model/SendbirdBasicUserInfo} The populated SendbirdBasicUserInfo instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdBasicUserInfo(); + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocked_by_me')) { + obj['is_blocked_by_me'] = _ApiClient["default"].convertToType(data['is_blocked_by_me'], 'Boolean'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdBasicUserInfo.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdBasicUserInfo.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_blocked_by_me + */ +SendbirdBasicUserInfo.prototype['is_blocked_by_me'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo.RoleEnum} role + */ +SendbirdBasicUserInfo.prototype['role'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdBasicUserInfo.prototype['nickname'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdBasicUserInfo.prototype['user_id'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdBasicUserInfo.prototype['profile_url'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdBasicUserInfo.prototype['metadata'] = undefined; + +/** + * Allowed values for the role property. + * @enum {String} + * @readonly + */ +SendbirdBasicUserInfo['RoleEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; +var _default = exports["default"] = SendbirdBasicUserInfo; \ No newline at end of file diff --git a/dist/model/SendbirdDisappearingMessage.js b/dist/model/SendbirdDisappearingMessage.js new file mode 100644 index 0000000..9c88d69 --- /dev/null +++ b/dist/model/SendbirdDisappearingMessage.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdDisappearingMessage model module. + * @module model/SendbirdDisappearingMessage + * @version 2.0.0 + */ +var SendbirdDisappearingMessage = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdDisappearingMessage. + * @alias module:model/SendbirdDisappearingMessage + */ + function SendbirdDisappearingMessage() { + _classCallCheck(this, SendbirdDisappearingMessage); + SendbirdDisappearingMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdDisappearingMessage, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdDisappearingMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdDisappearingMessage} obj Optional instance to populate. + * @return {module:model/SendbirdDisappearingMessage} The populated SendbirdDisappearingMessage instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdDisappearingMessage(); + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('is_triggered_by_message_read')) { + obj['is_triggered_by_message_read'] = _ApiClient["default"].convertToType(data['is_triggered_by_message_read'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} message_survival_seconds + */ +SendbirdDisappearingMessage.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Boolean} is_triggered_by_message_read + */ +SendbirdDisappearingMessage.prototype['is_triggered_by_message_read'] = undefined; +var _default = exports["default"] = SendbirdDisappearingMessage; \ No newline at end of file diff --git a/dist/model/SendbirdExtendedMessagePayload.js b/dist/model/SendbirdExtendedMessagePayload.js new file mode 100644 index 0000000..24f695a --- /dev/null +++ b/dist/model/SendbirdExtendedMessagePayload.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdExtendedMessagePayload model module. + * @module model/SendbirdExtendedMessagePayload + * @version 2.0.0 + */ +var SendbirdExtendedMessagePayload = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdExtendedMessagePayload. + * Specifies the extended message payload which is used to send a message with a custom message type. + * @alias module:model/SendbirdExtendedMessagePayload + */ + function SendbirdExtendedMessagePayload() { + _classCallCheck(this, SendbirdExtendedMessagePayload); + SendbirdExtendedMessagePayload.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdExtendedMessagePayload, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdExtendedMessagePayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdExtendedMessagePayload} obj Optional instance to populate. + * @return {module:model/SendbirdExtendedMessagePayload} The populated SendbirdExtendedMessagePayload instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdExtendedMessagePayload(); + if (data.hasOwnProperty('custom_view')) { + obj['custom_view'] = _ApiClient["default"].convertToType(data['custom_view'], Object); + } + if (data.hasOwnProperty('suggested_replies')) { + obj['suggested_replies'] = _ApiClient["default"].convertToType(data['suggested_replies'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * JSON format you want to embed in message, eq : {\"title\": \"title\", \"image\": \"https://link.to/image.jpg\"} + * @member {Object} custom_view + */ +SendbirdExtendedMessagePayload.prototype['custom_view'] = undefined; + +/** + * Specifies an array of suggested replies to be sent with the message. + * @member {Array.} suggested_replies + */ +SendbirdExtendedMessagePayload.prototype['suggested_replies'] = undefined; +var _default = exports["default"] = SendbirdExtendedMessagePayload; \ No newline at end of file diff --git a/dist/model/SendbirdFile.js b/dist/model/SendbirdFile.js new file mode 100644 index 0000000..6b1f317 --- /dev/null +++ b/dist/model/SendbirdFile.js @@ -0,0 +1,115 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdThumbnail = _interopRequireDefault(require("./SendbirdThumbnail")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdFile model module. + * @module model/SendbirdFile + * @version 2.0.0 + */ +var SendbirdFile = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdFile. + * @alias module:model/SendbirdFile + */ + function SendbirdFile() { + _classCallCheck(this, SendbirdFile); + SendbirdFile.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdFile, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdFile} obj Optional instance to populate. + * @return {module:model/SendbirdFile} The populated SendbirdFile instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdFile(); + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('file_name')) { + obj['file_name'] = _ApiClient["default"].convertToType(data['file_name'], 'String'); + } + if (data.hasOwnProperty('file_size')) { + obj['file_size'] = _ApiClient["default"].convertToType(data['file_size'], 'Number'); + } + if (data.hasOwnProperty('file_type')) { + obj['file_type'] = _ApiClient["default"].convertToType(data['file_type'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = _ApiClient["default"].convertToType(data['thumbnails'], [_SendbirdThumbnail["default"]]); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} url + */ +SendbirdFile.prototype['url'] = undefined; + +/** + * @member {String} file_name + */ +SendbirdFile.prototype['file_name'] = undefined; + +/** + * @member {Number} file_size + */ +SendbirdFile.prototype['file_size'] = undefined; + +/** + * @member {String} file_type + */ +SendbirdFile.prototype['file_type'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendbirdFile.prototype['thumbnails'] = undefined; + +/** + * @member {Boolean} require_auth + */ +SendbirdFile.prototype['require_auth'] = undefined; +var _default = exports["default"] = SendbirdFile; \ No newline at end of file diff --git a/dist/model/SendbirdGroupChannel.js b/dist/model/SendbirdGroupChannel.js new file mode 100644 index 0000000..9c0ce11 --- /dev/null +++ b/dist/model/SendbirdGroupChannel.js @@ -0,0 +1,534 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +var _SendbirdDisappearingMessage = _interopRequireDefault(require("./SendbirdDisappearingMessage")); +var _SendbirdMember = _interopRequireDefault(require("./SendbirdMember")); +var _SendbirdMessageResponse = _interopRequireDefault(require("./SendbirdMessageResponse")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +var _SendbirdSmsFallback = _interopRequireDefault(require("./SendbirdSmsFallback")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdGroupChannel model module. + * @module model/SendbirdGroupChannel + * @version 2.0.0 + */ +var SendbirdGroupChannel = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdGroupChannel. + * @alias module:model/SendbirdGroupChannel + * @param channelUrl {String} + */ + function SendbirdGroupChannel(channelUrl) { + _classCallCheck(this, SendbirdGroupChannel); + SendbirdGroupChannel.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdGroupChannel, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdGroupChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannel} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannel} The populated SendbirdGroupChannel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannel(); + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = _ApiClient["default"].convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = _SendbirdDisappearingMessage["default"].constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = _ApiClient["default"].convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = _ApiClient["default"].convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = _ApiClient["default"].convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = _ApiClient["default"].convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = _ApiClient["default"].convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = _ApiClient["default"].convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = _ApiClient["default"].convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = _ApiClient["default"].convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = _SendbirdMessageResponse["default"].constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = _ApiClient["default"].convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendbirdMember["default"]]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = _ApiClient["default"].convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = _ApiClient["default"].convertToType(data['read_receipt'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = _SendbirdSmsFallback["default"].constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = _ApiClient["default"].convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = _ApiClient["default"].convertToType(data['user_last_read'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} channel_url + */ +SendbirdGroupChannel.prototype['channel_url'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +SendbirdGroupChannel.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannel.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannel.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannel.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +SendbirdGroupChannel.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannel.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannel.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannel.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannel.prototype['has_bot'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +SendbirdGroupChannel.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +SendbirdGroupChannel.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +SendbirdGroupChannel.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannel.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannel.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannel.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannel.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannel.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +SendbirdGroupChannel.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +SendbirdGroupChannel.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +SendbirdGroupChannel.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannel.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +SendbirdGroupChannel.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannel.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannel.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +SendbirdGroupChannel.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannel.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannel.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannel.prototype['member_count'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +SendbirdGroupChannel.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +SendbirdGroupChannel.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannel.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdGroupChannel.prototype['metadata'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +SendbirdGroupChannel.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannel.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdGroupChannel.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannel.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannel.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +SendbirdGroupChannel.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannel.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannel.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +SendbirdGroupChannel.prototype['user_last_read'] = undefined; + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['HiddenStateEnum'] = { + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['MemberStateEnum'] = { + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined", + /** + * value: "none" + * @const + */ + "none": "none" +}; + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['MyRoleEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; +var _default = exports["default"] = SendbirdGroupChannel; \ No newline at end of file diff --git a/dist/model/SendbirdGroupChannelDetail.js b/dist/model/SendbirdGroupChannelDetail.js new file mode 100644 index 0000000..6d05e00 --- /dev/null +++ b/dist/model/SendbirdGroupChannelDetail.js @@ -0,0 +1,344 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +var _SendbirdDisappearingMessage = _interopRequireDefault(require("./SendbirdDisappearingMessage")); +var _SendbirdGroupChannelDetailChannel = _interopRequireDefault(require("./SendbirdGroupChannelDetailChannel")); +var _SendbirdMember = _interopRequireDefault(require("./SendbirdMember")); +var _SendbirdMessageResponse = _interopRequireDefault(require("./SendbirdMessageResponse")); +var _SendbirdSmsFallback = _interopRequireDefault(require("./SendbirdSmsFallback")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdGroupChannelDetail model module. + * @module model/SendbirdGroupChannelDetail + * @version 2.0.0 + */ +var SendbirdGroupChannelDetail = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdGroupChannelDetail. + * @alias module:model/SendbirdGroupChannelDetail + * @param channelUrl {String} + */ + function SendbirdGroupChannelDetail(channelUrl) { + _classCallCheck(this, SendbirdGroupChannelDetail); + SendbirdGroupChannelDetail.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdGroupChannelDetail, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdGroupChannelDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannelDetail} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannelDetail} The populated SendbirdGroupChannelDetail instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannelDetail(); + if (data.hasOwnProperty('channel')) { + obj['channel'] = _SendbirdGroupChannelDetailChannel["default"].constructFromObject(data['channel']); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = _ApiClient["default"].convertToType(data['delivery_receipt'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = _SendbirdDisappearingMessage["default"].constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = _ApiClient["default"].convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = _ApiClient["default"].convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = _ApiClient["default"].convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = _ApiClient["default"].convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = _ApiClient["default"].convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = _ApiClient["default"].convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = _ApiClient["default"].convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = _ApiClient["default"].convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = _SendbirdMessageResponse["default"].constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = _ApiClient["default"].convertToType(data['members'], [_SendbirdMember["default"]]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendbirdUser["default"]]); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = _ApiClient["default"].convertToType(data['read_receipt'], { + 'String': 'Number' + }); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = _SendbirdSmsFallback["default"].constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = _ApiClient["default"].convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +SendbirdGroupChannelDetail.prototype['channel'] = undefined; + +/** + * @member {String} channel_url + */ +SendbirdGroupChannelDetail.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannelDetail.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannelDetail.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannelDetail.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannelDetail.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannelDetail.prototype['data'] = undefined; + +/** + * @member {Object.} delivery_receipt + */ +SendbirdGroupChannelDetail.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannelDetail.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannelDetail.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannelDetail.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannelDetail.prototype['has_bot'] = undefined; + +/** + * @member {Number} id + */ +SendbirdGroupChannelDetail.prototype['id'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannelDetail.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannelDetail.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannelDetail.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannelDetail.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannelDetail.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannelDetail.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannelDetail.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannelDetail.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannelDetail.prototype['joined_member_count'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannelDetail.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannelDetail.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannelDetail.prototype['member_count'] = undefined; + +/** + * @member {Array.} members + */ +SendbirdGroupChannelDetail.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannelDetail.prototype['message_survival_seconds'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannelDetail.prototype['name'] = undefined; + +/** + * @member {Array.} operators + */ +SendbirdGroupChannelDetail.prototype['operators'] = undefined; + +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannelDetail.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannelDetail.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannelDetail.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannelDetail.prototype['unread_message_count'] = undefined; +var _default = exports["default"] = SendbirdGroupChannelDetail; \ No newline at end of file diff --git a/dist/model/SendbirdGroupChannelDetailChannel.js b/dist/model/SendbirdGroupChannelDetailChannel.js new file mode 100644 index 0000000..af3c13d --- /dev/null +++ b/dist/model/SendbirdGroupChannelDetailChannel.js @@ -0,0 +1,130 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdGroupChannelDetailChannel model module. + * @module model/SendbirdGroupChannelDetailChannel + * @version 2.0.0 + */ +var SendbirdGroupChannelDetailChannel = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdGroupChannelDetailChannel. + * @alias module:model/SendbirdGroupChannelDetailChannel + */ + function SendbirdGroupChannelDetailChannel() { + _classCallCheck(this, SendbirdGroupChannelDetailChannel); + SendbirdGroupChannelDetailChannel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdGroupChannelDetailChannel, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdGroupChannelDetailChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannelDetailChannel} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannelDetailChannel} The populated SendbirdGroupChannelDetailChannel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannelDetailChannel(); + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = _ApiClient["default"].convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} channel_url + */ +SendbirdGroupChannelDetailChannel.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannelDetailChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannelDetailChannel.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannelDetailChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannelDetailChannel.prototype['data'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannelDetailChannel.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannelDetailChannel.prototype['member_count'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannelDetailChannel.prototype['name'] = undefined; +var _default = exports["default"] = SendbirdGroupChannelDetailChannel; \ No newline at end of file diff --git a/dist/model/SendbirdMember.js b/dist/model/SendbirdMember.js new file mode 100644 index 0000000..d283d51 --- /dev/null +++ b/dist/model/SendbirdMember.js @@ -0,0 +1,292 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdMember model module. + * @module model/SendbirdMember + * @version 2.0.0 + */ +var SendbirdMember = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdMember. + * @alias module:model/SendbirdMember + * @param userId {String} + */ + function SendbirdMember(userId) { + _classCallCheck(this, SendbirdMember); + SendbirdMember.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdMember, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdMember from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMember} obj Optional instance to populate. + * @return {module:model/SendbirdMember} The populated SendbirdMember instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMember(); + if (data.hasOwnProperty('delivered_ts')) { + obj['delivered_ts'] = _ApiClient["default"].convertToType(data['delivered_ts'], 'Number'); + } + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); + } + if (data.hasOwnProperty('friend_discovery_key')) { + obj['friend_discovery_key'] = _ApiClient["default"].convertToType(data['friend_discovery_key'], ['String']); + } + if (data.hasOwnProperty('friend_name')) { + obj['friend_name'] = _ApiClient["default"].convertToType(data['friend_name'], 'String'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocked_by_me')) { + obj['is_blocked_by_me'] = _ApiClient["default"].convertToType(data['is_blocked_by_me'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocking_me')) { + obj['is_blocking_me'] = _ApiClient["default"].convertToType(data['is_blocking_me'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = _ApiClient["default"].convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_online')) { + obj['is_online'] = _ApiClient["default"].convertToType(data['is_online'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('muted_description')) { + obj['muted_description'] = _ApiClient["default"].convertToType(data['muted_description'], 'String'); + } + if (data.hasOwnProperty('muted_end_at')) { + obj['muted_end_at'] = _ApiClient["default"].convertToType(data['muted_end_at'], 'Number'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('push_enabled')) { + obj['push_enabled'] = _ApiClient["default"].convertToType(data['push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('read_ts')) { + obj['read_ts'] = _ApiClient["default"].convertToType(data['read_ts'], 'Number'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = _ApiClient["default"].convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} delivered_ts + */ +SendbirdMember.prototype['delivered_ts'] = undefined; + +/** + * @member {Boolean} do_not_disturb + */ +SendbirdMember.prototype['do_not_disturb'] = undefined; + +/** + * @member {Array.} friend_discovery_key + */ +SendbirdMember.prototype['friend_discovery_key'] = undefined; + +/** + * @member {String} friend_name + */ +SendbirdMember.prototype['friend_name'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdMember.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_blocked_by_me + */ +SendbirdMember.prototype['is_blocked_by_me'] = undefined; + +/** + * @member {Boolean} is_blocking_me + */ +SendbirdMember.prototype['is_blocking_me'] = undefined; + +/** + * @member {Boolean} is_muted + */ +SendbirdMember.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_online + */ +SendbirdMember.prototype['is_online'] = undefined; + +/** + * @member {Number} last_seen_at + */ +SendbirdMember.prototype['last_seen_at'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdMember.prototype['metadata'] = undefined; + +/** + * @member {String} muted_description + */ +SendbirdMember.prototype['muted_description'] = undefined; + +/** + * @member {Number} muted_end_at + */ +SendbirdMember.prototype['muted_end_at'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdMember.prototype['nickname'] = undefined; + +/** + * @member {Boolean} push_enabled + */ +SendbirdMember.prototype['push_enabled'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdMember.prototype['push_trigger_option'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdMember.prototype['profile_url'] = undefined; + +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdMember.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {Number} read_ts + */ +SendbirdMember.prototype['read_ts'] = undefined; + +/** + * @member {module:model/SendbirdMember.RoleEnum} role + */ +SendbirdMember.prototype['role'] = undefined; + +/** + * @member {module:model/SendbirdMember.StateEnum} state + */ +SendbirdMember.prototype['state'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdMember.prototype['user_id'] = undefined; + +/** + * Allowed values for the role property. + * @enum {String} + * @readonly + */ +SendbirdMember['RoleEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "none" + * @const + */ + "none": "none", + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +SendbirdMember['StateEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined" +}; +var _default = exports["default"] = SendbirdMember; \ No newline at end of file diff --git a/dist/model/SendbirdMessageResponse.js b/dist/model/SendbirdMessageResponse.js new file mode 100644 index 0000000..b0f8625 --- /dev/null +++ b/dist/model/SendbirdMessageResponse.js @@ -0,0 +1,313 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +var _SendbirdExtendedMessagePayload = _interopRequireDefault(require("./SendbirdExtendedMessagePayload")); +var _SendbirdFile = _interopRequireDefault(require("./SendbirdFile")); +var _SendbirdMessageResponseMessageEvents = _interopRequireDefault(require("./SendbirdMessageResponseMessageEvents")); +var _SendbirdParentMessageInfo = _interopRequireDefault(require("./SendbirdParentMessageInfo")); +var _SendbirdReaction = _interopRequireDefault(require("./SendbirdReaction")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdMessageResponse model module. + * @module model/SendbirdMessageResponse + * @version 2.0.0 + */ +var SendbirdMessageResponse = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdMessageResponse. + * @alias module:model/SendbirdMessageResponse + */ + function SendbirdMessageResponse() { + _classCallCheck(this, SendbirdMessageResponse); + SendbirdMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdMessageResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMessageResponse} obj Optional instance to populate. + * @return {module:model/SendbirdMessageResponse} The populated SendbirdMessageResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMessageResponse(); + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = _ApiClient["default"].convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_users')) { + obj['mentioned_users'] = _ApiClient["default"].convertToType(data['mentioned_users'], [_SendbirdBasicUserInfo["default"]]); + } + if (data.hasOwnProperty('translations')) { + obj['translations'] = _ApiClient["default"].convertToType(data['translations'], Object); + } + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); + } + if (data.hasOwnProperty('is_op_msg')) { + obj['is_op_msg'] = _ApiClient["default"].convertToType(data['is_op_msg'], 'Boolean'); + } + if (data.hasOwnProperty('reactions')) { + obj['reactions'] = _ApiClient["default"].convertToType(data['reactions'], [_SendbirdReaction["default"]]); + } + if (data.hasOwnProperty('is_removed')) { + obj['is_removed'] = _ApiClient["default"].convertToType(data['is_removed'], 'Boolean'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = _SendbirdBasicUserInfo["default"].constructFromObject(data['user']); + } + if (data.hasOwnProperty('file')) { + obj['file'] = _ApiClient["default"].convertToType(data['file'], Object); + } + if (data.hasOwnProperty('files')) { + obj['files'] = _ApiClient["default"].convertToType(data['files'], [_SendbirdFile["default"]]); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('message_retention_hour')) { + obj['message_retention_hour'] = _ApiClient["default"].convertToType(data['message_retention_hour'], 'Number'); + } + if (data.hasOwnProperty('silent')) { + obj['silent'] = _ApiClient["default"].convertToType(data['silent'], 'Boolean'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('channel_type')) { + obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); + } + if (data.hasOwnProperty('req_id')) { + obj['req_id'] = _ApiClient["default"].convertToType(data['req_id'], 'String'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('message_id')) { + obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + if (data.hasOwnProperty('thread_info')) { + obj['thread_info'] = _ApiClient["default"].convertToType(data['thread_info'], Object); + } + if (data.hasOwnProperty('parent_message_id')) { + obj['parent_message_id'] = _ApiClient["default"].convertToType(data['parent_message_id'], 'Number'); + } + if (data.hasOwnProperty('parent_message_info')) { + obj['parent_message_info'] = _SendbirdParentMessageInfo["default"].constructFromObject(data['parent_message_info']); + } + if (data.hasOwnProperty('is_reply_to_channel')) { + obj['is_reply_to_channel'] = _ApiClient["default"].convertToType(data['is_reply_to_channel'], 'Boolean'); + } + if (data.hasOwnProperty('message_events')) { + obj['message_events'] = _SendbirdMessageResponseMessageEvents["default"].constructFromObject(data['message_events']); + } + if (data.hasOwnProperty('extended_message_payload')) { + obj['extended_message_payload'] = _SendbirdExtendedMessagePayload["default"].constructFromObject(data['extended_message_payload']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} require_auth + */ +SendbirdMessageResponse.prototype['require_auth'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdMessageResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdMessageResponse.prototype['custom_type'] = undefined; + +/** + * @member {Array.} mentioned_users + */ +SendbirdMessageResponse.prototype['mentioned_users'] = undefined; + +/** + * @member {Object} translations + */ +SendbirdMessageResponse.prototype['translations'] = undefined; + +/** + * @member {Number} updated_at + */ +SendbirdMessageResponse.prototype['updated_at'] = undefined; + +/** + * @member {Boolean} is_op_msg + */ +SendbirdMessageResponse.prototype['is_op_msg'] = undefined; + +/** + * @member {Array.} reactions + */ +SendbirdMessageResponse.prototype['reactions'] = undefined; + +/** + * @member {Boolean} is_removed + */ +SendbirdMessageResponse.prototype['is_removed'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +SendbirdMessageResponse.prototype['user'] = undefined; + +/** + * @member {Object} file + */ +SendbirdMessageResponse.prototype['file'] = undefined; + +/** + * @member {Array.} files + */ +SendbirdMessageResponse.prototype['files'] = undefined; + +/** + * @member {String} message + */ +SendbirdMessageResponse.prototype['message'] = undefined; + +/** + * @member {String} data + */ +SendbirdMessageResponse.prototype['data'] = undefined; + +/** + * @member {Number} message_retention_hour + */ +SendbirdMessageResponse.prototype['message_retention_hour'] = undefined; + +/** + * @member {Boolean} silent + */ +SendbirdMessageResponse.prototype['silent'] = undefined; + +/** + * @member {String} type + */ +SendbirdMessageResponse.prototype['type'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdMessageResponse.prototype['created_at'] = undefined; + +/** + * @member {String} channel_type + */ +SendbirdMessageResponse.prototype['channel_type'] = undefined; + +/** + * @member {String} req_id + */ +SendbirdMessageResponse.prototype['req_id'] = undefined; + +/** + * @member {String} mention_type + */ +SendbirdMessageResponse.prototype['mention_type'] = undefined; + +/** + * @member {String} channel_url + */ +SendbirdMessageResponse.prototype['channel_url'] = undefined; + +/** + * @member {Number} message_id + */ +SendbirdMessageResponse.prototype['message_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendbirdMessageResponse.prototype['sorted_metaarray'] = undefined; + +/** + * @member {Object} thread_info + */ +SendbirdMessageResponse.prototype['thread_info'] = undefined; + +/** + * @member {Number} parent_message_id + */ +SendbirdMessageResponse.prototype['parent_message_id'] = undefined; + +/** + * @member {module:model/SendbirdParentMessageInfo} parent_message_info + */ +SendbirdMessageResponse.prototype['parent_message_info'] = undefined; + +/** + * @member {Boolean} is_reply_to_channel + */ +SendbirdMessageResponse.prototype['is_reply_to_channel'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponseMessageEvents} message_events + */ +SendbirdMessageResponse.prototype['message_events'] = undefined; + +/** + * @member {module:model/SendbirdExtendedMessagePayload} extended_message_payload + */ +SendbirdMessageResponse.prototype['extended_message_payload'] = undefined; +var _default = exports["default"] = SendbirdMessageResponse; \ No newline at end of file diff --git a/dist/model/SendbirdMessageResponseMessageEvents.js b/dist/model/SendbirdMessageResponseMessageEvents.js new file mode 100644 index 0000000..cffa2f8 --- /dev/null +++ b/dist/model/SendbirdMessageResponseMessageEvents.js @@ -0,0 +1,98 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdMessageResponseMessageEvents model module. + * @module model/SendbirdMessageResponseMessageEvents + * @version 2.0.0 + */ +var SendbirdMessageResponseMessageEvents = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdMessageResponseMessageEvents. + * @alias module:model/SendbirdMessageResponseMessageEvents + */ + function SendbirdMessageResponseMessageEvents() { + _classCallCheck(this, SendbirdMessageResponseMessageEvents); + SendbirdMessageResponseMessageEvents.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdMessageResponseMessageEvents, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdMessageResponseMessageEvents from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMessageResponseMessageEvents} obj Optional instance to populate. + * @return {module:model/SendbirdMessageResponseMessageEvents} The populated SendbirdMessageResponseMessageEvents instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMessageResponseMessageEvents(); + if (data.hasOwnProperty('send_push_notification')) { + obj['send_push_notification'] = _ApiClient["default"].convertToType(data['send_push_notification'], 'String'); + } + if (data.hasOwnProperty('update_unread_count')) { + obj['update_unread_count'] = _ApiClient["default"].convertToType(data['update_unread_count'], 'Boolean'); + } + if (data.hasOwnProperty('update_mention_count')) { + obj['update_mention_count'] = _ApiClient["default"].convertToType(data['update_mention_count'], 'Boolean'); + } + if (data.hasOwnProperty('update_last_message')) { + obj['update_last_message'] = _ApiClient["default"].convertToType(data['update_last_message'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} send_push_notification + */ +SendbirdMessageResponseMessageEvents.prototype['send_push_notification'] = undefined; + +/** + * @member {Boolean} update_unread_count + */ +SendbirdMessageResponseMessageEvents.prototype['update_unread_count'] = undefined; + +/** + * @member {Boolean} update_mention_count + */ +SendbirdMessageResponseMessageEvents.prototype['update_mention_count'] = undefined; + +/** + * @member {Boolean} update_last_message + */ +SendbirdMessageResponseMessageEvents.prototype['update_last_message'] = undefined; +var _default = exports["default"] = SendbirdMessageResponseMessageEvents; \ No newline at end of file diff --git a/dist/model/SendbirdOpenChannel.js b/dist/model/SendbirdOpenChannel.js new file mode 100644 index 0000000..727c94d --- /dev/null +++ b/dist/model/SendbirdOpenChannel.js @@ -0,0 +1,174 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdBasicUserInfo = _interopRequireDefault(require("./SendbirdBasicUserInfo")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdOpenChannel model module. + * @module model/SendbirdOpenChannel + * @version 2.0.0 + */ +var SendbirdOpenChannel = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdOpenChannel. + * @alias module:model/SendbirdOpenChannel + * @param channelUrl {String} + */ + function SendbirdOpenChannel(channelUrl) { + _classCallCheck(this, SendbirdOpenChannel); + SendbirdOpenChannel.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdOpenChannel, null, [{ + key: "initialize", + value: function initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdOpenChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdOpenChannel} obj Optional instance to populate. + * @return {module:model/SendbirdOpenChannel} The populated SendbirdOpenChannel instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdOpenChannel(); + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = _ApiClient["default"].convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('is_dynamic_partitioned')) { + obj['is_dynamic_partitioned'] = _ApiClient["default"].convertToType(data['is_dynamic_partitioned'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = _ApiClient["default"].convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = _ApiClient["default"].convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = _ApiClient["default"].convertToType(data['operators'], [_SendbirdBasicUserInfo["default"]]); + } + if (data.hasOwnProperty('participant_count')) { + obj['participant_count'] = _ApiClient["default"].convertToType(data['participant_count'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} channel_url + */ +SendbirdOpenChannel.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdOpenChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdOpenChannel.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdOpenChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdOpenChannel.prototype['data'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdOpenChannel.prototype['freeze'] = undefined; + +/** + * @member {Boolean} is_dynamic_partitioned + */ +SendbirdOpenChannel.prototype['is_dynamic_partitioned'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdOpenChannel.prototype['is_ephemeral'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdOpenChannel.prototype['max_length_message'] = undefined; + +/** + * @member {String} name + */ +SendbirdOpenChannel.prototype['name'] = undefined; + +/** + * @member {Array.} operators + */ +SendbirdOpenChannel.prototype['operators'] = undefined; + +/** + * @member {Number} participant_count + */ +SendbirdOpenChannel.prototype['participant_count'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdOpenChannel.prototype['metadata'] = undefined; +var _default = exports["default"] = SendbirdOpenChannel; \ No newline at end of file diff --git a/dist/model/SendbirdParentMessageInfo.js b/dist/model/SendbirdParentMessageInfo.js new file mode 100644 index 0000000..6f49086 --- /dev/null +++ b/dist/model/SendbirdParentMessageInfo.js @@ -0,0 +1,124 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdFile = _interopRequireDefault(require("./SendbirdFile")); +var _SendbirdUser = _interopRequireDefault(require("./SendbirdUser")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdParentMessageInfo model module. + * @module model/SendbirdParentMessageInfo + * @version 2.0.0 + */ +var SendbirdParentMessageInfo = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdParentMessageInfo. + * @alias module:model/SendbirdParentMessageInfo + */ + function SendbirdParentMessageInfo() { + _classCallCheck(this, SendbirdParentMessageInfo); + SendbirdParentMessageInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdParentMessageInfo, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdParentMessageInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdParentMessageInfo} obj Optional instance to populate. + * @return {module:model/SendbirdParentMessageInfo} The populated SendbirdParentMessageInfo instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdParentMessageInfo(); + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = _ApiClient["default"].convertToType(data['ts'], 'Number'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = _SendbirdUser["default"].constructFromObject(data['user']); + } + if (data.hasOwnProperty('file')) { + obj['file'] = _SendbirdFile["default"].constructFromObject(data['file']); + } + if (data.hasOwnProperty('files')) { + obj['files'] = _ApiClient["default"].convertToType(data['files'], [_SendbirdFile["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} custom_type + */ +SendbirdParentMessageInfo.prototype['custom_type'] = undefined; + +/** + * @member {String} message + */ +SendbirdParentMessageInfo.prototype['message'] = undefined; + +/** + * @member {String} type + */ +SendbirdParentMessageInfo.prototype['type'] = undefined; + +/** + * @member {Number} ts + */ +SendbirdParentMessageInfo.prototype['ts'] = undefined; + +/** + * @member {module:model/SendbirdUser} user + */ +SendbirdParentMessageInfo.prototype['user'] = undefined; + +/** + * @member {module:model/SendbirdFile} file + */ +SendbirdParentMessageInfo.prototype['file'] = undefined; + +/** + * @member {Array.} files + */ +SendbirdParentMessageInfo.prototype['files'] = undefined; +var _default = exports["default"] = SendbirdParentMessageInfo; \ No newline at end of file diff --git a/dist/model/SendbirdPushTriggerOption.js b/dist/model/SendbirdPushTriggerOption.js new file mode 100644 index 0000000..49f47d9 --- /dev/null +++ b/dist/model/SendbirdPushTriggerOption.js @@ -0,0 +1,68 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** +* Enum class SendbirdPushTriggerOption. +* @enum {} +* @readonly +*/ +var SendbirdPushTriggerOption = exports["default"] = /*#__PURE__*/function () { + function SendbirdPushTriggerOption() { + _classCallCheck(this, SendbirdPushTriggerOption); + /** + * value: "all" + * @const + */ + _defineProperty(this, "all", "all"); + /** + * value: "mention_only" + * @const + */ + _defineProperty(this, "mention_only", "mention_only"); + /** + * value: "off" + * @const + */ + _defineProperty(this, "off", "off"); + /** + * value: "default" + * @const + */ + _defineProperty(this, "default", "default"); + } + return _createClass(SendbirdPushTriggerOption, null, [{ + key: "constructFromObject", + value: + /** + * Returns a SendbirdPushTriggerOption enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/SendbirdPushTriggerOption} The enum SendbirdPushTriggerOption value. + */ + function constructFromObject(object) { + return object; + } + }]); +}(); \ No newline at end of file diff --git a/dist/model/SendbirdReaction.js b/dist/model/SendbirdReaction.js new file mode 100644 index 0000000..a2c44c3 --- /dev/null +++ b/dist/model/SendbirdReaction.js @@ -0,0 +1,90 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdReaction model module. + * @module model/SendbirdReaction + * @version 2.0.0 + */ +var SendbirdReaction = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdReaction. + * @alias module:model/SendbirdReaction + */ + function SendbirdReaction() { + _classCallCheck(this, SendbirdReaction); + SendbirdReaction.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdReaction, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdReaction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdReaction} obj Optional instance to populate. + * @return {module:model/SendbirdReaction} The populated SendbirdReaction instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdReaction(); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = _ApiClient["default"].convertToType(data['updated_at'], 'Number'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} key + */ +SendbirdReaction.prototype['key'] = undefined; + +/** + * @member {Number} updated_at + */ +SendbirdReaction.prototype['updated_at'] = undefined; + +/** + * @member {Array.} user_ids + */ +SendbirdReaction.prototype['user_ids'] = undefined; +var _default = exports["default"] = SendbirdReaction; \ No newline at end of file diff --git a/dist/model/SendbirdSmsFallback.js b/dist/model/SendbirdSmsFallback.js new file mode 100644 index 0000000..a677837 --- /dev/null +++ b/dist/model/SendbirdSmsFallback.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdSmsFallback model module. + * @module model/SendbirdSmsFallback + * @version 2.0.0 + */ +var SendbirdSmsFallback = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdSmsFallback. + * @alias module:model/SendbirdSmsFallback + */ + function SendbirdSmsFallback() { + _classCallCheck(this, SendbirdSmsFallback); + SendbirdSmsFallback.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdSmsFallback, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdSmsFallback from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdSmsFallback} obj Optional instance to populate. + * @return {module:model/SendbirdSmsFallback} The populated SendbirdSmsFallback instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdSmsFallback(); + if (data.hasOwnProperty('wait_seconds')) { + obj['wait_seconds'] = _ApiClient["default"].convertToType(data['wait_seconds'], 'Number'); + } + if (data.hasOwnProperty('exclude_user_ids')) { + obj['exclude_user_ids'] = _ApiClient["default"].convertToType(data['exclude_user_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} wait_seconds + */ +SendbirdSmsFallback.prototype['wait_seconds'] = undefined; + +/** + * @member {Array.} exclude_user_ids + */ +SendbirdSmsFallback.prototype['exclude_user_ids'] = undefined; +var _default = exports["default"] = SendbirdSmsFallback; \ No newline at end of file diff --git a/dist/model/SendbirdSortedMetaarrayInner.js b/dist/model/SendbirdSortedMetaarrayInner.js new file mode 100644 index 0000000..d029a4d --- /dev/null +++ b/dist/model/SendbirdSortedMetaarrayInner.js @@ -0,0 +1,82 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdSortedMetaarrayInner model module. + * @module model/SendbirdSortedMetaarrayInner + * @version 2.0.0 + */ +var SendbirdSortedMetaarrayInner = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdSortedMetaarrayInner. + * @alias module:model/SendbirdSortedMetaarrayInner + */ + function SendbirdSortedMetaarrayInner() { + _classCallCheck(this, SendbirdSortedMetaarrayInner); + SendbirdSortedMetaarrayInner.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdSortedMetaarrayInner, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdSortedMetaarrayInner} obj Optional instance to populate. + * @return {module:model/SendbirdSortedMetaarrayInner} The populated SendbirdSortedMetaarrayInner instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdSortedMetaarrayInner(); + if (data.hasOwnProperty('key')) { + obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('value')) { + obj['value'] = _ApiClient["default"].convertToType(data['value'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} key + */ +SendbirdSortedMetaarrayInner.prototype['key'] = undefined; + +/** + * @member {Array.} value + */ +SendbirdSortedMetaarrayInner.prototype['value'] = undefined; +var _default = exports["default"] = SendbirdSortedMetaarrayInner; \ No newline at end of file diff --git a/dist/model/SendbirdThumbnail.js b/dist/model/SendbirdThumbnail.js new file mode 100644 index 0000000..e32cff0 --- /dev/null +++ b/dist/model/SendbirdThumbnail.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdThumbnail model module. + * @module model/SendbirdThumbnail + * @version 2.0.0 + */ +var SendbirdThumbnail = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdThumbnail. + * @alias module:model/SendbirdThumbnail + */ + function SendbirdThumbnail() { + _classCallCheck(this, SendbirdThumbnail); + SendbirdThumbnail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdThumbnail, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a SendbirdThumbnail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdThumbnail} obj Optional instance to populate. + * @return {module:model/SendbirdThumbnail} The populated SendbirdThumbnail instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdThumbnail(); + if (data.hasOwnProperty('height')) { + obj['height'] = _ApiClient["default"].convertToType(data['height'], 'Number'); + } + if (data.hasOwnProperty('plain_url')) { + obj['plain_url'] = _ApiClient["default"].convertToType(data['plain_url'], 'String'); + } + if (data.hasOwnProperty('real_height')) { + obj['real_height'] = _ApiClient["default"].convertToType(data['real_height'], 'Number'); + } + if (data.hasOwnProperty('real_width')) { + obj['real_width'] = _ApiClient["default"].convertToType(data['real_width'], 'Number'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('width')) { + obj['width'] = _ApiClient["default"].convertToType(data['width'], 'Number'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Number} height + */ +SendbirdThumbnail.prototype['height'] = undefined; + +/** + * @member {String} plain_url + */ +SendbirdThumbnail.prototype['plain_url'] = undefined; + +/** + * @member {Number} real_height + */ +SendbirdThumbnail.prototype['real_height'] = undefined; + +/** + * @member {Number} real_width + */ +SendbirdThumbnail.prototype['real_width'] = undefined; + +/** + * @member {String} url + */ +SendbirdThumbnail.prototype['url'] = undefined; + +/** + * @member {Number} width + */ +SendbirdThumbnail.prototype['width'] = undefined; +var _default = exports["default"] = SendbirdThumbnail; \ No newline at end of file diff --git a/dist/model/SendbirdUser.js b/dist/model/SendbirdUser.js new file mode 100644 index 0000000..c0de498 --- /dev/null +++ b/dist/model/SendbirdUser.js @@ -0,0 +1,269 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The SendbirdUser model module. + * @module model/SendbirdUser + * @version 2.0.0 + */ +var SendbirdUser = /*#__PURE__*/function () { + /** + * Constructs a new SendbirdUser. + * User + * @alias module:model/SendbirdUser + * @param userId {String} + */ + function SendbirdUser(userId) { + _classCallCheck(this, SendbirdUser); + SendbirdUser.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(SendbirdUser, null, [{ + key: "initialize", + value: function initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdUser from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdUser} obj Optional instance to populate. + * @return {module:model/SendbirdUser} The populated SendbirdUser instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdUser(); + if (data.hasOwnProperty('access_token')) { + obj['access_token'] = _ApiClient["default"].convertToType(data['access_token'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('has_ever_logged_in')) { + obj['has_ever_logged_in'] = _ApiClient["default"].convertToType(data['has_ever_logged_in'], 'Boolean'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_hide_me_from_friends')) { + obj['is_hide_me_from_friends'] = _ApiClient["default"].convertToType(data['is_hide_me_from_friends'], 'Boolean'); + } + if (data.hasOwnProperty('is_online')) { + obj['is_online'] = _ApiClient["default"].convertToType(data['is_online'], 'Boolean'); + } + if (data.hasOwnProperty('is_shadow_blocked')) { + obj['is_shadow_blocked'] = _ApiClient["default"].convertToType(data['is_shadow_blocked'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('locale')) { + obj['locale'] = _ApiClient["default"].convertToType(data['locale'], 'String'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('preferred_languages')) { + obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = _ApiClient["default"].convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = _ApiClient["default"].convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('unread_channel_count')) { + obj['unread_channel_count'] = _ApiClient["default"].convertToType(data['unread_channel_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = _ApiClient["default"].convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('phone_number')) { + obj['phone_number'] = _ApiClient["default"].convertToType(data['phone_number'], 'String'); + } + if (data.hasOwnProperty('is_created')) { + obj['is_created'] = _ApiClient["default"].convertToType(data['is_created'], 'Boolean'); + } + if (data.hasOwnProperty('session_tokens')) { + obj['session_tokens'] = _ApiClient["default"].convertToType(data['session_tokens'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} access_token + */ +SendbirdUser.prototype['access_token'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdUser.prototype['created_at'] = undefined; + +/** + * @member {Array.} discovery_keys + */ +SendbirdUser.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} has_ever_logged_in + */ +SendbirdUser.prototype['has_ever_logged_in'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdUser.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_hide_me_from_friends + */ +SendbirdUser.prototype['is_hide_me_from_friends'] = undefined; + +/** + * @member {Boolean} is_online + */ +SendbirdUser.prototype['is_online'] = undefined; + +/** + * @member {Boolean} is_shadow_blocked + */ +SendbirdUser.prototype['is_shadow_blocked'] = undefined; + +/** + * @member {Number} last_seen_at + */ +SendbirdUser.prototype['last_seen_at'] = undefined; + +/** + * @member {String} locale + */ +SendbirdUser.prototype['locale'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdUser.prototype['metadata'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdUser.prototype['nickname'] = undefined; + +/** + * @member {Array.} preferred_languages + */ +SendbirdUser.prototype['preferred_languages'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdUser.prototype['profile_url'] = undefined; + +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdUser.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdUser.prototype['user_id'] = undefined; + +/** + * @member {module:model/SendbirdUser.StateEnum} state + */ +SendbirdUser.prototype['state'] = undefined; + +/** + * @member {Number} unread_channel_count + */ +SendbirdUser.prototype['unread_channel_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdUser.prototype['unread_message_count'] = undefined; + +/** + * @member {String} phone_number + */ +SendbirdUser.prototype['phone_number'] = undefined; + +/** + * @member {Boolean} is_created + */ +SendbirdUser.prototype['is_created'] = undefined; + +/** + * @member {Array.} session_tokens + */ +SendbirdUser.prototype['session_tokens'] = undefined; + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +SendbirdUser['StateEnum'] = { + /** + * value: "" + * @const + */ + "empty": "", + /** + * value: "invited" + * @const + */ + "invited": "invited", + /** + * value: "joined" + * @const + */ + "joined": "joined" +}; +var _default = exports["default"] = SendbirdUser; \ No newline at end of file diff --git a/dist/model/SetDomainFilterData.js b/dist/model/SetDomainFilterData.js deleted file mode 100644 index 88b5d8d..0000000 --- a/dist/model/SetDomainFilterData.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SetDomainFilterDataDomainFilter = _interopRequireDefault(require("./SetDomainFilterDataDomainFilter")); -var _SetDomainFilterDataImageModeration = _interopRequireDefault(require("./SetDomainFilterDataImageModeration")); -var _SetDomainFilterDataProfanityFilter = _interopRequireDefault(require("./SetDomainFilterDataProfanityFilter")); -var _SetDomainFilterDataProfanityTriggeredModeration = _interopRequireDefault(require("./SetDomainFilterDataProfanityTriggeredModeration")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterData model module. - * @module model/SetDomainFilterData - * @version 0.0.16 - */ -var SetDomainFilterData = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterData. - * @alias module:model/SetDomainFilterData - */ - function SetDomainFilterData() { - _classCallCheck(this, SetDomainFilterData); - SetDomainFilterData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterData} obj Optional instance to populate. - * @return {module:model/SetDomainFilterData} The populated SetDomainFilterData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterData(); - if (data.hasOwnProperty('domain_filter')) { - obj['domain_filter'] = _SetDomainFilterDataDomainFilter["default"].constructFromObject(data['domain_filter']); - } - if (data.hasOwnProperty('profanity_filter')) { - obj['profanity_filter'] = _SetDomainFilterDataProfanityFilter["default"].constructFromObject(data['profanity_filter']); - } - if (data.hasOwnProperty('profanity_triggered_moderation')) { - obj['profanity_triggered_moderation'] = _SetDomainFilterDataProfanityTriggeredModeration["default"].constructFromObject(data['profanity_triggered_moderation']); - } - if (data.hasOwnProperty('image_moderation')) { - obj['image_moderation'] = _SetDomainFilterDataImageModeration["default"].constructFromObject(data['image_moderation']); - } - } - return obj; - } - }]); - return SetDomainFilterData; -}(); -/** - * @member {module:model/SetDomainFilterDataDomainFilter} domain_filter - */ -SetDomainFilterData.prototype['domain_filter'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataProfanityFilter} profanity_filter - */ -SetDomainFilterData.prototype['profanity_filter'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataProfanityTriggeredModeration} profanity_triggered_moderation - */ -SetDomainFilterData.prototype['profanity_triggered_moderation'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataImageModeration} image_moderation - */ -SetDomainFilterData.prototype['image_moderation'] = undefined; -var _default = SetDomainFilterData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataDomainFilter.js b/dist/model/SetDomainFilterDataDomainFilter.js deleted file mode 100644 index 4f7c3c4..0000000 --- a/dist/model/SetDomainFilterDataDomainFilter.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataDomainFilter model module. - * @module model/SetDomainFilterDataDomainFilter - * @version 0.0.16 - */ -var SetDomainFilterDataDomainFilter = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataDomainFilter. - * @alias module:model/SetDomainFilterDataDomainFilter - */ - function SetDomainFilterDataDomainFilter() { - _classCallCheck(this, SetDomainFilterDataDomainFilter); - SetDomainFilterDataDomainFilter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataDomainFilter, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataDomainFilter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataDomainFilter} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataDomainFilter} The populated SetDomainFilterDataDomainFilter instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataDomainFilter(); - if (data.hasOwnProperty('domains')) { - obj['domains'] = _ApiClient["default"].convertToType(data['domains'], ['String']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('should_check_global')) { - obj['should_check_global'] = _ApiClient["default"].convertToType(data['should_check_global'], 'Boolean'); - } - } - return obj; - } - }]); - return SetDomainFilterDataDomainFilter; -}(); -/** - * @member {Array.} domains - */ -SetDomainFilterDataDomainFilter.prototype['domains'] = undefined; - -/** - * @member {Number} type - */ -SetDomainFilterDataDomainFilter.prototype['type'] = undefined; - -/** - * @member {Boolean} should_check_global - */ -SetDomainFilterDataDomainFilter.prototype['should_check_global'] = undefined; -var _default = SetDomainFilterDataDomainFilter; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataImageModeration.js b/dist/model/SetDomainFilterDataImageModeration.js deleted file mode 100644 index c79682b..0000000 --- a/dist/model/SetDomainFilterDataImageModeration.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SetDomainFilterDataImageModerationLimits = _interopRequireDefault(require("./SetDomainFilterDataImageModerationLimits")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataImageModeration model module. - * @module model/SetDomainFilterDataImageModeration - * @version 0.0.16 - */ -var SetDomainFilterDataImageModeration = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataImageModeration. - * @alias module:model/SetDomainFilterDataImageModeration - */ - function SetDomainFilterDataImageModeration() { - _classCallCheck(this, SetDomainFilterDataImageModeration); - SetDomainFilterDataImageModeration.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataImageModeration, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataImageModeration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataImageModeration} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataImageModeration} The populated SetDomainFilterDataImageModeration instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataImageModeration(); - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('soft_block')) { - obj['soft_block'] = _ApiClient["default"].convertToType(data['soft_block'], 'Boolean'); - } - if (data.hasOwnProperty('limits')) { - obj['limits'] = _SetDomainFilterDataImageModerationLimits["default"].constructFromObject(data['limits']); - } - if (data.hasOwnProperty('check_urls')) { - obj['check_urls'] = _ApiClient["default"].convertToType(data['check_urls'], 'Boolean'); - } - } - return obj; - } - }]); - return SetDomainFilterDataImageModeration; -}(); -/** - * @member {Number} type - */ -SetDomainFilterDataImageModeration.prototype['type'] = undefined; - -/** - * @member {Boolean} soft_block - */ -SetDomainFilterDataImageModeration.prototype['soft_block'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataImageModerationLimits} limits - */ -SetDomainFilterDataImageModeration.prototype['limits'] = undefined; - -/** - * @member {Boolean} check_urls - */ -SetDomainFilterDataImageModeration.prototype['check_urls'] = undefined; -var _default = SetDomainFilterDataImageModeration; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataImageModerationLimits.js b/dist/model/SetDomainFilterDataImageModerationLimits.js deleted file mode 100644 index 7dac562..0000000 --- a/dist/model/SetDomainFilterDataImageModerationLimits.js +++ /dev/null @@ -1,94 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataImageModerationLimits model module. - * @module model/SetDomainFilterDataImageModerationLimits - * @version 0.0.16 - */ -var SetDomainFilterDataImageModerationLimits = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataImageModerationLimits. - * @alias module:model/SetDomainFilterDataImageModerationLimits - */ - function SetDomainFilterDataImageModerationLimits() { - _classCallCheck(this, SetDomainFilterDataImageModerationLimits); - SetDomainFilterDataImageModerationLimits.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataImageModerationLimits, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataImageModerationLimits from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataImageModerationLimits} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataImageModerationLimits} The populated SetDomainFilterDataImageModerationLimits instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataImageModerationLimits(); - if (data.hasOwnProperty('adult')) { - obj['adult'] = _ApiClient["default"].convertToType(data['adult'], 'Number'); - } - if (data.hasOwnProperty('spoof')) { - obj['spoof'] = _ApiClient["default"].convertToType(data['spoof'], 'Number'); - } - if (data.hasOwnProperty('medical')) { - obj['medical'] = _ApiClient["default"].convertToType(data['medical'], 'Number'); - } - if (data.hasOwnProperty('violence')) { - obj['violence'] = _ApiClient["default"].convertToType(data['violence'], 'Number'); - } - if (data.hasOwnProperty('racy')) { - obj['racy'] = _ApiClient["default"].convertToType(data['racy'], 'Number'); - } - } - return obj; - } - }]); - return SetDomainFilterDataImageModerationLimits; -}(); -/** - * @member {Number} adult - */ -SetDomainFilterDataImageModerationLimits.prototype['adult'] = undefined; - -/** - * @member {Number} spoof - */ -SetDomainFilterDataImageModerationLimits.prototype['spoof'] = undefined; - -/** - * @member {Number} medical - */ -SetDomainFilterDataImageModerationLimits.prototype['medical'] = undefined; - -/** - * @member {Number} violence - */ -SetDomainFilterDataImageModerationLimits.prototype['violence'] = undefined; - -/** - * @member {Number} racy - */ -SetDomainFilterDataImageModerationLimits.prototype['racy'] = undefined; -var _default = SetDomainFilterDataImageModerationLimits; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataProfanityFilter.js b/dist/model/SetDomainFilterDataProfanityFilter.js deleted file mode 100644 index c21a5a7..0000000 --- a/dist/model/SetDomainFilterDataProfanityFilter.js +++ /dev/null @@ -1,87 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _SetDomainFilterDataProfanityFilterRegexFiltersInner = _interopRequireDefault(require("./SetDomainFilterDataProfanityFilterRegexFiltersInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataProfanityFilter model module. - * @module model/SetDomainFilterDataProfanityFilter - * @version 0.0.16 - */ -var SetDomainFilterDataProfanityFilter = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataProfanityFilter. - * @alias module:model/SetDomainFilterDataProfanityFilter - */ - function SetDomainFilterDataProfanityFilter() { - _classCallCheck(this, SetDomainFilterDataProfanityFilter); - SetDomainFilterDataProfanityFilter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataProfanityFilter, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataProfanityFilter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityFilter} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityFilter} The populated SetDomainFilterDataProfanityFilter instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityFilter(); - if (data.hasOwnProperty('keywords')) { - obj['keywords'] = _ApiClient["default"].convertToType(data['keywords'], ['String']); - } - if (data.hasOwnProperty('regex_filters')) { - obj['regex_filters'] = _ApiClient["default"].convertToType(data['regex_filters'], [_SetDomainFilterDataProfanityFilterRegexFiltersInner["default"]]); - } - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('should_check_global')) { - obj['should_check_global'] = _ApiClient["default"].convertToType(data['should_check_global'], 'Boolean'); - } - } - return obj; - } - }]); - return SetDomainFilterDataProfanityFilter; -}(); -/** - * @member {Array.} keywords - */ -SetDomainFilterDataProfanityFilter.prototype['keywords'] = undefined; - -/** - * @member {Array.} regex_filters - */ -SetDomainFilterDataProfanityFilter.prototype['regex_filters'] = undefined; - -/** - * @member {Number} type - */ -SetDomainFilterDataProfanityFilter.prototype['type'] = undefined; - -/** - * @member {Boolean} should_check_global - */ -SetDomainFilterDataProfanityFilter.prototype['should_check_global'] = undefined; -var _default = SetDomainFilterDataProfanityFilter; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js b/dist/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js deleted file mode 100644 index 06dcac8..0000000 --- a/dist/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataProfanityFilterRegexFiltersInner model module. - * @module model/SetDomainFilterDataProfanityFilterRegexFiltersInner - * @version 0.0.16 - */ -var SetDomainFilterDataProfanityFilterRegexFiltersInner = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataProfanityFilterRegexFiltersInner. - * @alias module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner - */ - function SetDomainFilterDataProfanityFilterRegexFiltersInner() { - _classCallCheck(this, SetDomainFilterDataProfanityFilterRegexFiltersInner); - SetDomainFilterDataProfanityFilterRegexFiltersInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataProfanityFilterRegexFiltersInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataProfanityFilterRegexFiltersInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner} The populated SetDomainFilterDataProfanityFilterRegexFiltersInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityFilterRegexFiltersInner(); - if (data.hasOwnProperty('regex')) { - obj['regex'] = _ApiClient["default"].convertToType(data['regex'], 'String'); - } - } - return obj; - } - }]); - return SetDomainFilterDataProfanityFilterRegexFiltersInner; -}(); -/** - * @member {String} regex - */ -SetDomainFilterDataProfanityFilterRegexFiltersInner.prototype['regex'] = undefined; -var _default = SetDomainFilterDataProfanityFilterRegexFiltersInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/SetDomainFilterDataProfanityTriggeredModeration.js b/dist/model/SetDomainFilterDataProfanityTriggeredModeration.js deleted file mode 100644 index 3841763..0000000 --- a/dist/model/SetDomainFilterDataProfanityTriggeredModeration.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The SetDomainFilterDataProfanityTriggeredModeration model module. - * @module model/SetDomainFilterDataProfanityTriggeredModeration - * @version 0.0.16 - */ -var SetDomainFilterDataProfanityTriggeredModeration = /*#__PURE__*/function () { - /** - * Constructs a new SetDomainFilterDataProfanityTriggeredModeration. - * @alias module:model/SetDomainFilterDataProfanityTriggeredModeration - */ - function SetDomainFilterDataProfanityTriggeredModeration() { - _classCallCheck(this, SetDomainFilterDataProfanityTriggeredModeration); - SetDomainFilterDataProfanityTriggeredModeration.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(SetDomainFilterDataProfanityTriggeredModeration, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a SetDomainFilterDataProfanityTriggeredModeration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityTriggeredModeration} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityTriggeredModeration} The populated SetDomainFilterDataProfanityTriggeredModeration instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityTriggeredModeration(); - if (data.hasOwnProperty('count')) { - obj['count'] = _ApiClient["default"].convertToType(data['count'], 'Number'); - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = _ApiClient["default"].convertToType(data['duration'], 'Number'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'Number'); - } - } - return obj; - } - }]); - return SetDomainFilterDataProfanityTriggeredModeration; -}(); -/** - * @member {Number} count - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['count'] = undefined; - -/** - * @member {Number} duration - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['duration'] = undefined; - -/** - * @member {Number} action - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['action'] = undefined; -var _default = SetDomainFilterDataProfanityTriggeredModeration; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/StartTypingIndicatorsRequest.js b/dist/model/StartTypingIndicatorsRequest.js new file mode 100644 index 0000000..8a947b9 --- /dev/null +++ b/dist/model/StartTypingIndicatorsRequest.js @@ -0,0 +1,77 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The StartTypingIndicatorsRequest model module. + * @module model/StartTypingIndicatorsRequest + * @version 2.0.0 + */ +var StartTypingIndicatorsRequest = /*#__PURE__*/function () { + /** + * Constructs a new StartTypingIndicatorsRequest. + * @alias module:model/StartTypingIndicatorsRequest + * @param userIds {Array.} + */ + function StartTypingIndicatorsRequest(userIds) { + _classCallCheck(this, StartTypingIndicatorsRequest); + StartTypingIndicatorsRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(StartTypingIndicatorsRequest, null, [{ + key: "initialize", + value: function initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a StartTypingIndicatorsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StartTypingIndicatorsRequest} obj Optional instance to populate. + * @return {module:model/StartTypingIndicatorsRequest} The populated StartTypingIndicatorsRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new StartTypingIndicatorsRequest(); + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} user_ids + */ +StartTypingIndicatorsRequest.prototype['user_ids'] = undefined; +var _default = exports["default"] = StartTypingIndicatorsRequest; \ No newline at end of file diff --git a/dist/model/TranslateMessageIntoOtherLanguagesData.js b/dist/model/TranslateMessageIntoOtherLanguagesData.js deleted file mode 100644 index 1375c6b..0000000 --- a/dist/model/TranslateMessageIntoOtherLanguagesData.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The TranslateMessageIntoOtherLanguagesData model module. - * @module model/TranslateMessageIntoOtherLanguagesData - * @version 0.0.16 - */ -var TranslateMessageIntoOtherLanguagesData = /*#__PURE__*/function () { - /** - * Constructs a new TranslateMessageIntoOtherLanguagesData. - * @alias module:model/TranslateMessageIntoOtherLanguagesData - */ - function TranslateMessageIntoOtherLanguagesData() { - _classCallCheck(this, TranslateMessageIntoOtherLanguagesData); - TranslateMessageIntoOtherLanguagesData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(TranslateMessageIntoOtherLanguagesData, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a TranslateMessageIntoOtherLanguagesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TranslateMessageIntoOtherLanguagesData} obj Optional instance to populate. - * @return {module:model/TranslateMessageIntoOtherLanguagesData} The populated TranslateMessageIntoOtherLanguagesData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new TranslateMessageIntoOtherLanguagesData(); - if (data.hasOwnProperty('target_langs')) { - obj['target_langs'] = _ApiClient["default"].convertToType(data['target_langs'], ['String']); - } - } - return obj; - } - }]); - return TranslateMessageIntoOtherLanguagesData; -}(); -/** - * Specifies an array of one or more codes of [translation](/docs/chat/v3/platform-api/message/translations/translation-engine) to translate the message. - * @member {Array.} target_langs - */ -TranslateMessageIntoOtherLanguagesData.prototype['target_langs'] = undefined; -var _default = TranslateMessageIntoOtherLanguagesData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateAChannelMetadataRequest.js b/dist/model/UpdateAChannelMetadataRequest.js new file mode 100644 index 0000000..5506dd3 --- /dev/null +++ b/dist/model/UpdateAChannelMetadataRequest.js @@ -0,0 +1,85 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateAChannelMetadataRequest model module. + * @module model/UpdateAChannelMetadataRequest + * @version 2.0.0 + */ +var UpdateAChannelMetadataRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAChannelMetadataRequest. + * @alias module:model/UpdateAChannelMetadataRequest + * @param metadata {Object} + */ + function UpdateAChannelMetadataRequest(metadata) { + _classCallCheck(this, UpdateAChannelMetadataRequest); + UpdateAChannelMetadataRequest.initialize(this, metadata); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateAChannelMetadataRequest, null, [{ + key: "initialize", + value: function initialize(obj, metadata) { + obj['metadata'] = metadata; + } + + /** + * Constructs a UpdateAChannelMetadataRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAChannelMetadataRequest} obj Optional instance to populate. + * @return {module:model/UpdateAChannelMetadataRequest} The populated UpdateAChannelMetadataRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAChannelMetadataRequest(); + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('upsert')) { + obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Object} metadata + */ +UpdateAChannelMetadataRequest.prototype['metadata'] = undefined; + +/** + * @member {Boolean} upsert + */ +UpdateAChannelMetadataRequest.prototype['upsert'] = undefined; +var _default = exports["default"] = UpdateAChannelMetadataRequest; \ No newline at end of file diff --git a/dist/model/UpdateAGroupChannelRequest.js b/dist/model/UpdateAGroupChannelRequest.js new file mode 100644 index 0000000..fb329a8 --- /dev/null +++ b/dist/model/UpdateAGroupChannelRequest.js @@ -0,0 +1,146 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateAGroupChannelRequest model module. + * @module model/UpdateAGroupChannelRequest + * @version 2.0.0 + */ +var UpdateAGroupChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAGroupChannelRequest. + * @alias module:model/UpdateAGroupChannelRequest + */ + function UpdateAGroupChannelRequest() { + _classCallCheck(this, UpdateAGroupChannelRequest); + UpdateAGroupChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateAGroupChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateAGroupChannelRequest} The populated UpdateAGroupChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAGroupChannelRequest(); + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = _ApiClient["default"].convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = _ApiClient["default"].convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = _ApiClient["default"].convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = _ApiClient["default"].convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} access_code + */ +UpdateAGroupChannelRequest.prototype['access_code'] = undefined; + +/** + * @member {File} cover_file + */ +UpdateAGroupChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +UpdateAGroupChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +UpdateAGroupChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAGroupChannelRequest.prototype['data'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +UpdateAGroupChannelRequest.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_public + */ +UpdateAGroupChannelRequest.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +UpdateAGroupChannelRequest.prototype['is_super'] = undefined; + +/** + * @member {String} name + */ +UpdateAGroupChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +UpdateAGroupChannelRequest.prototype['operator_ids'] = undefined; +var _default = exports["default"] = UpdateAGroupChannelRequest; \ No newline at end of file diff --git a/dist/model/UpdateAMessageRequest.js b/dist/model/UpdateAMessageRequest.js new file mode 100644 index 0000000..8fb02bf --- /dev/null +++ b/dist/model/UpdateAMessageRequest.js @@ -0,0 +1,148 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateAMessageRequest model module. + * @module model/UpdateAMessageRequest + * @version 2.0.0 + */ +var UpdateAMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAMessageRequest. + * @alias module:model/UpdateAMessageRequest + * @param messageType {module:model/UpdateAMessageRequest.MessageTypeEnum} + */ + function UpdateAMessageRequest(messageType) { + _classCallCheck(this, UpdateAMessageRequest); + UpdateAMessageRequest.initialize(this, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateAMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, messageType) { + obj['message_type'] = messageType; + } + + /** + * Constructs a UpdateAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAMessageRequest} obj Optional instance to populate. + * @return {module:model/UpdateAMessageRequest} The populated UpdateAMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAMessageRequest(); + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} custom_type + */ +UpdateAMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} mention_type + */ +UpdateAMessageRequest.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +UpdateAMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +UpdateAMessageRequest.prototype['message'] = undefined; + +/** + * @member {String} url + */ +UpdateAMessageRequest.prototype['url'] = undefined; + +/** + * @member {module:model/UpdateAMessageRequest.MessageTypeEnum} message_type + */ +UpdateAMessageRequest.prototype['message_type'] = undefined; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +UpdateAMessageRequest['MessageTypeEnum'] = { + /** + * value: "MESG" + * @const + */ + "MESG": "MESG", + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM", + /** + * value: "FILE" + * @const + */ + "FILE": "FILE" +}; +var _default = exports["default"] = UpdateAMessageRequest; \ No newline at end of file diff --git a/dist/model/UpdateAUserRequest.js b/dist/model/UpdateAUserRequest.js new file mode 100644 index 0000000..36c1306 --- /dev/null +++ b/dist/model/UpdateAUserRequest.js @@ -0,0 +1,138 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateAUserRequest model module. + * @module model/UpdateAUserRequest + * @version 2.0.0 + */ +var UpdateAUserRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAUserRequest. + * @alias module:model/UpdateAUserRequest + */ + function UpdateAUserRequest() { + _classCallCheck(this, UpdateAUserRequest); + UpdateAUserRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateAUserRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAUserRequest} obj Optional instance to populate. + * @return {module:model/UpdateAUserRequest} The populated UpdateAUserRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAUserRequest(); + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('issue_access_token')) { + obj['issue_access_token'] = _ApiClient["default"].convertToType(data['issue_access_token'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('leave_all_when_deactivated')) { + obj['leave_all_when_deactivated'] = _ApiClient["default"].convertToType(data['leave_all_when_deactivated'], 'Boolean'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('preferred_languages')) { + obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); + } + if (data.hasOwnProperty('profile_file')) { + obj['profile_file'] = _ApiClient["default"].convertToType(data['profile_file'], File); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} discovery_keys + */ +UpdateAUserRequest.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} is_active + */ +UpdateAUserRequest.prototype['is_active'] = undefined; + +/** + * @member {Boolean} issue_access_token + */ +UpdateAUserRequest.prototype['issue_access_token'] = undefined; + +/** + * @member {Number} last_seen_at + */ +UpdateAUserRequest.prototype['last_seen_at'] = undefined; + +/** + * @member {Boolean} leave_all_when_deactivated + */ +UpdateAUserRequest.prototype['leave_all_when_deactivated'] = undefined; + +/** + * @member {String} nickname + */ +UpdateAUserRequest.prototype['nickname'] = undefined; + +/** + * @member {Array.} preferred_languages + */ +UpdateAUserRequest.prototype['preferred_languages'] = undefined; + +/** + * @member {File} profile_file + */ +UpdateAUserRequest.prototype['profile_file'] = undefined; + +/** + * @member {String} profile_url + */ +UpdateAUserRequest.prototype['profile_url'] = undefined; +var _default = exports["default"] = UpdateAUserRequest; \ No newline at end of file diff --git a/dist/model/UpdateAnOpenChannelRequest.js b/dist/model/UpdateAnOpenChannelRequest.js new file mode 100644 index 0000000..40d747a --- /dev/null +++ b/dist/model/UpdateAnOpenChannelRequest.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateAnOpenChannelRequest model module. + * @module model/UpdateAnOpenChannelRequest + * @version 2.0.0 + */ +var UpdateAnOpenChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateAnOpenChannelRequest. + * @alias module:model/UpdateAnOpenChannelRequest + */ + function UpdateAnOpenChannelRequest() { + _classCallCheck(this, UpdateAnOpenChannelRequest); + UpdateAnOpenChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateAnOpenChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateAnOpenChannelRequest} The populated UpdateAnOpenChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAnOpenChannelRequest(); + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = _ApiClient["default"].convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = _ApiClient["default"].convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = _ApiClient["default"].convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = _ApiClient["default"].convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + }]); +}(); +/** + * @member {File} cover_file + */ +UpdateAnOpenChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +UpdateAnOpenChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +UpdateAnOpenChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAnOpenChannelRequest.prototype['data'] = undefined; + +/** + * @member {String} name + */ +UpdateAnOpenChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +UpdateAnOpenChannelRequest.prototype['operator_ids'] = undefined; +var _default = exports["default"] = UpdateAnOpenChannelRequest; \ No newline at end of file diff --git a/dist/model/UpdateAnnouncementByIdData.js b/dist/model/UpdateAnnouncementByIdData.js deleted file mode 100644 index eecf892..0000000 --- a/dist/model/UpdateAnnouncementByIdData.js +++ /dev/null @@ -1,210 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateAnnouncementByIdData model module. - * @module model/UpdateAnnouncementByIdData - * @version 0.0.16 - */ -var UpdateAnnouncementByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAnnouncementByIdData. - * @alias module:model/UpdateAnnouncementByIdData - * @param uniqueId {String} Specifies the unique ID of the announcement to update. - */ - function UpdateAnnouncementByIdData(uniqueId) { - _classCallCheck(this, UpdateAnnouncementByIdData); - UpdateAnnouncementByIdData.initialize(this, uniqueId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateAnnouncementByIdData, null, [{ - key: "initialize", - value: function initialize(obj, uniqueId) { - obj['unique_id'] = uniqueId; - } - - /** - * Constructs a UpdateAnnouncementByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdData} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdData} The populated UpdateAnnouncementByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdData(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options.name')) { - obj['create_channel_options.name'] = _ApiClient["default"].convertToType(data['create_channel_options.name'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.cover_url')) { - obj['create_channel_options.cover_url'] = _ApiClient["default"].convertToType(data['create_channel_options.cover_url'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.custom_type')) { - obj['create_channel_options.custom_type'] = _ApiClient["default"].convertToType(data['create_channel_options.custom_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.data')) { - obj['create_channel_options.data'] = _ApiClient["default"].convertToType(data['create_channel_options.data'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.distinct')) { - obj['create_channel_options.distinct'] = _ApiClient["default"].convertToType(data['create_channel_options.distinct'], 'String'); - } - if (data.hasOwnProperty('message.user_id')) { - obj['message.user_id'] = _ApiClient["default"].convertToType(data['message.user_id'], 'String'); - } - if (data.hasOwnProperty('message.content')) { - obj['message.content'] = _ApiClient["default"].convertToType(data['message.content'], 'String'); - } - if (data.hasOwnProperty('message.data')) { - obj['message.data'] = _ApiClient["default"].convertToType(data['message.data'], 'String'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); - } - } - return obj; - } - }]); - return UpdateAnnouncementByIdData; -}(); -/** - * Specifies the unique ID of the announcement to update. - * @member {String} unique_id - */ -UpdateAnnouncementByIdData.prototype['unique_id'] = undefined; - -/** - * Specifies an action to take on the announcement. If this property is updated, other specified properties in the request are not effective. Acceptable values are limited to remove, pause, resume, and cancel. The [Announcement actions](#2-update-an-announcement-3-how-to-change-announcement-status) table explains each action in detail. - * @member {String} action - */ -UpdateAnnouncementByIdData.prototype['action'] = undefined; - -/** - * Specifies the name of an announcement group to retrieve. If not specified, all announcements are returned, regardless of their group. - * @member {String} announcement_group - */ -UpdateAnnouncementByIdData.prototype['announcement_group'] = undefined; - -/** - * Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. - * @member {Boolean} create_channel - */ -UpdateAnnouncementByIdData.prototype['create_channel'] = undefined; - -/** - * Specifies the name of the channel. (Default: Group Channel) - * @member {String} create_channel_options.name - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.name'] = undefined; - -/** - * Specifies the URL of the cover image. - * @member {String} create_channel_options.cover_url - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.cover_url'] = undefined; - -/** - * Specifies the custom channel type. - * @member {String} create_channel_options.custom_type - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} create_channel_options.data - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.data'] = undefined; - -/** - * Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) - * @member {String} create_channel_options.distinct - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.distinct'] = undefined; - -/** - * Specifies the unique ID of the announcement sender. - * @member {String} message.user_id - */ -UpdateAnnouncementByIdData.prototype['message.user_id'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message.content - */ -UpdateAnnouncementByIdData.prototype['message.content'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} message.data - */ -UpdateAnnouncementByIdData.prototype['message.data'] = undefined; - -/** - * Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for announcements. - * @member {Boolean} enable_push - */ -UpdateAnnouncementByIdData.prototype['enable_push'] = undefined; - -/** - * Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. (Default: current timestamp) - * @member {Number} scheduled_at - */ -UpdateAnnouncementByIdData.prototype['scheduled_at'] = undefined; - -/** - * Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format, even if the announcement is not sent to all its targets. - * @member {Number} end_at - */ -UpdateAnnouncementByIdData.prototype['end_at'] = undefined; - -/** - * Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the resume_at below. - * @member {String} cease_at - */ -UpdateAnnouncementByIdData.prototype['cease_at'] = undefined; - -/** - * Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the cease_at above. - * @member {String} resume_at - */ -UpdateAnnouncementByIdData.prototype['resume_at'] = undefined; -var _default = UpdateAnnouncementByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateAnnouncementByIdResponse.js b/dist/model/UpdateAnnouncementByIdResponse.js deleted file mode 100644 index 1acecb0..0000000 --- a/dist/model/UpdateAnnouncementByIdResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _UpdateAnnouncementByIdResponseMessage = _interopRequireDefault(require("./UpdateAnnouncementByIdResponseMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateAnnouncementByIdResponse model module. - * @module model/UpdateAnnouncementByIdResponse - * @version 0.0.16 - */ -var UpdateAnnouncementByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAnnouncementByIdResponse. - * @alias module:model/UpdateAnnouncementByIdResponse - */ - function UpdateAnnouncementByIdResponse() { - _classCallCheck(this, UpdateAnnouncementByIdResponse); - UpdateAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateAnnouncementByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdResponse} The populated UpdateAnnouncementByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdResponse(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _UpdateAnnouncementByIdResponseMessage["default"].constructFromObject(data['message']); - } - } - return obj; - } - }]); - return UpdateAnnouncementByIdResponse; -}(); -/** - * @member {String} unique_id - */ -UpdateAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -UpdateAnnouncementByIdResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/UpdateAnnouncementByIdResponseMessage} message - */ -UpdateAnnouncementByIdResponse.prototype['message'] = undefined; -var _default = UpdateAnnouncementByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateAnnouncementByIdResponseMessage.js b/dist/model/UpdateAnnouncementByIdResponseMessage.js deleted file mode 100644 index 0728290..0000000 --- a/dist/model/UpdateAnnouncementByIdResponseMessage.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateAnnouncementByIdResponseMessage model module. - * @module model/UpdateAnnouncementByIdResponseMessage - * @version 0.0.16 - */ -var UpdateAnnouncementByIdResponseMessage = /*#__PURE__*/function () { - /** - * Constructs a new UpdateAnnouncementByIdResponseMessage. - * @alias module:model/UpdateAnnouncementByIdResponseMessage - */ - function UpdateAnnouncementByIdResponseMessage() { - _classCallCheck(this, UpdateAnnouncementByIdResponseMessage); - UpdateAnnouncementByIdResponseMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateAnnouncementByIdResponseMessage, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateAnnouncementByIdResponseMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdResponseMessage} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdResponseMessage} The populated UpdateAnnouncementByIdResponseMessage instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdResponseMessage(); - if (data.hasOwnProperty('type')) { - obj['type'] = _ApiClient["default"].convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = _ApiClient["default"].convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); - } - } - return obj; - } - }]); - return UpdateAnnouncementByIdResponseMessage; -}(); -/** - * @member {String} type - */ -UpdateAnnouncementByIdResponseMessage.prototype['type'] = undefined; - -/** - * @member {String} custom_type - */ -UpdateAnnouncementByIdResponseMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} user_id - */ -UpdateAnnouncementByIdResponseMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -UpdateAnnouncementByIdResponseMessage.prototype['content'] = undefined; - -/** - * @member {String} data - */ -UpdateAnnouncementByIdResponseMessage.prototype['data'] = undefined; - -/** - * @member {Boolean} enable_push - */ -UpdateAnnouncementByIdResponseMessage.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -UpdateAnnouncementByIdResponseMessage.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['scheduled_at'] = undefined; - -/** - * @member {Number} completed_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -UpdateAnnouncementByIdResponseMessage.prototype['open_rate'] = undefined; -var _default = UpdateAnnouncementByIdResponseMessage; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateApnsPushConfigurationByIdData.js b/dist/model/UpdateApnsPushConfigurationByIdData.js deleted file mode 100644 index 8decac7..0000000 --- a/dist/model/UpdateApnsPushConfigurationByIdData.js +++ /dev/null @@ -1,154 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateApnsPushConfigurationByIdData model module. - * @module model/UpdateApnsPushConfigurationByIdData - * @version 0.0.16 - */ -var UpdateApnsPushConfigurationByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateApnsPushConfigurationByIdData. - * @alias module:model/UpdateApnsPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param apnsCert {File} In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. You should specify either this property or the apns_type below to inform the server of which certificate type to update. - * @param apnsCertEnvType {String} Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @param apnsCertPassword {String} Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @param hasUnreadCountBadge {Boolean} Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @param contentAvailable {Boolean} Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @param mutableContent {Boolean} Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @param apnsType {String} (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - */ - function UpdateApnsPushConfigurationByIdData(providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - _classCallCheck(this, UpdateApnsPushConfigurationByIdData); - UpdateApnsPushConfigurationByIdData.initialize(this, providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateApnsPushConfigurationByIdData, null, [{ - key: "initialize", - value: function initialize(obj, providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - obj['provider_id'] = providerId; - obj['apns_cert'] = apnsCert; - obj['apns_cert_env_type'] = apnsCertEnvType; - obj['apns_cert_password'] = apnsCertPassword; - obj['has_unread_count_badge'] = hasUnreadCountBadge; - obj['content_available'] = contentAvailable; - obj['mutable_content'] = mutableContent; - obj['push_sound'] = pushSound; - obj['apns_type'] = apnsType; - } - - /** - * Constructs a UpdateApnsPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateApnsPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateApnsPushConfigurationByIdData} The populated UpdateApnsPushConfigurationByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateApnsPushConfigurationByIdData(); - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = _ApiClient["default"].convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('apns_cert')) { - obj['apns_cert'] = _ApiClient["default"].convertToType(data['apns_cert'], File); - } - if (data.hasOwnProperty('apns_cert_env_type')) { - obj['apns_cert_env_type'] = _ApiClient["default"].convertToType(data['apns_cert_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_cert_password')) { - obj['apns_cert_password'] = _ApiClient["default"].convertToType(data['apns_cert_password'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = _ApiClient["default"].convertToType(data['has_unread_count_badge'], 'Boolean'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = _ApiClient["default"].convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = _ApiClient["default"].convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('apns_type')) { - obj['apns_type'] = _ApiClient["default"].convertToType(data['apns_type'], 'String'); - } - } - return obj; - } - }]); - return UpdateApnsPushConfigurationByIdData; -}(); -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateApnsPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. You should specify either this property or the apns_type below to inform the server of which certificate type to update. - * @member {File} apns_cert - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert'] = undefined; - -/** - * Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_cert_env_type - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert_env_type'] = undefined; - -/** - * Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @member {String} apns_cert_password - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert_password'] = undefined; - -/** - * Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @member {Boolean} has_unread_count_badge - */ -UpdateApnsPushConfigurationByIdData.prototype['has_unread_count_badge'] = undefined; - -/** - * Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @member {Boolean} content_available - */ -UpdateApnsPushConfigurationByIdData.prototype['content_available'] = undefined; - -/** - * Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @member {Boolean} mutable_content - */ -UpdateApnsPushConfigurationByIdData.prototype['mutable_content'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @member {String} push_sound - */ -UpdateApnsPushConfigurationByIdData.prototype['push_sound'] = undefined; - -/** - * (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_type - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_type'] = undefined; -var _default = UpdateApnsPushConfigurationByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateApnsPushConfigurationByIdResponse.js b/dist/model/UpdateApnsPushConfigurationByIdResponse.js deleted file mode 100644 index d54a609..0000000 --- a/dist/model/UpdateApnsPushConfigurationByIdResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateApnsPushConfigurationByIdResponse model module. - * @module model/UpdateApnsPushConfigurationByIdResponse - * @version 0.0.16 - */ -var UpdateApnsPushConfigurationByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateApnsPushConfigurationByIdResponse. - * @alias module:model/UpdateApnsPushConfigurationByIdResponse - */ - function UpdateApnsPushConfigurationByIdResponse() { - _classCallCheck(this, UpdateApnsPushConfigurationByIdResponse); - UpdateApnsPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateApnsPushConfigurationByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateApnsPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateApnsPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateApnsPushConfigurationByIdResponse} The populated UpdateApnsPushConfigurationByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateApnsPushConfigurationByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - }]); - return UpdateApnsPushConfigurationByIdResponse; -}(); -/** - * @member {String} push_configurations - */ -UpdateApnsPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; -var _default = UpdateApnsPushConfigurationByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateBotByIdData.js b/dist/model/UpdateBotByIdData.js deleted file mode 100644 index 0462664..0000000 --- a/dist/model/UpdateBotByIdData.js +++ /dev/null @@ -1,143 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateBotByIdData model module. - * @module model/UpdateBotByIdData - * @version 0.0.16 - */ -var UpdateBotByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateBotByIdData. - * @alias module:model/UpdateBotByIdData - * @param botUserid {String} Specifies the ID of the bot to update. - * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. - * @param botProfileUrl {String} Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @param botCallbackUrl {String} Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @param isPrivacyMode {Boolean} In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @param enableMarkAsRead {Boolean} Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @param showMember {Boolean} Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @param channelInvitationPreference {Number} Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) - */ - function UpdateBotByIdData(botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference) { - _classCallCheck(this, UpdateBotByIdData); - UpdateBotByIdData.initialize(this, botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateBotByIdData, null, [{ - key: "initialize", - value: function initialize(obj, botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference) { - obj['bot_userid'] = botUserid; - obj['bot_nickname'] = botNickname; - obj['bot_profile_url'] = botProfileUrl; - obj['bot_callback_url'] = botCallbackUrl; - obj['is_privacy_mode'] = isPrivacyMode; - obj['enable_mark_as_read'] = enableMarkAsRead; - obj['show_member'] = showMember; - obj['channel_invitation_preference'] = channelInvitationPreference; - } - - /** - * Constructs a UpdateBotByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateBotByIdData} obj Optional instance to populate. - * @return {module:model/UpdateBotByIdData} The populated UpdateBotByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateBotByIdData(); - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = _ApiClient["default"].convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = _ApiClient["default"].convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = _ApiClient["default"].convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - }]); - return UpdateBotByIdData; -}(); -/** - * Specifies the ID of the bot to update. - * @member {String} bot_userid - */ -UpdateBotByIdData.prototype['bot_userid'] = undefined; - -/** - * Specifies the bot's nickname. The length is limited to 80 characters. - * @member {String} bot_nickname - */ -UpdateBotByIdData.prototype['bot_nickname'] = undefined; - -/** - * Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @member {String} bot_profile_url - */ -UpdateBotByIdData.prototype['bot_profile_url'] = undefined; - -/** - * Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @member {String} bot_callback_url - */ -UpdateBotByIdData.prototype['bot_callback_url'] = undefined; - -/** - * In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @member {Boolean} is_privacy_mode - */ -UpdateBotByIdData.prototype['is_privacy_mode'] = undefined; - -/** - * Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @member {Boolean} enable_mark_as_read - */ -UpdateBotByIdData.prototype['enable_mark_as_read'] = undefined; - -/** - * Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @member {Boolean} show_member - */ -UpdateBotByIdData.prototype['show_member'] = undefined; - -/** - * Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) - * @member {Number} channel_invitation_preference - */ -UpdateBotByIdData.prototype['channel_invitation_preference'] = undefined; -var _default = UpdateBotByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateBotByIdResponse.js b/dist/model/UpdateBotByIdResponse.js deleted file mode 100644 index e0a40c8..0000000 --- a/dist/model/UpdateBotByIdResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateBotResponseBot = _interopRequireDefault(require("./CreateBotResponseBot")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateBotByIdResponse model module. - * @module model/UpdateBotByIdResponse - * @version 0.0.16 - */ -var UpdateBotByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateBotByIdResponse. - * @alias module:model/UpdateBotByIdResponse - */ - function UpdateBotByIdResponse() { - _classCallCheck(this, UpdateBotByIdResponse); - UpdateBotByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateBotByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateBotByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateBotByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateBotByIdResponse} The populated UpdateBotByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateBotByIdResponse(); - if (data.hasOwnProperty('bot')) { - obj['bot'] = _CreateBotResponseBot["default"].constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - }]); - return UpdateBotByIdResponse; -}(); -/** - * @member {module:model/CreateBotResponseBot} bot - */ -UpdateBotByIdResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -UpdateBotByIdResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -UpdateBotByIdResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -UpdateBotByIdResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -UpdateBotByIdResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -UpdateBotByIdResponse.prototype['channel_invitation_preference'] = undefined; -var _default = UpdateBotByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateChannelInvitationPreferenceData.js b/dist/model/UpdateChannelInvitationPreferenceData.js deleted file mode 100644 index a1c4395..0000000 --- a/dist/model/UpdateChannelInvitationPreferenceData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateChannelInvitationPreferenceData model module. - * @module model/UpdateChannelInvitationPreferenceData - * @version 0.0.16 - */ -var UpdateChannelInvitationPreferenceData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateChannelInvitationPreferenceData. - * @alias module:model/UpdateChannelInvitationPreferenceData - * @param autoAccept {Boolean} Determines for the user whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - */ - function UpdateChannelInvitationPreferenceData(autoAccept) { - _classCallCheck(this, UpdateChannelInvitationPreferenceData); - UpdateChannelInvitationPreferenceData.initialize(this, autoAccept); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateChannelInvitationPreferenceData, null, [{ - key: "initialize", - value: function initialize(obj, autoAccept) { - obj['auto_accept'] = autoAccept; - } - - /** - * Constructs a UpdateChannelInvitationPreferenceData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelInvitationPreferenceData} obj Optional instance to populate. - * @return {module:model/UpdateChannelInvitationPreferenceData} The populated UpdateChannelInvitationPreferenceData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelInvitationPreferenceData(); - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateChannelInvitationPreferenceData; -}(); -/** - * Determines for the user whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - * @member {Boolean} auto_accept - */ -UpdateChannelInvitationPreferenceData.prototype['auto_accept'] = undefined; -var _default = UpdateChannelInvitationPreferenceData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateChannelInvitationPreferenceRequest.js b/dist/model/UpdateChannelInvitationPreferenceRequest.js new file mode 100644 index 0000000..85a8338 --- /dev/null +++ b/dist/model/UpdateChannelInvitationPreferenceRequest.js @@ -0,0 +1,74 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateChannelInvitationPreferenceRequest model module. + * @module model/UpdateChannelInvitationPreferenceRequest + * @version 2.0.0 + */ +var UpdateChannelInvitationPreferenceRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateChannelInvitationPreferenceRequest. + * @alias module:model/UpdateChannelInvitationPreferenceRequest + */ + function UpdateChannelInvitationPreferenceRequest() { + _classCallCheck(this, UpdateChannelInvitationPreferenceRequest); + UpdateChannelInvitationPreferenceRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateChannelInvitationPreferenceRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateChannelInvitationPreferenceRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateChannelInvitationPreferenceRequest} obj Optional instance to populate. + * @return {module:model/UpdateChannelInvitationPreferenceRequest} The populated UpdateChannelInvitationPreferenceRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateChannelInvitationPreferenceRequest(); + if (data.hasOwnProperty('auto_accept')) { + obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} auto_accept + */ +UpdateChannelInvitationPreferenceRequest.prototype['auto_accept'] = undefined; +var _default = exports["default"] = UpdateChannelInvitationPreferenceRequest; \ No newline at end of file diff --git a/dist/model/UpdateChannelInvitationPreferenceResponse.js b/dist/model/UpdateChannelInvitationPreferenceResponse.js index 6ed8879..868c5f4 100644 --- a/dist/model/UpdateChannelInvitationPreferenceResponse.js +++ b/dist/model/UpdateChannelInvitationPreferenceResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The UpdateChannelInvitationPreferenceResponse model module. * @module model/UpdateChannelInvitationPreferenceResponse - * @version 0.0.16 + * @version 2.0.0 */ var UpdateChannelInvitationPreferenceResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var UpdateChannelInvitationPreferenceResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(UpdateChannelInvitationPreferenceResponse, null, [{ + return _createClass(UpdateChannelInvitationPreferenceResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,9 @@ var UpdateChannelInvitationPreferenceResponse = /*#__PURE__*/function () { return obj; } }]); - return UpdateChannelInvitationPreferenceResponse; }(); /** * @member {Boolean} auto_accept */ UpdateChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; -var _default = UpdateChannelInvitationPreferenceResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = UpdateChannelInvitationPreferenceResponse; \ No newline at end of file diff --git a/dist/model/UpdateChannelMetacounterData.js b/dist/model/UpdateChannelMetacounterData.js deleted file mode 100644 index a3e42fd..0000000 --- a/dist/model/UpdateChannelMetacounterData.js +++ /dev/null @@ -1,83 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateChannelMetacounterData model module. - * @module model/UpdateChannelMetacounterData - * @version 0.0.16 - */ -var UpdateChannelMetacounterData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateChannelMetacounterData. - * @alias module:model/UpdateChannelMetacounterData - * @param metacounter {String} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - */ - function UpdateChannelMetacounterData(metacounter) { - _classCallCheck(this, UpdateChannelMetacounterData); - UpdateChannelMetacounterData.initialize(this, metacounter); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateChannelMetacounterData, null, [{ - key: "initialize", - value: function initialize(obj, metacounter) { - obj['metacounter'] = metacounter; - } - - /** - * Constructs a UpdateChannelMetacounterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelMetacounterData} obj Optional instance to populate. - * @return {module:model/UpdateChannelMetacounterData} The populated UpdateChannelMetacounterData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelMetacounterData(); - if (data.hasOwnProperty('metacounter')) { - obj['metacounter'] = _ApiClient["default"].convertToType(data['metacounter'], 'String'); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String'); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateChannelMetacounterData; -}(); -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - * @member {String} metacounter - */ -UpdateChannelMetacounterData.prototype['metacounter'] = undefined; - -/** - * Specifies how to calculate the item value of the metacounter. Acceptable values are increase, decrease, and set. If set to increase, increments the item value of the metacounter by the value specified in the metacounter property, while decrease decrements. set sets the item value to the specified value exactly. (Default: set) - * @member {String} mode - */ -UpdateChannelMetacounterData.prototype['mode'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateChannelMetacounterData.prototype['upsert'] = undefined; -var _default = UpdateChannelMetacounterData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateChannelMetadataData.js b/dist/model/UpdateChannelMetadataData.js deleted file mode 100644 index 5b9df76..0000000 --- a/dist/model/UpdateChannelMetadataData.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateChannelMetadataData model module. - * @module model/UpdateChannelMetadataData - * @version 0.0.16 - */ -var UpdateChannelMetadataData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateChannelMetadataData. - * @alias module:model/UpdateChannelMetadataData - * @param metadata {Object} Specifies a `JSON` object which has key-value items to update. A key can't contain a comma (,) and its length is limited to 128 characters. A value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @param upsert {Boolean} - */ - function UpdateChannelMetadataData(metadata, upsert) { - _classCallCheck(this, UpdateChannelMetadataData); - UpdateChannelMetadataData.initialize(this, metadata, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateChannelMetadataData, null, [{ - key: "initialize", - value: function initialize(obj, metadata, upsert) { - obj['metadata'] = metadata; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateChannelMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelMetadataData} obj Optional instance to populate. - * @return {module:model/UpdateChannelMetadataData} The populated UpdateChannelMetadataData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelMetadataData(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateChannelMetadataData; -}(); -/** - * Specifies a `JSON` object which has key-value items to update. A key can't contain a comma (,) and its length is limited to 128 characters. A value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -UpdateChannelMetadataData.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateChannelMetadataData.prototype['upsert'] = undefined; -var _default = UpdateChannelMetadataData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateCountPreferenceOfAChannelRequest.js b/dist/model/UpdateCountPreferenceOfAChannelRequest.js new file mode 100644 index 0000000..7930517 --- /dev/null +++ b/dist/model/UpdateCountPreferenceOfAChannelRequest.js @@ -0,0 +1,105 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateCountPreferenceOfAChannelRequest model module. + * @module model/UpdateCountPreferenceOfAChannelRequest + * @version 2.0.0 + */ +var UpdateCountPreferenceOfAChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateCountPreferenceOfAChannelRequest. + * @alias module:model/UpdateCountPreferenceOfAChannelRequest + * @param countPreference {module:model/UpdateCountPreferenceOfAChannelRequest.CountPreferenceEnum} + */ + function UpdateCountPreferenceOfAChannelRequest(countPreference) { + _classCallCheck(this, UpdateCountPreferenceOfAChannelRequest); + UpdateCountPreferenceOfAChannelRequest.initialize(this, countPreference); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateCountPreferenceOfAChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, countPreference) { + obj['count_preference'] = countPreference; + } + + /** + * Constructs a UpdateCountPreferenceOfAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateCountPreferenceOfAChannelRequest} The populated UpdateCountPreferenceOfAChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCountPreferenceOfAChannelRequest(); + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/UpdateCountPreferenceOfAChannelRequest.CountPreferenceEnum} count_preference + */ +UpdateCountPreferenceOfAChannelRequest.prototype['count_preference'] = undefined; + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +UpdateCountPreferenceOfAChannelRequest['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; +var _default = exports["default"] = UpdateCountPreferenceOfAChannelRequest; \ No newline at end of file diff --git a/dist/model/UpdateCountPreferenceOfChannelByUrlData.js b/dist/model/UpdateCountPreferenceOfChannelByUrlData.js deleted file mode 100644 index 678818f..0000000 --- a/dist/model/UpdateCountPreferenceOfChannelByUrlData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateCountPreferenceOfChannelByUrlData model module. - * @module model/UpdateCountPreferenceOfChannelByUrlData - * @version 0.0.16 - */ -var UpdateCountPreferenceOfChannelByUrlData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateCountPreferenceOfChannelByUrlData. - * @alias module:model/UpdateCountPreferenceOfChannelByUrlData - * @param countPreference {String} Determines whether to only count the number of unread messages or the number of unread mentioned messages in the specified group channel. Only the one that is chosen to be preferenced will be counted and added to the total number count after the action. A value of off indicates that both read statuses will not be counted, while all indicates that both read statuses will be counted by the system. A value of unread_message_count_only indicates that only the user's unread messages will be counted in the channel while unread_mentioned_count_only indicates that only the user's unread mentioned messages will be counted. (Default: all) - */ - function UpdateCountPreferenceOfChannelByUrlData(countPreference) { - _classCallCheck(this, UpdateCountPreferenceOfChannelByUrlData); - UpdateCountPreferenceOfChannelByUrlData.initialize(this, countPreference); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateCountPreferenceOfChannelByUrlData, null, [{ - key: "initialize", - value: function initialize(obj, countPreference) { - obj['count_preference'] = countPreference; - } - - /** - * Constructs a UpdateCountPreferenceOfChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} obj Optional instance to populate. - * @return {module:model/UpdateCountPreferenceOfChannelByUrlData} The populated UpdateCountPreferenceOfChannelByUrlData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateCountPreferenceOfChannelByUrlData(); - if (data.hasOwnProperty('count_preference')) { - obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); - } - } - return obj; - } - }]); - return UpdateCountPreferenceOfChannelByUrlData; -}(); -/** - * Determines whether to only count the number of unread messages or the number of unread mentioned messages in the specified group channel. Only the one that is chosen to be preferenced will be counted and added to the total number count after the action. A value of off indicates that both read statuses will not be counted, while all indicates that both read statuses will be counted by the system. A value of unread_message_count_only indicates that only the user's unread messages will be counted in the channel while unread_mentioned_count_only indicates that only the user's unread mentioned messages will be counted. (Default: all) - * @member {String} count_preference - */ -UpdateCountPreferenceOfChannelByUrlData.prototype['count_preference'] = undefined; -var _default = UpdateCountPreferenceOfChannelByUrlData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateCountPreferenceOfChannelByUrlResponse.js b/dist/model/UpdateCountPreferenceOfChannelByUrlResponse.js index a4cbb58..fbaa9e6 100644 --- a/dist/model/UpdateCountPreferenceOfChannelByUrlResponse.js +++ b/dist/model/UpdateCountPreferenceOfChannelByUrlResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The UpdateCountPreferenceOfChannelByUrlResponse model module. * @module model/UpdateCountPreferenceOfChannelByUrlResponse - * @version 0.0.16 + * @version 2.0.0 */ var UpdateCountPreferenceOfChannelByUrlResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var UpdateCountPreferenceOfChannelByUrlResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(UpdateCountPreferenceOfChannelByUrlResponse, null, [{ + return _createClass(UpdateCountPreferenceOfChannelByUrlResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,37 @@ var UpdateCountPreferenceOfChannelByUrlResponse = /*#__PURE__*/function () { return obj; } }]); - return UpdateCountPreferenceOfChannelByUrlResponse; }(); /** - * @member {String} count_preference + * @member {module:model/UpdateCountPreferenceOfChannelByUrlResponse.CountPreferenceEnum} count_preference */ UpdateCountPreferenceOfChannelByUrlResponse.prototype['count_preference'] = undefined; -var _default = UpdateCountPreferenceOfChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +UpdateCountPreferenceOfChannelByUrlResponse['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; +var _default = exports["default"] = UpdateCountPreferenceOfChannelByUrlResponse; \ No newline at end of file diff --git a/dist/model/UpdateDefaultChannelInvitationPreferenceData.js b/dist/model/UpdateDefaultChannelInvitationPreferenceData.js deleted file mode 100644 index 8874006..0000000 --- a/dist/model/UpdateDefaultChannelInvitationPreferenceData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateDefaultChannelInvitationPreferenceData model module. - * @module model/UpdateDefaultChannelInvitationPreferenceData - * @version 0.0.16 - */ -var UpdateDefaultChannelInvitationPreferenceData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDefaultChannelInvitationPreferenceData. - * @alias module:model/UpdateDefaultChannelInvitationPreferenceData - * @param autoAccept {Boolean} Determines for users within an application whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - */ - function UpdateDefaultChannelInvitationPreferenceData(autoAccept) { - _classCallCheck(this, UpdateDefaultChannelInvitationPreferenceData); - UpdateDefaultChannelInvitationPreferenceData.initialize(this, autoAccept); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateDefaultChannelInvitationPreferenceData, null, [{ - key: "initialize", - value: function initialize(obj, autoAccept) { - obj['auto_accept'] = autoAccept; - } - - /** - * Constructs a UpdateDefaultChannelInvitationPreferenceData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} obj Optional instance to populate. - * @return {module:model/UpdateDefaultChannelInvitationPreferenceData} The populated UpdateDefaultChannelInvitationPreferenceData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDefaultChannelInvitationPreferenceData(); - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateDefaultChannelInvitationPreferenceData; -}(); -/** - * Determines for users within an application whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - * @member {Boolean} auto_accept - */ -UpdateDefaultChannelInvitationPreferenceData.prototype['auto_accept'] = undefined; -var _default = UpdateDefaultChannelInvitationPreferenceData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateDefaultChannelInvitationPreferenceResponse.js b/dist/model/UpdateDefaultChannelInvitationPreferenceResponse.js deleted file mode 100644 index b83252a..0000000 --- a/dist/model/UpdateDefaultChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateDefaultChannelInvitationPreferenceResponse model module. - * @module model/UpdateDefaultChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -var UpdateDefaultChannelInvitationPreferenceResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateDefaultChannelInvitationPreferenceResponse. - * @alias module:model/UpdateDefaultChannelInvitationPreferenceResponse - */ - function UpdateDefaultChannelInvitationPreferenceResponse() { - _classCallCheck(this, UpdateDefaultChannelInvitationPreferenceResponse); - UpdateDefaultChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateDefaultChannelInvitationPreferenceResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateDefaultChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDefaultChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/UpdateDefaultChannelInvitationPreferenceResponse} The populated UpdateDefaultChannelInvitationPreferenceResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDefaultChannelInvitationPreferenceResponse(); - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateDefaultChannelInvitationPreferenceResponse; -}(); -/** - * @member {Boolean} auto_accept - */ -UpdateDefaultChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; -var _default = UpdateDefaultChannelInvitationPreferenceResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateEmojiCategoryUrlByIdData.js b/dist/model/UpdateEmojiCategoryUrlByIdData.js deleted file mode 100644 index 75bde78..0000000 --- a/dist/model/UpdateEmojiCategoryUrlByIdData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateEmojiCategoryUrlByIdData model module. - * @module model/UpdateEmojiCategoryUrlByIdData - * @version 0.0.16 - */ -var UpdateEmojiCategoryUrlByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateEmojiCategoryUrlByIdData. - * @alias module:model/UpdateEmojiCategoryUrlByIdData - * @param emojiCategoryId {Number} Specifies the unique ID of the emoji category to update. - * @param url {String} Specifies the new URL of the emoji category. - */ - function UpdateEmojiCategoryUrlByIdData(emojiCategoryId, url) { - _classCallCheck(this, UpdateEmojiCategoryUrlByIdData); - UpdateEmojiCategoryUrlByIdData.initialize(this, emojiCategoryId, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateEmojiCategoryUrlByIdData, null, [{ - key: "initialize", - value: function initialize(obj, emojiCategoryId, url) { - obj['emoji_category_id'] = emojiCategoryId; - obj['url'] = url; - } - - /** - * Constructs a UpdateEmojiCategoryUrlByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEmojiCategoryUrlByIdData} obj Optional instance to populate. - * @return {module:model/UpdateEmojiCategoryUrlByIdData} The populated UpdateEmojiCategoryUrlByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEmojiCategoryUrlByIdData(); - if (data.hasOwnProperty('emoji_category_id')) { - obj['emoji_category_id'] = _ApiClient["default"].convertToType(data['emoji_category_id'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return UpdateEmojiCategoryUrlByIdData; -}(); -/** - * Specifies the unique ID of the emoji category to update. - * @member {Number} emoji_category_id - */ -UpdateEmojiCategoryUrlByIdData.prototype['emoji_category_id'] = undefined; - -/** - * Specifies the new URL of the emoji category. - * @member {String} url - */ -UpdateEmojiCategoryUrlByIdData.prototype['url'] = undefined; -var _default = UpdateEmojiCategoryUrlByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateEmojiUrlByKeyData.js b/dist/model/UpdateEmojiUrlByKeyData.js deleted file mode 100644 index 5f60353..0000000 --- a/dist/model/UpdateEmojiUrlByKeyData.js +++ /dev/null @@ -1,77 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateEmojiUrlByKeyData model module. - * @module model/UpdateEmojiUrlByKeyData - * @version 0.0.16 - */ -var UpdateEmojiUrlByKeyData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateEmojiUrlByKeyData. - * @alias module:model/UpdateEmojiUrlByKeyData - * @param emojiKey {String} Specifies the key of the emoji to update. - * @param url {String} Specifies the new image URL of the emoji. - */ - function UpdateEmojiUrlByKeyData(emojiKey, url) { - _classCallCheck(this, UpdateEmojiUrlByKeyData); - UpdateEmojiUrlByKeyData.initialize(this, emojiKey, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateEmojiUrlByKeyData, null, [{ - key: "initialize", - value: function initialize(obj, emojiKey, url) { - obj['emoji_key'] = emojiKey; - obj['url'] = url; - } - - /** - * Constructs a UpdateEmojiUrlByKeyData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEmojiUrlByKeyData} obj Optional instance to populate. - * @return {module:model/UpdateEmojiUrlByKeyData} The populated UpdateEmojiUrlByKeyData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEmojiUrlByKeyData(); - if (data.hasOwnProperty('emoji_key')) { - obj['emoji_key'] = _ApiClient["default"].convertToType(data['emoji_key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); - } - } - return obj; - } - }]); - return UpdateEmojiUrlByKeyData; -}(); -/** - * Specifies the key of the emoji to update. - * @member {String} emoji_key - */ -UpdateEmojiUrlByKeyData.prototype['emoji_key'] = undefined; - -/** - * Specifies the new image URL of the emoji. - * @member {String} url - */ -UpdateEmojiUrlByKeyData.prototype['url'] = undefined; -var _default = UpdateEmojiUrlByKeyData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateExtraDataInAMessageRequest.js b/dist/model/UpdateExtraDataInAMessageRequest.js new file mode 100644 index 0000000..a5ccb85 --- /dev/null +++ b/dist/model/UpdateExtraDataInAMessageRequest.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateExtraDataInAMessageRequest model module. + * @module model/UpdateExtraDataInAMessageRequest + * @version 2.0.0 + */ +var UpdateExtraDataInAMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdateExtraDataInAMessageRequest. + * @alias module:model/UpdateExtraDataInAMessageRequest + */ + function UpdateExtraDataInAMessageRequest() { + _classCallCheck(this, UpdateExtraDataInAMessageRequest); + UpdateExtraDataInAMessageRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateExtraDataInAMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateExtraDataInAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateExtraDataInAMessageRequest} obj Optional instance to populate. + * @return {module:model/UpdateExtraDataInAMessageRequest} The populated UpdateExtraDataInAMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateExtraDataInAMessageRequest(); + if (data.hasOwnProperty('mode')) { + obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + if (data.hasOwnProperty('upsert')) { + obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} mode + */ +UpdateExtraDataInAMessageRequest.prototype['mode'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +UpdateExtraDataInAMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * @member {Boolean} upsert + */ +UpdateExtraDataInAMessageRequest.prototype['upsert'] = undefined; +var _default = exports["default"] = UpdateExtraDataInAMessageRequest; \ No newline at end of file diff --git a/dist/model/UpdateExtraDataInAMessageResponse.js b/dist/model/UpdateExtraDataInAMessageResponse.js new file mode 100644 index 0000000..36ad3d0 --- /dev/null +++ b/dist/model/UpdateExtraDataInAMessageResponse.js @@ -0,0 +1,75 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdSortedMetaarrayInner = _interopRequireDefault(require("./SendbirdSortedMetaarrayInner")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdateExtraDataInAMessageResponse model module. + * @module model/UpdateExtraDataInAMessageResponse + * @version 2.0.0 + */ +var UpdateExtraDataInAMessageResponse = /*#__PURE__*/function () { + /** + * Constructs a new UpdateExtraDataInAMessageResponse. + * @alias module:model/UpdateExtraDataInAMessageResponse + */ + function UpdateExtraDataInAMessageResponse() { + _classCallCheck(this, UpdateExtraDataInAMessageResponse); + UpdateExtraDataInAMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdateExtraDataInAMessageResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdateExtraDataInAMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateExtraDataInAMessageResponse} obj Optional instance to populate. + * @return {module:model/UpdateExtraDataInAMessageResponse} The populated UpdateExtraDataInAMessageResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateExtraDataInAMessageResponse(); + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_SendbirdSortedMetaarrayInner["default"]]); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} sorted_metaarray + */ +UpdateExtraDataInAMessageResponse.prototype['sorted_metaarray'] = undefined; +var _default = exports["default"] = UpdateExtraDataInAMessageResponse; \ No newline at end of file diff --git a/dist/model/UpdateExtraDataInMessageData.js b/dist/model/UpdateExtraDataInMessageData.js deleted file mode 100644 index 7b200d8..0000000 --- a/dist/model/UpdateExtraDataInMessageData.js +++ /dev/null @@ -1,121 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateExtraDataInMessageData model module. - * @module model/UpdateExtraDataInMessageData - * @version 0.0.16 - */ -var UpdateExtraDataInMessageData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateExtraDataInMessageData. - * @alias module:model/UpdateExtraDataInMessageData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to update key-values items. - * @param sortedMetaarray {String} Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @param mode {String} Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are limited to add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. - * @param upsert {Boolean} Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of which keys match the ones you specify are updated with new values. (Default: false) - */ - function UpdateExtraDataInMessageData(channelType, channelUrl, messageId, sortedMetaarray, mode, upsert) { - _classCallCheck(this, UpdateExtraDataInMessageData); - UpdateExtraDataInMessageData.initialize(this, channelType, channelUrl, messageId, sortedMetaarray, mode, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateExtraDataInMessageData, null, [{ - key: "initialize", - value: function initialize(obj, channelType, channelUrl, messageId, sortedMetaarray, mode, upsert) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['sorted_metaarray'] = sortedMetaarray; - obj['mode'] = mode; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateExtraDataInMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageData} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageData} The populated UpdateExtraDataInMessageData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], 'String'); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = _ApiClient["default"].convertToType(data['mode'], 'String'); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateExtraDataInMessageData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -UpdateExtraDataInMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -UpdateExtraDataInMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to update key-values items. - * @member {Number} message_id - */ -UpdateExtraDataInMessageData.prototype['message_id'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -UpdateExtraDataInMessageData.prototype['sorted_metaarray'] = undefined; - -/** - * Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are limited to add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. - * @member {String} mode - */ -UpdateExtraDataInMessageData.prototype['mode'] = undefined; - -/** - * Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of which keys match the ones you specify are updated with new values. (Default: false) - * @member {Boolean} upsert - */ -UpdateExtraDataInMessageData.prototype['upsert'] = undefined; -var _default = UpdateExtraDataInMessageData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateExtraDataInMessageResponse.js b/dist/model/UpdateExtraDataInMessageResponse.js deleted file mode 100644 index 7379344..0000000 --- a/dist/model/UpdateExtraDataInMessageResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _UpdateExtraDataInMessageResponseSortedMetaarrayInner = _interopRequireDefault(require("./UpdateExtraDataInMessageResponseSortedMetaarrayInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateExtraDataInMessageResponse model module. - * @module model/UpdateExtraDataInMessageResponse - * @version 0.0.16 - */ -var UpdateExtraDataInMessageResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateExtraDataInMessageResponse. - * @alias module:model/UpdateExtraDataInMessageResponse - */ - function UpdateExtraDataInMessageResponse() { - _classCallCheck(this, UpdateExtraDataInMessageResponse); - UpdateExtraDataInMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateExtraDataInMessageResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateExtraDataInMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageResponse} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageResponse} The populated UpdateExtraDataInMessageResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageResponse(); - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [_UpdateExtraDataInMessageResponseSortedMetaarrayInner["default"]]); - } - } - return obj; - } - }]); - return UpdateExtraDataInMessageResponse; -}(); -/** - * @member {Array.} sorted_metaarray - */ -UpdateExtraDataInMessageResponse.prototype['sorted_metaarray'] = undefined; -var _default = UpdateExtraDataInMessageResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js b/dist/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js deleted file mode 100644 index 53b5b44..0000000 --- a/dist/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateExtraDataInMessageResponseSortedMetaarrayInner model module. - * @module model/UpdateExtraDataInMessageResponseSortedMetaarrayInner - * @version 0.0.16 - */ -var UpdateExtraDataInMessageResponseSortedMetaarrayInner = /*#__PURE__*/function () { - /** - * Constructs a new UpdateExtraDataInMessageResponseSortedMetaarrayInner. - * @alias module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner - */ - function UpdateExtraDataInMessageResponseSortedMetaarrayInner() { - _classCallCheck(this, UpdateExtraDataInMessageResponseSortedMetaarrayInner); - UpdateExtraDataInMessageResponseSortedMetaarrayInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateExtraDataInMessageResponseSortedMetaarrayInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateExtraDataInMessageResponseSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner} The populated UpdateExtraDataInMessageResponseSortedMetaarrayInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - if (data.hasOwnProperty('value')) { - obj['value'] = _ApiClient["default"].convertToType(data['value'], ['String']); - } - if (data.hasOwnProperty('key')) { - obj['key'] = _ApiClient["default"].convertToType(data['key'], 'String'); - } - } - return obj; - } - }]); - return UpdateExtraDataInMessageResponseSortedMetaarrayInner; -}(); -/** - * @member {Array.} value - */ -UpdateExtraDataInMessageResponseSortedMetaarrayInner.prototype['value'] = undefined; - -/** - * @member {String} key - */ -UpdateExtraDataInMessageResponseSortedMetaarrayInner.prototype['key'] = undefined; -var _default = UpdateExtraDataInMessageResponseSortedMetaarrayInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateFcmPushConfigurationByIdData.js b/dist/model/UpdateFcmPushConfigurationByIdData.js deleted file mode 100644 index 8b96229..0000000 --- a/dist/model/UpdateFcmPushConfigurationByIdData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateFcmPushConfigurationByIdData model module. - * @module model/UpdateFcmPushConfigurationByIdData - * @version 0.0.16 - */ -var UpdateFcmPushConfigurationByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateFcmPushConfigurationByIdData. - * @alias module:model/UpdateFcmPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param apiKey {String} Specifies the FCM server key to update. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - function UpdateFcmPushConfigurationByIdData(providerId, apiKey, pushSound) { - _classCallCheck(this, UpdateFcmPushConfigurationByIdData); - UpdateFcmPushConfigurationByIdData.initialize(this, providerId, apiKey, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateFcmPushConfigurationByIdData, null, [{ - key: "initialize", - value: function initialize(obj, providerId, apiKey, pushSound) { - obj['provider_id'] = providerId; - obj['api_key'] = apiKey; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdateFcmPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFcmPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateFcmPushConfigurationByIdData} The populated UpdateFcmPushConfigurationByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFcmPushConfigurationByIdData(); - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = _ApiClient["default"].convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = _ApiClient["default"].convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return UpdateFcmPushConfigurationByIdData; -}(); -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateFcmPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * Specifies the FCM server key to update. - * @member {String} api_key - */ -UpdateFcmPushConfigurationByIdData.prototype['api_key'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -UpdateFcmPushConfigurationByIdData.prototype['push_sound'] = undefined; -var _default = UpdateFcmPushConfigurationByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateFcmPushConfigurationByIdResponse.js b/dist/model/UpdateFcmPushConfigurationByIdResponse.js deleted file mode 100644 index 3e2d3b9..0000000 --- a/dist/model/UpdateFcmPushConfigurationByIdResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateFcmPushConfigurationByIdResponse model module. - * @module model/UpdateFcmPushConfigurationByIdResponse - * @version 0.0.16 - */ -var UpdateFcmPushConfigurationByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateFcmPushConfigurationByIdResponse. - * @alias module:model/UpdateFcmPushConfigurationByIdResponse - */ - function UpdateFcmPushConfigurationByIdResponse() { - _classCallCheck(this, UpdateFcmPushConfigurationByIdResponse); - UpdateFcmPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateFcmPushConfigurationByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateFcmPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFcmPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateFcmPushConfigurationByIdResponse} The populated UpdateFcmPushConfigurationByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFcmPushConfigurationByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - }]); - return UpdateFcmPushConfigurationByIdResponse; -}(); -/** - * @member {String} push_configurations - */ -UpdateFcmPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; -var _default = UpdateFcmPushConfigurationByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateHmsPushConfigurationByIdData.js b/dist/model/UpdateHmsPushConfigurationByIdData.js deleted file mode 100644 index 66ba5c5..0000000 --- a/dist/model/UpdateHmsPushConfigurationByIdData.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateHmsPushConfigurationByIdData model module. - * @module model/UpdateHmsPushConfigurationByIdData - * @version 0.0.16 - */ -var UpdateHmsPushConfigurationByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateHmsPushConfigurationByIdData. - * @alias module:model/UpdateHmsPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param huaweiAppId {String} Specifies the unique ID of application for HMS to update. - * @param huaweiAppSecret {String} Specifies the secret key of the application to update. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - function UpdateHmsPushConfigurationByIdData(providerId, huaweiAppId, huaweiAppSecret, pushSound) { - _classCallCheck(this, UpdateHmsPushConfigurationByIdData); - UpdateHmsPushConfigurationByIdData.initialize(this, providerId, huaweiAppId, huaweiAppSecret, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateHmsPushConfigurationByIdData, null, [{ - key: "initialize", - value: function initialize(obj, providerId, huaweiAppId, huaweiAppSecret, pushSound) { - obj['provider_id'] = providerId; - obj['huawei_app_id'] = huaweiAppId; - obj['huawei_app_secret'] = huaweiAppSecret; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdateHmsPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateHmsPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateHmsPushConfigurationByIdData} The populated UpdateHmsPushConfigurationByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateHmsPushConfigurationByIdData(); - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = _ApiClient["default"].convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = _ApiClient["default"].convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = _ApiClient["default"].convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return UpdateHmsPushConfigurationByIdData; -}(); -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateHmsPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * Specifies the unique ID of application for HMS to update. - * @member {String} huawei_app_id - */ -UpdateHmsPushConfigurationByIdData.prototype['huawei_app_id'] = undefined; - -/** - * Specifies the secret key of the application to update. - * @member {String} huawei_app_secret - */ -UpdateHmsPushConfigurationByIdData.prototype['huawei_app_secret'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -UpdateHmsPushConfigurationByIdData.prototype['push_sound'] = undefined; -var _default = UpdateHmsPushConfigurationByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateHmsPushConfigurationByIdResponse.js b/dist/model/UpdateHmsPushConfigurationByIdResponse.js deleted file mode 100644 index ce286cc..0000000 --- a/dist/model/UpdateHmsPushConfigurationByIdResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateHmsPushConfigurationByIdResponse model module. - * @module model/UpdateHmsPushConfigurationByIdResponse - * @version 0.0.16 - */ -var UpdateHmsPushConfigurationByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateHmsPushConfigurationByIdResponse. - * @alias module:model/UpdateHmsPushConfigurationByIdResponse - */ - function UpdateHmsPushConfigurationByIdResponse() { - _classCallCheck(this, UpdateHmsPushConfigurationByIdResponse); - UpdateHmsPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateHmsPushConfigurationByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateHmsPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateHmsPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateHmsPushConfigurationByIdResponse} The populated UpdateHmsPushConfigurationByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateHmsPushConfigurationByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - }]); - return UpdateHmsPushConfigurationByIdResponse; -}(); -/** - * @member {String} push_configurations - */ -UpdateHmsPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; -var _default = UpdateHmsPushConfigurationByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateMessageByIdData.js b/dist/model/UpdateMessageByIdData.js deleted file mode 100644 index 303b5c8..0000000 --- a/dist/model/UpdateMessageByIdData.js +++ /dev/null @@ -1,138 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateMessageByIdData model module. - * @module model/UpdateMessageByIdData - * @version 0.0.16 - */ -var UpdateMessageByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateMessageByIdData. - * @alias module:model/UpdateMessageByIdData - * @param messageId {Number} Specifies the unique ID of the message to update. - */ - function UpdateMessageByIdData(messageId) { - _classCallCheck(this, UpdateMessageByIdData); - UpdateMessageByIdData.initialize(this, messageId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateMessageByIdData, null, [{ - key: "initialize", - value: function initialize(obj, messageId) { - obj['message_id'] = messageId; - } - - /** - * Constructs a UpdateMessageByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateMessageByIdData} obj Optional instance to populate. - * @return {module:model/UpdateMessageByIdData} The populated UpdateMessageByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateMessageByIdData(); - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = _ApiClient["default"].convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = _ApiClient["default"].convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = _ApiClient["default"].convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ApiClient["default"].convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = _ApiClient["default"].convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = _ApiClient["default"].convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); - } - } - return obj; - } - }]); - return UpdateMessageByIdData; -}(); -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -UpdateMessageByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -UpdateMessageByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to update. - * @member {Number} message_id - */ -UpdateMessageByIdData.prototype['message_id'] = undefined; - -/** - * Specifies the type of the message as ADMM. - * @member {String} message_type - */ -UpdateMessageByIdData.prototype['message_type'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message - */ -UpdateMessageByIdData.prototype['message'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -UpdateMessageByIdData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -UpdateMessageByIdData.prototype['data'] = undefined; - -/** - * Specifies the mentioning method which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) - * @member {String} mention_type - */ -UpdateMessageByIdData.prototype['mention_type'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who will get a notification for the message. - * @member {Array.} mentioned_user_ids - */ -UpdateMessageByIdData.prototype['mentioned_user_ids'] = undefined; -var _default = UpdateMessageByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushNotificationContentTemplateData.js b/dist/model/UpdatePushNotificationContentTemplateData.js deleted file mode 100644 index 3202c36..0000000 --- a/dist/model/UpdatePushNotificationContentTemplateData.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdatePushNotificationContentTemplateData model module. - * @module model/UpdatePushNotificationContentTemplateData - * @version 0.0.16 - */ -var UpdatePushNotificationContentTemplateData = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePushNotificationContentTemplateData. - * @alias module:model/UpdatePushNotificationContentTemplateData - * @param templateName {String} Specifies the name of a push notification content template to update. Acceptable values are default and alternative. - * @param template {String} The push notification content template of which content types to be updated and their detailed format. - * @param templateMESG {String} Specifies a format for text messages. We support customization of two fields, which are the sender_name and message. These fields will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @param templateFILE {String} Specifies a format for file messages. We support customization with variables including filename and file_type_friendly. When sending notification requests to FCM, HMS, or APNs, the filename will be replaced with the corresponding string value while the file_type_friendly will indicate the type of the file sent, such as `Audio`, `Image`, and `Video`. - * @param templateADMN {String} Specifies a format for admin messages. We support customization of one field, which is the message. This field will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - */ - function UpdatePushNotificationContentTemplateData(templateName, template, templateMESG, templateFILE, templateADMN) { - _classCallCheck(this, UpdatePushNotificationContentTemplateData); - UpdatePushNotificationContentTemplateData.initialize(this, templateName, template, templateMESG, templateFILE, templateADMN); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdatePushNotificationContentTemplateData, null, [{ - key: "initialize", - value: function initialize(obj, templateName, template, templateMESG, templateFILE, templateADMN) { - obj['template_name'] = templateName; - obj['template'] = template; - obj['template.MESG'] = templateMESG; - obj['template.FILE'] = templateFILE; - obj['template.ADMN'] = templateADMN; - } - - /** - * Constructs a UpdatePushNotificationContentTemplateData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushNotificationContentTemplateData} obj Optional instance to populate. - * @return {module:model/UpdatePushNotificationContentTemplateData} The populated UpdatePushNotificationContentTemplateData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushNotificationContentTemplateData(); - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = _ApiClient["default"].convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = _ApiClient["default"].convertToType(data['template'], 'String'); - } - if (data.hasOwnProperty('template.MESG')) { - obj['template.MESG'] = _ApiClient["default"].convertToType(data['template.MESG'], 'String'); - } - if (data.hasOwnProperty('template.FILE')) { - obj['template.FILE'] = _ApiClient["default"].convertToType(data['template.FILE'], 'String'); - } - if (data.hasOwnProperty('template.ADMN')) { - obj['template.ADMN'] = _ApiClient["default"].convertToType(data['template.ADMN'], 'String'); - } - } - return obj; - } - }]); - return UpdatePushNotificationContentTemplateData; -}(); -/** - * Specifies the name of a push notification content template to update. Acceptable values are default and alternative. - * @member {String} template_name - */ -UpdatePushNotificationContentTemplateData.prototype['template_name'] = undefined; - -/** - * The push notification content template of which content types to be updated and their detailed format. - * @member {String} template - */ -UpdatePushNotificationContentTemplateData.prototype['template'] = undefined; - -/** - * Specifies a format for text messages. We support customization of two fields, which are the sender_name and message. These fields will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @member {String} template.MESG - */ -UpdatePushNotificationContentTemplateData.prototype['template.MESG'] = undefined; - -/** - * Specifies a format for file messages. We support customization with variables including filename and file_type_friendly. When sending notification requests to FCM, HMS, or APNs, the filename will be replaced with the corresponding string value while the file_type_friendly will indicate the type of the file sent, such as `Audio`, `Image`, and `Video`. - * @member {String} template.FILE - */ -UpdatePushNotificationContentTemplateData.prototype['template.FILE'] = undefined; - -/** - * Specifies a format for admin messages. We support customization of one field, which is the message. This field will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @member {String} template.ADMN - */ -UpdatePushNotificationContentTemplateData.prototype['template.ADMN'] = undefined; -var _default = UpdatePushNotificationContentTemplateData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushNotificationContentTemplateResponse.js b/dist/model/UpdatePushNotificationContentTemplateResponse.js deleted file mode 100644 index 72d5d93..0000000 --- a/dist/model/UpdatePushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner = _interopRequireDefault(require("./ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdatePushNotificationContentTemplateResponse model module. - * @module model/UpdatePushNotificationContentTemplateResponse - * @version 0.0.16 - */ -var UpdatePushNotificationContentTemplateResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePushNotificationContentTemplateResponse. - * @alias module:model/UpdatePushNotificationContentTemplateResponse - */ - function UpdatePushNotificationContentTemplateResponse() { - _classCallCheck(this, UpdatePushNotificationContentTemplateResponse); - UpdatePushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdatePushNotificationContentTemplateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdatePushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/UpdatePushNotificationContentTemplateResponse} The populated UpdatePushNotificationContentTemplateResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushNotificationContentTemplateResponse(); - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = _ApiClient["default"].convertToType(data['push_message_templates'], [_ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner["default"]]); - } - } - return obj; - } - }]); - return UpdatePushNotificationContentTemplateResponse; -}(); -/** - * @member {Array.} push_message_templates - */ -UpdatePushNotificationContentTemplateResponse.prototype['push_message_templates'] = undefined; -var _default = UpdatePushNotificationContentTemplateResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesData.js b/dist/model/UpdatePushPreferencesData.js deleted file mode 100644 index 58b2520..0000000 --- a/dist/model/UpdatePushPreferencesData.js +++ /dev/null @@ -1,198 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdatePushPreferencesData model module. - * @module model/UpdatePushPreferencesData - * @version 0.0.16 - */ -var UpdatePushPreferencesData = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePushPreferencesData. - * @alias module:model/UpdatePushPreferencesData - * @param pushTriggerOption {String} Determines the type of push notification trigger to apply to the user's joined group channels. Valid values are the following:
- all (default): when disconnected from Sendbird server, the user receives notifications for all new messages including mentioned messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages the user has been mentioned in.
- off: the user doesn't receive any notifications. - * @param doNotDisturb {Boolean} Determines whether to pause notification messages for the user during a specific time of day. (Default: false) - * @param startHour {Number} Specifies the hour to start pausing the notifications for Do Not Disturb of the user. - * @param startMin {Number} Specifies the minute of the hour to start pausing the notifications for Do Not Disturb of the user. - * @param endHour {Number} Specifies the hour to stop pausing the notifications for Do Not Disturb of the user. - * @param endMin {Number} Specifies the minute of the hour to stop pausing the notifications for Do Not Disturb of the user. - * @param snoozeEnabled {Boolean} Determines whether to snooze notification messages for the user during a specific period of time. (Default: false) - * @param snoozeStartTs {Number} Specifies the timestamp of when to start snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @param snoozeEndTs {Number} Specifies the timestamp of when to end snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @param blockPushFromBots {Boolean} Determines whether to block push notifications from [all bots](/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots) within the application. If the push_blocked_bot_ids is specified, notifications only from the bots in the property are blocked. (Default: false) - * @param pushBlockedBotIds {Array.} Specifies an array of one or more IDs of bots whose push notifications are blocked. This property is effective only when the block_push_from_bots is set to true. - * @param timezone {String} Specifies the timezone to be applied to push preferences with a value such as UTC, Asia/Seoul, Europe/London, etc. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. - */ - function UpdatePushPreferencesData(pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound) { - _classCallCheck(this, UpdatePushPreferencesData); - UpdatePushPreferencesData.initialize(this, pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdatePushPreferencesData, null, [{ - key: "initialize", - value: function initialize(obj, pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound) { - obj['push_trigger_option'] = pushTriggerOption; - obj['do_not_disturb'] = doNotDisturb; - obj['start_hour'] = startHour; - obj['start_min'] = startMin; - obj['end_hour'] = endHour; - obj['end_min'] = endMin; - obj['snooze_enabled'] = snoozeEnabled; - obj['snooze_start_ts'] = snoozeStartTs; - obj['snooze_end_ts'] = snoozeEndTs; - obj['block_push_from_bots'] = blockPushFromBots; - obj['push_blocked_bot_ids'] = pushBlockedBotIds; - obj['timezone'] = timezone; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdatePushPreferencesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesData} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesData} The populated UpdatePushPreferencesData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesData(); - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['Number']); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return UpdatePushPreferencesData; -}(); -/** - * Determines the type of push notification trigger to apply to the user's joined group channels. Valid values are the following:
- all (default): when disconnected from Sendbird server, the user receives notifications for all new messages including mentioned messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages the user has been mentioned in.
- off: the user doesn't receive any notifications. - * @member {String} push_trigger_option - */ -UpdatePushPreferencesData.prototype['push_trigger_option'] = undefined; - -/** - * Determines whether to pause notification messages for the user during a specific time of day. (Default: false) - * @member {Boolean} do_not_disturb - */ -UpdatePushPreferencesData.prototype['do_not_disturb'] = undefined; - -/** - * Specifies the hour to start pausing the notifications for Do Not Disturb of the user. - * @member {Number} start_hour - */ -UpdatePushPreferencesData.prototype['start_hour'] = undefined; - -/** - * Specifies the minute of the hour to start pausing the notifications for Do Not Disturb of the user. - * @member {Number} start_min - */ -UpdatePushPreferencesData.prototype['start_min'] = undefined; - -/** - * Specifies the hour to stop pausing the notifications for Do Not Disturb of the user. - * @member {Number} end_hour - */ -UpdatePushPreferencesData.prototype['end_hour'] = undefined; - -/** - * Specifies the minute of the hour to stop pausing the notifications for Do Not Disturb of the user. - * @member {Number} end_min - */ -UpdatePushPreferencesData.prototype['end_min'] = undefined; - -/** - * Determines whether to snooze notification messages for the user during a specific period of time. (Default: false) - * @member {Boolean} snooze_enabled - */ -UpdatePushPreferencesData.prototype['snooze_enabled'] = undefined; - -/** - * Specifies the timestamp of when to start snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @member {Number} snooze_start_ts - */ -UpdatePushPreferencesData.prototype['snooze_start_ts'] = undefined; - -/** - * Specifies the timestamp of when to end snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @member {Number} snooze_end_ts - */ -UpdatePushPreferencesData.prototype['snooze_end_ts'] = undefined; - -/** - * Determines whether to block push notifications from [all bots](/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots) within the application. If the push_blocked_bot_ids is specified, notifications only from the bots in the property are blocked. (Default: false) - * @member {Boolean} block_push_from_bots - */ -UpdatePushPreferencesData.prototype['block_push_from_bots'] = undefined; - -/** - * Specifies an array of one or more IDs of bots whose push notifications are blocked. This property is effective only when the block_push_from_bots is set to true. - * @member {Array.} push_blocked_bot_ids - */ -UpdatePushPreferencesData.prototype['push_blocked_bot_ids'] = undefined; - -/** - * Specifies the timezone to be applied to push preferences with a value such as UTC, Asia/Seoul, Europe/London, etc. - * @member {String} timezone - */ -UpdatePushPreferencesData.prototype['timezone'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. - * @member {String} push_sound - */ -UpdatePushPreferencesData.prototype['push_sound'] = undefined; -var _default = UpdatePushPreferencesData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesForAChannelRequest.js b/dist/model/UpdatePushPreferencesForAChannelRequest.js new file mode 100644 index 0000000..24133f9 --- /dev/null +++ b/dist/model/UpdatePushPreferencesForAChannelRequest.js @@ -0,0 +1,114 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdatePushPreferencesForAChannelRequest model module. + * @module model/UpdatePushPreferencesForAChannelRequest + * @version 2.0.0 + */ +var UpdatePushPreferencesForAChannelRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePushPreferencesForAChannelRequest. + * @alias module:model/UpdatePushPreferencesForAChannelRequest + * @param pushTriggerOption {module:model/UpdatePushPreferencesForAChannelRequest.PushTriggerOptionEnum} The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. + */ + function UpdatePushPreferencesForAChannelRequest(pushTriggerOption) { + _classCallCheck(this, UpdatePushPreferencesForAChannelRequest); + UpdatePushPreferencesForAChannelRequest.initialize(this, pushTriggerOption); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdatePushPreferencesForAChannelRequest, null, [{ + key: "initialize", + value: function initialize(obj, pushTriggerOption) { + obj['push_trigger_option'] = pushTriggerOption; + } + + /** + * Constructs a UpdatePushPreferencesForAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesForAChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesForAChannelRequest} The populated UpdatePushPreferencesForAChannelRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesForAChannelRequest(); + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. + * @member {module:model/UpdatePushPreferencesForAChannelRequest.PushTriggerOptionEnum} push_trigger_option + */ +UpdatePushPreferencesForAChannelRequest.prototype['push_trigger_option'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesForAChannelRequest.prototype['push_sound'] = undefined; + +/** + * Allowed values for the push_trigger_option property. + * @enum {String} + * @readonly + */ +UpdatePushPreferencesForAChannelRequest['PushTriggerOptionEnum'] = { + /** + * value: "default" + * @const + */ + "default": "default", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "mention_only" + * @const + */ + "mention_only": "mention_only", + /** + * value: "false" + * @const + */ + "false": "false" +}; +var _default = exports["default"] = UpdatePushPreferencesForAChannelRequest; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesForAChannelResponse.js b/dist/model/UpdatePushPreferencesForAChannelResponse.js new file mode 100644 index 0000000..39f7ba1 --- /dev/null +++ b/dist/model/UpdatePushPreferencesForAChannelResponse.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdatePushPreferencesForAChannelResponse model module. + * @module model/UpdatePushPreferencesForAChannelResponse + * @version 2.0.0 + */ +var UpdatePushPreferencesForAChannelResponse = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePushPreferencesForAChannelResponse. + * @alias module:model/UpdatePushPreferencesForAChannelResponse + */ + function UpdatePushPreferencesForAChannelResponse() { + _classCallCheck(this, UpdatePushPreferencesForAChannelResponse); + UpdatePushPreferencesForAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdatePushPreferencesForAChannelResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdatePushPreferencesForAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesForAChannelResponse} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesForAChannelResponse} The populated UpdatePushPreferencesForAChannelResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesForAChannelResponse(); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} enable + */ +UpdatePushPreferencesForAChannelResponse.prototype['enable'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesForAChannelResponse.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +UpdatePushPreferencesForAChannelResponse.prototype['push_trigger_option'] = undefined; +var _default = exports["default"] = UpdatePushPreferencesForAChannelResponse; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesForChannelByUrlData.js b/dist/model/UpdatePushPreferencesForChannelByUrlData.js deleted file mode 100644 index fa064ab..0000000 --- a/dist/model/UpdatePushPreferencesForChannelByUrlData.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdatePushPreferencesForChannelByUrlData model module. - * @module model/UpdatePushPreferencesForChannelByUrlData - * @version 0.0.16 - */ -var UpdatePushPreferencesForChannelByUrlData = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePushPreferencesForChannelByUrlData. - * @alias module:model/UpdatePushPreferencesForChannelByUrlData - * @param pushTriggerOption {String} Determines the type of push notification trigger to apply to the speficied channel. Acceptable values are limited to the following:
- default: the user's push notification trigger setting automatically applies to the channel. This is the default setting.
- all: when disconnected from Sendbird server, the user receives notifications for all new messages in the channel including messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages in the channel the user has been mentioned in.
- off: the user doesn't receive any notifications in the channel. - * @param enable {Boolean} (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: true) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to the specified channel. - */ - function UpdatePushPreferencesForChannelByUrlData(pushTriggerOption, enable, pushSound) { - _classCallCheck(this, UpdatePushPreferencesForChannelByUrlData); - UpdatePushPreferencesForChannelByUrlData.initialize(this, pushTriggerOption, enable, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdatePushPreferencesForChannelByUrlData, null, [{ - key: "initialize", - value: function initialize(obj, pushTriggerOption, enable, pushSound) { - obj['push_trigger_option'] = pushTriggerOption; - obj['enable'] = enable; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdatePushPreferencesForChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesForChannelByUrlData} The populated UpdatePushPreferencesForChannelByUrlData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesForChannelByUrlData(); - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - }]); - return UpdatePushPreferencesForChannelByUrlData; -}(); -/** - * Determines the type of push notification trigger to apply to the speficied channel. Acceptable values are limited to the following:
- default: the user's push notification trigger setting automatically applies to the channel. This is the default setting.
- all: when disconnected from Sendbird server, the user receives notifications for all new messages in the channel including messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages in the channel the user has been mentioned in.
- off: the user doesn't receive any notifications in the channel. - * @member {String} push_trigger_option - */ -UpdatePushPreferencesForChannelByUrlData.prototype['push_trigger_option'] = undefined; - -/** - * (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: true) - * @member {Boolean} enable - */ -UpdatePushPreferencesForChannelByUrlData.prototype['enable'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to the specified channel. - * @member {String} push_sound - */ -UpdatePushPreferencesForChannelByUrlData.prototype['push_sound'] = undefined; -var _default = UpdatePushPreferencesForChannelByUrlData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesForChannelByUrlResponse.js b/dist/model/UpdatePushPreferencesForChannelByUrlResponse.js deleted file mode 100644 index 2cd32c1..0000000 --- a/dist/model/UpdatePushPreferencesForChannelByUrlResponse.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdatePushPreferencesForChannelByUrlResponse model module. - * @module model/UpdatePushPreferencesForChannelByUrlResponse - * @version 0.0.16 - */ -var UpdatePushPreferencesForChannelByUrlResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdatePushPreferencesForChannelByUrlResponse. - * @alias module:model/UpdatePushPreferencesForChannelByUrlResponse - */ - function UpdatePushPreferencesForChannelByUrlResponse() { - _classCallCheck(this, UpdatePushPreferencesForChannelByUrlResponse); - UpdatePushPreferencesForChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdatePushPreferencesForChannelByUrlResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdatePushPreferencesForChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesForChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesForChannelByUrlResponse} The populated UpdatePushPreferencesForChannelByUrlResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesForChannelByUrlResponse(); - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdatePushPreferencesForChannelByUrlResponse; -}(); -/** - * @member {String} push_trigger_option - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['push_trigger_option'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} start_hour - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['start_hour'] = undefined; - -/** - * @member {Number} start_min - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['start_min'] = undefined; - -/** - * @member {Number} end_hour - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['end_hour'] = undefined; - -/** - * @member {Number} end_min - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['end_min'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} snooze_start_ts - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} snooze_end_ts - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {String} timezone - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['timezone'] = undefined; - -/** - * @member {String} push_sound - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['push_sound'] = undefined; - -/** - * @member {Boolean} enable - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['enable'] = undefined; -var _default = UpdatePushPreferencesForChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesRequest.js b/dist/model/UpdatePushPreferencesRequest.js new file mode 100644 index 0000000..c5c0a80 --- /dev/null +++ b/dist/model/UpdatePushPreferencesRequest.js @@ -0,0 +1,179 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The UpdatePushPreferencesRequest model module. + * @module model/UpdatePushPreferencesRequest + * @version 2.0.0 + */ +var UpdatePushPreferencesRequest = /*#__PURE__*/function () { + /** + * Constructs a new UpdatePushPreferencesRequest. + * @alias module:model/UpdatePushPreferencesRequest + */ + function UpdatePushPreferencesRequest() { + _classCallCheck(this, UpdatePushPreferencesRequest); + UpdatePushPreferencesRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(UpdatePushPreferencesRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a UpdatePushPreferencesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesRequest} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesRequest} The populated UpdatePushPreferencesRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesRequest(); + if (data.hasOwnProperty('block_push_from_bots')) { + obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); + } + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); + } + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); + } + if (data.hasOwnProperty('end_hour')) { + obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); + } + if (data.hasOwnProperty('end_min')) { + obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); + } + if (data.hasOwnProperty('push_blocked_bot_ids')) { + obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['String']); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('snooze_enabled')) { + obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); + } + if (data.hasOwnProperty('snooze_start_ts')) { + obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); + } + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); + } + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); + } + if (data.hasOwnProperty('timezone')) { + obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} block_push_from_bots + */ +UpdatePushPreferencesRequest.prototype['block_push_from_bots'] = undefined; + +/** + * @member {Boolean} do_not_disturb + */ +UpdatePushPreferencesRequest.prototype['do_not_disturb'] = undefined; + +/** + * @member {Boolean} enable_push_for_replies + */ +UpdatePushPreferencesRequest.prototype['enable_push_for_replies'] = undefined; + +/** + * @member {Number} end_hour + */ +UpdatePushPreferencesRequest.prototype['end_hour'] = undefined; + +/** + * @member {Number} end_min + */ +UpdatePushPreferencesRequest.prototype['end_min'] = undefined; + +/** + * @member {Array.} push_blocked_bot_ids + */ +UpdatePushPreferencesRequest.prototype['push_blocked_bot_ids'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesRequest.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +UpdatePushPreferencesRequest.prototype['push_trigger_option'] = undefined; + +/** + * @member {Boolean} snooze_enabled + */ +UpdatePushPreferencesRequest.prototype['snooze_enabled'] = undefined; + +/** + * @member {Number} snooze_end_ts + */ +UpdatePushPreferencesRequest.prototype['snooze_end_ts'] = undefined; + +/** + * @member {Number} snooze_start_ts + */ +UpdatePushPreferencesRequest.prototype['snooze_start_ts'] = undefined; + +/** + * @member {Number} start_hour + */ +UpdatePushPreferencesRequest.prototype['start_hour'] = undefined; + +/** + * @member {Number} start_min + */ +UpdatePushPreferencesRequest.prototype['start_min'] = undefined; + +/** + * @member {String} timezone + */ +UpdatePushPreferencesRequest.prototype['timezone'] = undefined; +var _default = exports["default"] = UpdatePushPreferencesRequest; \ No newline at end of file diff --git a/dist/model/UpdatePushPreferencesResponse.js b/dist/model/UpdatePushPreferencesResponse.js index 265e8bf..6d4a662 100644 --- a/dist/model/UpdatePushPreferencesResponse.js +++ b/dist/model/UpdatePushPreferencesResponse.js @@ -5,14 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The UpdatePushPreferencesResponse model module. * @module model/UpdatePushPreferencesResponse - * @version 0.0.16 + * @version 2.0.0 */ var UpdatePushPreferencesResponse = /*#__PURE__*/function () { /** @@ -29,7 +44,7 @@ var UpdatePushPreferencesResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(UpdatePushPreferencesResponse, null, [{ + return _createClass(UpdatePushPreferencesResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -48,23 +63,11 @@ var UpdatePushPreferencesResponse = /*#__PURE__*/function () { if (data.hasOwnProperty('block_push_from_bots')) { obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['String']); - } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } if (data.hasOwnProperty('do_not_disturb')) { obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); } if (data.hasOwnProperty('end_hour')) { obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); @@ -72,26 +75,37 @@ var UpdatePushPreferencesResponse = /*#__PURE__*/function () { if (data.hasOwnProperty('end_min')) { obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); } + if (data.hasOwnProperty('push_blocked_bot_ids')) { + obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['String']); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } if (data.hasOwnProperty('snooze_enabled')) { obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); } + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); + } if (data.hasOwnProperty('snooze_start_ts')) { obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); + } + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); } if (data.hasOwnProperty('timezone')) { obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } } return obj; } }]); - return UpdatePushPreferencesResponse; }(); /** * @member {Boolean} block_push_from_bots @@ -99,49 +113,49 @@ var UpdatePushPreferencesResponse = /*#__PURE__*/function () { UpdatePushPreferencesResponse.prototype['block_push_from_bots'] = undefined; /** - * @member {Boolean} enable_push_for_replies + * @member {Boolean} do_not_disturb */ -UpdatePushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; +UpdatePushPreferencesResponse.prototype['do_not_disturb'] = undefined; /** - * @member {Array.} push_blocked_bot_ids + * @member {Boolean} enable_push_for_replies */ -UpdatePushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; +UpdatePushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; /** - * @member {String} push_trigger_option + * @member {Number} end_hour */ -UpdatePushPreferencesResponse.prototype['push_trigger_option'] = undefined; +UpdatePushPreferencesResponse.prototype['end_hour'] = undefined; /** - * @member {Boolean} do_not_disturb + * @member {Number} end_min */ -UpdatePushPreferencesResponse.prototype['do_not_disturb'] = undefined; +UpdatePushPreferencesResponse.prototype['end_min'] = undefined; /** - * @member {Number} start_hour + * @member {Array.} push_blocked_bot_ids */ -UpdatePushPreferencesResponse.prototype['start_hour'] = undefined; +UpdatePushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; /** - * @member {Number} start_min + * @member {String} push_sound */ -UpdatePushPreferencesResponse.prototype['start_min'] = undefined; +UpdatePushPreferencesResponse.prototype['push_sound'] = undefined; /** - * @member {Number} end_hour + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option */ -UpdatePushPreferencesResponse.prototype['end_hour'] = undefined; +UpdatePushPreferencesResponse.prototype['push_trigger_option'] = undefined; /** - * @member {Number} end_min + * @member {Boolean} snooze_enabled */ -UpdatePushPreferencesResponse.prototype['end_min'] = undefined; +UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; /** - * @member {Boolean} snooze_enabled + * @member {Number} snooze_end_ts */ -UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; +UpdatePushPreferencesResponse.prototype['snooze_end_ts'] = undefined; /** * @member {Number} snooze_start_ts @@ -149,18 +163,17 @@ UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; UpdatePushPreferencesResponse.prototype['snooze_start_ts'] = undefined; /** - * @member {Number} snooze_end_ts + * @member {Number} start_hour */ -UpdatePushPreferencesResponse.prototype['snooze_end_ts'] = undefined; +UpdatePushPreferencesResponse.prototype['start_hour'] = undefined; /** - * @member {String} timezone + * @member {Number} start_min */ -UpdatePushPreferencesResponse.prototype['timezone'] = undefined; +UpdatePushPreferencesResponse.prototype['start_min'] = undefined; /** - * @member {String} push_sound + * @member {String} timezone */ -UpdatePushPreferencesResponse.prototype['push_sound'] = undefined; -var _default = UpdatePushPreferencesResponse; -exports["default"] = _default; \ No newline at end of file +UpdatePushPreferencesResponse.prototype['timezone'] = undefined; +var _default = exports["default"] = UpdatePushPreferencesResponse; \ No newline at end of file diff --git a/dist/model/UpdateUserByIdData.js b/dist/model/UpdateUserByIdData.js deleted file mode 100644 index 3366797..0000000 --- a/dist/model/UpdateUserByIdData.js +++ /dev/null @@ -1,169 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateUserByIdData model module. - * @module model/UpdateUserByIdData - * @version 0.0.16 - */ -var UpdateUserByIdData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateUserByIdData. - * @alias module:model/UpdateUserByIdData - * @param userId {String} Specifies the unique ID of the user to update. - * @param nickname {String} Specifies the user's nickname. The length is limited to 80 characters. - * @param profileUrl {String} Specifies the URL of the user's profile image. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - */ - function UpdateUserByIdData(userId, nickname, profileUrl) { - _classCallCheck(this, UpdateUserByIdData); - UpdateUserByIdData.initialize(this, userId, nickname, profileUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateUserByIdData, null, [{ - key: "initialize", - value: function initialize(obj, userId, nickname, profileUrl) { - obj['user_id'] = userId; - obj['nickname'] = nickname; - obj['profile_url'] = profileUrl; - } - - /** - * Constructs a UpdateUserByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserByIdData} obj Optional instance to populate. - * @return {module:model/UpdateUserByIdData} The populated UpdateUserByIdData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserByIdData(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = _ApiClient["default"].convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = _ApiClient["default"].convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('profile_file')) { - obj['profile_file'] = _ApiClient["default"].convertToType(data['profile_file'], File); - } - if (data.hasOwnProperty('issue_access_token')) { - obj['issue_access_token'] = _ApiClient["default"].convertToType(data['issue_access_token'], 'Boolean'); - } - if (data.hasOwnProperty('issue_session_token')) { - obj['issue_session_token'] = _ApiClient["default"].convertToType(data['issue_session_token'], 'Boolean'); - } - if (data.hasOwnProperty('session_token_expires_at')) { - obj['session_token_expires_at'] = _ApiClient["default"].convertToType(data['session_token_expires_at'], 'Number'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = _ApiClient["default"].convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = _ApiClient["default"].convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = _ApiClient["default"].convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = _ApiClient["default"].convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('leave_all_when_deactivated')) { - obj['leave_all_when_deactivated'] = _ApiClient["default"].convertToType(data['leave_all_when_deactivated'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateUserByIdData; -}(); -/** - * Specifies the unique ID of the user to update. - * @member {String} user_id - */ -UpdateUserByIdData.prototype['user_id'] = undefined; - -/** - * Specifies the user's nickname. The length is limited to 80 characters. - * @member {String} nickname - */ -UpdateUserByIdData.prototype['nickname'] = undefined; - -/** - * Specifies the URL of the user's profile image. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - * @member {String} profile_url - */ -UpdateUserByIdData.prototype['profile_url'] = undefined; - -/** - * Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. - * @member {File} profile_file - */ -UpdateUserByIdData.prototype['profile_file'] = undefined; - -/** - * Determines whether to revoke the existing access token and create a new one for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_access_token - */ -UpdateUserByIdData.prototype['issue_access_token'] = undefined; - -/** - * Determines whether to add a new session token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, a session token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_session_token - */ -UpdateUserByIdData.prototype['issue_session_token'] = undefined; - -/** - * Specifies the time for the issued session token to expire in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The length should be 13. If not specified and the issue_session_token property above is true, the value of this property is set to the sum of the current timestamp and 604800000 by default, which indicates that the token will be valid for the next 7 days starting from the current timestamp. - * @member {Number} session_token_expires_at - */ -UpdateUserByIdData.prototype['session_token_expires_at'] = undefined; - -/** - * Determines whether to activate or deactivate the user within the application. - * @member {Boolean} is_active - */ -UpdateUserByIdData.prototype['is_active'] = undefined; - -/** - * Specifies the time when the user goes offline, to indicate when they were last online, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. - * @member {Number} last_seen_at - */ -UpdateUserByIdData.prototype['last_seen_at'] = undefined; - -/** - * Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. - * @member {Array.} discovery_keys - */ -UpdateUserByIdData.prototype['discovery_keys'] = undefined; - -/** - * Specifies an array of one or more [language codes](/docs/chat/v3/platform-api/guides/miscellaneous#2-language-codes-for-auto-translation) to translate notification messages to preferred languages. Up to 4 languages can be set for the user. If messages are sent in one of the preferred languages, notification messages won't be translated. If messages are sent in a language other than the preferred languages, notification messages will be translated into the first language in the array. In addition, the messages translated into other preferred languages will be provided in the `sendbird` property of a notification message payload. - * @member {Array.} preferred_languages - */ -UpdateUserByIdData.prototype['preferred_languages'] = undefined; - -/** - * Determines whether the user leaves all joined group channels upon deactivation. Note that this value is true by default. Use in conjunction with the is_active property above. - * @member {Boolean} leave_all_when_deactivated - */ -UpdateUserByIdData.prototype['leave_all_when_deactivated'] = undefined; -var _default = UpdateUserByIdData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateUserMetadataData.js b/dist/model/UpdateUserMetadataData.js deleted file mode 100644 index 6f8dac1..0000000 --- a/dist/model/UpdateUserMetadataData.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateUserMetadataData model module. - * @module model/UpdateUserMetadataData - * @version 0.0.16 - */ -var UpdateUserMetadataData = /*#__PURE__*/function () { - /** - * Constructs a new UpdateUserMetadataData. - * @alias module:model/UpdateUserMetadataData - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @param upsert {Boolean} - */ - function UpdateUserMetadataData(metadata, upsert) { - _classCallCheck(this, UpdateUserMetadataData); - UpdateUserMetadataData.initialize(this, metadata, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateUserMetadataData, null, [{ - key: "initialize", - value: function initialize(obj, metadata, upsert) { - obj['metadata'] = metadata; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateUserMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserMetadataData} obj Optional instance to populate. - * @return {module:model/UpdateUserMetadataData} The populated UpdateUserMetadataData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserMetadataData(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateUserMetadataData; -}(); -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -UpdateUserMetadataData.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateUserMetadataData.prototype['upsert'] = undefined; -var _default = UpdateUserMetadataData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UpdateUserMetadataResponse.js b/dist/model/UpdateUserMetadataResponse.js deleted file mode 100644 index 124d0db..0000000 --- a/dist/model/UpdateUserMetadataResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UpdateUserMetadataResponse model module. - * @module model/UpdateUserMetadataResponse - * @version 0.0.16 - */ -var UpdateUserMetadataResponse = /*#__PURE__*/function () { - /** - * Constructs a new UpdateUserMetadataResponse. - * @alias module:model/UpdateUserMetadataResponse - */ - function UpdateUserMetadataResponse() { - _classCallCheck(this, UpdateUserMetadataResponse); - UpdateUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UpdateUserMetadataResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UpdateUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/UpdateUserMetadataResponse} The populated UpdateUserMetadataResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserMetadataResponse(); - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = _ApiClient["default"].convertToType(data['metadata'], { - 'String': 'String' - }); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = _ApiClient["default"].convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - }]); - return UpdateUserMetadataResponse; -}(); -/** - * @member {Object.} metadata - */ -UpdateUserMetadataResponse.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateUserMetadataResponse.prototype['upsert'] = undefined; -var _default = UpdateUserMetadataResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UseDefaultEmojisData.js b/dist/model/UseDefaultEmojisData.js deleted file mode 100644 index 7fed4c0..0000000 --- a/dist/model/UseDefaultEmojisData.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UseDefaultEmojisData model module. - * @module model/UseDefaultEmojisData - * @version 0.0.16 - */ -var UseDefaultEmojisData = /*#__PURE__*/function () { - /** - * Constructs a new UseDefaultEmojisData. - * @alias module:model/UseDefaultEmojisData - * @param useDefaultEmoji {Boolean} Determines whether to use the 7 default emojis initially provided. - */ - function UseDefaultEmojisData(useDefaultEmoji) { - _classCallCheck(this, UseDefaultEmojisData); - UseDefaultEmojisData.initialize(this, useDefaultEmoji); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UseDefaultEmojisData, null, [{ - key: "initialize", - value: function initialize(obj, useDefaultEmoji) { - obj['use_default_emoji'] = useDefaultEmoji; - } - - /** - * Constructs a UseDefaultEmojisData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UseDefaultEmojisData} obj Optional instance to populate. - * @return {module:model/UseDefaultEmojisData} The populated UseDefaultEmojisData instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UseDefaultEmojisData(); - if (data.hasOwnProperty('use_default_emoji')) { - obj['use_default_emoji'] = _ApiClient["default"].convertToType(data['use_default_emoji'], 'Boolean'); - } - } - return obj; - } - }]); - return UseDefaultEmojisData; -}(); -/** - * Determines whether to use the 7 default emojis initially provided. - * @member {Boolean} use_default_emoji - */ -UseDefaultEmojisData.prototype['use_default_emoji'] = undefined; -var _default = UseDefaultEmojisData; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/UseDefaultEmojisResponse.js b/dist/model/UseDefaultEmojisResponse.js deleted file mode 100644 index dd0716a..0000000 --- a/dist/model/UseDefaultEmojisResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The UseDefaultEmojisResponse model module. - * @module model/UseDefaultEmojisResponse - * @version 0.0.16 - */ -var UseDefaultEmojisResponse = /*#__PURE__*/function () { - /** - * Constructs a new UseDefaultEmojisResponse. - * @alias module:model/UseDefaultEmojisResponse - */ - function UseDefaultEmojisResponse() { - _classCallCheck(this, UseDefaultEmojisResponse); - UseDefaultEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(UseDefaultEmojisResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a UseDefaultEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UseDefaultEmojisResponse} obj Optional instance to populate. - * @return {module:model/UseDefaultEmojisResponse} The populated UseDefaultEmojisResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new UseDefaultEmojisResponse(); - if (data.hasOwnProperty('use_default_emoji')) { - obj['use_default_emoji'] = _ApiClient["default"].convertToType(data['use_default_emoji'], 'Boolean'); - } - } - return obj; - } - }]); - return UseDefaultEmojisResponse; -}(); -/** - * @member {Boolean} use_default_emoji - */ -UseDefaultEmojisResponse.prototype['use_default_emoji'] = undefined; -var _default = UseDefaultEmojisResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewAnnouncementByIdResponse.js b/dist/model/ViewAnnouncementByIdResponse.js deleted file mode 100644 index c4c28f4..0000000 --- a/dist/model/ViewAnnouncementByIdResponse.js +++ /dev/null @@ -1,232 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ScheduleAnnouncementResponseCreateChannelOptions = _interopRequireDefault(require("./ScheduleAnnouncementResponseCreateChannelOptions")); -var _ScheduleAnnouncementResponseMessage = _interopRequireDefault(require("./ScheduleAnnouncementResponseMessage")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewAnnouncementByIdResponse model module. - * @module model/ViewAnnouncementByIdResponse - * @version 0.0.16 - */ -var ViewAnnouncementByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewAnnouncementByIdResponse. - * @alias module:model/ViewAnnouncementByIdResponse - */ - function ViewAnnouncementByIdResponse() { - _classCallCheck(this, ViewAnnouncementByIdResponse); - ViewAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewAnnouncementByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewAnnouncementByIdResponse} The populated ViewAnnouncementByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewAnnouncementByIdResponse(); - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = _ApiClient["default"].convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = _ApiClient["default"].convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = _ScheduleAnnouncementResponseMessage["default"].constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = _ApiClient["default"].convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = _ApiClient["default"].convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = _ApiClient["default"].convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = _ApiClient["default"].convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = _ApiClient["default"].convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = _ApiClient["default"].convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = _ApiClient["default"].convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = _ApiClient["default"].convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = _ApiClient["default"].convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = _ApiClient["default"].convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = _ApiClient["default"].convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = _ApiClient["default"].convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = _ScheduleAnnouncementResponseCreateChannelOptions["default"].constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = _ApiClient["default"].convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = _ApiClient["default"].convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = _ApiClient["default"].convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = _ApiClient["default"].convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('target_custom_type')) { - obj['target_custom_type'] = _ApiClient["default"].convertToType(data['target_custom_type'], 'String'); - } - } - return obj; - } - }]); - return ViewAnnouncementByIdResponse; -}(); -/** - * @member {String} unique_id - */ -ViewAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ViewAnnouncementByIdResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ViewAnnouncementByIdResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ViewAnnouncementByIdResponse.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ViewAnnouncementByIdResponse.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ViewAnnouncementByIdResponse.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ViewAnnouncementByIdResponse.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -ViewAnnouncementByIdResponse.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ViewAnnouncementByIdResponse.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ViewAnnouncementByIdResponse.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ViewAnnouncementByIdResponse.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ViewAnnouncementByIdResponse.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ViewAnnouncementByIdResponse.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -ViewAnnouncementByIdResponse.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ViewAnnouncementByIdResponse.prototype['open_rate'] = undefined; - -/** - * @member {Boolean} create_channel - */ -ViewAnnouncementByIdResponse.prototype['create_channel'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ViewAnnouncementByIdResponse.prototype['create_channel_options'] = undefined; - -/** - * @member {Number} end_at - */ -ViewAnnouncementByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Boolean} mark_as_read - */ -ViewAnnouncementByIdResponse.prototype['mark_as_read'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ViewAnnouncementByIdResponse.prototype['sent_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ViewAnnouncementByIdResponse.prototype['target_channel_type'] = undefined; - -/** - * @member {String} target_custom_type - */ -ViewAnnouncementByIdResponse.prototype['target_custom_type'] = undefined; -var _default = ViewAnnouncementByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewBotByIdResponse.js b/dist/model/ViewBotByIdResponse.js deleted file mode 100644 index 00ab60d..0000000 --- a/dist/model/ViewBotByIdResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _CreateBotResponseBot = _interopRequireDefault(require("./CreateBotResponseBot")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewBotByIdResponse model module. - * @module model/ViewBotByIdResponse - * @version 0.0.16 - */ -var ViewBotByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewBotByIdResponse. - * @alias module:model/ViewBotByIdResponse - */ - function ViewBotByIdResponse() { - _classCallCheck(this, ViewBotByIdResponse); - ViewBotByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewBotByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewBotByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewBotByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewBotByIdResponse} The populated ViewBotByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewBotByIdResponse(); - if (data.hasOwnProperty('bot')) { - obj['bot'] = _CreateBotResponseBot["default"].constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = _ApiClient["default"].convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = _ApiClient["default"].convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = _ApiClient["default"].convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = _ApiClient["default"].convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = _ApiClient["default"].convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - }]); - return ViewBotByIdResponse; -}(); -/** - * @member {module:model/CreateBotResponseBot} bot - */ -ViewBotByIdResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -ViewBotByIdResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -ViewBotByIdResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -ViewBotByIdResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -ViewBotByIdResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -ViewBotByIdResponse.prototype['channel_invitation_preference'] = undefined; -var _default = ViewBotByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewChannelInvitationPreferenceResponse.js b/dist/model/ViewChannelInvitationPreferenceResponse.js deleted file mode 100644 index 1be72b4..0000000 --- a/dist/model/ViewChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewChannelInvitationPreferenceResponse model module. - * @module model/ViewChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -var ViewChannelInvitationPreferenceResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewChannelInvitationPreferenceResponse. - * @alias module:model/ViewChannelInvitationPreferenceResponse - */ - function ViewChannelInvitationPreferenceResponse() { - _classCallCheck(this, ViewChannelInvitationPreferenceResponse); - ViewChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewChannelInvitationPreferenceResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/ViewChannelInvitationPreferenceResponse} The populated ViewChannelInvitationPreferenceResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewChannelInvitationPreferenceResponse(); - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - }]); - return ViewChannelInvitationPreferenceResponse; -}(); -/** - * @member {Boolean} auto_accept - */ -ViewChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; -var _default = ViewChannelInvitationPreferenceResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewCountPreferenceOfAChannelResponse.js b/dist/model/ViewCountPreferenceOfAChannelResponse.js new file mode 100644 index 0000000..bc084db --- /dev/null +++ b/dist/model/ViewCountPreferenceOfAChannelResponse.js @@ -0,0 +1,102 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ViewCountPreferenceOfAChannelResponse model module. + * @module model/ViewCountPreferenceOfAChannelResponse + * @version 2.0.0 + */ +var ViewCountPreferenceOfAChannelResponse = /*#__PURE__*/function () { + /** + * Constructs a new ViewCountPreferenceOfAChannelResponse. + * @alias module:model/ViewCountPreferenceOfAChannelResponse + */ + function ViewCountPreferenceOfAChannelResponse() { + _classCallCheck(this, ViewCountPreferenceOfAChannelResponse); + ViewCountPreferenceOfAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ViewCountPreferenceOfAChannelResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ViewCountPreferenceOfAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ViewCountPreferenceOfAChannelResponse} obj Optional instance to populate. + * @return {module:model/ViewCountPreferenceOfAChannelResponse} The populated ViewCountPreferenceOfAChannelResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ViewCountPreferenceOfAChannelResponse(); + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/ViewCountPreferenceOfAChannelResponse.CountPreferenceEnum} count_preference + */ +ViewCountPreferenceOfAChannelResponse.prototype['count_preference'] = undefined; + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +ViewCountPreferenceOfAChannelResponse['CountPreferenceEnum'] = { + /** + * value: "false" + * @const + */ + "false": "false", + /** + * value: "all" + * @const + */ + "all": "all", + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; +var _default = exports["default"] = ViewCountPreferenceOfAChannelResponse; \ No newline at end of file diff --git a/dist/model/ViewCountPreferenceOfChannelByUrlResponse.js b/dist/model/ViewCountPreferenceOfChannelByUrlResponse.js deleted file mode 100644 index 3bc2db0..0000000 --- a/dist/model/ViewCountPreferenceOfChannelByUrlResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewCountPreferenceOfChannelByUrlResponse model module. - * @module model/ViewCountPreferenceOfChannelByUrlResponse - * @version 0.0.16 - */ -var ViewCountPreferenceOfChannelByUrlResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewCountPreferenceOfChannelByUrlResponse. - * @alias module:model/ViewCountPreferenceOfChannelByUrlResponse - */ - function ViewCountPreferenceOfChannelByUrlResponse() { - _classCallCheck(this, ViewCountPreferenceOfChannelByUrlResponse); - ViewCountPreferenceOfChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewCountPreferenceOfChannelByUrlResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewCountPreferenceOfChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewCountPreferenceOfChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ViewCountPreferenceOfChannelByUrlResponse} The populated ViewCountPreferenceOfChannelByUrlResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewCountPreferenceOfChannelByUrlResponse(); - if (data.hasOwnProperty('count_preference')) { - obj['count_preference'] = _ApiClient["default"].convertToType(data['count_preference'], 'String'); - } - } - return obj; - } - }]); - return ViewCountPreferenceOfChannelByUrlResponse; -}(); -/** - * @member {String} count_preference - */ -ViewCountPreferenceOfChannelByUrlResponse.prototype['count_preference'] = undefined; -var _default = ViewCountPreferenceOfChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewDataExportByIdResponse.js b/dist/model/ViewDataExportByIdResponse.js deleted file mode 100644 index 5339952..0000000 --- a/dist/model/ViewDataExportByIdResponse.js +++ /dev/null @@ -1,167 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewDataExportByIdResponse model module. - * @module model/ViewDataExportByIdResponse - * @version 0.0.16 - */ -var ViewDataExportByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewDataExportByIdResponse. - * @alias module:model/ViewDataExportByIdResponse - */ - function ViewDataExportByIdResponse() { - _classCallCheck(this, ViewDataExportByIdResponse); - ViewDataExportByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewDataExportByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewDataExportByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewDataExportByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewDataExportByIdResponse} The populated ViewDataExportByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewDataExportByIdResponse(); - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('data_type')) { - obj['data_type'] = _ApiClient["default"].convertToType(data['data_type'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = _ApiClient["default"].convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = _ApiClient["default"].convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = _ApiClient["default"].convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = _ApiClient["default"].convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = _ApiClient["default"].convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = _ApiClient["default"].convertToType(data['channel_custom_types'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = _ApiClient["default"].convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"].constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - }]); - return ViewDataExportByIdResponse; -}(); -/** - * @member {String} request_id - */ -ViewDataExportByIdResponse.prototype['request_id'] = undefined; - -/** - * @member {String} data_type - */ -ViewDataExportByIdResponse.prototype['data_type'] = undefined; - -/** - * @member {String} status - */ -ViewDataExportByIdResponse.prototype['status'] = undefined; - -/** - * @member {String} format - */ -ViewDataExportByIdResponse.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -ViewDataExportByIdResponse.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -ViewDataExportByIdResponse.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -ViewDataExportByIdResponse.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -ViewDataExportByIdResponse.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -ViewDataExportByIdResponse.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -ViewDataExportByIdResponse.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} channel_custom_types - */ -ViewDataExportByIdResponse.prototype['channel_custom_types'] = undefined; - -/** - * @member {Array.} sender_ids - */ -ViewDataExportByIdResponse.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -ViewDataExportByIdResponse.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -ViewDataExportByIdResponse.prototype['user_ids'] = undefined; -var _default = ViewDataExportByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewDefaultChannelInvitationPreferenceResponse.js b/dist/model/ViewDefaultChannelInvitationPreferenceResponse.js deleted file mode 100644 index 4fe49d6..0000000 --- a/dist/model/ViewDefaultChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewDefaultChannelInvitationPreferenceResponse model module. - * @module model/ViewDefaultChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -var ViewDefaultChannelInvitationPreferenceResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewDefaultChannelInvitationPreferenceResponse. - * @alias module:model/ViewDefaultChannelInvitationPreferenceResponse - */ - function ViewDefaultChannelInvitationPreferenceResponse() { - _classCallCheck(this, ViewDefaultChannelInvitationPreferenceResponse); - ViewDefaultChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewDefaultChannelInvitationPreferenceResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewDefaultChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewDefaultChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/ViewDefaultChannelInvitationPreferenceResponse} The populated ViewDefaultChannelInvitationPreferenceResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewDefaultChannelInvitationPreferenceResponse(); - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = _ApiClient["default"].convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - }]); - return ViewDefaultChannelInvitationPreferenceResponse; -}(); -/** - * @member {Boolean} auto_accept - */ -ViewDefaultChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; -var _default = ViewDefaultChannelInvitationPreferenceResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewGdprRequestByIdResponse.js b/dist/model/ViewGdprRequestByIdResponse.js deleted file mode 100644 index 208049b..0000000 --- a/dist/model/ViewGdprRequestByIdResponse.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile = _interopRequireDefault(require("./ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewGdprRequestByIdResponse model module. - * @module model/ViewGdprRequestByIdResponse - * @version 0.0.16 - */ -var ViewGdprRequestByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewGdprRequestByIdResponse. - * @alias module:model/ViewGdprRequestByIdResponse - */ - function ViewGdprRequestByIdResponse() { - _classCallCheck(this, ViewGdprRequestByIdResponse); - ViewGdprRequestByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewGdprRequestByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewGdprRequestByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewGdprRequestByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewGdprRequestByIdResponse} The populated ViewGdprRequestByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewGdprRequestByIdResponse(); - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = _ApiClient["default"].convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = _ApiClient["default"].convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = _ApiClient["default"].convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('files')) { - obj['files'] = _ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile["default"].constructFromObject(data['files']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = _ApiClient["default"].convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = _ApiClient["default"].convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ViewGdprRequestByIdResponse; -}(); -/** - * @member {String} request_id - */ -ViewGdprRequestByIdResponse.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -ViewGdprRequestByIdResponse.prototype['action'] = undefined; - -/** - * @member {String} status - */ -ViewGdprRequestByIdResponse.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -ViewGdprRequestByIdResponse.prototype['user_id'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} files - */ -ViewGdprRequestByIdResponse.prototype['files'] = undefined; - -/** - * @member {Array.} user_ids - */ -ViewGdprRequestByIdResponse.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -ViewGdprRequestByIdResponse.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -ViewGdprRequestByIdResponse.prototype['created_at'] = undefined; -var _default = ViewGdprRequestByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfChannelsByJoinStatusResponse.js b/dist/model/ViewNumberOfChannelsByJoinStatusResponse.js deleted file mode 100644 index 18ec0f3..0000000 --- a/dist/model/ViewNumberOfChannelsByJoinStatusResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewNumberOfChannelsByJoinStatusResponse model module. - * @module model/ViewNumberOfChannelsByJoinStatusResponse - * @version 0.0.16 - */ -var ViewNumberOfChannelsByJoinStatusResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewNumberOfChannelsByJoinStatusResponse. - * @alias module:model/ViewNumberOfChannelsByJoinStatusResponse - */ - function ViewNumberOfChannelsByJoinStatusResponse() { - _classCallCheck(this, ViewNumberOfChannelsByJoinStatusResponse); - ViewNumberOfChannelsByJoinStatusResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewNumberOfChannelsByJoinStatusResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewNumberOfChannelsByJoinStatusResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfChannelsByJoinStatusResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfChannelsByJoinStatusResponse} The populated ViewNumberOfChannelsByJoinStatusResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfChannelsByJoinStatusResponse(); - if (data.hasOwnProperty('group_channel_count')) { - obj['group_channel_count'] = _ApiClient["default"].convertToType(data['group_channel_count'], 'Number'); - } - } - return obj; - } - }]); - return ViewNumberOfChannelsByJoinStatusResponse; -}(); -/** - * @member {Number} group_channel_count - */ -ViewNumberOfChannelsByJoinStatusResponse.prototype['group_channel_count'] = undefined; -var _default = ViewNumberOfChannelsByJoinStatusResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js b/dist/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js index 9562e4e..721351a 100644 --- a/dist/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js +++ b/dist/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ViewNumberOfChannelsWithUnreadMessagesResponse model module. * @module model/ViewNumberOfChannelsWithUnreadMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ var ViewNumberOfChannelsWithUnreadMessagesResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var ViewNumberOfChannelsWithUnreadMessagesResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ViewNumberOfChannelsWithUnreadMessagesResponse, null, [{ + return _createClass(ViewNumberOfChannelsWithUnreadMessagesResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,9 @@ var ViewNumberOfChannelsWithUnreadMessagesResponse = /*#__PURE__*/function () { return obj; } }]); - return ViewNumberOfChannelsWithUnreadMessagesResponse; }(); /** * @member {Number} unread_count */ ViewNumberOfChannelsWithUnreadMessagesResponse.prototype['unread_count'] = undefined; -var _default = ViewNumberOfChannelsWithUnreadMessagesResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ViewNumberOfChannelsWithUnreadMessagesResponse; \ No newline at end of file diff --git a/dist/model/ViewNumberOfConcurrentConnectionsResponse.js b/dist/model/ViewNumberOfConcurrentConnectionsResponse.js deleted file mode 100644 index 508361d..0000000 --- a/dist/model/ViewNumberOfConcurrentConnectionsResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewNumberOfConcurrentConnectionsResponse model module. - * @module model/ViewNumberOfConcurrentConnectionsResponse - * @version 0.0.16 - */ -var ViewNumberOfConcurrentConnectionsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewNumberOfConcurrentConnectionsResponse. - * @alias module:model/ViewNumberOfConcurrentConnectionsResponse - */ - function ViewNumberOfConcurrentConnectionsResponse() { - _classCallCheck(this, ViewNumberOfConcurrentConnectionsResponse); - ViewNumberOfConcurrentConnectionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewNumberOfConcurrentConnectionsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewNumberOfConcurrentConnectionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfConcurrentConnectionsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfConcurrentConnectionsResponse} The populated ViewNumberOfConcurrentConnectionsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfConcurrentConnectionsResponse(); - if (data.hasOwnProperty('ccu')) { - obj['ccu'] = _ApiClient["default"].convertToType(data['ccu'], 'Number'); - } - } - return obj; - } - }]); - return ViewNumberOfConcurrentConnectionsResponse; -}(); -/** - * @member {Number} ccu - */ -ViewNumberOfConcurrentConnectionsResponse.prototype['ccu'] = undefined; -var _default = ViewNumberOfConcurrentConnectionsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfDailyActiveUsersResponse.js b/dist/model/ViewNumberOfDailyActiveUsersResponse.js index 2c6bde6..6d57578 100644 --- a/dist/model/ViewNumberOfDailyActiveUsersResponse.js +++ b/dist/model/ViewNumberOfDailyActiveUsersResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ViewNumberOfDailyActiveUsersResponse model module. * @module model/ViewNumberOfDailyActiveUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ var ViewNumberOfDailyActiveUsersResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var ViewNumberOfDailyActiveUsersResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ViewNumberOfDailyActiveUsersResponse, null, [{ + return _createClass(ViewNumberOfDailyActiveUsersResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,9 @@ var ViewNumberOfDailyActiveUsersResponse = /*#__PURE__*/function () { return obj; } }]); - return ViewNumberOfDailyActiveUsersResponse; }(); /** * @member {Number} dau */ ViewNumberOfDailyActiveUsersResponse.prototype['dau'] = undefined; -var _default = ViewNumberOfDailyActiveUsersResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ViewNumberOfDailyActiveUsersResponse; \ No newline at end of file diff --git a/dist/model/ViewNumberOfMonthlyActiveUsersResponse.js b/dist/model/ViewNumberOfMonthlyActiveUsersResponse.js index d04adae..61ca0ad 100644 --- a/dist/model/ViewNumberOfMonthlyActiveUsersResponse.js +++ b/dist/model/ViewNumberOfMonthlyActiveUsersResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ViewNumberOfMonthlyActiveUsersResponse model module. * @module model/ViewNumberOfMonthlyActiveUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ var ViewNumberOfMonthlyActiveUsersResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var ViewNumberOfMonthlyActiveUsersResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ViewNumberOfMonthlyActiveUsersResponse, null, [{ + return _createClass(ViewNumberOfMonthlyActiveUsersResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,9 @@ var ViewNumberOfMonthlyActiveUsersResponse = /*#__PURE__*/function () { return obj; } }]); - return ViewNumberOfMonthlyActiveUsersResponse; }(); /** * @member {Number} mau */ ViewNumberOfMonthlyActiveUsersResponse.prototype['mau'] = undefined; -var _default = ViewNumberOfMonthlyActiveUsersResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ViewNumberOfMonthlyActiveUsersResponse; \ No newline at end of file diff --git a/dist/model/ViewNumberOfPeakConnectionsResponse.js b/dist/model/ViewNumberOfPeakConnectionsResponse.js deleted file mode 100644 index d0744fc..0000000 --- a/dist/model/ViewNumberOfPeakConnectionsResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ViewNumberOfPeakConnectionsResponsePeakConnectionsInner = _interopRequireDefault(require("./ViewNumberOfPeakConnectionsResponsePeakConnectionsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewNumberOfPeakConnectionsResponse model module. - * @module model/ViewNumberOfPeakConnectionsResponse - * @version 0.0.16 - */ -var ViewNumberOfPeakConnectionsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewNumberOfPeakConnectionsResponse. - * @alias module:model/ViewNumberOfPeakConnectionsResponse - */ - function ViewNumberOfPeakConnectionsResponse() { - _classCallCheck(this, ViewNumberOfPeakConnectionsResponse); - ViewNumberOfPeakConnectionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewNumberOfPeakConnectionsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewNumberOfPeakConnectionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfPeakConnectionsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfPeakConnectionsResponse} The populated ViewNumberOfPeakConnectionsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfPeakConnectionsResponse(); - if (data.hasOwnProperty('peak_connections')) { - obj['peak_connections'] = _ApiClient["default"].convertToType(data['peak_connections'], [_ViewNumberOfPeakConnectionsResponsePeakConnectionsInner["default"]]); - } - } - return obj; - } - }]); - return ViewNumberOfPeakConnectionsResponse; -}(); -/** - * @member {Array.} peak_connections - */ -ViewNumberOfPeakConnectionsResponse.prototype['peak_connections'] = undefined; -var _default = ViewNumberOfPeakConnectionsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js b/dist/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js deleted file mode 100644 index ac91c3a..0000000 --- a/dist/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewNumberOfPeakConnectionsResponsePeakConnectionsInner model module. - * @module model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - * @version 0.0.16 - */ -var ViewNumberOfPeakConnectionsResponsePeakConnectionsInner = /*#__PURE__*/function () { - /** - * Constructs a new ViewNumberOfPeakConnectionsResponsePeakConnectionsInner. - * @alias module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - */ - function ViewNumberOfPeakConnectionsResponsePeakConnectionsInner() { - _classCallCheck(this, ViewNumberOfPeakConnectionsResponsePeakConnectionsInner); - ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewNumberOfPeakConnectionsResponsePeakConnectionsInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewNumberOfPeakConnectionsResponsePeakConnectionsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner} obj Optional instance to populate. - * @return {module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner} The populated ViewNumberOfPeakConnectionsResponsePeakConnectionsInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - if (data.hasOwnProperty('date')) { - obj['date'] = _ApiClient["default"].convertToType(data['date'], 'String'); - } - if (data.hasOwnProperty('peak_connections')) { - obj['peak_connections'] = _ApiClient["default"].convertToType(data['peak_connections'], 'Number'); - } - } - return obj; - } - }]); - return ViewNumberOfPeakConnectionsResponsePeakConnectionsInner; -}(); -/** - * @member {String} date - */ -ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.prototype['date'] = undefined; - -/** - * @member {Number} peak_connections - */ -ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.prototype['peak_connections'] = undefined; -var _default = ViewNumberOfPeakConnectionsResponsePeakConnectionsInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfUnreadItemsResponse.js b/dist/model/ViewNumberOfUnreadItemsResponse.js deleted file mode 100644 index c27ce5f..0000000 --- a/dist/model/ViewNumberOfUnreadItemsResponse.js +++ /dev/null @@ -1,126 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewNumberOfUnreadItemsResponse model module. - * @module model/ViewNumberOfUnreadItemsResponse - * @version 0.0.16 - */ -var ViewNumberOfUnreadItemsResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewNumberOfUnreadItemsResponse. - * @alias module:model/ViewNumberOfUnreadItemsResponse - */ - function ViewNumberOfUnreadItemsResponse() { - _classCallCheck(this, ViewNumberOfUnreadItemsResponse); - ViewNumberOfUnreadItemsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewNumberOfUnreadItemsResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewNumberOfUnreadItemsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfUnreadItemsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfUnreadItemsResponse} The populated ViewNumberOfUnreadItemsResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfUnreadItemsResponse(); - if (data.hasOwnProperty('non_super_group_channel_unread_message_count')) { - obj['non_super_group_channel_unread_message_count'] = _ApiClient["default"].convertToType(data['non_super_group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_unread_message_count')) { - obj['super_group_channel_unread_message_count'] = _ApiClient["default"].convertToType(data['super_group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_unread_message_count')) { - obj['group_channel_unread_message_count'] = _ApiClient["default"].convertToType(data['group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_invitation_count')) { - obj['super_group_channel_invitation_count'] = _ApiClient["default"].convertToType(data['super_group_channel_invitation_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_invitation_count')) { - obj['group_channel_invitation_count'] = _ApiClient["default"].convertToType(data['group_channel_invitation_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_unread_mention_count')) { - obj['super_group_channel_unread_mention_count'] = _ApiClient["default"].convertToType(data['super_group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_unread_mention_count')) { - obj['group_channel_unread_mention_count'] = _ApiClient["default"].convertToType(data['group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('non_super_group_channel_unread_mention_count')) { - obj['non_super_group_channel_unread_mention_count'] = _ApiClient["default"].convertToType(data['non_super_group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('non_super_group_channel_invitation_count')) { - obj['non_super_group_channel_invitation_count'] = _ApiClient["default"].convertToType(data['non_super_group_channel_invitation_count'], 'Number'); - } - } - return obj; - } - }]); - return ViewNumberOfUnreadItemsResponse; -}(); -/** - * @member {Number} non_super_group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} super_group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} super_group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_invitation_count'] = undefined; - -/** - * @member {Number} group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_invitation_count'] = undefined; - -/** - * @member {Number} super_group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} non_super_group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} non_super_group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_invitation_count'] = undefined; -var _default = ViewNumberOfUnreadItemsResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewNumberOfUnreadMessagesResponse.js b/dist/model/ViewNumberOfUnreadMessagesResponse.js index 2ff20fc..d5e53b6 100644 --- a/dist/model/ViewNumberOfUnreadMessagesResponse.js +++ b/dist/model/ViewNumberOfUnreadMessagesResponse.js @@ -5,14 +5,28 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ViewNumberOfUnreadMessagesResponse model module. * @module model/ViewNumberOfUnreadMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ var ViewNumberOfUnreadMessagesResponse = /*#__PURE__*/function () { /** @@ -29,7 +43,7 @@ var ViewNumberOfUnreadMessagesResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ViewNumberOfUnreadMessagesResponse, null, [{ + return _createClass(ViewNumberOfUnreadMessagesResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -52,11 +66,9 @@ var ViewNumberOfUnreadMessagesResponse = /*#__PURE__*/function () { return obj; } }]); - return ViewNumberOfUnreadMessagesResponse; }(); /** * @member {Number} unread_count */ ViewNumberOfUnreadMessagesResponse.prototype['unread_count'] = undefined; -var _default = ViewNumberOfUnreadMessagesResponse; -exports["default"] = _default; \ No newline at end of file +var _default = exports["default"] = ViewNumberOfUnreadMessagesResponse; \ No newline at end of file diff --git a/dist/model/ViewPushConfigurationByIdResponse.js b/dist/model/ViewPushConfigurationByIdResponse.js deleted file mode 100644 index 473dcf8..0000000 --- a/dist/model/ViewPushConfigurationByIdResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListPushConfigurationsResponsePushConfigurationsInner = _interopRequireDefault(require("./ListPushConfigurationsResponsePushConfigurationsInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewPushConfigurationByIdResponse model module. - * @module model/ViewPushConfigurationByIdResponse - * @version 0.0.16 - */ -var ViewPushConfigurationByIdResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewPushConfigurationByIdResponse. - * @alias module:model/ViewPushConfigurationByIdResponse - */ - function ViewPushConfigurationByIdResponse() { - _classCallCheck(this, ViewPushConfigurationByIdResponse); - ViewPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewPushConfigurationByIdResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewPushConfigurationByIdResponse} The populated ViewPushConfigurationByIdResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushConfigurationByIdResponse(); - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = _ApiClient["default"].convertToType(data['push_configurations'], [_ListPushConfigurationsResponsePushConfigurationsInner["default"]]); - } - } - return obj; - } - }]); - return ViewPushConfigurationByIdResponse; -}(); -/** - * @member {Array.} push_configurations - */ -ViewPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; -var _default = ViewPushConfigurationByIdResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewPushNotificationContentTemplateResponse.js b/dist/model/ViewPushNotificationContentTemplateResponse.js deleted file mode 100644 index 0607d55..0000000 --- a/dist/model/ViewPushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,63 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner = _interopRequireDefault(require("./ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewPushNotificationContentTemplateResponse model module. - * @module model/ViewPushNotificationContentTemplateResponse - * @version 0.0.16 - */ -var ViewPushNotificationContentTemplateResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewPushNotificationContentTemplateResponse. - * @alias module:model/ViewPushNotificationContentTemplateResponse - */ - function ViewPushNotificationContentTemplateResponse() { - _classCallCheck(this, ViewPushNotificationContentTemplateResponse); - ViewPushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewPushNotificationContentTemplateResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewPushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/ViewPushNotificationContentTemplateResponse} The populated ViewPushNotificationContentTemplateResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushNotificationContentTemplateResponse(); - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = _ApiClient["default"].convertToType(data['push_message_templates'], [_ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner["default"]]); - } - } - return obj; - } - }]); - return ViewPushNotificationContentTemplateResponse; -}(); -/** - * @member {Array.} push_message_templates - */ -ViewPushNotificationContentTemplateResponse.prototype['push_message_templates'] = undefined; -var _default = ViewPushNotificationContentTemplateResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js b/dist/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js deleted file mode 100644 index 98f8eab..0000000 --- a/dist/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -var _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate = _interopRequireDefault(require("./ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner model module. - * @module model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - * @version 0.0.16 - */ -var ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner = /*#__PURE__*/function () { - /** - * Constructs a new ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner. - * @alias module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - */ - function ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner() { - _classCallCheck(this, ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner); - ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner} obj Optional instance to populate. - * @return {module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner} The populated ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = _ApiClient["default"].convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate["default"].constructFromObject(data['template']); - } - if (data.hasOwnProperty('push_message_preview')) { - obj['push_message_preview'] = _ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate["default"].constructFromObject(data['push_message_preview']); - } - } - return obj; - } - }]); - return ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner; -}(); -/** - * @member {String} template_name - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['template_name'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} template - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['template'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} push_message_preview - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['push_message_preview'] = undefined; -var _default = ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewPushPreferencesForAChannelResponse.js b/dist/model/ViewPushPreferencesForAChannelResponse.js new file mode 100644 index 0000000..0b5e47d --- /dev/null +++ b/dist/model/ViewPushPreferencesForAChannelResponse.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ +/** + * The ViewPushPreferencesForAChannelResponse model module. + * @module model/ViewPushPreferencesForAChannelResponse + * @version 2.0.0 + */ +var ViewPushPreferencesForAChannelResponse = /*#__PURE__*/function () { + /** + * Constructs a new ViewPushPreferencesForAChannelResponse. + * @alias module:model/ViewPushPreferencesForAChannelResponse + */ + function ViewPushPreferencesForAChannelResponse() { + _classCallCheck(this, ViewPushPreferencesForAChannelResponse); + ViewPushPreferencesForAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + return _createClass(ViewPushPreferencesForAChannelResponse, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a ViewPushPreferencesForAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ViewPushPreferencesForAChannelResponse} obj Optional instance to populate. + * @return {module:model/ViewPushPreferencesForAChannelResponse} The populated ViewPushPreferencesForAChannelResponse instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new ViewPushPreferencesForAChannelResponse(); + if (data.hasOwnProperty('enable')) { + obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); + } + } + return obj; + } + }]); +}(); +/** + * @member {Boolean} enable + */ +ViewPushPreferencesForAChannelResponse.prototype['enable'] = undefined; + +/** + * @member {String} push_sound + */ +ViewPushPreferencesForAChannelResponse.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +ViewPushPreferencesForAChannelResponse.prototype['push_trigger_option'] = undefined; +var _default = exports["default"] = ViewPushPreferencesForAChannelResponse; \ No newline at end of file diff --git a/dist/model/ViewPushPreferencesForChannelByUrlResponse.js b/dist/model/ViewPushPreferencesForChannelByUrlResponse.js deleted file mode 100644 index b6fbf02..0000000 --- a/dist/model/ViewPushPreferencesForChannelByUrlResponse.js +++ /dev/null @@ -1,150 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewPushPreferencesForChannelByUrlResponse model module. - * @module model/ViewPushPreferencesForChannelByUrlResponse - * @version 0.0.16 - */ -var ViewPushPreferencesForChannelByUrlResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewPushPreferencesForChannelByUrlResponse. - * @alias module:model/ViewPushPreferencesForChannelByUrlResponse - */ - function ViewPushPreferencesForChannelByUrlResponse() { - _classCallCheck(this, ViewPushPreferencesForChannelByUrlResponse); - ViewPushPreferencesForChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewPushPreferencesForChannelByUrlResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewPushPreferencesForChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushPreferencesForChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ViewPushPreferencesForChannelByUrlResponse} The populated ViewPushPreferencesForChannelByUrlResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushPreferencesForChannelByUrlResponse(); - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = _ApiClient["default"].convertToType(data['enable'], 'Boolean'); - } - } - return obj; - } - }]); - return ViewPushPreferencesForChannelByUrlResponse; -}(); -/** - * @member {String} push_trigger_option - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['push_trigger_option'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} start_hour - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['start_hour'] = undefined; - -/** - * @member {Number} start_min - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['start_min'] = undefined; - -/** - * @member {Number} end_hour - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['end_hour'] = undefined; - -/** - * @member {Number} end_min - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['end_min'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} snooze_start_ts - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} snooze_end_ts - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {String} timezone - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['timezone'] = undefined; - -/** - * @member {String} push_sound - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['push_sound'] = undefined; - -/** - * @member {Boolean} enable - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['enable'] = undefined; -var _default = ViewPushPreferencesForChannelByUrlResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewPushPreferencesResponse.js b/dist/model/ViewPushPreferencesResponse.js index e91c013..a3f5e46 100644 --- a/dist/model/ViewPushPreferencesResponse.js +++ b/dist/model/ViewPushPreferencesResponse.js @@ -5,14 +5,29 @@ Object.defineProperty(exports, "__esModule", { }); exports["default"] = void 0; var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } +var _SendbirdPushTriggerOption = _interopRequireDefault(require("./SendbirdPushTriggerOption")); +function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; } +function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); } +function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); } +function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } } +function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; } +function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; } +function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ /** * The ViewPushPreferencesResponse model module. * @module model/ViewPushPreferencesResponse - * @version 0.0.16 + * @version 2.0.0 */ var ViewPushPreferencesResponse = /*#__PURE__*/function () { /** @@ -29,7 +44,7 @@ var ViewPushPreferencesResponse = /*#__PURE__*/function () { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - _createClass(ViewPushPreferencesResponse, null, [{ + return _createClass(ViewPushPreferencesResponse, null, [{ key: "initialize", value: function initialize(obj) {} @@ -45,122 +60,120 @@ var ViewPushPreferencesResponse = /*#__PURE__*/function () { value: function constructFromObject(data, obj) { if (data) { obj = obj || new ViewPushPreferencesResponse(); - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'String'); + if (data.hasOwnProperty('block_push_from_bots')) { + obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); + } + if (data.hasOwnProperty('end_hour')) { + obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); } if (data.hasOwnProperty('end_min')) { obj['end_min'] = _ApiClient["default"].convertToType(data['end_min'], 'Number'); } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = _ApiClient["default"].convertToType(data['block_push_from_bots'], 'Boolean'); - } if (data.hasOwnProperty('push_blocked_bot_ids')) { obj['push_blocked_bot_ids'] = _ApiClient["default"].convertToType(data['push_blocked_bot_ids'], ['String']); } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'String'); + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = _SendbirdPushTriggerOption["default"].constructFromObject(data['push_trigger_option']); } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = _ApiClient["default"].convertToType(data['do_not_disturb'], 'Boolean'); + if (data.hasOwnProperty('snooze_enabled')) { + obj['snooze_enabled'] = _ApiClient["default"].convertToType(data['snooze_enabled'], 'Boolean'); } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = _ApiClient["default"].convertToType(data['end_hour'], 'Number'); + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = _ApiClient["default"].convertToType(data['snooze_end_ts'], 'Number'); } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = _ApiClient["default"].convertToType(data['enable_push_for_replies'], 'Boolean'); + if (data.hasOwnProperty('snooze_start_ts')) { + obj['snooze_start_ts'] = _ApiClient["default"].convertToType(data['snooze_start_ts'], 'Number'); } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = _ApiClient["default"].convertToType(data['push_sound'], 'String'); + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = _ApiClient["default"].convertToType(data['start_hour'], 'Number'); } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = _ApiClient["default"].convertToType(data['push_trigger_option'], 'String'); + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = _ApiClient["default"].convertToType(data['start_min'], 'Number'); + } + if (data.hasOwnProperty('timezone')) { + obj['timezone'] = _ApiClient["default"].convertToType(data['timezone'], 'String'); } } return obj; } }]); - return ViewPushPreferencesResponse; }(); /** - * @member {String} snooze_start_ts + * @member {Boolean} block_push_from_bots */ -ViewPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; +ViewPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; /** - * @member {Number} start_hour + * @member {Boolean} do_not_disturb */ -ViewPushPreferencesResponse.prototype['start_hour'] = undefined; +ViewPushPreferencesResponse.prototype['do_not_disturb'] = undefined; /** - * @member {Boolean} snooze_enabled + * @member {Boolean} enable_push_for_replies */ -ViewPushPreferencesResponse.prototype['snooze_enabled'] = undefined; +ViewPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; /** - * @member {Number} end_min + * @member {Number} end_hour */ -ViewPushPreferencesResponse.prototype['end_min'] = undefined; +ViewPushPreferencesResponse.prototype['end_hour'] = undefined; /** - * @member {String} timezone + * @member {Number} end_min */ -ViewPushPreferencesResponse.prototype['timezone'] = undefined; +ViewPushPreferencesResponse.prototype['end_min'] = undefined; /** - * @member {Boolean} block_push_from_bots + * @member {Array.} push_blocked_bot_ids */ -ViewPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; +ViewPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; /** - * @member {Array.} push_blocked_bot_ids + * @member {String} push_sound */ -ViewPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; +ViewPushPreferencesResponse.prototype['push_sound'] = undefined; /** - * @member {Number} start_min + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option */ -ViewPushPreferencesResponse.prototype['start_min'] = undefined; +ViewPushPreferencesResponse.prototype['push_trigger_option'] = undefined; /** - * @member {String} snooze_end_ts + * @member {Boolean} snooze_enabled */ -ViewPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_enabled'] = undefined; /** - * @member {Boolean} do_not_disturb + * @member {Number} snooze_end_ts */ -ViewPushPreferencesResponse.prototype['do_not_disturb'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; /** - * @member {Number} end_hour + * @member {Number} snooze_start_ts */ -ViewPushPreferencesResponse.prototype['end_hour'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; /** - * @member {Boolean} enable_push_for_replies + * @member {Number} start_hour */ -ViewPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; +ViewPushPreferencesResponse.prototype['start_hour'] = undefined; /** - * @member {String} push_sound + * @member {Number} start_min */ -ViewPushPreferencesResponse.prototype['push_sound'] = undefined; +ViewPushPreferencesResponse.prototype['start_min'] = undefined; /** - * @member {String} push_trigger_option + * @member {String} timezone */ -ViewPushPreferencesResponse.prototype['push_trigger_option'] = undefined; -var _default = ViewPushPreferencesResponse; -exports["default"] = _default; \ No newline at end of file +ViewPushPreferencesResponse.prototype['timezone'] = undefined; +var _default = exports["default"] = ViewPushPreferencesResponse; \ No newline at end of file diff --git a/dist/model/ViewSecondaryApiTokenByTokenResponse.js b/dist/model/ViewSecondaryApiTokenByTokenResponse.js deleted file mode 100644 index 1290d2c..0000000 --- a/dist/model/ViewSecondaryApiTokenByTokenResponse.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewSecondaryApiTokenByTokenResponse model module. - * @module model/ViewSecondaryApiTokenByTokenResponse - * @version 0.0.16 - */ -var ViewSecondaryApiTokenByTokenResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewSecondaryApiTokenByTokenResponse. - * @alias module:model/ViewSecondaryApiTokenByTokenResponse - */ - function ViewSecondaryApiTokenByTokenResponse() { - _classCallCheck(this, ViewSecondaryApiTokenByTokenResponse); - ViewSecondaryApiTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewSecondaryApiTokenByTokenResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewSecondaryApiTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewSecondaryApiTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/ViewSecondaryApiTokenByTokenResponse} The populated ViewSecondaryApiTokenByTokenResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewSecondaryApiTokenByTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = _ApiClient["default"].convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = _ApiClient["default"].convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - }]); - return ViewSecondaryApiTokenByTokenResponse; -}(); -/** - * @member {String} token - */ -ViewSecondaryApiTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -ViewSecondaryApiTokenByTokenResponse.prototype['created_at'] = undefined; -var _default = ViewSecondaryApiTokenByTokenResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewTotalNumberOfMessagesInChannelResponse.js b/dist/model/ViewTotalNumberOfMessagesInChannelResponse.js deleted file mode 100644 index c3ceec4..0000000 --- a/dist/model/ViewTotalNumberOfMessagesInChannelResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewTotalNumberOfMessagesInChannelResponse model module. - * @module model/ViewTotalNumberOfMessagesInChannelResponse - * @version 0.0.16 - */ -var ViewTotalNumberOfMessagesInChannelResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewTotalNumberOfMessagesInChannelResponse. - * @alias module:model/ViewTotalNumberOfMessagesInChannelResponse - */ - function ViewTotalNumberOfMessagesInChannelResponse() { - _classCallCheck(this, ViewTotalNumberOfMessagesInChannelResponse); - ViewTotalNumberOfMessagesInChannelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewTotalNumberOfMessagesInChannelResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewTotalNumberOfMessagesInChannelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewTotalNumberOfMessagesInChannelResponse} obj Optional instance to populate. - * @return {module:model/ViewTotalNumberOfMessagesInChannelResponse} The populated ViewTotalNumberOfMessagesInChannelResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewTotalNumberOfMessagesInChannelResponse(); - if (data.hasOwnProperty('total')) { - obj['total'] = _ApiClient["default"].convertToType(data['total'], 'Number'); - } - } - return obj; - } - }]); - return ViewTotalNumberOfMessagesInChannelResponse; -}(); -/** - * @member {Number} total - */ -ViewTotalNumberOfMessagesInChannelResponse.prototype['total'] = undefined; -var _default = ViewTotalNumberOfMessagesInChannelResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewUserMetadataResponse.js b/dist/model/ViewUserMetadataResponse.js deleted file mode 100644 index 4edd574..0000000 --- a/dist/model/ViewUserMetadataResponse.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewUserMetadataResponse model module. - * @module model/ViewUserMetadataResponse - * @version 0.0.16 - */ -var ViewUserMetadataResponse = /*#__PURE__*/function () { - /** - * Constructs a new ViewUserMetadataResponse. - * @alias module:model/ViewUserMetadataResponse - */ - function ViewUserMetadataResponse() { - _classCallCheck(this, ViewUserMetadataResponse); - ViewUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewUserMetadataResponse, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/ViewUserMetadataResponse} The populated ViewUserMetadataResponse instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewUserMetadataResponse(); - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = _ApiClient["default"].convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - }]); - return ViewUserMetadataResponse; -}(); -/** - * @member {String} anyOf - */ -ViewUserMetadataResponse.prototype['anyOf'] = undefined; -var _default = ViewUserMetadataResponse; -exports["default"] = _default; \ No newline at end of file diff --git a/dist/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js b/dist/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js deleted file mode 100644 index 712be1a..0000000 --- a/dist/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports["default"] = void 0; -var _ApiClient = _interopRequireDefault(require("../ApiClient")); -function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } -/** - * The ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner model module. - * @module model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - * @version 0.0.16 - */ -var ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner = /*#__PURE__*/function () { - /** - * Constructs a new ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner. - * @alias module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - */ - function ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner() { - _classCallCheck(this, ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner); - ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - _createClass(ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner, null, [{ - key: "initialize", - value: function initialize(obj) {} - - /** - * Constructs a ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner} obj Optional instance to populate. - * @return {module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner} The populated ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner instance. - */ - }, { - key: "constructFromObject", - value: function constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner(); - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); - } - } - return obj; - } - }]); - return ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner; -}(); -/** - * @member {String} user_id - */ -ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.prototype['user_id'] = undefined; -var _default = ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner; -exports["default"] = _default; \ No newline at end of file diff --git a/docs/AcceptAnInvitationRequest.md b/docs/AcceptAnInvitationRequest.md new file mode 100644 index 0000000..257b629 --- /dev/null +++ b/docs/AcceptAnInvitationRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.AcceptAnInvitationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessCode** | **String** | | [optional] +**userId** | **String** | | + + diff --git a/docs/AddARegistrationOrDeviceTokenRequest.md b/docs/AddARegistrationOrDeviceTokenRequest.md new file mode 100644 index 0000000..7c2f807 --- /dev/null +++ b/docs/AddARegistrationOrDeviceTokenRequest.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apnsDeviceToken** | **String** | | [optional] +**gcmRegToken** | **String** | | [optional] +**huaweiDeviceToken** | **String** | | [optional] + + diff --git a/docs/AddARegistrationOrDeviceTokenResponse.md b/docs/AddARegistrationOrDeviceTokenResponse.md new file mode 100644 index 0000000..44ad410 --- /dev/null +++ b/docs/AddARegistrationOrDeviceTokenResponse.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | | [optional] +**type** | **String** | | [optional] +**user** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] + + diff --git a/docs/AddApnsPushConfigurationData.md b/docs/AddApnsPushConfigurationData.md deleted file mode 100644 index 6fa7e13..0000000 --- a/docs/AddApnsPushConfigurationData.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.AddApnsPushConfigurationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apnsCert** | **File** | In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. | -**apnsCertEnvType** | **String** | Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. There is no need to specify this property when the apns_cert above is specified. | -**apnsCertPassword** | **String** | Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. | -**hasUnreadCountBadge** | **Boolean** | Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) | -**contentAvailable** | **Boolean** | Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) | -**mutableContent** | **Boolean** | Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. | -**apnsType** | **String** | (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. | - - diff --git a/docs/AddApnsPushConfigurationResponse.md b/docs/AddApnsPushConfigurationResponse.md deleted file mode 100644 index 046d935..0000000 --- a/docs/AddApnsPushConfigurationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddApnsPushConfigurationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | [**[AddApnsPushConfigurationResponsePushConfigurationsInner]**](AddApnsPushConfigurationResponsePushConfigurationsInner.md) | | [optional] - - diff --git a/docs/AddApnsPushConfigurationResponsePushConfigurationsInner.md b/docs/AddApnsPushConfigurationResponsePushConfigurationsInner.md deleted file mode 100644 index c905b9d..0000000 --- a/docs/AddApnsPushConfigurationResponsePushConfigurationsInner.md +++ /dev/null @@ -1,18 +0,0 @@ -# SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**pushType** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**apnsCerEnvType** | **String** | | [optional] -**apnsExpiration** | **Number** | | [optional] -**apnsName** | **String** | | [optional] -**hasUnreadCountBadge** | **Number** | | [optional] -**contentAvailable** | **Boolean** | | [optional] -**mutableContent** | **Boolean** | | [optional] -**pushSound** | **String** | | [optional] - - diff --git a/docs/AddEmojiCategoriesResponse.md b/docs/AddEmojiCategoriesResponse.md deleted file mode 100644 index 4270ebe..0000000 --- a/docs/AddEmojiCategoriesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddEmojiCategoriesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojiCategories** | [**[AddEmojiCategoriesResponseEmojiCategoriesInner]**](AddEmojiCategoriesResponseEmojiCategoriesInner.md) | | [optional] - - diff --git a/docs/AddEmojiCategoriesResponseEmojiCategoriesInner.md b/docs/AddEmojiCategoriesResponseEmojiCategoriesInner.md deleted file mode 100644 index 73452a5..0000000 --- a/docs/AddEmojiCategoriesResponseEmojiCategoriesInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/AddEmojisData.md b/docs/AddEmojisData.md deleted file mode 100644 index ba67e98..0000000 --- a/docs/AddEmojisData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.AddEmojisData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojiCategoryId** | **Number** | Specifies the unique ID of the emoji category that a list of new emojis belong to. | -**emojis** | **[Object]** | Specifies a list of one or more new emojis to register. | - - diff --git a/docs/AddEmojisResponse.md b/docs/AddEmojisResponse.md deleted file mode 100644 index 0e57075..0000000 --- a/docs/AddEmojisResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddEmojisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojis** | [**[ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner]**](ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md) | | [optional] - - diff --git a/docs/AddExtraDataToAMessageRequest.md b/docs/AddExtraDataToAMessageRequest.md new file mode 100644 index 0000000..e2169ef --- /dev/null +++ b/docs/AddExtraDataToAMessageRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.AddExtraDataToAMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | + + diff --git a/docs/AddExtraDataToAMessageResponse.md b/docs/AddExtraDataToAMessageResponse.md new file mode 100644 index 0000000..70ca38c --- /dev/null +++ b/docs/AddExtraDataToAMessageResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.AddExtraDataToAMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] + + diff --git a/docs/AddExtraDataToMessageData.md b/docs/AddExtraDataToMessageData.md deleted file mode 100644 index 416be08..0000000 --- a/docs/AddExtraDataToMessageData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.AddExtraDataToMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | -**channelUrl** | **String** | Specifies the URL of the target channel. | -**messageId** | **Number** | Specifies the unique ID of the message to add key-values items for additional information. | -**sortedMetaarray** | **String** | Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. | - - diff --git a/docs/AddExtraDataToMessageResponse.md b/docs/AddExtraDataToMessageResponse.md deleted file mode 100644 index 4db991f..0000000 --- a/docs/AddExtraDataToMessageResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddExtraDataToMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sortedMetaarray** | [**[ListMessagesResponseMessagesInnerSortedMetaarrayInner]**](ListMessagesResponseMessagesInnerSortedMetaarrayInner.md) | | [optional] - - diff --git a/docs/AddFcmPushConfigurationData.md b/docs/AddFcmPushConfigurationData.md deleted file mode 100644 index d6cfda6..0000000 --- a/docs/AddFcmPushConfigurationData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.AddFcmPushConfigurationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiKey** | **String** | Specifies the FCM server key to register. | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. | - - diff --git a/docs/AddFcmPushConfigurationResponse.md b/docs/AddFcmPushConfigurationResponse.md deleted file mode 100644 index bccfa3f..0000000 --- a/docs/AddFcmPushConfigurationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddFcmPushConfigurationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | [**[AddFcmPushConfigurationResponsePushConfigurationsInner]**](AddFcmPushConfigurationResponsePushConfigurationsInner.md) | | [optional] - - diff --git a/docs/AddFcmPushConfigurationResponsePushConfigurationsInner.md b/docs/AddFcmPushConfigurationResponsePushConfigurationsInner.md deleted file mode 100644 index 9ec8708..0000000 --- a/docs/AddFcmPushConfigurationResponsePushConfigurationsInner.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**pushType** | **String** | | [optional] -**apiKey** | **String** | | [optional] -**pushSound** | **String** | | [optional] - - diff --git a/docs/AddHmsPushConfigurationData.md b/docs/AddHmsPushConfigurationData.md deleted file mode 100644 index 51ed2b8..0000000 --- a/docs/AddHmsPushConfigurationData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.AddHmsPushConfigurationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**huaweiAppId** | **String** | Specifies the unique ID of application registered to the HMS server. | -**huaweiAppSecret** | **String** | Specifies the secret key allocated to the application. | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. | - - diff --git a/docs/AddHmsPushConfigurationResponse.md b/docs/AddHmsPushConfigurationResponse.md deleted file mode 100644 index 85e0333..0000000 --- a/docs/AddHmsPushConfigurationResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddHmsPushConfigurationResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | [**[AddHmsPushConfigurationResponsePushConfigurationsInner]**](AddHmsPushConfigurationResponsePushConfigurationsInner.md) | | [optional] - - diff --git a/docs/AddHmsPushConfigurationResponsePushConfigurationsInner.md b/docs/AddHmsPushConfigurationResponsePushConfigurationsInner.md deleted file mode 100644 index 7faf186..0000000 --- a/docs/AddHmsPushConfigurationResponsePushConfigurationsInner.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**pushType** | **String** | | [optional] -**huaweiAppId** | **String** | | [optional] -**huaweiAppSecret** | **String** | | [optional] -**pushSound** | **String** | | [optional] - - diff --git a/docs/AddIpToWhitelistData.md b/docs/AddIpToWhitelistData.md deleted file mode 100644 index 520f3c4..0000000 --- a/docs/AddIpToWhitelistData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddIpToWhitelistData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipWhitelistAddresses** | **[String]** | Specifies an array of one or more IP ranges and addresses to add to a whitelist. | - - diff --git a/docs/AddIpToWhitelistResponse.md b/docs/AddIpToWhitelistResponse.md deleted file mode 100644 index e4ac88e..0000000 --- a/docs/AddIpToWhitelistResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.AddIpToWhitelistResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipWhitelistAddresses** | **[String]** | | [optional] - - diff --git a/docs/AddReactionToAMessageData.md b/docs/AddReactionToAMessageData.md deleted file mode 100644 index e0f3b99..0000000 --- a/docs/AddReactionToAMessageData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.AddReactionToAMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Currently, a value of group_channels is only available for the parameter. | -**channelUrl** | **String** | Specifies the URL of the target channel. | -**messageId** | **Number** | Specifies the unique ID of the message to add a reaction to. | -**userId** | **String** | Specifies the ID of the user who reacts to the message. | -**reaction** | **String** | Specifies the unique key of the reaction to be added to the message. The length is limited to 192 charaters. | - - diff --git a/docs/AddReactionToAMessageResponse.md b/docs/AddReactionToAMessageResponse.md deleted file mode 100644 index a44f8b5..0000000 --- a/docs/AddReactionToAMessageResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.AddReactionToAMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | [optional] -**operation** | **String** | | [optional] -**success** | **Boolean** | | [optional] -**reaction** | **String** | | [optional] -**updatedAt** | **Number** | | [optional] -**msgId** | **Number** | | [optional] - - diff --git a/docs/AddRegistrationOrDeviceTokenData.md b/docs/AddRegistrationOrDeviceTokenData.md deleted file mode 100644 index 6f2fff1..0000000 --- a/docs/AddRegistrationOrDeviceTokenData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gcmRegToken** | **String** | Specifies a registration token for Firebase Cloud Messaging (formerly [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)). | -**huaweiDeviceToken** | **String** | Specifies a device token for Huawei Mobile Services. | -**apnsDeviceToken** | **String** | Specifies a device token for Apple Push Notification Service. | - - diff --git a/docs/AddRegistrationOrDeviceTokenResponse.md b/docs/AddRegistrationOrDeviceTokenResponse.md deleted file mode 100644 index 3790853..0000000 --- a/docs/AddRegistrationOrDeviceTokenResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**type** | **String** | | [optional] -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] - - diff --git a/docs/AnnouncementApi.md b/docs/AnnouncementApi.md index 9ab678f..ccc2544 100644 --- a/docs/AnnouncementApi.md +++ b/docs/AnnouncementApi.md @@ -4,316 +4,17 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getDetailedOpenRateOfAnnouncementGroup**](AnnouncementApi.md#getDetailedOpenRateOfAnnouncementGroup) | **GET** /v3/announcement_open_rate_by_group/{announcement_group} | Get detailed open rate of an announcement group -[**getStatistics**](AnnouncementApi.md#getStatistics) | **GET** /v3/announcement_stats/weekly | Get statistics - weekly -[**getStatisticsDaily**](AnnouncementApi.md#getStatisticsDaily) | **GET** /v3/announcement_stats/daily | Get statistics - daily -[**getStatisticsMonthly**](AnnouncementApi.md#getStatisticsMonthly) | **GET** /v3/announcement_stats/monthly | Get statistics - monthly -[**listAnnouncementGroups**](AnnouncementApi.md#listAnnouncementGroups) | **GET** /v3/announcement_group | List announcement groups -[**scheduleAnnouncement**](AnnouncementApi.md#scheduleAnnouncement) | **POST** /v3/announcements | Schedule an announcement -[**updateAnnouncementById**](AnnouncementApi.md#updateAnnouncementById) | **PUT** /v3/announcements/{unique_id} | Update an announcement -[**viewAnnouncementById**](AnnouncementApi.md#viewAnnouncementById) | **GET** /v3/announcements/{unique_id} | View an announcement +[**scheduleAnAnnouncement**](AnnouncementApi.md#scheduleAnAnnouncement) | **POST** /v3/announcements | Schedule an announcement -## getDetailedOpenRateOfAnnouncementGroup +## scheduleAnAnnouncement -> GetDetailedOpenRateOfAnnouncementGroupResponse getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup) - -Get detailed open rate of an announcement group - -## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let announcementGroup = "announcementGroup_example"; // String | -apiInstance.getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **announcementGroup** | **String**| | - -### Return type - -[**GetDetailedOpenRateOfAnnouncementGroupResponse**](GetDetailedOpenRateOfAnnouncementGroupResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStatistics - -> GetStatisticsResponse getStatistics(apiToken) - -Get statistics - weekly - -## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.getStatistics(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**GetStatisticsResponse**](GetStatisticsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStatisticsDaily - -> GetStatisticsDailyResponse getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) - -Get statistics - daily - -## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let startDate = "startDate_example"; // String | -let endDate = "endDate_example"; // String | -let startWeek = "startWeek_example"; // String | -let endWeek = "endWeek_example"; // String | -let startMonth = "startMonth_example"; // String | -let endMonth = "endMonth_example"; // String | -let opts = { - 'announcementGroup': "announcementGroup_example" // String | -}; -apiInstance.getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **startDate** | **String**| | - **endDate** | **String**| | - **startWeek** | **String**| | - **endWeek** | **String**| | - **startMonth** | **String**| | - **endMonth** | **String**| | - **announcementGroup** | **String**| | [optional] - -### Return type - -[**GetStatisticsDailyResponse**](GetStatisticsDailyResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getStatisticsMonthly - -> GetStatisticsMonthlyResponse getStatisticsMonthly(apiToken) - -Get statistics - monthly - -## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.getStatisticsMonthly(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**GetStatisticsMonthlyResponse**](GetStatisticsMonthlyResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listAnnouncementGroups - -> ListAnnouncementGroupsResponse listAnnouncementGroups(apiToken, opts) - -List announcement groups - -## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listAnnouncementGroups(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListAnnouncementGroupsResponse**](ListAnnouncementGroupsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## scheduleAnnouncement - -> ScheduleAnnouncementResponse scheduleAnnouncement(apiToken, opts) +> ScheduleAnAnnouncementResponse scheduleAnAnnouncement(opts) Schedule an announcement -## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'scheduleAnnouncementData': new SendbirdPlatformSdk.ScheduleAnnouncementData() // ScheduleAnnouncementData | -}; -apiInstance.scheduleAnnouncement(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **scheduleAnnouncementData** | [**ScheduleAnnouncementData**](ScheduleAnnouncementData.md)| | [optional] - -### Return type - -[**ScheduleAnnouncementResponse**](ScheduleAnnouncementResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateAnnouncementById - -> UpdateAnnouncementByIdResponse updateAnnouncementById(apiToken, uniqueId, opts) - -Update an announcement - -## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- +## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement) ### Example @@ -321,12 +22,11 @@ Update an announcement import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let uniqueId = "uniqueId_example"; // String | let opts = { - 'updateAnnouncementByIdData': new SendbirdPlatformSdk.UpdateAnnouncementByIdData() // UpdateAnnouncementByIdData | + 'apiToken': {{API_TOKEN}}, // String | + 'scheduleAnAnnouncementRequest': new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest() // ScheduleAnAnnouncementRequest | }; -apiInstance.updateAnnouncementById(apiToken, uniqueId, opts).then((data) => { +apiInstance.scheduleAnAnnouncement(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -339,13 +39,12 @@ apiInstance.updateAnnouncementById(apiToken, uniqueId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **uniqueId** | **String**| | - **updateAnnouncementByIdData** | [**UpdateAnnouncementByIdData**](UpdateAnnouncementByIdData.md)| | [optional] + **apiToken** | **String**| | [optional] + **scheduleAnAnnouncementRequest** | [**ScheduleAnAnnouncementRequest**](ScheduleAnAnnouncementRequest.md)| | [optional] ### Return type -[**UpdateAnnouncementByIdResponse**](UpdateAnnouncementByIdResponse.md) +[**ScheduleAnAnnouncementResponse**](ScheduleAnAnnouncementResponse.md) ### Authorization @@ -356,49 +55,3 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json - -## viewAnnouncementById - -> ViewAnnouncementByIdResponse viewAnnouncementById(apiToken, uniqueId) - -View an announcement - -## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.AnnouncementApi(); -let apiToken = {{API_TOKEN}}; // String | -let uniqueId = "uniqueId_example"; // String | -apiInstance.viewAnnouncementById(apiToken, uniqueId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **uniqueId** | **String**| | - -### Return type - -[**ViewAnnouncementByIdResponse**](ViewAnnouncementByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/ApplicationApi.md b/docs/ApplicationApi.md deleted file mode 100644 index dc5fead..0000000 --- a/docs/ApplicationApi.md +++ /dev/null @@ -1,1517 +0,0 @@ -# SendbirdPlatformSdk.ApplicationApi - -All URIs are relative to *https://api-APP_ID.sendbird.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addApnsPushConfiguration**](ApplicationApi.md#addApnsPushConfiguration) | **POST** /v3/applications/push/apns | Add an APNs push configuration -[**addFcmPushConfiguration**](ApplicationApi.md#addFcmPushConfiguration) | **POST** /v3/applications/push/fcm | Add a FCM push configuration -[**addHmsPushConfiguration**](ApplicationApi.md#addHmsPushConfiguration) | **POST** /v3/applications/push/hms | Add an HMS push configuration -[**addIpToWhitelist**](ApplicationApi.md#addIpToWhitelist) | **PUT** /v3/applications/settings/ip_whitelist | Add an IP to a whitelist -[**banUsersInChannelsWithCustomChannelType**](ApplicationApi.md#banUsersInChannelsWithCustomChannelType) | **POST** /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | Ban users in channels with a custom channel type -[**configureAutoEventMessages**](ApplicationApi.md#configureAutoEventMessages) | **PUT** /v3/applications/settings/auto_event_message | Configure auto event message settings -[**deleteAllowedIpsFromWhitelist**](ApplicationApi.md#deleteAllowedIpsFromWhitelist) | **DELETE** /v3/applications/settings/ip_whitelist | Delete allowed IPs from a whitelist -[**deleteApnsCertificateById**](ApplicationApi.md#deleteApnsCertificateById) | **DELETE** /v3/applications/push/apns/cert/{provider_id} | Delete an APNs certificate -[**generateSecondaryApiToken**](ApplicationApi.md#generateSecondaryApiToken) | **POST** /v3/applications/api_tokens | Generate a secondary API token -[**listAutoEventMessages**](ApplicationApi.md#listAutoEventMessages) | **GET** /v3/applications/settings/auto_event_message | List auto event messages -[**listBannedUsersInChannelsWithCustomChannelType**](ApplicationApi.md#listBannedUsersInChannelsWithCustomChannelType) | **GET** /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | List banned users in channels with a custom channel type -[**listMutedUsersInChannelsWithCustomChannelType**](ApplicationApi.md#listMutedUsersInChannelsWithCustomChannelType) | **GET** /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | List muted users in channels with a custom channel type -[**listPushConfigurations**](ApplicationApi.md#listPushConfigurations) | **GET** /v3/applications/push/{push_type} | List push configurations -[**listPushNotificationContentTemplates**](ApplicationApi.md#listPushNotificationContentTemplates) | **GET** /v3/applications/push/message_templates | List push notification content templates -[**listSecondaryApiTokens**](ApplicationApi.md#listSecondaryApiTokens) | **GET** /v3/applications/api_tokens | List secondary API tokens -[**muteUsersInChannelsWithCustomChannelType**](ApplicationApi.md#muteUsersInChannelsWithCustomChannelType) | **POST** /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | Mute users in channels with a custom channel type -[**removePushConfigurationById**](ApplicationApi.md#removePushConfigurationById) | **DELETE** /v3/applications/push/{push_type}/{provider_id} | Remove a push configuration -[**retrieveIpWhitelist**](ApplicationApi.md#retrieveIpWhitelist) | **GET** /v3/applications/settings/ip_whitelist | Retrieve an IP whitelist -[**revokeSecondaryApiTokenByToken**](ApplicationApi.md#revokeSecondaryApiTokenByToken) | **DELETE** /v3/applications/api_tokens/{api_token} | Revoke a secondary API token -[**setDomainFilter**](ApplicationApi.md#setDomainFilter) | **PUT** /v3/applications/settings_global/{custom_type} | Message moderation -[**unbanUsersInChannelsWithCustomChannelType**](ApplicationApi.md#unbanUsersInChannelsWithCustomChannelType) | **DELETE** /v3/applications/settings_by_channel_custom_type/{custom_type}/ban | Unban users in channels with a custom channel type -[**unmuteUsersInChannelsWithCustomChannelType**](ApplicationApi.md#unmuteUsersInChannelsWithCustomChannelType) | **DELETE** /v3/applications/settings_by_channel_custom_type/{custom_type}/mute | Unmute users in channels with a custom channel type -[**updateApnsPushConfigurationById**](ApplicationApi.md#updateApnsPushConfigurationById) | **PUT** /v3/applications/push/apns/{provider_id} | Update an APNs push configuration -[**updateDefaultChannelInvitationPreference**](ApplicationApi.md#updateDefaultChannelInvitationPreference) | **PUT** /v3/applications/default_channel_invitation_preference | Update default channel invitation preference -[**updateFcmPushConfigurationById**](ApplicationApi.md#updateFcmPushConfigurationById) | **PUT** /v3/applications/push/fcm/{provider_id} | Update a FCM push configuration -[**updateHmsPushConfigurationById**](ApplicationApi.md#updateHmsPushConfigurationById) | **PUT** /v3/applications/push/hms/{provider_id} | Update an HMS push configuration -[**updatePushNotificationContentTemplate**](ApplicationApi.md#updatePushNotificationContentTemplate) | **PUT** /v3/applications/push/message_templates/{template_name} | Update a push notification content template -[**viewDefaultChannelInvitationPreference**](ApplicationApi.md#viewDefaultChannelInvitationPreference) | **GET** /v3/applications/default_channel_invitation_preference | View default channel invitation preference -[**viewPushConfigurationById**](ApplicationApi.md#viewPushConfigurationById) | **GET** /v3/applications/push/{push_type}/{provider_id} | View a push configuration -[**viewPushNotificationContentTemplate**](ApplicationApi.md#viewPushNotificationContentTemplate) | **GET** /v3/applications/push/message_templates/{template_name} | View a push notification content template -[**viewSecondaryApiTokenByToken**](ApplicationApi.md#viewSecondaryApiTokenByToken) | **GET** /v3/applications/api_tokens/{api_token} | View a secondary API token - - - -## addApnsPushConfiguration - -> AddApnsPushConfigurationResponse addApnsPushConfiguration(apiToken, opts) - -Add an APNs push configuration - -## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'addApnsPushConfigurationData': new SendbirdPlatformSdk.AddApnsPushConfigurationData() // AddApnsPushConfigurationData | -}; -apiInstance.addApnsPushConfiguration(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **addApnsPushConfigurationData** | [**AddApnsPushConfigurationData**](AddApnsPushConfigurationData.md)| | [optional] - -### Return type - -[**AddApnsPushConfigurationResponse**](AddApnsPushConfigurationResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addFcmPushConfiguration - -> AddFcmPushConfigurationResponse addFcmPushConfiguration(apiToken, opts) - -Add a FCM push configuration - -## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'addFcmPushConfigurationData': new SendbirdPlatformSdk.AddFcmPushConfigurationData() // AddFcmPushConfigurationData | -}; -apiInstance.addFcmPushConfiguration(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **addFcmPushConfigurationData** | [**AddFcmPushConfigurationData**](AddFcmPushConfigurationData.md)| | [optional] - -### Return type - -[**AddFcmPushConfigurationResponse**](AddFcmPushConfigurationResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addHmsPushConfiguration - -> AddHmsPushConfigurationResponse addHmsPushConfiguration(apiToken, opts) - -Add an HMS push configuration - -## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'addHmsPushConfigurationData': new SendbirdPlatformSdk.AddHmsPushConfigurationData() // AddHmsPushConfigurationData | -}; -apiInstance.addHmsPushConfiguration(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **addHmsPushConfigurationData** | [**AddHmsPushConfigurationData**](AddHmsPushConfigurationData.md)| | [optional] - -### Return type - -[**AddHmsPushConfigurationResponse**](AddHmsPushConfigurationResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addIpToWhitelist - -> AddIpToWhitelistResponse addIpToWhitelist(apiToken, opts) - -Add an IP to a whitelist - -## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'addIpToWhitelistData': new SendbirdPlatformSdk.AddIpToWhitelistData() // AddIpToWhitelistData | -}; -apiInstance.addIpToWhitelist(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **addIpToWhitelistData** | [**AddIpToWhitelistData**](AddIpToWhitelistData.md)| | [optional] - -### Return type - -[**AddIpToWhitelistResponse**](AddIpToWhitelistResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## banUsersInChannelsWithCustomChannelType - -> Object banUsersInChannelsWithCustomChannelType(apiToken, customType, opts) - -Ban users in channels with a custom channel type - -## Ban specified users in channels with a custom channel type at once. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let opts = { - 'banUsersInChannelsWithCustomChannelTypeData': new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData() // BanUsersInChannelsWithCustomChannelTypeData | -}; -apiInstance.banUsersInChannelsWithCustomChannelType(apiToken, customType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **banUsersInChannelsWithCustomChannelTypeData** | [**BanUsersInChannelsWithCustomChannelTypeData**](BanUsersInChannelsWithCustomChannelTypeData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## configureAutoEventMessages - -> SendBirdAutoEventMessageSettings configureAutoEventMessages(apiToken, opts) - -Configure auto event message settings - -## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'configureAutoEventData': new SendbirdPlatformSdk.ConfigureAutoEventData() // ConfigureAutoEventData | -}; -apiInstance.configureAutoEventMessages(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **configureAutoEventData** | [**ConfigureAutoEventData**](ConfigureAutoEventData.md)| | [optional] - -### Return type - -[**SendBirdAutoEventMessageSettings**](SendBirdAutoEventMessageSettings.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteAllowedIpsFromWhitelist - -> DeleteAllowedIpsFromWhitelistResponse deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses) - -Delete allowed IPs from a whitelist - -## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let ipWhitelistAddresses = ["null"]; // [String] | -apiInstance.deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **ipWhitelistAddresses** | [**[String]**](String.md)| | - -### Return type - -[**DeleteAllowedIpsFromWhitelistResponse**](DeleteAllowedIpsFromWhitelistResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteApnsCertificateById - -> DeleteApnsCertificateByIdResponse deleteApnsCertificateById(apiToken, providerId) - -Delete an APNs certificate - -## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let providerId = "providerId_example"; // String | -apiInstance.deleteApnsCertificateById(apiToken, providerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **providerId** | **String**| | - -### Return type - -[**DeleteApnsCertificateByIdResponse**](DeleteApnsCertificateByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## generateSecondaryApiToken - -> GenerateSecondaryApiTokenResponse generateSecondaryApiToken(apiToken, opts) - -Generate a secondary API token - -## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'generateSecondaryApiTokenData': new SendbirdPlatformSdk.GenerateSecondaryApiTokenData() // GenerateSecondaryApiTokenData | -}; -apiInstance.generateSecondaryApiToken(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **generateSecondaryApiTokenData** | [**GenerateSecondaryApiTokenData**](GenerateSecondaryApiTokenData.md)| | [optional] - -### Return type - -[**GenerateSecondaryApiTokenResponse**](GenerateSecondaryApiTokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## listAutoEventMessages - -> SendBirdAutoEventMessageSettings listAutoEventMessages(apiToken) - -List auto event messages - -## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.listAutoEventMessages(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**SendBirdAutoEventMessageSettings**](SendBirdAutoEventMessageSettings.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listBannedUsersInChannelsWithCustomChannelType - -> CustomTypeListBannedUsersResponse listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) - -List banned users in channels with a custom channel type - -## Retrieves a list of users banned from channels with the specified custom channel type. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**CustomTypeListBannedUsersResponse**](CustomTypeListBannedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listMutedUsersInChannelsWithCustomChannelType - -> ListMutedUsersInChannelsWithCustomChannelType200Response listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) - -List muted users in channels with a custom channel type - -## Retrieves a list of the muted users in channels with a custom channel type. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListMutedUsersInChannelsWithCustomChannelType200Response**](ListMutedUsersInChannelsWithCustomChannelType200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listPushConfigurations - -> ListPushConfigurationsResponse listPushConfigurations(apiToken, pushType) - -List push configurations - -## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let pushType = "pushType_example"; // String | -apiInstance.listPushConfigurations(apiToken, pushType).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **pushType** | **String**| | - -### Return type - -[**ListPushConfigurationsResponse**](ListPushConfigurationsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listPushNotificationContentTemplates - -> ListPushNotificationContentTemplatesResponse listPushNotificationContentTemplates(apiToken) - -List push notification content templates - -## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.listPushNotificationContentTemplates(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**ListPushNotificationContentTemplatesResponse**](ListPushNotificationContentTemplatesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listSecondaryApiTokens - -> ListSecondaryApiTokensResponse listSecondaryApiTokens(apiToken) - -List secondary API tokens - -## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.listSecondaryApiTokens(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**ListSecondaryApiTokensResponse**](ListSecondaryApiTokensResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## muteUsersInChannelsWithCustomChannelType - -> Object muteUsersInChannelsWithCustomChannelType(apiToken, customType, opts) - -Mute users in channels with a custom channel type - -## Mutes specified users in channels with a custom channel type at once. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let opts = { - 'muteUsersInChannelsWithCustomChannelTypeData': new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData() // MuteUsersInChannelsWithCustomChannelTypeData | -}; -apiInstance.muteUsersInChannelsWithCustomChannelType(apiToken, customType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **muteUsersInChannelsWithCustomChannelTypeData** | [**MuteUsersInChannelsWithCustomChannelTypeData**](MuteUsersInChannelsWithCustomChannelTypeData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## removePushConfigurationById - -> RemovePushConfigurationByIdResponse removePushConfigurationById(apiToken, pushType, providerId) - -Remove a push configuration - -## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let pushType = "pushType_example"; // String | -let providerId = "providerId_example"; // String | -apiInstance.removePushConfigurationById(apiToken, pushType, providerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **pushType** | **String**| | - **providerId** | **String**| | - -### Return type - -[**RemovePushConfigurationByIdResponse**](RemovePushConfigurationByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## retrieveIpWhitelist - -> RetrieveIpWhitelistResponse retrieveIpWhitelist(apiToken) - -Retrieve an IP whitelist - -## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.retrieveIpWhitelist(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**RetrieveIpWhitelistResponse**](RetrieveIpWhitelistResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## revokeSecondaryApiTokenByToken - -> RevokeSecondaryApiTokenByTokenResponse revokeSecondaryApiTokenByToken(apiToken, apiToken2) - -Revoke a secondary API token - -## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let apiToken2 = "apiToken_example"; // String | -apiInstance.revokeSecondaryApiTokenByToken(apiToken, apiToken2).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **apiToken2** | **String**| | - -### Return type - -[**RevokeSecondaryApiTokenByTokenResponse**](RevokeSecondaryApiTokenByTokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## setDomainFilter - -> SendBirdChannelResponse setDomainFilter(apiToken, customType, opts) - -Message moderation - -## - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let opts = { - 'setDomainFilterData': new SendbirdPlatformSdk.SetDomainFilterData() // SetDomainFilterData | -}; -apiInstance.setDomainFilter(apiToken, customType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **setDomainFilterData** | [**SetDomainFilterData**](SetDomainFilterData.md)| | [optional] - -### Return type - -[**SendBirdChannelResponse**](SendBirdChannelResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## unbanUsersInChannelsWithCustomChannelType - -> Object unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) - -Unban users in channels with a custom channel type - -## Unban specified users in channels with a custom channel type at once. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let userIds = ["null"]; // [String] | -apiInstance.unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **userIds** | [**[String]**](String.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## unmuteUsersInChannelsWithCustomChannelType - -> Object unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) - -Unmute users in channels with a custom channel type - -## Unmute specified users in channels with a custom channel type at once. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let customType = "customType_example"; // String | -let userIds = ["null"]; // [String] | -apiInstance.unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **customType** | **String**| | - **userIds** | [**[String]**](String.md)| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## updateApnsPushConfigurationById - -> UpdateApnsPushConfigurationByIdResponse updateApnsPushConfigurationById(apiToken, providerId, opts) - -Update an APNs push configuration - -## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let providerId = "providerId_example"; // String | -let opts = { - 'updateApnsPushConfigurationByIdData': new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData() // UpdateApnsPushConfigurationByIdData | -}; -apiInstance.updateApnsPushConfigurationById(apiToken, providerId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **providerId** | **String**| | - **updateApnsPushConfigurationByIdData** | [**UpdateApnsPushConfigurationByIdData**](UpdateApnsPushConfigurationByIdData.md)| | [optional] - -### Return type - -[**UpdateApnsPushConfigurationByIdResponse**](UpdateApnsPushConfigurationByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateDefaultChannelInvitationPreference - -> UpdateDefaultChannelInvitationPreferenceResponse updateDefaultChannelInvitationPreference(apiToken, opts) - -Update default channel invitation preference - -## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'updateDefaultChannelInvitationPreferenceData': new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData() // UpdateDefaultChannelInvitationPreferenceData | -}; -apiInstance.updateDefaultChannelInvitationPreference(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **updateDefaultChannelInvitationPreferenceData** | [**UpdateDefaultChannelInvitationPreferenceData**](UpdateDefaultChannelInvitationPreferenceData.md)| | [optional] - -### Return type - -[**UpdateDefaultChannelInvitationPreferenceResponse**](UpdateDefaultChannelInvitationPreferenceResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateFcmPushConfigurationById - -> UpdateFcmPushConfigurationByIdResponse updateFcmPushConfigurationById(apiToken, providerId, opts) - -Update a FCM push configuration - -## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let providerId = "providerId_example"; // String | -let opts = { - 'updateFcmPushConfigurationByIdData': new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData() // UpdateFcmPushConfigurationByIdData | -}; -apiInstance.updateFcmPushConfigurationById(apiToken, providerId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **providerId** | **String**| | - **updateFcmPushConfigurationByIdData** | [**UpdateFcmPushConfigurationByIdData**](UpdateFcmPushConfigurationByIdData.md)| | [optional] - -### Return type - -[**UpdateFcmPushConfigurationByIdResponse**](UpdateFcmPushConfigurationByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateHmsPushConfigurationById - -> UpdateHmsPushConfigurationByIdResponse updateHmsPushConfigurationById(apiToken, providerId, opts) - -Update an HMS push configuration - -## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let providerId = "providerId_example"; // String | -let opts = { - 'updateHmsPushConfigurationByIdData': new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData() // UpdateHmsPushConfigurationByIdData | -}; -apiInstance.updateHmsPushConfigurationById(apiToken, providerId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **providerId** | **String**| | - **updateHmsPushConfigurationByIdData** | [**UpdateHmsPushConfigurationByIdData**](UpdateHmsPushConfigurationByIdData.md)| | [optional] - -### Return type - -[**UpdateHmsPushConfigurationByIdResponse**](UpdateHmsPushConfigurationByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updatePushNotificationContentTemplate - -> UpdatePushNotificationContentTemplateResponse updatePushNotificationContentTemplate(apiToken, templateName, opts) - -Update a push notification content template - -## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let templateName = "templateName_example"; // String | -let opts = { - 'updatePushNotificationContentTemplateData': new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData() // UpdatePushNotificationContentTemplateData | -}; -apiInstance.updatePushNotificationContentTemplate(apiToken, templateName, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **templateName** | **String**| | - **updatePushNotificationContentTemplateData** | [**UpdatePushNotificationContentTemplateData**](UpdatePushNotificationContentTemplateData.md)| | [optional] - -### Return type - -[**UpdatePushNotificationContentTemplateResponse**](UpdatePushNotificationContentTemplateResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## viewDefaultChannelInvitationPreference - -> ViewDefaultChannelInvitationPreferenceResponse viewDefaultChannelInvitationPreference(apiToken) - -View default channel invitation preference - -## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.viewDefaultChannelInvitationPreference(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**ViewDefaultChannelInvitationPreferenceResponse**](ViewDefaultChannelInvitationPreferenceResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewPushConfigurationById - -> ViewPushConfigurationByIdResponse viewPushConfigurationById(apiToken, pushType, providerId) - -View a push configuration - -## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let pushType = "pushType_example"; // String | -let providerId = "providerId_example"; // String | -apiInstance.viewPushConfigurationById(apiToken, pushType, providerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **pushType** | **String**| | - **providerId** | **String**| | - -### Return type - -[**ViewPushConfigurationByIdResponse**](ViewPushConfigurationByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewPushNotificationContentTemplate - -> ViewPushNotificationContentTemplateResponse viewPushNotificationContentTemplate(apiToken, templateName) - -View a push notification content template - -## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let templateName = "templateName_example"; // String | -apiInstance.viewPushNotificationContentTemplate(apiToken, templateName).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **templateName** | **String**| | - -### Return type - -[**ViewPushNotificationContentTemplateResponse**](ViewPushNotificationContentTemplateResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewSecondaryApiTokenByToken - -> ViewSecondaryApiTokenByTokenResponse viewSecondaryApiTokenByToken(apiToken, apiToken2) - -View a secondary API token - -## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ApplicationApi(); -let apiToken = {{API_TOKEN}}; // String | -let apiToken2 = "apiToken_example"; // String | -apiInstance.viewSecondaryApiTokenByToken(apiToken, apiToken2).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **apiToken2** | **String**| | - -### Return type - -[**ViewSecondaryApiTokenByTokenResponse**](ViewSecondaryApiTokenByTokenResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/BanFromChannelsWithCustomChannelTypesData.md b/docs/BanFromChannelsWithCustomChannelTypesData.md deleted file mode 100644 index c2385f2..0000000 --- a/docs/BanFromChannelsWithCustomChannelTypesData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelCustomTypes** | **[String]** | Specifies an array of one or more custom channel types, in order to ban the user from channels with the channel types. The user is permanently banned unless unbanned (10 years, technically). | - - diff --git a/docs/BanUsersInChannelsWithCustomChannelTypeData.md b/docs/BanUsersInChannelsWithCustomChannelTypeData.md deleted file mode 100644 index 8064613..0000000 --- a/docs/BanUsersInChannelsWithCustomChannelTypeData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bannedList** | [**[BanUsersInChannelsWithCustomChannelTypeDataBannedListInner]**](BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.md) | | -**onDemandUpsert** | **Boolean** | | [optional] - - diff --git a/docs/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.md b/docs/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.md deleted file mode 100644 index 477c50c..0000000 --- a/docs/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | -**seconds** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/Blob.md b/docs/Blob.md deleted file mode 100644 index a81b510..0000000 --- a/docs/Blob.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.Blob - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**size** | **Number** | | [optional] -**type** | **String** | | [optional] - - diff --git a/docs/BlockAUserRequest.md b/docs/BlockAUserRequest.md new file mode 100644 index 0000000..3ab18af --- /dev/null +++ b/docs/BlockAUserRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.BlockAUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**targetId** | **String** | | [optional] +**userIds** | **[String]** | Specifies an array of IDs of all the users to block. This property can be used interchangeably with the users[] property when blocking multiple users at once. | [optional] + + diff --git a/docs/BlockAUserResponse.md b/docs/BlockAUserResponse.md new file mode 100644 index 0000000..ec773fe --- /dev/null +++ b/docs/BlockAUserResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.BlockAUserResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**users** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] +**next** | **String** | | [optional] + + diff --git a/docs/BlockUserData.md b/docs/BlockUserData.md deleted file mode 100644 index 216caab..0000000 --- a/docs/BlockUserData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.BlockUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | Specifies the unique ID of the user to block. | -**targetId** | **String** | Specifies the ID of the user to be blocked. | -**userIds** | **[String]** | Specifies an array of the IDs of the users to be blocked at a time. (for bulk mode) | -**users** | **[String]** | Specifies an array of the IDs of the users to be blocked at a time. The user_ids above and this property can be used interchangeably. (for bulk mode) | - - diff --git a/docs/BlockUserResponse.md b/docs/BlockUserResponse.md deleted file mode 100644 index 972b513..0000000 --- a/docs/BlockUserResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.BlockUserResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**users** | **[String]** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/BotApi.md b/docs/BotApi.md index 24fed30..cc78c7b 100644 --- a/docs/BotApi.md +++ b/docs/BotApi.md @@ -4,25 +4,22 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createBot**](BotApi.md#createBot) | **POST** /v3/bots | Create a bot -[**deleteBotById**](BotApi.md#deleteBotById) | **DELETE** /v3/bots/{bot_userid} | Delete a bot +[**createABot**](BotApi.md#createABot) | **POST** /v3/bots | Create a bot [**joinChannels**](BotApi.md#joinChannels) | **POST** /v3/bots/{bot_userid}/channels | Join channels -[**leaveChannels**](BotApi.md#leaveChannels) | **DELETE** /v3/bots/{bot_userid}/channels | Leave channels - When leaving all channels -[**leaveChannelsByUrl**](BotApi.md#leaveChannelsByUrl) | **DELETE** /v3/bots/{bot_userid}/channels/{channel_url} | Leave channels - When leaving a channel by its channel URL +[**leaveAGroupChannel**](BotApi.md#leaveAGroupChannel) | **DELETE** /v3/bots/{bot_userid}/channels/{channel_url} | Leave channels - When leaving a specific channel +[**leaveGroupChannels**](BotApi.md#leaveGroupChannels) | **DELETE** /v3/bots/{bot_userid}/channels | Leave channels - When leaving all channels [**listBots**](BotApi.md#listBots) | **GET** /v3/bots | List bots -[**sendBotsMessage**](BotApi.md#sendBotsMessage) | **POST** /v3/bots/{bot_userid}/send | Send a bot's message -[**updateBotById**](BotApi.md#updateBotById) | **PUT** /v3/bots/{bot_userid} | Update a bot -[**viewBotById**](BotApi.md#viewBotById) | **GET** /v3/bots/{bot_userid} | View a bot +[**sendABotMessage**](BotApi.md#sendABotMessage) | **POST** /v3/bots/{bot_userid}/send | Send a bot's message -## createBot +## createABot -> CreateBotResponse createBot(apiToken, opts) +> CreateABotResponse createABot(opts) Create a bot -## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot +## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot) ### Example @@ -30,11 +27,11 @@ Create a bot import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { - 'createBotData': new SendbirdPlatformSdk.CreateBotData() // CreateBotData | + 'apiToken': {{API_TOKEN}}, // String | + 'createABotRequest': new SendbirdPlatformSdk.CreateABotRequest() // CreateABotRequest | }; -apiInstance.createBot(apiToken, opts).then((data) => { +apiInstance.createABot(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -47,12 +44,12 @@ apiInstance.createBot(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **createBotData** | [**CreateBotData**](CreateBotData.md)| | [optional] + **apiToken** | **String**| | [optional] + **createABotRequest** | [**CreateABotRequest**](CreateABotRequest.md)| | [optional] ### Return type -[**CreateBotResponse**](CreateBotResponse.md) +[**CreateABotResponse**](CreateABotResponse.md) ### Authorization @@ -64,59 +61,13 @@ No authorization required - **Accept**: application/json -## deleteBotById - -> Object deleteBotById(apiToken, botUserid) - -Delete a bot - -## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | -apiInstance.deleteBotById(apiToken, botUserid).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - ## joinChannels -> JoinChannelsResponse joinChannels(apiToken, botUserid, opts) +> SendbirdGroupChannelDetail joinChannels(botUserid, opts) Join channels -## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- +## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels) ### Example @@ -124,12 +75,12 @@ Join channels import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | +let botUserid = "botUserid_example"; // String | (Required) let opts = { - 'joinChannelsData': new SendbirdPlatformSdk.JoinChannelsData() // JoinChannelsData | + 'apiToken': {{API_TOKEN}}, // String | + 'joinChannelsRequest': new SendbirdPlatformSdk.JoinChannelsRequest() // JoinChannelsRequest | }; -apiInstance.joinChannels(apiToken, botUserid, opts).then((data) => { +apiInstance.joinChannels(botUserid, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -142,13 +93,13 @@ apiInstance.joinChannels(apiToken, botUserid, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - **joinChannelsData** | [**JoinChannelsData**](JoinChannelsData.md)| | [optional] + **botUserid** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **joinChannelsRequest** | [**JoinChannelsRequest**](JoinChannelsRequest.md)| | [optional] ### Return type -[**JoinChannelsResponse**](JoinChannelsResponse.md) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -160,13 +111,13 @@ No authorization required - **Accept**: application/json -## leaveChannels +## leaveAGroupChannel -> leaveChannels(apiToken, botUserid, opts) +> Object leaveAGroupChannel(channelUrl, botUserid, opts) -Leave channels - When leaving all channels +Leave channels - When leaving a specific channel -## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- +## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) ### Example @@ -174,13 +125,13 @@ Leave channels - When leaving all channels import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | +let channelUrl = "channelUrl_example"; // String | +let botUserid = "botUserid_example"; // String | (Required) let opts = { - 'channelUrl': "channelUrl_example" // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.leaveChannels(apiToken, botUserid, opts).then(() => { - console.log('API called successfully.'); +apiInstance.leaveAGroupChannel(channelUrl, botUserid, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -192,13 +143,13 @@ apiInstance.leaveChannels(apiToken, botUserid, opts).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - **channelUrl** | **String**| | [optional] + **channelUrl** | **String**| | + **botUserid** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -null (empty response body) +**Object** ### Authorization @@ -207,16 +158,16 @@ No authorization required ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json -## leaveChannelsByUrl +## leaveGroupChannels -> Object leaveChannelsByUrl(apiToken, botUserid, channelUrl) +> Object leaveGroupChannels(botUserid, opts) -Leave channels - When leaving a channel by its channel URL +Leave channels - When leaving all channels -## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- +## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) ### Example @@ -224,10 +175,11 @@ Leave channels - When leaving a channel by its channel URL import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.leaveChannelsByUrl(apiToken, botUserid, channelUrl).then((data) => { +let botUserid = "botUserid_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.leaveGroupChannels(botUserid, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -240,9 +192,8 @@ apiInstance.leaveChannelsByUrl(apiToken, botUserid, channelUrl).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - **channelUrl** | **String**| | + **botUserid** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type @@ -260,11 +211,11 @@ No authorization required ## listBots -> ListBotsResponse listBots(apiToken, opts) +> ListBotsResponse listBots(opts) List bots -## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- +## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots ### Example @@ -272,12 +223,12 @@ List bots import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { 'token': "token_example", // String | - 'limit': 56 // Number | + 'limit': 56, // Number | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.listBots(apiToken, opts).then((data) => { +apiInstance.listBots(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -290,9 +241,9 @@ apiInstance.listBots(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **token** | **String**| | [optional] **limit** | **Number**| | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -308,63 +259,13 @@ No authorization required - **Accept**: application/json -## sendBotsMessage +## sendABotMessage -> SendBirdMessageResponse sendBotsMessage(apiToken, botUserid, opts) +> SendbirdMessageResponse sendABotMessage(botUserid, opts) Send a bot's message -## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | -let opts = { - 'sendBotSMessageData': new SendbirdPlatformSdk.SendBotSMessageData() // SendBotSMessageData | -}; -apiInstance.sendBotsMessage(apiToken, botUserid, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - **sendBotSMessageData** | [**SendBotSMessageData**](SendBotSMessageData.md)| | [optional] - -### Return type - -[**SendBirdMessageResponse**](SendBirdMessageResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateBotById - -> UpdateBotByIdResponse updateBotById(apiToken, botUserid, opts) - -Update a bot - -## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- +## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. ### Example @@ -372,12 +273,12 @@ Update a bot import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | +let botUserid = "botUserid_example"; // String | (Required) let opts = { - 'updateBotByIdData': new SendbirdPlatformSdk.UpdateBotByIdData() // UpdateBotByIdData | + 'apiToken': {{API_TOKEN}}, // String | + 'sendABotMessageRequest': new SendbirdPlatformSdk.SendABotMessageRequest() // SendABotMessageRequest | }; -apiInstance.updateBotById(apiToken, botUserid, opts).then((data) => { +apiInstance.sendABotMessage(botUserid, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -390,13 +291,13 @@ apiInstance.updateBotById(apiToken, botUserid, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - **updateBotByIdData** | [**UpdateBotByIdData**](UpdateBotByIdData.md)| | [optional] + **botUserid** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **sendABotMessageRequest** | [**SendABotMessageRequest**](SendABotMessageRequest.md)| | [optional] ### Return type -[**UpdateBotByIdResponse**](UpdateBotByIdResponse.md) +[**SendbirdMessageResponse**](SendbirdMessageResponse.md) ### Authorization @@ -407,49 +308,3 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json - -## viewBotById - -> ViewBotByIdResponse viewBotById(apiToken, botUserid) - -View a bot - -## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.BotApi(); -let apiToken = {{API_TOKEN}}; // String | -let botUserid = "botUserid_example"; // String | -apiInstance.viewBotById(apiToken, botUserid).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **botUserid** | **String**| | - -### Return type - -[**ViewBotByIdResponse**](ViewBotByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/CheckIfMemberResponse.md b/docs/CheckIfMemberResponse.md new file mode 100644 index 0000000..b41e91b --- /dev/null +++ b/docs/CheckIfMemberResponse.md @@ -0,0 +1,23 @@ +# SendbirdPlatformSdk.CheckIfMemberResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isMember** | **Boolean** | | [optional] +**state** | **String** | | [optional] + + + +## Enum: StateEnum + + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + +* `none` (value: `"none"`) + + + + diff --git a/docs/ChooseAPushNotificationContentTemplateRequest.md b/docs/ChooseAPushNotificationContentTemplateRequest.md new file mode 100644 index 0000000..dcb34cc --- /dev/null +++ b/docs/ChooseAPushNotificationContentTemplateRequest.md @@ -0,0 +1,20 @@ +# SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) | + + + +## Enum: NameEnum + + +* `default` (value: `"default"`) + +* `alternative` (value: `"alternative"`) + + + + diff --git a/docs/ChooseAPushNotificationContentTemplateResponse.md b/docs/ChooseAPushNotificationContentTemplateResponse.md new file mode 100644 index 0000000..7c602ab --- /dev/null +++ b/docs/ChooseAPushNotificationContentTemplateResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | | [optional] + + diff --git a/docs/ChoosePushNotificationContentTemplateResponse.md b/docs/ChoosePushNotificationContentTemplateResponse.md deleted file mode 100644 index 221f899..0000000 --- a/docs/ChoosePushNotificationContentTemplateResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ChoosePushNotificationContentTemplateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - - diff --git a/docs/ChooseWhichEventsToSubscribeToData.md b/docs/ChooseWhichEventsToSubscribeToData.md deleted file mode 100644 index 7be161a..0000000 --- a/docs/ChooseWhichEventsToSubscribeToData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | Determines whether webhooks are turned on in your Sendbird application or not. (Default: false) | -**url** | **String** | Specifies the URL of your webhook server to receive payloads for events. | -**includeMembers** | **Boolean** | Determines whether to include the information on the members of group channels in payloads. (Default: false) | [optional] -**enabledEvents** | **[String]** | Specifies an array of one or more [events](#2-webhook-events) for your webhook server to subscribe to. If set to an asterisk () only, the server will subscribe to all supported events. If set to an empty array, the server will unsubscribe from all (which indicates turning off webhooks). | [optional] - - diff --git a/docs/ChooseWhichEventsToSubscribeToResponse.md b/docs/ChooseWhichEventsToSubscribeToResponse.md deleted file mode 100644 index aca8c4a..0000000 --- a/docs/ChooseWhichEventsToSubscribeToResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**webhook** | [**ChooseWhichEventsToSubscribeToResponseWebhook**](ChooseWhichEventsToSubscribeToResponseWebhook.md) | | [optional] - - diff --git a/docs/ChooseWhichEventsToSubscribeToResponseWebhook.md b/docs/ChooseWhichEventsToSubscribeToResponseWebhook.md deleted file mode 100644 index cc6436b..0000000 --- a/docs/ChooseWhichEventsToSubscribeToResponseWebhook.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | | [optional] -**url** | **String** | | [optional] -**includeMembers** | **Boolean** | | [optional] -**enabledEvents** | **[String]** | | [optional] -**includeUnreadCount** | **Boolean** | | [optional] - - diff --git a/docs/ConfigureAutoEventData.md b/docs/ConfigureAutoEventData.md deleted file mode 100644 index 0cb000b..0000000 --- a/docs/ConfigureAutoEventData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ConfigureAutoEventData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoEventMessage** | [**ConfigureAutoEventDataAutoEventMessage**](ConfigureAutoEventDataAutoEventMessage.md) | | [optional] - - diff --git a/docs/ConfigureAutoEventDataAutoEventMessage.md b/docs/ConfigureAutoEventDataAutoEventMessage.md deleted file mode 100644 index a8c52a7..0000000 --- a/docs/ConfigureAutoEventDataAutoEventMessage.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userLeave** | **Object** | | [optional] -**userJoin** | **Object** | | [optional] -**channelCreate** | **Object** | | [optional] -**channelChange** | **Object** | | [optional] - - diff --git a/docs/CreateABotRequest.md b/docs/CreateABotRequest.md new file mode 100644 index 0000000..a05e221 --- /dev/null +++ b/docs/CreateABotRequest.md @@ -0,0 +1,17 @@ +# SendbirdPlatformSdk.CreateABotRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**botCallbackUrl** | **String** | | +**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | +**botProfileUrl** | **String** | | +**botType** | **String** | | +**botUserid** | **String** | Specifies the unique ID of a bot. The length is limited to 80 characters. | +**isPrivacyMode** | **Boolean** | Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. | +**channelInvitationPreference** | **Number** | | [optional] +**enableMarkAsRead** | **Boolean** | | [optional] +**showMember** | **Boolean** | | [optional] + + diff --git a/docs/CreateABotResponse.md b/docs/CreateABotResponse.md new file mode 100644 index 0000000..f680390 --- /dev/null +++ b/docs/CreateABotResponse.md @@ -0,0 +1,16 @@ +# SendbirdPlatformSdk.CreateABotResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bot** | [**CreateABotResponseBot**](CreateABotResponseBot.md) | | +**botCallbackUrl** | **String** | | [optional] +**botStyle** | [**CreateABotResponseBotStyle**](CreateABotResponseBotStyle.md) | | [optional] +**channelInvitationPreference** | **Number** | | [optional] +**createdAt** | **Number** | | [optional] +**enableMarkAsRead** | **Boolean** | | [optional] +**isPrivacyMode** | **Boolean** | | [optional] +**showMember** | **Boolean** | | [optional] + + diff --git a/docs/CreateABotResponseBot.md b/docs/CreateABotResponseBot.md new file mode 100644 index 0000000..d4a71bd --- /dev/null +++ b/docs/CreateABotResponseBot.md @@ -0,0 +1,17 @@ +# SendbirdPlatformSdk.CreateABotResponseBot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aiAgentType** | **String** | | [optional] +**botMetadata** | **Object** | | [optional] +**botNickname** | **String** | | [optional] +**botProfileUrl** | **String** | | [optional] +**botRequireAuthForProfileImage** | **Boolean** | | [optional] +**botToken** | **String** | | [optional] +**botType** | **String** | | [optional] +**botUserid** | **String** | | +**feedback** | **Boolean** | | [optional] + + diff --git a/docs/CreateABotResponseBotStyle.md b/docs/CreateABotResponseBotStyle.md new file mode 100644 index 0000000..83c6634 --- /dev/null +++ b/docs/CreateABotResponseBotStyle.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.CreateABotResponseBotStyle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoOpen** | **Boolean** | | [optional] +**color** | [**ListBotsResponseBotsInnerBotStyleColor**](ListBotsResponseBotsInnerBotStyleColor.md) | | [optional] +**toggleButtonType** | **String** | | [optional] +**toggleButtonUrl** | **String** | | [optional] + + diff --git a/docs/CreateAChannelMetadataRequest.md b/docs/CreateAChannelMetadataRequest.md new file mode 100644 index 0000000..48db26b --- /dev/null +++ b/docs/CreateAChannelMetadataRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.CreateAChannelMetadataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**includeTs** | **Boolean** | | [optional] +**metadata** | **Object** | | + + diff --git a/docs/CreateAChannelMetadataResponse.md b/docs/CreateAChannelMetadataResponse.md new file mode 100644 index 0000000..7fbf658 --- /dev/null +++ b/docs/CreateAChannelMetadataResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.CreateAChannelMetadataResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**includeTs** | **Number** | | [optional] +**metadata** | **Object** | | [optional] + + diff --git a/docs/CreateAGroupChannelRequest.md b/docs/CreateAGroupChannelRequest.md new file mode 100644 index 0000000..381bdf1 --- /dev/null +++ b/docs/CreateAGroupChannelRequest.md @@ -0,0 +1,27 @@ +# SendbirdPlatformSdk.CreateAGroupChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessCode** | **String** | | [optional] +**blockSdkUserChannelJoin** | **Boolean** | | [optional] +**channelUrl** | **String** | | [optional] +**coverFile** | **File** | Uploads a file for the channel cover image. | [optional] +**coverUrl** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | [optional] +**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | [optional] +**inviterId** | **String** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**operatorIds** | **[String]** | | [optional] +**strict** | **Boolean** | | [optional] +**userIds** | **[String]** | | [optional] +**users** | [**[SendbirdUser]**](SendbirdUser.md) | | + + diff --git a/docs/CreateAUserRequest.md b/docs/CreateAUserRequest.md new file mode 100644 index 0000000..0595149 --- /dev/null +++ b/docs/CreateAUserRequest.md @@ -0,0 +1,15 @@ +# SendbirdPlatformSdk.CreateAUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discoveryKeys** | **[String]** | | [optional] +**issueAccessToken** | **Boolean** | | [optional] +**metadata** | **Object** | | [optional] +**nickname** | **String** | | +**profileFile** | **File** | Specifies the file of the user's profile image. An acceptable image is limited to a JPG, JPEG, or PNG file of up to 5 MB. When passing a file, you should send a multipart request. If the profile_file property is specified, the profile_url property is not required. | [optional] +**profileUrl** | **String** | | +**userId** | **String** | | + + diff --git a/docs/CreateAnOpenChannelRequest.md b/docs/CreateAnOpenChannelRequest.md new file mode 100644 index 0000000..3ee4ff2 --- /dev/null +++ b/docs/CreateAnOpenChannelRequest.md @@ -0,0 +1,17 @@ +# SendbirdPlatformSdk.CreateAnOpenChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**isDynamicPartitioned** | **Boolean** | | [optional] +**channelUrl** | **String** | | [optional] +**coverFile** | **File** | | [optional] +**coverUrl** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**operatorIds** | **[String]** | | [optional] + + diff --git a/docs/CreateBotData.md b/docs/CreateBotData.md deleted file mode 100644 index 57c229d..0000000 --- a/docs/CreateBotData.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.CreateBotData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**botUserid** | **String** | Specifies the unique ID of the bot. The length is limited to 80 characters. | -**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | -**botProfileUrl** | **String** | Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. | -**botType** | **String** | Specifies the type of the bot that you can specify for categorization. The length is limited to 128 characters. | -**botCallbackUrl** | **String** | Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. | -**isPrivacyMode** | **Boolean** | In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. | -**enableMarkAsRead** | **Boolean** | Determines whether to mark the bot's message as read upon sending it. (Default: true) | [optional] -**showMember** | **Boolean** | Determines whether to include information about the members of each channel in a callback response. (Default: false) | [optional] -**channelInvitationPreference** | **Number** | | [optional] - - diff --git a/docs/CreateBotResponse.md b/docs/CreateBotResponse.md deleted file mode 100644 index 2be03d1..0000000 --- a/docs/CreateBotResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.CreateBotResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bot** | [**CreateBotResponseBot**](CreateBotResponseBot.md) | | [optional] -**botCallbackUrl** | **String** | | [optional] -**enableMarkAsRead** | **Boolean** | | [optional] -**isPrivacyMode** | **Boolean** | | [optional] -**showMember** | **Boolean** | | [optional] -**channelInvitationPreference** | **Number** | | [optional] - - diff --git a/docs/CreateBotResponseBot.md b/docs/CreateBotResponseBot.md deleted file mode 100644 index 727721a..0000000 --- a/docs/CreateBotResponseBot.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.CreateBotResponseBot - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**botToken** | **String** | | [optional] -**botProfileUrl** | **String** | | [optional] -**botUserid** | **String** | | [optional] -**botNickname** | **String** | | [optional] -**botType** | **String** | | [optional] -**botMetadata** | **Object** | | [optional] - - diff --git a/docs/CreateChannelMetacounterData.md b/docs/CreateChannelMetacounterData.md deleted file mode 100644 index cbaea15..0000000 --- a/docs/CreateChannelMetacounterData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.CreateChannelMetacounterData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | -**channelUrl** | **String** | Specifies the URL of the channel to store the metacounter in. | -**metacounter** | **String** | Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. | - - diff --git a/docs/CreateChannelMetadataData.md b/docs/CreateChannelMetadataData.md deleted file mode 100644 index 20f230f..0000000 --- a/docs/CreateChannelMetadataData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.CreateChannelMetadataData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | -**channelUrl** | **String** | Specifies the URL of the channel to store the metadata in. | -**metadata** | **Object** | Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. | -**includeTs** | **Boolean** | Determines whether to include the timestamp of when a metadata has been created in the response. (Default: false) | [optional] - - diff --git a/docs/CreateChannelMetadataResponse.md b/docs/CreateChannelMetadataResponse.md deleted file mode 100644 index 464e048..0000000 --- a/docs/CreateChannelMetadataResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.CreateChannelMetadataResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | **{String: String}** | | [optional] -**includeTs** | **Number** | | [optional] - - diff --git a/docs/CreateUserData.md b/docs/CreateUserData.md deleted file mode 100644 index 6713dcf..0000000 --- a/docs/CreateUserData.md +++ /dev/null @@ -1,15 +0,0 @@ -# SendbirdPlatformSdk.CreateUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | Specifies a user's unique ID, which is used to sign into the Sendbird service. The length is limited to 80 characters.<br /><br /> Do not use PII (Personally Identifiable Information) of your service, such as user email address, legal name or phone number. | -**nickname** | **String** | Specifies a nickname for a new user. The length is limited to 80 characters. | -**profileUrl** | **String** | Specifies the URL of the user's profile image. If left empty, no profile image is set for the user. The length is limited to 2,048 characters.<br /><br /> The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. | -**profileFile** | **File** | Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. | [optional] -**issueAccessToken** | **Boolean** | Determines whether to create an access token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) | [optional] -**discoveryKeys** | **[String]** | Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. | [optional] -**metadata** | **Object** | Specifies a `JSON` object to store key-value items for additional user information such as phone number, email or a long description of the user. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. | [optional] - - diff --git a/docs/CreateUserMetadataData.md b/docs/CreateUserMetadataData.md deleted file mode 100644 index 692bce7..0000000 --- a/docs/CreateUserMetadataData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.CreateUserMetadataData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | **Object** | Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. | - - diff --git a/docs/CreateUserMetadataResponse.md b/docs/CreateUserMetadataResponse.md deleted file mode 100644 index 0e35e39..0000000 --- a/docs/CreateUserMetadataResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.CreateUserMetadataResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**anyOf** | **String** | | [optional] - - diff --git a/docs/CreateUserTokenData.md b/docs/CreateUserTokenData.md deleted file mode 100644 index 215ed79..0000000 --- a/docs/CreateUserTokenData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.CreateUserTokenData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**expiresAt** | **Number** | Specifies the expiration time of the new session token in Unix milliseconds format. By default, the expiration time of a session token is seven days from the timestamp when the token was issued. | [optional] - - diff --git a/docs/CreateUserTokenRequest.md b/docs/CreateUserTokenRequest.md new file mode 100644 index 0000000..7de85e2 --- /dev/null +++ b/docs/CreateUserTokenRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.CreateUserTokenRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**expiresAt** | **Number** | | [optional] + + diff --git a/docs/CreateUserTokenResponse.md b/docs/CreateUserTokenResponse.md index 822b042..f04be30 100644 --- a/docs/CreateUserTokenResponse.md +++ b/docs/CreateUserTokenResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**token** | **String** | | [optional] **expiresAt** | **Number** | | [optional] +**token** | **String** | | [optional] diff --git a/docs/CustomTypeListBannedUsersResponse.md b/docs/CustomTypeListBannedUsersResponse.md deleted file mode 100644 index fec5a45..0000000 --- a/docs/CustomTypeListBannedUsersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.CustomTypeListBannedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bannedList** | [**[OcListBannedUsersResponseBannedListInner]**](OcListBannedUsersResponseBannedListInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/DataExportApi.md b/docs/DataExportApi.md deleted file mode 100644 index 910d272..0000000 --- a/docs/DataExportApi.md +++ /dev/null @@ -1,161 +0,0 @@ -# SendbirdPlatformSdk.DataExportApi - -All URIs are relative to *https://api-APP_ID.sendbird.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listDataExportsByMessageChannelOrUser**](DataExportApi.md#listDataExportsByMessageChannelOrUser) | **GET** /v3/export/{data_type} | List data exports by message, channel, or user -[**registerAndScheduleDataExport**](DataExportApi.md#registerAndScheduleDataExport) | **POST** /v3/export/{data_type} | Register and schedule a data export -[**viewDataExportById**](DataExportApi.md#viewDataExportById) | **GET** /v3/export/{data_type}/{request_id} | View a data export - - - -## listDataExportsByMessageChannelOrUser - -> ListDataExportsByMessageChannelOrUserResponse listDataExportsByMessageChannelOrUser(apiToken, dataType, opts) - -List data exports by message, channel, or user - -## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.DataExportApi(); -let apiToken = {{API_TOKEN}}; // String | -let dataType = "dataType_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listDataExportsByMessageChannelOrUser(apiToken, dataType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **dataType** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListDataExportsByMessageChannelOrUserResponse**](ListDataExportsByMessageChannelOrUserResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## registerAndScheduleDataExport - -> RegisterAndScheduleDataExportResponse registerAndScheduleDataExport(apiToken, dataType, opts) - -Register and schedule a data export - -## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.DataExportApi(); -let apiToken = {{API_TOKEN}}; // String | -let dataType = "dataType_example"; // String | -let opts = { - 'registerAndScheduleDataExportData': new SendbirdPlatformSdk.RegisterAndScheduleDataExportData() // RegisterAndScheduleDataExportData | -}; -apiInstance.registerAndScheduleDataExport(apiToken, dataType, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **dataType** | **String**| | - **registerAndScheduleDataExportData** | [**RegisterAndScheduleDataExportData**](RegisterAndScheduleDataExportData.md)| | [optional] - -### Return type - -[**RegisterAndScheduleDataExportResponse**](RegisterAndScheduleDataExportResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## viewDataExportById - -> ViewDataExportByIdResponse viewDataExportById(apiToken, dataType, requestId) - -View a data export - -## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.DataExportApi(); -let apiToken = {{API_TOKEN}}; // String | -let dataType = "dataType_example"; // String | -let requestId = "requestId_example"; // String | -apiInstance.viewDataExportById(apiToken, dataType, requestId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **dataType** | **String**| | - **requestId** | **String**| | - -### Return type - -[**ViewDataExportByIdResponse**](ViewDataExportByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/DeleteAllowedIpsFromWhitelistResponse.md b/docs/DeleteAllowedIpsFromWhitelistResponse.md deleted file mode 100644 index ae2e23e..0000000 --- a/docs/DeleteAllowedIpsFromWhitelistResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.DeleteAllowedIpsFromWhitelistResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipWhitelistAddresses** | **[String]** | | [optional] - - diff --git a/docs/DeleteApnsCertificateByIdResponse.md b/docs/DeleteApnsCertificateByIdResponse.md deleted file mode 100644 index 037e876..0000000 --- a/docs/DeleteApnsCertificateByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.DeleteApnsCertificateByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | **[String]** | | [optional] - - diff --git a/docs/EnableReactionsData.md b/docs/EnableReactionsData.md deleted file mode 100644 index af25790..0000000 --- a/docs/EnableReactionsData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.EnableReactionsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | Determines whether to turn on the message reaction feature. (Default: false) | - - diff --git a/docs/EnableReactionsResponse.md b/docs/EnableReactionsResponse.md deleted file mode 100644 index 226f94e..0000000 --- a/docs/EnableReactionsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.EnableReactionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reactions** | **Boolean** | | [optional] - - diff --git a/docs/File.md b/docs/File.md deleted file mode 100644 index d397329..0000000 --- a/docs/File.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.File - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastModified** | **Number** | | [optional] -**name** | **String** | | [optional] -**size** | **Number** | | [optional] -**type** | **String** | | [optional] -**webkitRelativePath** | **String** | | [optional] - - diff --git a/docs/FreezeAGroupChannelRequest.md b/docs/FreezeAGroupChannelRequest.md new file mode 100644 index 0000000..466cce5 --- /dev/null +++ b/docs/FreezeAGroupChannelRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.FreezeAGroupChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**freeze** | **Boolean** | | + + diff --git a/docs/FreezeAnOpenChannelRequest.md b/docs/FreezeAnOpenChannelRequest.md new file mode 100644 index 0000000..f0c462b --- /dev/null +++ b/docs/FreezeAnOpenChannelRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.FreezeAnOpenChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**freeze** | **Boolean** | Determines whether to freeze the channel. (Default: true) | + + diff --git a/docs/Function.md b/docs/Function.md deleted file mode 100644 index b61e380..0000000 --- a/docs/Function.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.Function - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**_arguments** | **Object** | | [optional] -**caller** | [**Function**](Function.md) | | [optional] -**length** | **Number** | | [optional] -**_prototype** | **Object** | | [optional] - - diff --git a/docs/GcAcceptInvitationData.md b/docs/GcAcceptInvitationData.md deleted file mode 100644 index 34b844b..0000000 --- a/docs/GcAcceptInvitationData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcAcceptInvitationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the private group channel to join through accepting an invitation. | -**userId** | **String** | Specifies the unique ID of the user to accept an invitation to join the private group channel. | -**accessCode** | **String** | This property should be specified if the private group channel to join requires an access code to the invited users, which means that the is_access_code_required property of the channel resource is true. | - - diff --git a/docs/GcBanUserData.md b/docs/GcBanUserData.md deleted file mode 100644 index bd3e3d9..0000000 --- a/docs/GcBanUserData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GcBanUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel where to ban a user. | -**userId** | **String** | Specifies the unique ID of the user to ban. | -**agentId** | **String** | Specifies the ID of the agent (operator) who bans the user. | -**seconds** | **Number** | Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) | -**description** | **String** | Specifies a reason for the banning. The length is limited to 250 characters. | - - diff --git a/docs/GcBanUserResponse.md b/docs/GcBanUserResponse.md deleted file mode 100644 index fdd8cc9..0000000 --- a/docs/GcBanUserResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# SendbirdPlatformSdk.GcBanUserResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] -**metadata** | [**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) | | [optional] -**nextUrl** | **String** | | [optional] -**nickname** | **String** | | [optional] -**profileUrl** | **String** | | [optional] -**requireAuthForProfileImage** | **Boolean** | | [optional] -**userId** | **String** | | [optional] - - diff --git a/docs/GcCheckIfMemberByIdResponse.md b/docs/GcCheckIfMemberByIdResponse.md deleted file mode 100644 index 655ea09..0000000 --- a/docs/GcCheckIfMemberByIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcCheckIfMemberByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isMember** | **Boolean** | | [optional] -**state** | **String** | | [optional] - - diff --git a/docs/GcCreateChannelData.md b/docs/GcCreateChannelData.md deleted file mode 100644 index ab85531..0000000 --- a/docs/GcCreateChannelData.md +++ /dev/null @@ -1,27 +0,0 @@ -# SendbirdPlatformSdk.GcCreateChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userIds** | **[String]** | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. | -**users** | [**[SendBirdUser]**](SendBirdUser.md) | Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. | [optional] -**name** | **String** | Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel) | [optional] -**channelUrl** | **String** | Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. | [optional] -**coverUrl** | **String** | Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters. | [optional] -**coverFile** | **File** | Uploads the cover image file for the channel. | [optional] -**customType** | **String** | Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | [optional] -**data** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | [optional] -**isDistinct** | **Boolean** | Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the same users in the user_ids or users property or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)<br /><br /> Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. | [optional] -**isPublic** | **Boolean** | Determines whether to allow a user to join the channel without an invitation. (Default: false) | [optional] -**isSuper** | **Boolean** | Determines whether to allow the channel to accommodate more than 2,000 members. (Default: false) <br/><br/> Supergroup channels are not supported with the is_distinct property and the property is false by default. | [optional] -**isEphemeral** | **Boolean** | Determines whether to preserve the messages in the channel for the purpose of retrieving chat history. (Default: false) | [optional] -**accessCode** | **String** | This parameter can only be used when the channel operator creates a public group channel. They can set an access code for the corresponding type of channel. The channel then requires the specified access code to a user who attempts to join. If specified, the is_access_code_required property of the channel resource is set to true. | [optional] -**inviterId** | **String** | Specifies the ID of the user who has invited other users as members of the channel. The inviter is not automatically registered to the channel as a member, so you should specify the ID of the inviter in the user_ids property below if needed. | [optional] -**strict** | **Boolean** | Determines whether to receive a `400111` error and cease channel creation when there is at least one non-existing user in the specified user_ids or users property above. If set to false, the channel will be created excluding the non-existing users without receiving the mentioned error. (Default: false) | [optional] -**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | [optional] -**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | [optional] -**operatorIds** | **[String]** | Specifies an array of one or more IDs of users to register as operators of the channel. You should also include these IDs in the user_ids property to invite them to the channel as members. They can delete any messages in the channel, and also view all messages without any filtering or throttling. The maximum allowed number of operators per channel is 100. | [optional] -**blockSdkUserChannelJoin** | **Boolean** | Determines whether to block users from joining the channel through the Chat SDK. This parameter can be used in order to restrict the ways for users to join the channel, and only using the [join a channel](#2-join-a-channel) action can add a user to the channel. (Default: false) | [optional] - - diff --git a/docs/GcDeclineInvitationData.md b/docs/GcDeclineInvitationData.md deleted file mode 100644 index 19edc36..0000000 --- a/docs/GcDeclineInvitationData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcDeclineInvitationData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the private group channel to decline an invitation from. | -**userId** | **String** | Specifies the unique ID of the user to decline an invitation. | - - diff --git a/docs/GcFreezeChannelData.md b/docs/GcFreezeChannelData.md deleted file mode 100644 index faa8e29..0000000 --- a/docs/GcFreezeChannelData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcFreezeChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to freeze. | -**freeze** | **Boolean** | Determines whether to freeze the channel. (Default: false) | - - diff --git a/docs/GcHideOrArchiveChannelData.md b/docs/GcHideOrArchiveChannelData.md deleted file mode 100644 index 00edbc3..0000000 --- a/docs/GcHideOrArchiveChannelData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GcHideOrArchiveChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to hide or archive. | -**userId** | **String** | Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. | -**allowAutoUnhide** | **Boolean** | Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)<br /><br /> When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. | -**shouldHideAll** | **Boolean** | Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) | -**hidePreviousMessages** | **Boolean** | When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)<br /><br /> This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. | - - diff --git a/docs/GcInviteAsMembersData.md b/docs/GcInviteAsMembersData.md deleted file mode 100644 index 04651a9..0000000 --- a/docs/GcInviteAsMembersData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GcInviteAsMembersData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to invite into. | -**userIds** | **[String]** | Specifies an array of one or more user IDs to invite into the channel. The maximum number of users to be invited at once is 100. The users can be used instead of this property. | -**users** | **[String]** | Specifies a list of one or more `JSON` objects which contain the user_id property to invite into the channel. The maximum number of users to be invited at once is 100. The user_ids can be used instead of this property. | -**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | -**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | - - diff --git a/docs/GcJoinChannelData.md b/docs/GcJoinChannelData.md deleted file mode 100644 index 455dd4d..0000000 --- a/docs/GcJoinChannelData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcJoinChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to join. | -**userId** | **String** | Specifies the unique ID of the user to join the public group channel. | -**accessCode** | **String** | This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. | - - diff --git a/docs/GcLeaveChannelData.md b/docs/GcLeaveChannelData.md deleted file mode 100644 index 375cceb..0000000 --- a/docs/GcLeaveChannelData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcLeaveChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to leave. | -**userIds** | **[String]** | Specifies an array of one or more IDs of the users to leave the channel. | -**shouldLeaveAll** | **Boolean** | Determines whether to make all members leave the channel. (Default: false) | - - diff --git a/docs/GcListBannedUsersResponse.md b/docs/GcListBannedUsersResponse.md deleted file mode 100644 index 399686c..0000000 --- a/docs/GcListBannedUsersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcListBannedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bannedList** | [**[OcListBannedUsersResponseBannedListInner]**](OcListBannedUsersResponseBannedListInner.md) | | [optional] -**totalBanCount** | **Number** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/GcListChannelsResponse.md b/docs/GcListChannelsResponse.md deleted file mode 100644 index 081e714..0000000 --- a/docs/GcListChannelsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcListChannelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channels** | [**[SendBirdGroupChannel]**](SendBirdGroupChannel.md) | | [optional] -**next** | **String** | | [optional] -**ts** | **Number** | | [optional] - - diff --git a/docs/GcListMembersResponse.md b/docs/GcListMembersResponse.md deleted file mode 100644 index f81a58c..0000000 --- a/docs/GcListMembersResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcListMembersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**members** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/GcListMutedUsersResponse.md b/docs/GcListMutedUsersResponse.md deleted file mode 100644 index a200223..0000000 --- a/docs/GcListMutedUsersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcListMutedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mutedList** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**totalMuteCount** | **Number** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/GcListOperatorsResponse.md b/docs/GcListOperatorsResponse.md deleted file mode 100644 index f2d1c10..0000000 --- a/docs/GcListOperatorsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcListOperatorsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operators** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/GcMarkAllMessagesAsDeliveredData.md b/docs/GcMarkAllMessagesAsDeliveredData.md deleted file mode 100644 index 9bb1a4f..0000000 --- a/docs/GcMarkAllMessagesAsDeliveredData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**applicationId** | **String** | Specifies the unique ID of your application. | -**channelUrl** | **String** | Specifies the URL of the target channel. | -**userId** | **String** | Specifies the ID of the recipient to mark messages as delivered. | - - diff --git a/docs/GcMarkAllMessagesAsDeliveredResponse.md b/docs/GcMarkAllMessagesAsDeliveredResponse.md deleted file mode 100644 index 152c168..0000000 --- a/docs/GcMarkAllMessagesAsDeliveredResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ts** | **Number** | | [optional] - - diff --git a/docs/GcMarkAllMessagesAsReadData.md b/docs/GcMarkAllMessagesAsReadData.md deleted file mode 100644 index 931ca92..0000000 --- a/docs/GcMarkAllMessagesAsReadData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcMarkAllMessagesAsReadData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the target channel. | -**userId** | **String** | Specifies the ID of the user to mark all messages as read. | -**timestamp** | **Number** | Specifies the timestamp to be the reference point of marking as read. If specified, the messages received before the specified time are marked as read. | - - diff --git a/docs/GcMuteUserData.md b/docs/GcMuteUserData.md deleted file mode 100644 index 2aed6cc..0000000 --- a/docs/GcMuteUserData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.GcMuteUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the target channel. | -**userId** | **String** | Specifies the ID of the target user to mute. | -**seconds** | **Number** | Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) | -**description** | **String** | Specifies a reason for the muting. | - - diff --git a/docs/GcRegisterOperatorsData.md b/docs/GcRegisterOperatorsData.md deleted file mode 100644 index bd2740a..0000000 --- a/docs/GcRegisterOperatorsData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GcRegisterOperatorsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to register operators to. | -**operatorIds** | **[String]** | Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. | - - diff --git a/docs/GcRegisterOperatorsResponse.md b/docs/GcRegisterOperatorsResponse.md deleted file mode 100644 index bbbc31d..0000000 --- a/docs/GcRegisterOperatorsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.GcRegisterOperatorsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operatorIds** | **[String]** | | [optional] - - diff --git a/docs/GcResetChatHistoryData.md b/docs/GcResetChatHistoryData.md deleted file mode 100644 index 306339b..0000000 --- a/docs/GcResetChatHistoryData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.GcResetChatHistoryData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the target channel to reset chat history. | -**userId** | **String** | Specifies the unique ID of the user whose chat history to reset in the channel. If this user_id property is specified, the reset_all property is not required. | -**resetAll** | **Boolean** | Determines whether to reset all users' chat history in the channel. If this reset_all property is specified, the user_id property is not required. | - - diff --git a/docs/GcResetChatHistoryResponse.md b/docs/GcResetChatHistoryResponse.md deleted file mode 100644 index 4f01f76..0000000 --- a/docs/GcResetChatHistoryResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.GcResetChatHistoryResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tsMessageOffset** | **Number** | | [optional] - - diff --git a/docs/GcUpdateBanByIdData.md b/docs/GcUpdateBanByIdData.md deleted file mode 100644 index 5cd70fd..0000000 --- a/docs/GcUpdateBanByIdData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.GcUpdateBanByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the target channel. | -**bannedUserId** | **String** | Specifies the ID of the banned user to update. | -**seconds** | **Number** | Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). | -**description** | **String** | Specifies a new reason for the banning to update. The length is limited to 250 characters. | - - diff --git a/docs/GcUpdateBanByIdResponse.md b/docs/GcUpdateBanByIdResponse.md deleted file mode 100644 index 639bb75..0000000 --- a/docs/GcUpdateBanByIdResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.GcUpdateBanByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/GcUpdateChannelByUrlData.md b/docs/GcUpdateChannelByUrlData.md deleted file mode 100644 index 04fb003..0000000 --- a/docs/GcUpdateChannelByUrlData.md +++ /dev/null @@ -1,18 +0,0 @@ -# SendbirdPlatformSdk.GcUpdateChannelByUrlData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to update. | -**name** | **String** | Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. | -**coverUrl** | **String** | Specifies the unique URL of the cover image. The length is limited to 2,048 characters. | -**coverFile** | **File** | Uploads the cover image file for the channel. | -**customType** | **String** | Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | -**data** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | -**isDistinct** | **Boolean** | Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the current channel members users or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)<br /><br /> Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. | -**isPublic** | **Boolean** | Determines whether to allow a user to join the channel without an invitation. (Default: false) | -**accessCode** | **String** | This property can be used only when the channel operator wants to set an access code for a public group channel. If specified, the is_access_code_required property of the channel resource is then set to true, and the channel begins to require the specified access code to a user who attempts to join. | -**operatorIds** | **[String]** | Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. | - - diff --git a/docs/GcViewBanByIdResponse.md b/docs/GcViewBanByIdResponse.md deleted file mode 100644 index ab0e705..0000000 --- a/docs/GcViewBanByIdResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.GcViewBanByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/GcViewMuteByIdResponse.md b/docs/GcViewMuteByIdResponse.md deleted file mode 100644 index aef3ba8..0000000 --- a/docs/GcViewMuteByIdResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GcViewMuteByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isMuted** | **Boolean** | | [optional] -**remainingDuration** | **Number** | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/GcViewNumberOfEachMembersUnreadMessagesResponse.md b/docs/GcViewNumberOfEachMembersUnreadMessagesResponse.md deleted file mode 100644 index b82c796..0000000 --- a/docs/GcViewNumberOfEachMembersUnreadMessagesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.GcViewNumberOfEachMembersUnreadMessagesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unread** | **{String: Number}** | | [optional] - - diff --git a/docs/GenerateSecondaryApiTokenData.md b/docs/GenerateSecondaryApiTokenData.md deleted file mode 100644 index 16ae86c..0000000 --- a/docs/GenerateSecondaryApiTokenData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.GenerateSecondaryApiTokenData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**HTTP_API_TOKEN** | **String** | Specifies the master API token of the application. | - - diff --git a/docs/GenerateSecondaryApiTokenResponse.md b/docs/GenerateSecondaryApiTokenResponse.md deleted file mode 100644 index 96b02e9..0000000 --- a/docs/GenerateSecondaryApiTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/GetAGroupChannelResponse.md b/docs/GetAGroupChannelResponse.md new file mode 100644 index 0000000..80ab871 --- /dev/null +++ b/docs/GetAGroupChannelResponse.md @@ -0,0 +1,108 @@ +# SendbirdPlatformSdk.GetAGroupChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | [**SendbirdGroupChannelDetailChannel**](SendbirdGroupChannelDetailChannel.md) | | [optional] +**channelUrl** | **String** | | +**countPreference** | **String** | | [optional] +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**createdBy** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**deliveryReceipt** | **Object** | | [optional] +**disappearingMessage** | [**SendbirdDisappearingMessage**](SendbirdDisappearingMessage.md) | | [optional] +**freeze** | **Boolean** | | [optional] +**hasAiBot** | **Boolean** | | [optional] +**hasBot** | **Boolean** | | [optional] +**hiddenState** | **String** | | [optional] +**ignoreProfanityFilter** | **Boolean** | | [optional] +**invitedAt** | **Number** | | [optional] +**inviter** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**isAccessCodeRequired** | **Boolean** | | [optional] +**isBroadcast** | **Boolean** | | [optional] +**isDiscoverable** | **Boolean** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**isExclusive** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] +**isMuted** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isPushEnabled** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**joinedMemberCount** | **Number** | | [optional] +**joinedTs** | **Number** | | [optional] +**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**memberCount** | **Number** | | [optional] +**memberState** | **String** | | [optional] +**members** | [**[SendbirdMember]**](SendbirdMember.md) | | [optional] +**messageSurvivalSeconds** | **Number** | | [optional] +**metadata** | **Object** | | [optional] +**myRole** | **String** | | [optional] +**name** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**readReceipt** | **{String: Number}** | | [optional] +**smsFallback** | [**SendbirdSmsFallback**](SendbirdSmsFallback.md) | | [optional] +**tsMessageOffset** | **Number** | | [optional] +**unreadMentionCount** | **Number** | | [optional] +**unreadMessageCount** | **Number** | | [optional] +**userLastRead** | **Number** | | [optional] + + + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + + +## Enum: HiddenStateEnum + + +* `hidden_allow_auto_unhide` (value: `"hidden_allow_auto_unhide"`) + +* `hidden_prevent_auto_unhide` (value: `"hidden_prevent_auto_unhide"`) + +* `unhidden` (value: `"unhidden"`) + + + + + +## Enum: MemberStateEnum + + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + +* `none` (value: `"none"`) + + + + + +## Enum: MyRoleEnum + + +* `empty` (value: `""`) + +* `none` (value: `"none"`) + +* `operator` (value: `"operator"`) + + + + diff --git a/docs/GetAGroupChannelResponseAllOf.md b/docs/GetAGroupChannelResponseAllOf.md new file mode 100644 index 0000000..45f5e1a --- /dev/null +++ b/docs/GetAGroupChannelResponseAllOf.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.GetAGroupChannelResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | [**SendbirdGroupChannelDetailChannel**](SendbirdGroupChannelDetailChannel.md) | | [optional] + + diff --git a/docs/GetChannelInvitationPreferenceResponse.md b/docs/GetChannelInvitationPreferenceResponse.md new file mode 100644 index 0000000..674c60b --- /dev/null +++ b/docs/GetChannelInvitationPreferenceResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.GetChannelInvitationPreferenceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoAccept** | **Boolean** | | [optional] + + diff --git a/docs/GetDetailedOpenRateOfAnnouncementByIdResponse.md b/docs/GetDetailedOpenRateOfAnnouncementByIdResponse.md deleted file mode 100644 index c57dcb4..0000000 --- a/docs/GetDetailedOpenRateOfAnnouncementByIdResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**openCounts** | **[Number]** | | [optional] -**openRates** | **[Number]** | | [optional] -**cumulativeOpenCounts** | **[Number]** | | [optional] -**cumulativeOpenRates** | **[Number]** | | [optional] - - diff --git a/docs/GetDetailedOpenRateOfAnnouncementGroupResponse.md b/docs/GetDetailedOpenRateOfAnnouncementGroupResponse.md deleted file mode 100644 index ea76cbc..0000000 --- a/docs/GetDetailedOpenRateOfAnnouncementGroupResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**announcementGroup** | **String** | | [optional] -**openCounts** | **[Number]** | | [optional] -**openRates** | **[Number]** | | [optional] -**cumulativeOpenCounts** | **[Number]** | | [optional] -**cumulativeOpenRates** | **[Number]** | | [optional] - - diff --git a/docs/GetDetailedOpenStatusOfAnnouncementByIdResponse.md b/docs/GetDetailedOpenStatusOfAnnouncementByIdResponse.md deleted file mode 100644 index e6d21dc..0000000 --- a/docs/GetDetailedOpenStatusOfAnnouncementByIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**openStatus** | [**[GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner]**](GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.md b/docs/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.md deleted file mode 100644 index b623310..0000000 --- a/docs/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**hasOpened** | **Boolean** | | [optional] -**sentAt** | **Number** | | [optional] -**openAt** | **Number** | | [optional] - - diff --git a/docs/GetStatisticsDailyResponse.md b/docs/GetStatisticsDailyResponse.md deleted file mode 100644 index cfe308a..0000000 --- a/docs/GetStatisticsDailyResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GetStatisticsDailyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statistics** | [**[GetStatisticsDailyResponseStatisticsInner]**](GetStatisticsDailyResponseStatisticsInner.md) | | [optional] -**week** | **Number** | | [optional] - - diff --git a/docs/GetStatisticsDailyResponseStatisticsInner.md b/docs/GetStatisticsDailyResponseStatisticsInner.md deleted file mode 100644 index 281741c..0000000 --- a/docs/GetStatisticsDailyResponseStatisticsInner.md +++ /dev/null @@ -1,19 +0,0 @@ -# SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dateRange** | **String** | | [optional] -**canceledAnnouncementCount** | **Number** | | [optional] -**stoppedAnnouncementCount** | **Number** | | [optional] -**completedAnnouncementCount** | **Number** | | [optional] -**totalAnnouncementCount** | **Number** | | [optional] -**targetChannelCount** | **Number** | | [optional] -**targetUserCount** | **Number** | | [optional] -**sentChannelCount** | **Number** | | [optional] -**sentUserCount** | **Number** | | [optional] -**openRate** | **Number** | | [optional] -**openCount** | **Number** | | [optional] - - diff --git a/docs/GetStatisticsMonthlyResponse.md b/docs/GetStatisticsMonthlyResponse.md deleted file mode 100644 index dc3f636..0000000 --- a/docs/GetStatisticsMonthlyResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GetStatisticsMonthlyResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statistics** | [**[GetStatisticsDailyResponseStatisticsInner]**](GetStatisticsDailyResponseStatisticsInner.md) | | [optional] -**week** | **Number** | | [optional] - - diff --git a/docs/GetStatisticsResponse.md b/docs/GetStatisticsResponse.md deleted file mode 100644 index 0cf4057..0000000 --- a/docs/GetStatisticsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.GetStatisticsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**statistics** | [**[GetStatisticsDailyResponseStatisticsInner]**](GetStatisticsDailyResponseStatisticsInner.md) | | [optional] -**week** | **Number** | | [optional] - - diff --git a/docs/GetTotalNumberOfMessagesInAChannelResponse.md b/docs/GetTotalNumberOfMessagesInAChannelResponse.md new file mode 100644 index 0000000..8b66e15 --- /dev/null +++ b/docs/GetTotalNumberOfMessagesInAChannelResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.GetTotalNumberOfMessagesInAChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **Number** | | [optional] + + diff --git a/docs/GroupChannelApi.md b/docs/GroupChannelApi.md index ae5ca86..0c88f62 100644 --- a/docs/GroupChannelApi.md +++ b/docs/GroupChannelApi.md @@ -4,34 +4,35 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**gcAcceptInvitation**](GroupChannelApi.md#gcAcceptInvitation) | **PUT** /v3/group_channels/{channel_url}/accept | Accept an invitation -[**gcCancelTheRegistrationOfOperators**](GroupChannelApi.md#gcCancelTheRegistrationOfOperators) | **DELETE** /v3/group_channels/{channel_url}/operators | Cancel the registration of operators -[**gcCheckIfMemberById**](GroupChannelApi.md#gcCheckIfMemberById) | **GET** /v3/group_channels/{channel_url}/members/{user_id} | Check if member -[**gcCreateChannel**](GroupChannelApi.md#gcCreateChannel) | **POST** /v3/group_channels | Create a channel -[**gcDeclineInvitation**](GroupChannelApi.md#gcDeclineInvitation) | **PUT** /v3/group_channels/{channel_url}/decline | Decline an invitation -[**gcDeleteChannelByUrl**](GroupChannelApi.md#gcDeleteChannelByUrl) | **DELETE** /v3/group_channels/{channel_url} | Delete a channel -[**gcHideOrArchiveChannel**](GroupChannelApi.md#gcHideOrArchiveChannel) | **PUT** /v3/group_channels/{channel_url}/hide | Hide or archive a channel -[**gcInviteAsMembers**](GroupChannelApi.md#gcInviteAsMembers) | **POST** /v3/group_channels/{channel_url}/invite | Invite as members -[**gcJoinChannel**](GroupChannelApi.md#gcJoinChannel) | **PUT** /v3/group_channels/{channel_url}/join | Join a channel -[**gcLeaveChannel**](GroupChannelApi.md#gcLeaveChannel) | **PUT** /v3/group_channels/{channel_url}/leave | Leave a channel -[**gcListChannels**](GroupChannelApi.md#gcListChannels) | **GET** /v3/group_channels | List channels -[**gcListMembers**](GroupChannelApi.md#gcListMembers) | **GET** /v3/group_channels/{channel_url}/members | List members -[**gcListOperators**](GroupChannelApi.md#gcListOperators) | **GET** /v3/group_channels/{channel_url}/operators | List operators -[**gcRegisterOperators**](GroupChannelApi.md#gcRegisterOperators) | **POST** /v3/group_channels/{channel_url}/operators | Register operators -[**gcResetChatHistory**](GroupChannelApi.md#gcResetChatHistory) | **PUT** /v3/group_channels/{channel_url}/reset_user_history | Reset chat history -[**gcUnhideOrUnarchiveChannel**](GroupChannelApi.md#gcUnhideOrUnarchiveChannel) | **DELETE** /v3/group_channels/{channel_url}/hide | Unhide or unarchive a channel -[**gcUpdateChannelByUrl**](GroupChannelApi.md#gcUpdateChannelByUrl) | **PUT** /v3/group_channels/{channel_url} | Update a channel -[**gcViewChannelByUrl**](GroupChannelApi.md#gcViewChannelByUrl) | **GET** /v3/group_channels/{channel_url} | View a channel - - - -## gcAcceptInvitation - -> SendBirdGroupChannel gcAcceptInvitation(apiToken, channelUrl, opts) +[**acceptAnInvitation**](GroupChannelApi.md#acceptAnInvitation) | **PUT** /v3/group_channels/{channel_url}/accept | Accept an invitation +[**cancelTheRegistrationOfOperators**](GroupChannelApi.md#cancelTheRegistrationOfOperators) | **DELETE** /v3/group_channels/{channel_url}/operators | Cancel the registration of operators +[**checkIfMember**](GroupChannelApi.md#checkIfMember) | **GET** /v3/group_channels/{channel_url}/members/{user_id} | Check if member +[**createAGroupChannel**](GroupChannelApi.md#createAGroupChannel) | **POST** /v3/group_channels | Create a group channel +[**deleteAGroupChannel**](GroupChannelApi.md#deleteAGroupChannel) | **DELETE** /v3/group_channels/{channel_url} | Delete a group channel +[**getAGroupChannel**](GroupChannelApi.md#getAGroupChannel) | **GET** /v3/group_channels/{channel_url} | Get a group channel +[**hideAChannel**](GroupChannelApi.md#hideAChannel) | **PUT** /v3/group_channels/{channel_url}/hide | Hide a channel +[**inviteAsMembers**](GroupChannelApi.md#inviteAsMembers) | **POST** /v3/group_channels/{channel_url}/invite | Invite as members +[**joinAChannel**](GroupChannelApi.md#joinAChannel) | **PUT** /v3/group_channels/{channel_url}/join | Join a channel +[**leaveAChannel**](GroupChannelApi.md#leaveAChannel) | **PUT** /v3/group_channels/{channel_url}/leave | Leave a channel +[**listChannels**](GroupChannelApi.md#listChannels) | **GET** /v3/group_channels | List channels +[**listMembers**](GroupChannelApi.md#listMembers) | **GET** /v3/group_channels/{channel_url}/members | List members +[**listOperators**](GroupChannelApi.md#listOperators) | **GET** /v3/group_channels/{channel_url}/operators | List operators +[**registerOperatorsToAGroupChannel**](GroupChannelApi.md#registerOperatorsToAGroupChannel) | **POST** /v3/group_channels/{channel_url}/operators | Register operators to a group channel +[**resetChatHistory**](GroupChannelApi.md#resetChatHistory) | **PUT** /v3/group_channels/{channel_url}/reset_user_history | Reset chat history +[**startTypingIndicators**](GroupChannelApi.md#startTypingIndicators) | **POST** /v3/group_channels/{channel_url}/typing | Start typing indicators +[**stopTypingIndicators**](GroupChannelApi.md#stopTypingIndicators) | **DELETE** /v3/group_channels/{channel_url}/typing | Stop typing indicators +[**unhideAChannel**](GroupChannelApi.md#unhideAChannel) | **DELETE** /v3/group_channels/{channel_url}/hide | Unhide a channel +[**updateAGroupChannel**](GroupChannelApi.md#updateAGroupChannel) | **PUT** /v3/group_channels/{channel_url} | Update a group channel + + + +## acceptAnInvitation + +> SendbirdGroupChannelDetail acceptAnInvitation(channelUrl, opts) Accept an invitation -## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- +## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation) ### Example @@ -39,12 +40,12 @@ Accept an invitation import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcAcceptInvitationData': new SendbirdPlatformSdk.GcAcceptInvitationData() // GcAcceptInvitationData | + 'apiToken': {{API_TOKEN}}, // String | + 'acceptAnInvitationRequest': new SendbirdPlatformSdk.AcceptAnInvitationRequest() // AcceptAnInvitationRequest | }; -apiInstance.gcAcceptInvitation(apiToken, channelUrl, opts).then((data) => { +apiInstance.acceptAnInvitation(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -57,13 +58,13 @@ apiInstance.gcAcceptInvitation(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcAcceptInvitationData** | [**GcAcceptInvitationData**](GcAcceptInvitationData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **acceptAnInvitationRequest** | [**AcceptAnInvitationRequest**](AcceptAnInvitationRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -75,13 +76,13 @@ No authorization required - **Accept**: application/json -## gcCancelTheRegistrationOfOperators +## cancelTheRegistrationOfOperators -> OcDeleteChannelByUrl200Response gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) +> Object cancelTheRegistrationOfOperators(channelUrl, operatorIds, opts) Cancel the registration of operators -## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. +## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. ### Example @@ -89,13 +90,13 @@ Cancel the registration of operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let operatorIds = ["null"]; // [String] | +let channelUrl = "channelUrl_example"; // String | (Required) +let operatorIds = "operatorIds_example"; // String | Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. let opts = { - 'deleteAll': true // Boolean | + 'deleteAll': true, // Boolean | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts).then((data) => { +apiInstance.cancelTheRegistrationOfOperators(channelUrl, operatorIds, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -108,14 +109,14 @@ apiInstance.gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **operatorIds** | [**[String]**](String.md)| | + **channelUrl** | **String**| (Required) | + **operatorIds** | **String**| Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. | **deleteAll** | **Boolean**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -127,13 +128,13 @@ No authorization required - **Accept**: application/json -## gcCheckIfMemberById +## checkIfMember -> GcCheckIfMemberByIdResponse gcCheckIfMemberById(apiToken, channelUrl, userId) +> CheckIfMemberResponse checkIfMember(channelUrl, userId, opts) Check if member -## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- +## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member) ### Example @@ -141,10 +142,12 @@ Check if member import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let userId = "userId_example"; // String | -apiInstance.gcCheckIfMemberById(apiToken, channelUrl, userId).then((data) => { +let channelUrl = "channelUrl_example"; // String | (Required) +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.checkIfMember(channelUrl, userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -157,13 +160,13 @@ apiInstance.gcCheckIfMemberById(apiToken, channelUrl, userId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **userId** | **String**| | + **channelUrl** | **String**| (Required) | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**GcCheckIfMemberByIdResponse**](GcCheckIfMemberByIdResponse.md) +[**CheckIfMemberResponse**](CheckIfMemberResponse.md) ### Authorization @@ -175,13 +178,13 @@ No authorization required - **Accept**: application/json -## gcCreateChannel +## createAGroupChannel -> SendBirdGroupChannel gcCreateChannel(apiToken, opts) +> SendbirdGroupChannelDetail createAGroupChannel(opts) -Create a channel +Create a group channel -## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel +## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel ### Example @@ -189,11 +192,11 @@ Create a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { - 'gcCreateChannelData': new SendbirdPlatformSdk.GcCreateChannelData() // GcCreateChannelData | + 'apiToken': {{API_TOKEN}}, // String | + 'createAGroupChannelRequest': new SendbirdPlatformSdk.CreateAGroupChannelRequest() // CreateAGroupChannelRequest | }; -apiInstance.gcCreateChannel(apiToken, opts).then((data) => { +apiInstance.createAGroupChannel(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -206,12 +209,12 @@ apiInstance.gcCreateChannel(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **gcCreateChannelData** | [**GcCreateChannelData**](GcCreateChannelData.md)| | [optional] + **apiToken** | **String**| | [optional] + **createAGroupChannelRequest** | [**CreateAGroupChannelRequest**](CreateAGroupChannelRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -223,13 +226,13 @@ No authorization required - **Accept**: application/json -## gcDeclineInvitation +## deleteAGroupChannel -> OcDeleteChannelByUrl200Response gcDeclineInvitation(apiToken, channelUrl, opts) +> Object deleteAGroupChannel(channelUrl, opts) -Decline an invitation +Delete a group channel -## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- +## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel) ### Example @@ -237,12 +240,11 @@ Decline an invitation import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | let channelUrl = "channelUrl_example"; // String | let opts = { - 'gcDeclineInvitationData': new SendbirdPlatformSdk.GcDeclineInvitationData() // GcDeclineInvitationData | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcDeclineInvitation(apiToken, channelUrl, opts).then((data) => { +apiInstance.deleteAGroupChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -255,13 +257,12 @@ apiInstance.gcDeclineInvitation(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **channelUrl** | **String**| | - **gcDeclineInvitationData** | [**GcDeclineInvitationData**](GcDeclineInvitationData.md)| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -269,17 +270,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## gcDeleteChannelByUrl +## getAGroupChannel -> OcDeleteChannelByUrl200Response gcDeleteChannelByUrl(apiToken, channelUrl) +> GetAGroupChannelResponse getAGroupChannel(channelUrl, opts) -Delete a channel +Get a group channel -## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- +## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. ### Example @@ -287,9 +288,16 @@ Delete a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | let channelUrl = "channelUrl_example"; // String | -apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl).then((data) => { +let opts = { + 'showDeliveryReceipt': true, // Boolean | + 'showReadReceipt': true, // Boolean | + 'showMember': true, // Boolean | + 'memberActiveMode': "memberActiveMode_example", // String | Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) + 'userId': "userId_example", // String | + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.getAGroupChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -302,12 +310,17 @@ apiInstance.gcDeleteChannelByUrl(apiToken, channelUrl).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **channelUrl** | **String**| | + **showDeliveryReceipt** | **Boolean**| | [optional] + **showReadReceipt** | **Boolean**| | [optional] + **showMember** | **Boolean**| | [optional] + **memberActiveMode** | **String**| Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) | [optional] + **userId** | **String**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +[**GetAGroupChannelResponse**](GetAGroupChannelResponse.md) ### Authorization @@ -319,13 +332,13 @@ No authorization required - **Accept**: application/json -## gcHideOrArchiveChannel +## hideAChannel -> OcDeleteChannelByUrl200Response gcHideOrArchiveChannel(apiToken, channelUrl, opts) +> Object hideAChannel(channelUrl, opts) -Hide or archive a channel +Hide a channel -## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- +## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel) ### Example @@ -333,12 +346,12 @@ Hide or archive a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcHideOrArchiveChannelData': new SendbirdPlatformSdk.GcHideOrArchiveChannelData() // GcHideOrArchiveChannelData | + 'apiToken': {{API_TOKEN}}, // String | + 'hideAChannelRequest': new SendbirdPlatformSdk.HideAChannelRequest() // HideAChannelRequest | }; -apiInstance.gcHideOrArchiveChannel(apiToken, channelUrl, opts).then((data) => { +apiInstance.hideAChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -351,13 +364,13 @@ apiInstance.gcHideOrArchiveChannel(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcHideOrArchiveChannelData** | [**GcHideOrArchiveChannelData**](GcHideOrArchiveChannelData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **hideAChannelRequest** | [**HideAChannelRequest**](HideAChannelRequest.md)| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -369,13 +382,13 @@ No authorization required - **Accept**: application/json -## gcInviteAsMembers +## inviteAsMembers -> SendBirdGroupChannel gcInviteAsMembers(apiToken, channelUrl, opts) +> InviteAsMembersResponse inviteAsMembers(channelUrl, opts) Invite as members -## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- +## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members) ### Example @@ -383,12 +396,12 @@ Invite as members import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcInviteAsMembersData': new SendbirdPlatformSdk.GcInviteAsMembersData() // GcInviteAsMembersData | + 'apiToken': {{API_TOKEN}}, // String | + 'inviteAsMembersRequest': new SendbirdPlatformSdk.InviteAsMembersRequest() // InviteAsMembersRequest | }; -apiInstance.gcInviteAsMembers(apiToken, channelUrl, opts).then((data) => { +apiInstance.inviteAsMembers(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -401,13 +414,13 @@ apiInstance.gcInviteAsMembers(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcInviteAsMembersData** | [**GcInviteAsMembersData**](GcInviteAsMembersData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **inviteAsMembersRequest** | [**InviteAsMembersRequest**](InviteAsMembersRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +[**InviteAsMembersResponse**](InviteAsMembersResponse.md) ### Authorization @@ -419,13 +432,13 @@ No authorization required - **Accept**: application/json -## gcJoinChannel +## joinAChannel -> gcJoinChannel(apiToken, channelUrl, opts) +> SendbirdGroupChannelDetail joinAChannel(channelUrl, opts) Join a channel -## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- +## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel) ### Example @@ -433,13 +446,13 @@ Join a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcJoinChannelData': new SendbirdPlatformSdk.GcJoinChannelData() // GcJoinChannelData | + 'apiToken': {{API_TOKEN}}, // String | + 'joinAChannelRequest': new SendbirdPlatformSdk.JoinAChannelRequest() // JoinAChannelRequest | }; -apiInstance.gcJoinChannel(apiToken, channelUrl, opts).then(() => { - console.log('API called successfully.'); +apiInstance.joinAChannel(channelUrl, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -451,13 +464,13 @@ apiInstance.gcJoinChannel(apiToken, channelUrl, opts).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcJoinChannelData** | [**GcJoinChannelData**](GcJoinChannelData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **joinAChannelRequest** | [**JoinAChannelRequest**](JoinAChannelRequest.md)| | [optional] ### Return type -null (empty response body) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -466,12 +479,12 @@ No authorization required ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json -## gcLeaveChannel +## leaveAChannel -> OcDeleteChannelByUrl200Response gcLeaveChannel(apiToken, channelUrl, opts) +> Object leaveAChannel(channelUrl, opts) Leave a channel @@ -483,12 +496,12 @@ Leave a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | let channelUrl = "channelUrl_example"; // String | let opts = { - 'gcLeaveChannelData': new SendbirdPlatformSdk.GcLeaveChannelData() // GcLeaveChannelData | + 'apiToken': {{API_TOKEN}}, // String | + 'leaveAChannelRequest': new SendbirdPlatformSdk.LeaveAChannelRequest() // LeaveAChannelRequest | }; -apiInstance.gcLeaveChannel(apiToken, channelUrl, opts).then((data) => { +apiInstance.leaveAChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -501,13 +514,13 @@ apiInstance.gcLeaveChannel(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **channelUrl** | **String**| | - **gcLeaveChannelData** | [**GcLeaveChannelData**](GcLeaveChannelData.md)| | [optional] + **apiToken** | **String**| | [optional] + **leaveAChannelRequest** | [**LeaveAChannelRequest**](LeaveAChannelRequest.md)| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -519,13 +532,13 @@ No authorization required - **Accept**: application/json -## gcListChannels +## listChannels -> GcListChannelsResponse gcListChannels(apiToken, opts) +> GroupChatListChannelsResponse listChannels(apiToken, opts) List channels -## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- +## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels ### Example @@ -535,50 +548,50 @@ import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); let apiToken = {{API_TOKEN}}; // String | let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'distinctMode': "distinctMode_example", // String | - 'publicMode': "publicMode_example", // String | - 'superMode': "superMode_example", // String | - 'createdAfter': 56, // Number | - 'createdBefore': 56, // Number | - 'showEmpty': true, // Boolean | - 'showMember': true, // Boolean | - 'showDeliveryReceipt': true, // Boolean | - 'showReadReceipt': true, // Boolean | - 'showMetadata': true, // Boolean | - 'showFrozen': true, // Boolean | + 'token': "token_example", // String | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + 'limit': 10, // Number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + 'distinctMode': all, // String | + 'publicMode': all, // String | + 'superMode': all, // String | + 'createdAfter': 1234567890123, // Number | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + 'createdBefore': 1234567890123, // Number | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. + 'showEmpty': false, // Boolean | + 'showMember': false, // Boolean | + 'showDeliveryReceipt': false, // Boolean | + 'showReadReceipt': false, // Boolean | + 'showMetadata': false, // Boolean | + 'showFrozen': false, // Boolean | 'order': "order_example", // String | - 'metadataOrderKey': "metadataOrderKey_example", // String | - 'customTypes': "customTypes_example", // String | - 'customTypeStartswith': "customTypeStartswith_example", // String | - 'channelUrls': "channelUrls_example", // String | - 'name': "name_example", // String | - 'nameContains': "nameContains_example", // String | - 'nameStartswith': "nameStartswith_example", // String | - 'membersExactlyIn': "membersExactlyIn_example", // String | - 'membersIncludeIn': "membersIncludeIn_example", // String | - 'queryType': "queryType_example", // String | - 'membersNickname': "membersNickname_example", // String | - 'membersNicknameContains': "membersNicknameContains_example", // String | - 'metadataKey': "metadataKey_example", // String | - 'metadataValues': "metadataValues_example", // String | - 'metadataValueStartswith': "metadataValueStartswith_example", // String | - 'metacounterKey': "metacounterKey_example", // String | - 'metacounterValues': "metacounterValues_example", // String | - 'metacounterValueGt': "metacounterValueGt_example", // String | - 'metacounterValueGte': "metacounterValueGte_example", // String | - 'metacounterValueLt': "metacounterValueLt_example", // String | - 'metacounterValueLte': "metacounterValueLte_example", // String | - 'includeSortedMetaarrayInLastMessage': true, // Boolean | - 'customType': "customType_example", // String | - 'readReceipt': true, // Boolean | - 'member': true, // Boolean | - 'isDistinct': true, // Boolean | - 'membersIn': "membersIn_example", // String | - 'userId': "userId_example" // String | + 'metadataOrderKey': "metadataOrderKey_example", // String | Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + 'customTypes': "customTypes_example", // String | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + 'customTypeStartswith': "customTypeStartswith_example", // String | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + 'channelUrls': "channelUrls_example", // String | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + 'name': "name_example", // String | Specifies one or more group channel names. + 'nameContains': "nameContains_example", // String | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + 'nameStartswith': "nameStartswith_example", // String | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + 'membersExactlyIn': "membersExactlyIn_example", // String | Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + 'membersIncludeIn': "membersIncludeIn_example", // String | Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + 'queryType': "queryType_example", // String | Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + 'membersNickname': "membersNickname_example", // String | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + 'membersNicknameContains': "membersNicknameContains_example", // String | Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + 'metadataKey': "metadataKey_example", // String | Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + 'metadataValues': "metadataValues_example", // String | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + 'metadataValueStartswith': "metadataValueStartswith_example", // String | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + 'metacounterKey': "metacounterKey_example", // String | Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + 'metacounterValues': "metacounterValues_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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + 'metacounterValueGt': "metacounterValueGt_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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + '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. + '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. + '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. + 'includeSortedMetaarrayInLastMessage': false, // Boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + '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. + 'readReceipt': false, // Boolean | (Deprecated) Superseded by show_read_receipt. + 'member': true, // Boolean | (Deprecated) Superseded by show_member. + 'isDistinct': true, // Boolean | (Deprecated) Superseded by distinct_mode. + 'membersIn': "membersIn_example", // String | (Deprecated) Superseded by members_exactly_in. + '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. }; -apiInstance.gcListChannels(apiToken, opts).then((data) => { +apiInstance.listChannels(apiToken, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -592,13 +605,13 @@ apiInstance.gcListChannels(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] + **token** | **String**| Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. | [optional] + **limit** | **Number**| Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | [optional] **distinctMode** | **String**| | [optional] **publicMode** | **String**| | [optional] **superMode** | **String**| | [optional] - **createdAfter** | **Number**| | [optional] - **createdBefore** | **Number**| | [optional] + **createdAfter** | **Number**| Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. | [optional] + **createdBefore** | **Number**| Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. | [optional] **showEmpty** | **Boolean**| | [optional] **showMember** | **Boolean**| | [optional] **showDeliveryReceipt** | **Boolean**| | [optional] @@ -606,38 +619,38 @@ Name | Type | Description | Notes **showMetadata** | **Boolean**| | [optional] **showFrozen** | **Boolean**| | [optional] **order** | **String**| | [optional] - **metadataOrderKey** | **String**| | [optional] - **customTypes** | **String**| | [optional] - **customTypeStartswith** | **String**| | [optional] - **channelUrls** | **String**| | [optional] - **name** | **String**| | [optional] - **nameContains** | **String**| | [optional] - **nameStartswith** | **String**| | [optional] - **membersExactlyIn** | **String**| | [optional] - **membersIncludeIn** | **String**| | [optional] - **queryType** | **String**| | [optional] - **membersNickname** | **String**| | [optional] - **membersNicknameContains** | **String**| | [optional] - **metadataKey** | **String**| | [optional] - **metadataValues** | **String**| | [optional] - **metadataValueStartswith** | **String**| | [optional] - **metacounterKey** | **String**| | [optional] - **metacounterValues** | **String**| | [optional] - **metacounterValueGt** | **String**| | [optional] - **metacounterValueGte** | **String**| | [optional] - **metacounterValueLt** | **String**| | [optional] - **metacounterValueLte** | **String**| | [optional] - **includeSortedMetaarrayInLastMessage** | **Boolean**| | [optional] - **customType** | **String**| | [optional] - **readReceipt** | **Boolean**| | [optional] - **member** | **Boolean**| | [optional] - **isDistinct** | **Boolean**| | [optional] - **membersIn** | **String**| | [optional] - **userId** | **String**| | [optional] + **metadataOrderKey** | **String**| Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. | [optional] + **customTypes** | **String**| Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. | [optional] + **customTypeStartswith** | **String**| Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. | [optional] + **channelUrls** | **String**| Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. | [optional] + **name** | **String**| Specifies one or more group channel names. | [optional] + **nameContains** | **String**| Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | [optional] + **nameStartswith** | **String**| Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | [optional] + **membersExactlyIn** | **String**| Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | [optional] + **membersIncludeIn** | **String**| Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | [optional] + **queryType** | **String**| Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) | [optional] + **membersNickname** | **String**| Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. | [optional] + **membersNicknameContains** | **String**| Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. | [optional] + **metadataKey** | **String**| Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. | [optional] + **metadataValues** | **String**| Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. | [optional] + **metadataValueStartswith** | **String**| Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. | [optional] + **metacounterKey** | **String**| Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. | [optional] + **metacounterValues** | **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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. | [optional] + **metacounterValueGt** | **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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | [optional] + **metacounterValueGte** | **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. | [optional] + **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] + **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] + **includeSortedMetaarrayInLastMessage** | **Boolean**| Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. | [optional] + **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] + **readReceipt** | **Boolean**| (Deprecated) Superseded by show_read_receipt. | [optional] + **member** | **Boolean**| (Deprecated) Superseded by show_member. | [optional] + **isDistinct** | **Boolean**| (Deprecated) Superseded by distinct_mode. | [optional] + **membersIn** | **String**| (Deprecated) Superseded by members_exactly_in. | [optional] + **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] ### Return type -[**GcListChannelsResponse**](GcListChannelsResponse.md) +[**GroupChatListChannelsResponse**](GroupChatListChannelsResponse.md) ### Authorization @@ -649,13 +662,13 @@ No authorization required - **Accept**: application/json -## gcListMembers +## listMembers -> GcListMembersResponse gcListMembers(apiToken, channelUrl, opts) +> GroupChannelListMembersResponse listMembers(channelUrl, opts) List members -## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. +## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. ### Example @@ -663,20 +676,24 @@ List members import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { 'token': "token_example", // String | - 'limit': 56, // Number | + 'limit': 56, // Number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + 'userId': "userId_example", // String | Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. 'showDeliveryReceipt': true, // Boolean | 'showReadReceipt': true, // Boolean | - 'order': "order_example", // String | - 'operatorFilter': "operatorFilter_example", // String | - 'memberStateFilter': "memberStateFilter_example", // String | - 'mutedMemberFilter': "mutedMemberFilter_example", // String | - 'nicknameStartswith': "nicknameStartswith_example" // String | + 'showMemberIsMuted': true, // Boolean | + 'order': "order_example", // String | Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. + 'operatorFilter': "operatorFilter_example", // String | Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. + 'memberStateFilter': "memberStateFilter_example", // String | Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) + 'mutedMemberFilter': "mutedMemberFilter_example", // String | Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) + 'memberActiveModeFilter': "memberActiveModeFilter_example", // String | Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) + 'nicknameStartswith': "nicknameStartswith_example", // String | Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. + 'includePushPreference': true, // Boolean | Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcListMembers(apiToken, channelUrl, opts).then((data) => { +apiInstance.listMembers(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -689,21 +706,25 @@ apiInstance.gcListMembers(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **channelUrl** | **String**| (Required) | **token** | **String**| | [optional] - **limit** | **Number**| | [optional] + **limit** | **Number**| Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | [optional] + **userId** | **String**| Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. | [optional] **showDeliveryReceipt** | **Boolean**| | [optional] **showReadReceipt** | **Boolean**| | [optional] - **order** | **String**| | [optional] - **operatorFilter** | **String**| | [optional] - **memberStateFilter** | **String**| | [optional] - **mutedMemberFilter** | **String**| | [optional] - **nicknameStartswith** | **String**| | [optional] + **showMemberIsMuted** | **Boolean**| | [optional] + **order** | **String**| Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. | [optional] + **operatorFilter** | **String**| Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. | [optional] + **memberStateFilter** | **String**| Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) | [optional] + **mutedMemberFilter** | **String**| Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) | [optional] + **memberActiveModeFilter** | **String**| Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) | [optional] + **nicknameStartswith** | **String**| Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. | [optional] + **includePushPreference** | **Boolean**| Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**GcListMembersResponse**](GcListMembersResponse.md) +[**GroupChannelListMembersResponse**](GroupChannelListMembersResponse.md) ### Authorization @@ -715,13 +736,13 @@ No authorization required - **Accept**: application/json -## gcListOperators +## listOperators -> GcListOperatorsResponse gcListOperators(apiToken, channelUrl, opts) +> ListOperatorsResponse listOperators(channelUrl, opts) List operators -## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. +## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. ### Example @@ -729,13 +750,13 @@ List operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { 'token': "token_example", // String | - 'limit': 56 // Number | + 'limit': 56, // Number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcListOperators(apiToken, channelUrl, opts).then((data) => { +apiInstance.listOperators(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -748,14 +769,14 @@ apiInstance.gcListOperators(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **channelUrl** | **String**| (Required) | **token** | **String**| | [optional] - **limit** | **Number**| | [optional] + **limit** | **Number**| Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**GcListOperatorsResponse**](GcListOperatorsResponse.md) +[**ListOperatorsResponse**](ListOperatorsResponse.md) ### Authorization @@ -767,13 +788,13 @@ No authorization required - **Accept**: application/json -## gcRegisterOperators +## registerOperatorsToAGroupChannel -> GcRegisterOperatorsResponse gcRegisterOperators(apiToken, channelUrl, opts) +> Object registerOperatorsToAGroupChannel(channelUrl, opts) -Register operators +Register operators to a group channel -## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- +## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel ### Example @@ -781,12 +802,12 @@ Register operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcRegisterOperatorsData': new SendbirdPlatformSdk.GcRegisterOperatorsData() // GcRegisterOperatorsData | + 'apiToken': {{API_TOKEN}}, // String | + 'registerOperatorsToAGroupChannelRequest': new SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest() // RegisterOperatorsToAGroupChannelRequest | }; -apiInstance.gcRegisterOperators(apiToken, channelUrl, opts).then((data) => { +apiInstance.registerOperatorsToAGroupChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -799,13 +820,13 @@ apiInstance.gcRegisterOperators(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcRegisterOperatorsData** | [**GcRegisterOperatorsData**](GcRegisterOperatorsData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **registerOperatorsToAGroupChannelRequest** | [**RegisterOperatorsToAGroupChannelRequest**](RegisterOperatorsToAGroupChannelRequest.md)| | [optional] ### Return type -[**GcRegisterOperatorsResponse**](GcRegisterOperatorsResponse.md) +**Object** ### Authorization @@ -817,13 +838,13 @@ No authorization required - **Accept**: application/json -## gcResetChatHistory +## resetChatHistory -> GcResetChatHistoryResponse gcResetChatHistory(apiToken, channelUrl, opts) +> ResetChatHistoryResponse resetChatHistory(channelUrl, opts) Reset chat history -## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- +## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history ### Example @@ -831,12 +852,12 @@ Reset chat history import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcResetChatHistoryData': new SendbirdPlatformSdk.GcResetChatHistoryData() // GcResetChatHistoryData | + 'apiToken': {{API_TOKEN}}, // String | + 'resetChatHistoryRequest': new SendbirdPlatformSdk.ResetChatHistoryRequest() // ResetChatHistoryRequest | }; -apiInstance.gcResetChatHistory(apiToken, channelUrl, opts).then((data) => { +apiInstance.resetChatHistory(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -849,13 +870,13 @@ apiInstance.gcResetChatHistory(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcResetChatHistoryData** | [**GcResetChatHistoryData**](GcResetChatHistoryData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **resetChatHistoryRequest** | [**ResetChatHistoryRequest**](ResetChatHistoryRequest.md)| | [optional] ### Return type -[**GcResetChatHistoryResponse**](GcResetChatHistoryResponse.md) +[**ResetChatHistoryResponse**](ResetChatHistoryResponse.md) ### Authorization @@ -867,13 +888,13 @@ No authorization required - **Accept**: application/json -## gcUnhideOrUnarchiveChannel +## startTypingIndicators -> OcDeleteChannelByUrl200Response gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, opts) +> Object startTypingIndicators(channelUrl, opts) -Unhide or unarchive a channel +Start typing indicators -## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. +## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. ### Example @@ -881,13 +902,12 @@ Unhide or unarchive a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let userId = "userId_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'shouldUnhideAll': true // Boolean | + 'apiToken': {{API_TOKEN}}, // String | + 'startTypingIndicatorsRequest': new SendbirdPlatformSdk.StartTypingIndicatorsRequest() // StartTypingIndicatorsRequest | }; -apiInstance.gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, opts).then((data) => { +apiInstance.startTypingIndicators(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -900,14 +920,13 @@ apiInstance.gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, opts).then( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **userId** | **String**| | - **shouldUnhideAll** | **Boolean**| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **startTypingIndicatorsRequest** | [**StartTypingIndicatorsRequest**](StartTypingIndicatorsRequest.md)| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -915,17 +934,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## gcUpdateChannelByUrl +## stopTypingIndicators -> SendBirdGroupChannel gcUpdateChannelByUrl(apiToken, channelUrl, opts) +> Object stopTypingIndicators(channelUrl, opts) -Update a channel +Stop typing indicators -## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- +## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. ### Example @@ -933,12 +952,12 @@ Update a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcUpdateChannelByUrlData': new SendbirdPlatformSdk.GcUpdateChannelByUrlData() // GcUpdateChannelByUrlData | + 'apiToken': {{API_TOKEN}}, // String | + 'startTypingIndicatorsRequest': new SendbirdPlatformSdk.StartTypingIndicatorsRequest() // StartTypingIndicatorsRequest | }; -apiInstance.gcUpdateChannelByUrl(apiToken, channelUrl, opts).then((data) => { +apiInstance.stopTypingIndicators(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -951,13 +970,13 @@ apiInstance.gcUpdateChannelByUrl(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcUpdateChannelByUrlData** | [**GcUpdateChannelByUrlData**](GcUpdateChannelByUrlData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **startTypingIndicatorsRequest** | [**StartTypingIndicatorsRequest**](StartTypingIndicatorsRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +**Object** ### Authorization @@ -969,13 +988,65 @@ No authorization required - **Accept**: application/json -## gcViewChannelByUrl +## unhideAChannel -> SendBirdGroupChannel gcViewChannelByUrl(apiToken, channelUrl, opts) +> Object unhideAChannel(channelUrl, userId, opts) -View a channel +Unhide a channel -## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. +## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. + +### Example + +```javascript +import SendbirdPlatformSdk from 'sendbird-platform-sdk'; + +let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); +let channelUrl = "channelUrl_example"; // String | (Required) +let userId = "userId_example"; // String | (Required) +let opts = { + 'shouldUnhideAll': true, // Boolean | + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.unhideAChannel(channelUrl, userId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **channelUrl** | **String**| (Required) | + **userId** | **String**| (Required) | + **shouldUnhideAll** | **Boolean**| | [optional] + **apiToken** | **String**| | [optional] + +### Return type + +**Object** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## updateAGroupChannel + +> SendbirdGroupChannelDetail updateAGroupChannel(channelUrl, opts) + +Update a group channel + +## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel ### Example @@ -983,16 +1054,12 @@ View a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.GroupChannelApi(); -let apiToken = {{API_TOKEN}}; // String | let channelUrl = "channelUrl_example"; // String | let opts = { - 'showDeliveryReceipt': true, // Boolean | - 'showReadReceipt': true, // Boolean | - 'showMember': true, // Boolean | - 'readReceipt': true, // Boolean | - 'member': true // Boolean | + 'apiToken': {{API_TOKEN}}, // String | + 'updateAGroupChannelRequest': new SendbirdPlatformSdk.UpdateAGroupChannelRequest() // UpdateAGroupChannelRequest | }; -apiInstance.gcViewChannelByUrl(apiToken, channelUrl, opts).then((data) => { +apiInstance.updateAGroupChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1005,17 +1072,13 @@ apiInstance.gcViewChannelByUrl(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **channelUrl** | **String**| | - **showDeliveryReceipt** | **Boolean**| | [optional] - **showReadReceipt** | **Boolean**| | [optional] - **showMember** | **Boolean**| | [optional] - **readReceipt** | **Boolean**| | [optional] - **member** | **Boolean**| | [optional] + **apiToken** | **String**| | [optional] + **updateAGroupChannelRequest** | [**UpdateAGroupChannelRequest**](UpdateAGroupChannelRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -1023,6 +1086,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json diff --git a/docs/GroupChannelListMembersResponse.md b/docs/GroupChannelListMembersResponse.md new file mode 100644 index 0000000..27db11f --- /dev/null +++ b/docs/GroupChannelListMembersResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.GroupChannelListMembersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**members** | [**[SendbirdMember]**](SendbirdMember.md) | | +**next** | **String** | | [optional] + + diff --git a/docs/GroupChatListChannelsResponse.md b/docs/GroupChatListChannelsResponse.md new file mode 100644 index 0000000..05bf86e --- /dev/null +++ b/docs/GroupChatListChannelsResponse.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.GroupChatListChannelsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channels** | [**[SendbirdGroupChannel]**](SendbirdGroupChannel.md) | | [optional] +**next** | **String** | | [optional] +**ts** | **Number** | | [optional] + + diff --git a/docs/HideAChannelRequest.md b/docs/HideAChannelRequest.md new file mode 100644 index 0000000..0a8589f --- /dev/null +++ b/docs/HideAChannelRequest.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.HideAChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowAutoUnhide** | **Boolean** | Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)<br /><br /> When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. | [optional] +**hidePreviousMessages** | **Boolean** | When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)<br /><br /> This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. | [optional] +**shouldHideAll** | **Boolean** | Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) | [optional] +**userId** | **String** | Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. | + + diff --git a/docs/InviteAsMembersRequest.md b/docs/InviteAsMembersRequest.md new file mode 100644 index 0000000..0ee9c1a --- /dev/null +++ b/docs/InviteAsMembersRequest.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.InviteAsMembersRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hiddenStatus** | **Object** | Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:<br />- unhidden (default): the channel is included in when retrieving a list of group channels.<br />- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.<br />- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. | [optional] +**invitationStatus** | **Object** | Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) | [optional] +**inviterId** | **String** | | [optional] +**userIds** | **[String]** | | + + diff --git a/docs/InviteAsMembersResponse.md b/docs/InviteAsMembersResponse.md new file mode 100644 index 0000000..499b864 --- /dev/null +++ b/docs/InviteAsMembersResponse.md @@ -0,0 +1,108 @@ +# SendbirdPlatformSdk.InviteAsMembersResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrl** | **String** | | +**countPreference** | **String** | | [optional] +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**createdBy** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**deliveryReceipt** | **Object** | | [optional] +**disappearingMessage** | [**SendbirdDisappearingMessage**](SendbirdDisappearingMessage.md) | | [optional] +**freeze** | **Boolean** | | [optional] +**hasAiBot** | **Boolean** | | [optional] +**hasBot** | **Boolean** | | [optional] +**hiddenState** | **String** | | [optional] +**ignoreProfanityFilter** | **Boolean** | | [optional] +**invitedAt** | **Number** | | [optional] +**inviter** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**isAccessCodeRequired** | **Boolean** | | [optional] +**isBroadcast** | **Boolean** | | [optional] +**isDiscoverable** | **Boolean** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**isExclusive** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] +**isMuted** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isPushEnabled** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**joinedMemberCount** | **Number** | | [optional] +**joinedTs** | **Number** | | [optional] +**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**memberCount** | **Number** | | [optional] +**memberState** | **String** | | [optional] +**members** | [**[SendbirdMember]**](SendbirdMember.md) | | [optional] +**messageSurvivalSeconds** | **Number** | | [optional] +**metadata** | **Object** | | [optional] +**myRole** | **String** | | [optional] +**name** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**readReceipt** | **{String: Number}** | | [optional] +**smsFallback** | [**SendbirdSmsFallback**](SendbirdSmsFallback.md) | | [optional] +**tsMessageOffset** | **Number** | | [optional] +**unreadMentionCount** | **Number** | | [optional] +**unreadMessageCount** | **Number** | | [optional] +**userLastRead** | **Number** | | [optional] +**operators** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] + + + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + + +## Enum: HiddenStateEnum + + +* `hidden_allow_auto_unhide` (value: `"hidden_allow_auto_unhide"`) + +* `hidden_prevent_auto_unhide` (value: `"hidden_prevent_auto_unhide"`) + +* `unhidden` (value: `"unhidden"`) + + + + + +## Enum: MemberStateEnum + + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + +* `none` (value: `"none"`) + + + + + +## Enum: MyRoleEnum + + +* `empty` (value: `""`) + +* `none` (value: `"none"`) + +* `operator` (value: `"operator"`) + + + + diff --git a/docs/InviteAsMembersResponseAllOf.md b/docs/InviteAsMembersResponseAllOf.md new file mode 100644 index 0000000..a322d80 --- /dev/null +++ b/docs/InviteAsMembersResponseAllOf.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.InviteAsMembersResponseAllOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operators** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] + + diff --git a/docs/JoinAChannelRequest.md b/docs/JoinAChannelRequest.md new file mode 100644 index 0000000..02d0fdf --- /dev/null +++ b/docs/JoinAChannelRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.JoinAChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | Specifies the unique ID of the user to join the public group channel. | +**accessCode** | **String** | This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. | [optional] + + diff --git a/docs/JoinChannelsData.md b/docs/JoinChannelsData.md deleted file mode 100644 index 7fa96b9..0000000 --- a/docs/JoinChannelsData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.JoinChannelsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**botUserid** | **String** | Specifies the ID of the bot to join the channels. | -**channelUrls** | **[String]** | Specifies an array of one or more URLs of the channels to join. | - - diff --git a/docs/JoinChannelsRequest.md b/docs/JoinChannelsRequest.md new file mode 100644 index 0000000..4402e4b --- /dev/null +++ b/docs/JoinChannelsRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.JoinChannelsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrls** | **[String]** | | + + diff --git a/docs/JoinChannelsResponse.md b/docs/JoinChannelsResponse.md deleted file mode 100644 index 638f42a..0000000 --- a/docs/JoinChannelsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.JoinChannelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channels** | [**[SendBirdGroupChannel]**](SendBirdGroupChannel.md) | | [optional] - - diff --git a/docs/LeaveAChannelRequest.md b/docs/LeaveAChannelRequest.md new file mode 100644 index 0000000..227a84a --- /dev/null +++ b/docs/LeaveAChannelRequest.md @@ -0,0 +1,29 @@ +# SendbirdPlatformSdk.LeaveAChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userIds** | **[String]** | Specifies an array of one or more IDs of the users to leave the channel. | +**shouldLeaveAll** | **Boolean** | Determines whether to make all members leave the channel. (Default: false) | [optional] +**shouldRemoveOperatorStatus** | **Boolean** | Determines whether to remove a user from the channel's operator list if the user who is leaving the channel is an operator. (Default: false) | [optional] +**reason** | **String** | Specifies the reason for leaving a channel. Acceptable values are admin_removed, admin_deleted, admin_deactivated, left_by_own_choice, and channel_operator_removed. | [optional] + + + +## Enum: ReasonEnum + + +* `LEFT_BY_OWN_CHOICE` (value: `"LEFT_BY_OWN_CHOICE"`) + +* `CHANNEL_OPERATOR_REMOVED` (value: `"CHANNEL_OPERATOR_REMOVED"`) + +* `ADMIN_REMOVED` (value: `"ADMIN_REMOVED"`) + +* `ADMIN_DELETED` (value: `"ADMIN_DELETED"`) + +* `ADMIN_DEACTIVATED` (value: `"ADMIN_DEACTIVATED"`) + + + + diff --git a/docs/LeaveMyGroupChannelsData.md b/docs/LeaveMyGroupChannelsData.md deleted file mode 100644 index 94d456c..0000000 --- a/docs/LeaveMyGroupChannelsData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.LeaveMyGroupChannelsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**customType** | **String** | Specifies the custom channel type to make the user leave joined group channels with the corresponding type. | - - diff --git a/docs/LeaveMyGroupChannelsRequest.md b/docs/LeaveMyGroupChannelsRequest.md new file mode 100644 index 0000000..c0fe583 --- /dev/null +++ b/docs/LeaveMyGroupChannelsRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.LeaveMyGroupChannelsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customType** | **String** | | [optional] + + diff --git a/docs/ListAllEmojisAndEmojiCategoriesResponse.md b/docs/ListAllEmojisAndEmojiCategoriesResponse.md deleted file mode 100644 index b935348..0000000 --- a/docs/ListAllEmojisAndEmojiCategoriesResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojiHash** | **String** | | [optional] -**emojiCategories** | [**[ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner]**](ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.md) | | [optional] - - diff --git a/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.md b/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.md deleted file mode 100644 index 74e89a2..0000000 --- a/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**url** | **String** | | [optional] -**emojis** | [**[ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner]**](ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md) | | [optional] - - diff --git a/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md b/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md deleted file mode 100644 index 22b8e4d..0000000 --- a/docs/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **Number** | | [optional] -**key** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/ListAnnouncementGroupsResponse.md b/docs/ListAnnouncementGroupsResponse.md deleted file mode 100644 index 7e9eec6..0000000 --- a/docs/ListAnnouncementGroupsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListAnnouncementGroupsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**announcementGroups** | **[String]** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListAnnouncementsResponse.md b/docs/ListAnnouncementsResponse.md deleted file mode 100644 index 736ebe1..0000000 --- a/docs/ListAnnouncementsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListAnnouncementsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**announcements** | [**[ListAnnouncementsResponseAnnouncementsInner]**](ListAnnouncementsResponseAnnouncementsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListAnnouncementsResponseAnnouncementsInner.md b/docs/ListAnnouncementsResponseAnnouncementsInner.md deleted file mode 100644 index 5a34f95..0000000 --- a/docs/ListAnnouncementsResponseAnnouncementsInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**announcementGroup** | **String** | | [optional] -**message** | [**ScheduleAnnouncementResponseMessage**](ScheduleAnnouncementResponseMessage.md) | | [optional] -**enablePush** | **Boolean** | | [optional] -**targetAt** | **String** | | [optional] -**targetUserCount** | **Number** | | [optional] -**targetChannelCount** | **Number** | | [optional] -**status** | **String** | | [optional] -**scheduledAt** | **Number** | | [optional] -**ceaseAt** | **String** | | [optional] -**resumeAt** | **String** | | [optional] -**completedAt** | **Number** | | [optional] -**sentUserCount** | **Number** | | [optional] -**openCount** | **Number** | | [optional] -**openRate** | **Number** | | [optional] -**createChannel** | **Boolean** | | [optional] -**createChannelOptions** | [**ScheduleAnnouncementResponseCreateChannelOptions**](ScheduleAnnouncementResponseCreateChannelOptions.md) | | [optional] -**endAt** | **Number** | | [optional] -**markAsRead** | **Boolean** | | [optional] -**sentChannelCount** | **Number** | | [optional] -**targetChannelType** | **String** | | [optional] -**targetCustomType** | **String** | | [optional] - - diff --git a/docs/ListBannedChannelsResponse.md b/docs/ListBannedChannelsResponse.md deleted file mode 100644 index 4762f91..0000000 --- a/docs/ListBannedChannelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListBannedChannelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bannedChannels** | [**[ListBannedChannelsResponseBannedChannelsInner]**](ListBannedChannelsResponseBannedChannelsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListBannedChannelsResponseBannedChannelsInner.md b/docs/ListBannedChannelsResponseBannedChannelsInner.md deleted file mode 100644 index 03a6b50..0000000 --- a/docs/ListBannedChannelsResponseBannedChannelsInner.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startAt** | **Number** | | [optional] -**description** | **String** | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**endAt** | **Number** | | [optional] - - diff --git a/docs/ListBlockedUsersResponse.md b/docs/ListBlockedUsersResponse.md index 5676840..dc3e749 100644 --- a/docs/ListBlockedUsersResponse.md +++ b/docs/ListBlockedUsersResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**users** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] +**users** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] **next** | **String** | | [optional] diff --git a/docs/ListBotsResponseBotsInner.md b/docs/ListBotsResponseBotsInner.md index 4b017cf..21ad095 100644 --- a/docs/ListBotsResponseBotsInner.md +++ b/docs/ListBotsResponseBotsInner.md @@ -4,11 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**bot** | [**CreateBotResponseBot**](CreateBotResponseBot.md) | | [optional] +**ai** | [**ListBotsResponseBotsInnerAi**](ListBotsResponseBotsInnerAi.md) | | [optional] +**bot** | [**ListBotsResponseBotsInnerBot**](ListBotsResponseBotsInnerBot.md) | | [optional] **botCallbackUrl** | **String** | | [optional] +**botStyle** | [**ListBotsResponseBotsInnerBotStyle**](ListBotsResponseBotsInnerBotStyle.md) | | [optional] +**channelInvitationPreference** | **Number** | | [optional] +**createdAt** | **Number** | | [optional] **enableMarkAsRead** | **Boolean** | | [optional] +**firstMessages** | [**[ListBotsResponseBotsInnerFirstMessagesInner]**](ListBotsResponseBotsInnerFirstMessagesInner.md) | | [optional] **isPrivacyMode** | **Boolean** | | [optional] +**safeguard** | [**ListBotsResponseBotsInnerSafeguard**](ListBotsResponseBotsInnerSafeguard.md) | | [optional] **showMember** | **Boolean** | | [optional] -**channelInvitationPreference** | **Number** | | [optional] diff --git a/docs/ListBotsResponseBotsInnerAi.md b/docs/ListBotsResponseBotsInnerAi.md new file mode 100644 index 0000000..e42efb6 --- /dev/null +++ b/docs/ListBotsResponseBotsInnerAi.md @@ -0,0 +1,20 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerAi + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**backend** | **String** | | [optional] +**feedback** | **Boolean** | | [optional] +**frequencyPenalty** | **Number** | | [optional] +**instructionMode** | **Object** | | [optional] +**maxTokens** | **Number** | | [optional] +**model** | **String** | | [optional] +**presencePenalty** | **Number** | | [optional] +**stream** | **Boolean** | | [optional] +**systemMessage** | **String** | | [optional] +**systemMessageForContextPrefix** | **String** | | [optional] +**temperature** | **Number** | | [optional] +**topP** | **Number** | | [optional] + + diff --git a/docs/ListBotsResponseBotsInnerBot.md b/docs/ListBotsResponseBotsInnerBot.md new file mode 100644 index 0000000..e901862 --- /dev/null +++ b/docs/ListBotsResponseBotsInnerBot.md @@ -0,0 +1,16 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerBot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**aiAgentType** | **String** | | [optional] +**botMetadata** | **Object** | | [optional] +**botNickname** | **String** | | [optional] +**botProfileUrl** | **String** | | [optional] +**botRequireAuthForProfileImage** | **Boolean** | | [optional] +**botToken** | **String** | | [optional] +**botType** | **String** | | [optional] +**botUserid** | **String** | | + + diff --git a/docs/ListBotsResponseBotsInnerBotStyle.md b/docs/ListBotsResponseBotsInnerBotStyle.md new file mode 100644 index 0000000..9290968 --- /dev/null +++ b/docs/ListBotsResponseBotsInnerBotStyle.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoOpen** | **Boolean** | | [optional] +**color** | [**ListBotsResponseBotsInnerBotStyleColor**](ListBotsResponseBotsInnerBotStyleColor.md) | | [optional] +**toggleButtonType** | **String** | | [optional] +**toggleButtonUrl** | **String** | | [optional] + + diff --git a/docs/ListBotsResponseBotsInnerBotStyleColor.md b/docs/ListBotsResponseBotsInnerBotStyleColor.md new file mode 100644 index 0000000..e1d113b --- /dev/null +++ b/docs/ListBotsResponseBotsInnerBotStyleColor.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accentColor** | **String** | | [optional] +**botMessageColor** | **String** | | [optional] +**theme** | **String** | | [optional] + + diff --git a/docs/ListBotsResponseBotsInnerFirstMessagesInner.md b/docs/ListBotsResponseBotsInnerFirstMessagesInner.md new file mode 100644 index 0000000..ddb4758 --- /dev/null +++ b/docs/ListBotsResponseBotsInnerFirstMessagesInner.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data** | [**ListBotsResponseBotsInnerFirstMessagesInnerData**](ListBotsResponseBotsInnerFirstMessagesInnerData.md) | | [optional] +**message** | **String** | | [optional] + + diff --git a/docs/ListBotsResponseBotsInnerFirstMessagesInnerData.md b/docs/ListBotsResponseBotsInnerFirstMessagesInnerData.md new file mode 100644 index 0000000..fd5154f --- /dev/null +++ b/docs/ListBotsResponseBotsInnerFirstMessagesInnerData.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInnerData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**suggestedReplies** | **[String]** | | [optional] + + diff --git a/docs/ListBotsResponseBotsInnerSafeguard.md b/docs/ListBotsResponseBotsInnerSafeguard.md new file mode 100644 index 0000000..2e555c5 --- /dev/null +++ b/docs/ListBotsResponseBotsInnerSafeguard.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bannedPhrases** | **[Object]** | | [optional] +**enabled** | **Boolean** | | [optional] +**message** | **String** | | [optional] +**piiMasking** | **Boolean** | | [optional] + + diff --git a/docs/ListDataExportsByMessageChannelOrUserResponse.md b/docs/ListDataExportsByMessageChannelOrUserResponse.md deleted file mode 100644 index 58d087e..0000000 --- a/docs/ListDataExportsByMessageChannelOrUserResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**exportedData** | [**[ListDataExportsByMessageChannelOrUserResponseExportedDataInner]**](ListDataExportsByMessageChannelOrUserResponseExportedDataInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.md b/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.md deleted file mode 100644 index 9a280d6..0000000 --- a/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.md +++ /dev/null @@ -1,20 +0,0 @@ -# SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**status** | **String** | | [optional] -**format** | **String** | | [optional] -**csvDelimiter** | **String** | | [optional] -**timezone** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**startTs** | **Number** | | [optional] -**endTs** | **Number** | | [optional] -**channelUrls** | **[String]** | | [optional] -**senderIds** | **[String]** | | [optional] -**file** | [**ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile**](ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md) | | [optional] -**userIds** | **[String]** | | [optional] - - diff --git a/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md b/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md deleted file mode 100644 index 98233bd..0000000 --- a/docs/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] -**expiresAt** | **Number** | | [optional] - - diff --git a/docs/ListEmojisResponse.md b/docs/ListEmojisResponse.md deleted file mode 100644 index ef124a5..0000000 --- a/docs/ListEmojisResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ListEmojisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojis** | [**[SendBirdEmoji]**](SendBirdEmoji.md) | | [optional] - - diff --git a/docs/ListGdprRequestsResponse.md b/docs/ListGdprRequestsResponse.md deleted file mode 100644 index 0ad13c0..0000000 --- a/docs/ListGdprRequestsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListGdprRequestsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requests** | [**[ListGdprRequestsResponseRequestsInner]**](ListGdprRequestsResponseRequestsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListGdprRequestsResponseRequestsInner.md b/docs/ListGdprRequestsResponseRequestsInner.md deleted file mode 100644 index 93e6ef1..0000000 --- a/docs/ListGdprRequestsResponseRequestsInner.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**action** | **String** | | [optional] -**status** | **String** | | [optional] -**userId** | **String** | | [optional] -**files** | [**ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile**](ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md) | | [optional] -**userIds** | **[String]** | | [optional] -**channelDeleteOption** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ListMessagesResponse.md b/docs/ListMessagesResponse.md index dafa0cc..6c276d3 100644 --- a/docs/ListMessagesResponse.md +++ b/docs/ListMessagesResponse.md @@ -4,6 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**messages** | [**[ListMessagesResponseMessagesInner]**](ListMessagesResponseMessagesInner.md) | | [optional] +**messages** | [**[SendbirdMessageResponse]**](SendbirdMessageResponse.md) | | [optional] diff --git a/docs/ListMessagesResponseMessagesInner.md b/docs/ListMessagesResponseMessagesInner.md deleted file mode 100644 index e13dfcb..0000000 --- a/docs/ListMessagesResponseMessagesInner.md +++ /dev/null @@ -1,30 +0,0 @@ -# SendbirdPlatformSdk.ListMessagesResponseMessagesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messageSurvivalSeconds** | **Number** | | [optional] -**customType** | **String** | | [optional] -**mentionedUsers** | [**[SendBirdMessageResponseMentionedUsersInner]**](SendBirdMessageResponseMentionedUsersInner.md) | | [optional] -**translations** | **Object** | | [optional] -**updatedAt** | **Number** | | [optional] -**isOpMsg** | **Boolean** | | [optional] -**isRemoved** | **Boolean** | | [optional] -**user** | [**SendBirdMessageResponseUser**](SendBirdMessageResponseUser.md) | | [optional] -**file** | **Object** | | [optional] -**message** | **String** | | [optional] -**data** | **String** | | [optional] -**messageRetentionHour** | **Number** | | [optional] -**silent** | **Boolean** | | [optional] -**type** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**channelType** | **String** | | [optional] -**reqId** | **String** | | [optional] -**mentionType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**messageId** | **Number** | | [optional] -**sortedMetaarray** | [**[ListMessagesResponseMessagesInnerSortedMetaarrayInner]**](ListMessagesResponseMessagesInnerSortedMetaarrayInner.md) | | [optional] -**ogTag** | [**ListMessagesResponseMessagesInnerOgTag**](ListMessagesResponseMessagesInnerOgTag.md) | | [optional] - - diff --git a/docs/ListMessagesResponseMessagesInnerOgTag.md b/docs/ListMessagesResponseMessagesInnerOgTag.md deleted file mode 100644 index dda7216..0000000 --- a/docs/ListMessagesResponseMessagesInnerOgTag.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ogurl** | **String** | | [optional] -**ogtitle** | **String** | | [optional] -**ogdescription** | **String** | | [optional] -**ogimage** | [**ListMessagesResponseMessagesInnerOgTagOgImage**](ListMessagesResponseMessagesInnerOgTagOgImage.md) | | [optional] - - diff --git a/docs/ListMessagesResponseMessagesInnerOgTagOgImage.md b/docs/ListMessagesResponseMessagesInnerOgTagOgImage.md deleted file mode 100644 index 5bc8963..0000000 --- a/docs/ListMessagesResponseMessagesInnerOgTagOgImage.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] -**secureUrl** | **String** | | [optional] -**width** | **Number** | | [optional] -**height** | **Number** | | [optional] - - diff --git a/docs/ListMessagesResponseMessagesInnerSortedMetaarrayInner.md b/docs/ListMessagesResponseMessagesInnerSortedMetaarrayInner.md deleted file mode 100644 index 39b58bf..0000000 --- a/docs/ListMessagesResponseMessagesInnerSortedMetaarrayInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | | [optional] -**value** | **[String]** | | [optional] - - diff --git a/docs/ListMutedChannelsResponse.md b/docs/ListMutedChannelsResponse.md deleted file mode 100644 index b27051e..0000000 --- a/docs/ListMutedChannelsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListMutedChannelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mutedChannels** | [**[SendBirdChannelResponse]**](SendBirdChannelResponse.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListMutedUsersInChannelsWithCustomChannelType200Response.md b/docs/ListMutedUsersInChannelsWithCustomChannelType200Response.md deleted file mode 100644 index d329116..0000000 --- a/docs/ListMutedUsersInChannelsWithCustomChannelType200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mutedList** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListMyGroupChannelsResponse.md b/docs/ListMyGroupChannelsResponse.md index 38fa738..fc3ae96 100644 --- a/docs/ListMyGroupChannelsResponse.md +++ b/docs/ListMyGroupChannelsResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**channels** | [**[SendBirdGroupChannel]**](SendBirdGroupChannel.md) | | [optional] +**channels** | [**[SendbirdGroupChannel]**](SendbirdGroupChannel.md) | | [optional] **next** | **String** | | [optional] **ts** | **Number** | | [optional] diff --git a/docs/ListOpenChannelsResponse.md b/docs/ListOpenChannelsResponse.md new file mode 100644 index 0000000..467aa1b --- /dev/null +++ b/docs/ListOpenChannelsResponse.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.ListOpenChannelsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channels** | [**[SendbirdOpenChannel]**](SendbirdOpenChannel.md) | | [optional] +**next** | **String** | | [optional] +**ts** | **Number** | | [optional] + + diff --git a/docs/ListOperatorsResponse.md b/docs/ListOperatorsResponse.md new file mode 100644 index 0000000..2b329ff --- /dev/null +++ b/docs/ListOperatorsResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.ListOperatorsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**next** | **String** | | [optional] +**operators** | [**[SendbirdBasicUserInfo]**](SendbirdBasicUserInfo.md) | | [optional] + + diff --git a/docs/ListPushConfigurationsResponse.md b/docs/ListPushConfigurationsResponse.md deleted file mode 100644 index b180854..0000000 --- a/docs/ListPushConfigurationsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ListPushConfigurationsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | [**[ListPushConfigurationsResponsePushConfigurationsInner]**](ListPushConfigurationsResponsePushConfigurationsInner.md) | | [optional] - - diff --git a/docs/ListPushConfigurationsResponsePushConfigurationsInner.md b/docs/ListPushConfigurationsResponsePushConfigurationsInner.md deleted file mode 100644 index 21c54cc..0000000 --- a/docs/ListPushConfigurationsResponsePushConfigurationsInner.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**pushType** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**apiKey** | **String** | | [optional] -**senderId** | **String** | | [optional] -**pushSound** | **String** | | [optional] - - diff --git a/docs/ListPushNotificationContentTemplatesResponse.md b/docs/ListPushNotificationContentTemplatesResponse.md deleted file mode 100644 index 89e0996..0000000 --- a/docs/ListPushNotificationContentTemplatesResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushMessageTemplates** | [**[ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner]**](ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.md) | | [optional] - - diff --git a/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.md b/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.md deleted file mode 100644 index 2a53c64..0000000 --- a/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**templateName** | **String** | | [optional] -**template** | [**ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate**](ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md) | | [optional] - - diff --git a/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md b/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md deleted file mode 100644 index 028221e..0000000 --- a/docs/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**MESG** | **String** | | [optional] -**FILE** | **String** | | [optional] -**ADMM** | **String** | | [optional] - - diff --git a/docs/ListReactionsOfMessageResponse.md b/docs/ListReactionsOfMessageResponse.md deleted file mode 100644 index 46570b6..0000000 --- a/docs/ListReactionsOfMessageResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ListReactionsOfMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **[String]** | | [optional] - - diff --git a/docs/ListRegistrationOrDeviceTokensResponse.md b/docs/ListRegistrationOrDeviceTokensResponse.md index 10a721a..617f52e 100644 --- a/docs/ListRegistrationOrDeviceTokensResponse.md +++ b/docs/ListRegistrationOrDeviceTokensResponse.md @@ -7,6 +7,6 @@ Name | Type | Description | Notes **token** | **[String]** | | [optional] **tokens** | **[String]** | | [optional] **type** | **String** | | [optional] -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] +**user** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] diff --git a/docs/ListReportsOnChannelByUrlResponse.md b/docs/ListReportsOnChannelByUrlResponse.md deleted file mode 100644 index 2ffb7c3..0000000 --- a/docs/ListReportsOnChannelByUrlResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportLogs** | [**[ListReportsOnMessageByIdResponseReportLogsInner]**](ListReportsOnMessageByIdResponseReportLogsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListReportsOnMessageByIdResponse.md b/docs/ListReportsOnMessageByIdResponse.md deleted file mode 100644 index 4e5675d..0000000 --- a/docs/ListReportsOnMessageByIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListReportsOnMessageByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportLogs** | [**[ListReportsOnMessageByIdResponseReportLogsInner]**](ListReportsOnMessageByIdResponseReportLogsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListReportsOnMessageByIdResponseReportLogsInner.md b/docs/ListReportsOnMessageByIdResponseReportLogsInner.md deleted file mode 100644 index f5a466a..0000000 --- a/docs/ListReportsOnMessageByIdResponseReportLogsInner.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportType** | **String** | | [optional] -**reportCategory** | **String** | | [optional] -**reportingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**offendingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportedMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**reportDescription** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ListReportsOnUserByIdResponse.md b/docs/ListReportsOnUserByIdResponse.md deleted file mode 100644 index a47135b..0000000 --- a/docs/ListReportsOnUserByIdResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListReportsOnUserByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportLogs** | [**[ListReportsOnMessageByIdResponseReportLogsInner]**](ListReportsOnMessageByIdResponseReportLogsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListReportsResponse.md b/docs/ListReportsResponse.md deleted file mode 100644 index f7641d4..0000000 --- a/docs/ListReportsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListReportsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportLogs** | [**[ListReportsResponseReportLogsInner]**](ListReportsResponseReportLogsInner.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/ListReportsResponseReportLogsInner.md b/docs/ListReportsResponseReportLogsInner.md deleted file mode 100644 index 737b8a3..0000000 --- a/docs/ListReportsResponseReportLogsInner.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ListReportsResponseReportLogsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportType** | **String** | | [optional] -**reportCategory** | **String** | | [optional] -**offendingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportedMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**reportDescription** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ListSecondaryApiTokensResponse.md b/docs/ListSecondaryApiTokensResponse.md deleted file mode 100644 index 2731800..0000000 --- a/docs/ListSecondaryApiTokensResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ListSecondaryApiTokensResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**apiTokens** | [**[ListSecondaryApiTokensResponseApiTokensInner]**](ListSecondaryApiTokensResponseApiTokensInner.md) | | [optional] - - diff --git a/docs/ListSecondaryApiTokensResponseApiTokensInner.md b/docs/ListSecondaryApiTokensResponseApiTokensInner.md deleted file mode 100644 index 9ac1b14..0000000 --- a/docs/ListSecondaryApiTokensResponseApiTokensInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ListUsersResponse.md b/docs/ListUsersResponse.md index 4dbb9f9..90bc09a 100644 --- a/docs/ListUsersResponse.md +++ b/docs/ListUsersResponse.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**users** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] **next** | **String** | | [optional] +**users** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] diff --git a/docs/MarkAllMessagesAsReadData.md b/docs/MarkAllMessagesAsReadData.md deleted file mode 100644 index 79fec8c..0000000 --- a/docs/MarkAllMessagesAsReadData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.MarkAllMessagesAsReadData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrls** | **[String]** | Specifies an array of one or more group channel URLs to mark all of the unread messages in as read. If not specified, all of the unread messages in the joined group channels are marked as read. | - - diff --git a/docs/MarkAllMessagesAsReadRequest.md b/docs/MarkAllMessagesAsReadRequest.md new file mode 100644 index 0000000..77b0c3c --- /dev/null +++ b/docs/MarkAllMessagesAsReadRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.MarkAllMessagesAsReadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrls** | **[String]** | Specifies an array of one or more group channel URLs where unread messages need to be marked as read. If not specified, unread messages in all group channels a user joined are marked as read. | [optional] + + diff --git a/docs/MarkChannelMessagesAsReadRequest.md b/docs/MarkChannelMessagesAsReadRequest.md new file mode 100644 index 0000000..e079bcd --- /dev/null +++ b/docs/MarkChannelMessagesAsReadRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | | [optional] + + diff --git a/docs/MessageApi.md b/docs/MessageApi.md index cf76f5f..9230523 100644 --- a/docs/MessageApi.md +++ b/docs/MessageApi.md @@ -4,726 +4,27 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addEmojiCategories**](MessageApi.md#addEmojiCategories) | **POST** /v3/emoji_categories | Add emoji categories -[**addEmojis**](MessageApi.md#addEmojis) | **POST** /v3/emojis | Add emojis -[**addExtraDataToMessage**](MessageApi.md#addExtraDataToMessage) | **POST** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Add extra data to a message -[**addReactionToAMessage**](MessageApi.md#addReactionToAMessage) | **POST** /v3/{channel_type}/{channel_url}/messages/{message_id}/reactions | Add a reaction to a message -[**deleteEmojiByKey**](MessageApi.md#deleteEmojiByKey) | **DELETE** /v3/emojis/{emoji_key} | Delete an emoji -[**deleteEmojiCategoryById**](MessageApi.md#deleteEmojiCategoryById) | **DELETE** /v3/emoji_categories/{emoji_category_id} | Delete an emoji category -[**deleteMessageById**](MessageApi.md#deleteMessageById) | **DELETE** /v3/{channel_type}/{channel_url}/messages/{message_id} | Delete a message -[**enableReactions**](MessageApi.md#enableReactions) | **PUT** /v3/applications/settings/reactions | Enable reactions -[**gcMarkAllMessagesAsDelivered**](MessageApi.md#gcMarkAllMessagesAsDelivered) | **PUT** /v3/group_channels/{channel_url}/messages/mark_as_delivered | Mark all messages as delivered -[**gcMarkAllMessagesAsRead**](MessageApi.md#gcMarkAllMessagesAsRead) | **PUT** /v3/group_channels/{channel_url}/messages/mark_as_read | Mark all messages as read -[**gcViewNumberOfEachMembersUnreadMessages**](MessageApi.md#gcViewNumberOfEachMembersUnreadMessages) | **GET** /v3/group_channels/{channel_url}/messages/unread_count | View number of each member's unread messages -[**getEmojiByKey**](MessageApi.md#getEmojiByKey) | **GET** /v3/emojis/{emoji_key} | Get an emoji -[**getEmojiCategoryById**](MessageApi.md#getEmojiCategoryById) | **GET** /v3/emoji_categories/{emoji_category_id} | Get an emoji category -[**listAllEmojisAndEmojiCategories**](MessageApi.md#listAllEmojisAndEmojiCategories) | **GET** /v3/emoji_categories | List all emojis and emoji categories -[**listAnnouncements**](MessageApi.md#listAnnouncements) | **GET** /v3/announcements | List announcements -[**listEmojis**](MessageApi.md#listEmojis) | **GET** /v3/emojis | List emojis +[**addExtraDataToAMessage**](MessageApi.md#addExtraDataToAMessage) | **POST** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Add extra data to a message +[**deleteAMessage**](MessageApi.md#deleteAMessage) | **DELETE** /v3/{channel_type}/{channel_url}/messages/{message_id} | Delete a message +[**getAMessage**](MessageApi.md#getAMessage) | **GET** /v3/{channel_type}/{channel_url}/messages/{message_id} | Get a message +[**getTotalNumberOfMessagesInAChannel**](MessageApi.md#getTotalNumberOfMessagesInAChannel) | **GET** /v3/{channel_type}/{channel_url}/messages/total_count | Get total number of messages in a channel [**listMessages**](MessageApi.md#listMessages) | **GET** /v3/{channel_type}/{channel_url}/messages | List messages -[**listReactionsOfMessage**](MessageApi.md#listReactionsOfMessage) | **GET** /v3/{channel_type}/{channel_url}/messages/{message_id}/reactions | List reactions of a message -[**migrateMessagesByUrl**](MessageApi.md#migrateMessagesByUrl) | **POST** /v3/migration/{target_channel_url} | Migrate messages -[**removeExtraDataFromMessage**](MessageApi.md#removeExtraDataFromMessage) | **DELETE** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Remove extra data from a message -[**removeReactionFromAMessage**](MessageApi.md#removeReactionFromAMessage) | **DELETE** /v3/{channel_type}/{channel_url}/messages/{message_id}/reactions | Remove a reaction from a message -[**sendMessage**](MessageApi.md#sendMessage) | **POST** /v3/{channel_type}/{channel_url}/messages | Send a message -[**translateMessageIntoOtherLanguages**](MessageApi.md#translateMessageIntoOtherLanguages) | **POST** /v3/{channel_type}/{channel_url}/messages/{message_id}/translation | Translate a message into other languages -[**updateEmojiCategoryUrlById**](MessageApi.md#updateEmojiCategoryUrlById) | **PUT** /v3/emoji_categories/{emoji_category_id} | Update an emoji category URL -[**updateEmojiUrlByKey**](MessageApi.md#updateEmojiUrlByKey) | **PUT** /v3/emojis/{emoji_key} | Update an emoji URL -[**updateExtraDataInMessage**](MessageApi.md#updateExtraDataInMessage) | **PUT** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Update extra data in a message -[**updateMessageById**](MessageApi.md#updateMessageById) | **PUT** /v3/{channel_type}/{channel_url}/messages/{message_id} | Update a message -[**useDefaultEmojis**](MessageApi.md#useDefaultEmojis) | **PUT** /v3/applications/settings/use_default_emoji | Use default emojis -[**viewMessageById**](MessageApi.md#viewMessageById) | **GET** /v3/{channel_type}/{channel_url}/messages/{message_id} | View a message -[**viewTotalNumberOfMessagesInChannel**](MessageApi.md#viewTotalNumberOfMessagesInChannel) | **GET** /v3/{channel_type}/{channel_url}/messages/total_count | View total number of messages in a channel +[**markChannelMessagesAsRead**](MessageApi.md#markChannelMessagesAsRead) | **PUT** /v3/group_channels/{channel_url}/messages/mark_as_read | Mark all messages as read +[**migrateMessages**](MessageApi.md#migrateMessages) | **POST** /v3/migration/{target_channel_url} | Migrate messages +[**removeExtraDataFromAMessage**](MessageApi.md#removeExtraDataFromAMessage) | **DELETE** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Remove extra data from a message +[**sendAMessage**](MessageApi.md#sendAMessage) | **POST** /v3/{channel_type}/{channel_url}/messages | Send a message +[**updateAMessage**](MessageApi.md#updateAMessage) | **PUT** /v3/{channel_type}/{channel_url}/messages/{message_id} | Update a message +[**updateExtraDataInAMessage**](MessageApi.md#updateExtraDataInAMessage) | **PUT** /v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray | Update extra data in a message -## addEmojiCategories +## addExtraDataToAMessage -> AddEmojiCategoriesResponse addEmojiCategories(apiToken, opts) +> AddExtraDataToAMessageResponse addExtraDataToAMessage(channelType, channelUrl, messageId, opts) -Add emoji categories - -## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'body': {key: null} // Object | -}; -apiInstance.addEmojiCategories(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **body** | **Object**| | [optional] - -### Return type - -[**AddEmojiCategoriesResponse**](AddEmojiCategoriesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addEmojis - -> AddEmojisResponse addEmojis(apiToken, opts) - -Add emojis - -## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'addEmojisData': new SendbirdPlatformSdk.AddEmojisData() // AddEmojisData | -}; -apiInstance.addEmojis(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **addEmojisData** | [**AddEmojisData**](AddEmojisData.md)| | [optional] - -### Return type - -[**AddEmojisResponse**](AddEmojisResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addExtraDataToMessage - -> AddExtraDataToMessageResponse addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, opts) - -Add extra data to a message - -## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'addExtraDataToMessageData': new SendbirdPlatformSdk.AddExtraDataToMessageData() // AddExtraDataToMessageData | -}; -apiInstance.addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **addExtraDataToMessageData** | [**AddExtraDataToMessageData**](AddExtraDataToMessageData.md)| | [optional] - -### Return type - -[**AddExtraDataToMessageResponse**](AddExtraDataToMessageResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## addReactionToAMessage - -> AddReactionToAMessageResponse addReactionToAMessage(apiToken, channelType, channelUrl, messageId, opts) - -Add a reaction to a message - -## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'addReactionToAMessageData': new SendbirdPlatformSdk.AddReactionToAMessageData() // AddReactionToAMessageData | -}; -apiInstance.addReactionToAMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **addReactionToAMessageData** | [**AddReactionToAMessageData**](AddReactionToAMessageData.md)| | [optional] - -### Return type - -[**AddReactionToAMessageResponse**](AddReactionToAMessageResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteEmojiByKey - -> deleteEmojiByKey(apiToken, emojiKey) - -Delete an emoji - -## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiKey = "emojiKey_example"; // String | -apiInstance.deleteEmojiByKey(apiToken, emojiKey).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiKey** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteEmojiCategoryById - -> Object deleteEmojiCategoryById(apiToken, emojiCategoryId) - -Delete an emoji category - -## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiCategoryId = "emojiCategoryId_example"; // String | -apiInstance.deleteEmojiCategoryById(apiToken, emojiCategoryId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiCategoryId** | **String**| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## deleteMessageById - -> Object deleteMessageById(apiToken, channelType, channelUrl, messageId) - -Delete a message - -## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -apiInstance.deleteMessageById(apiToken, channelType, channelUrl, messageId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## enableReactions - -> EnableReactionsResponse enableReactions(apiToken, opts) - -Enable reactions - -## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'enableReactionsData': new SendbirdPlatformSdk.EnableReactionsData() // EnableReactionsData | -}; -apiInstance.enableReactions(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **enableReactionsData** | [**EnableReactionsData**](EnableReactionsData.md)| | [optional] - -### Return type - -[**EnableReactionsResponse**](EnableReactionsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## gcMarkAllMessagesAsDelivered - -> GcMarkAllMessagesAsDeliveredResponse gcMarkAllMessagesAsDelivered(apiToken, channelUrl, opts) - -Mark all messages as delivered - -## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'gcMarkAllMessagesAsDeliveredData': new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData() // GcMarkAllMessagesAsDeliveredData | -}; -apiInstance.gcMarkAllMessagesAsDelivered(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcMarkAllMessagesAsDeliveredData** | [**GcMarkAllMessagesAsDeliveredData**](GcMarkAllMessagesAsDeliveredData.md)| | [optional] - -### Return type - -[**GcMarkAllMessagesAsDeliveredResponse**](GcMarkAllMessagesAsDeliveredResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## gcMarkAllMessagesAsRead - -> Object gcMarkAllMessagesAsRead(apiToken, channelUrl, opts) - -Mark all messages as read - -## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'gcMarkAllMessagesAsReadData': new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData() // GcMarkAllMessagesAsReadData | -}; -apiInstance.gcMarkAllMessagesAsRead(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcMarkAllMessagesAsReadData** | [**GcMarkAllMessagesAsReadData**](GcMarkAllMessagesAsReadData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## gcViewNumberOfEachMembersUnreadMessages - -> GcViewNumberOfEachMembersUnreadMessagesResponse gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, opts) - -View number of each member's unread messages - -## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'userIds': "userIds_example" // String | -}; -apiInstance.gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **userIds** | **String**| | [optional] - -### Return type - -[**GcViewNumberOfEachMembersUnreadMessagesResponse**](GcViewNumberOfEachMembersUnreadMessagesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEmojiByKey - -> SendBirdEmoji getEmojiByKey(apiToken, emojiKey) - -Get an emoji - -## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiKey = "emojiKey_example"; // String | -apiInstance.getEmojiByKey(apiToken, emojiKey).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiKey** | **String**| | - -### Return type - -[**SendBirdEmoji**](SendBirdEmoji.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getEmojiCategoryById - -> SendBirdEmojiCategory getEmojiCategoryById(apiToken, emojiCategoryId) - -Get an emoji category - -## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiCategoryId = "emojiCategoryId_example"; // String | -apiInstance.getEmojiCategoryById(apiToken, emojiCategoryId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiCategoryId** | **String**| | - -### Return type - -[**SendBirdEmojiCategory**](SendBirdEmojiCategory.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listAllEmojisAndEmojiCategories - -> ListAllEmojisAndEmojiCategoriesResponse listAllEmojisAndEmojiCategories(apiToken) - -List all emojis and emoji categories - -## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.listAllEmojisAndEmojiCategories(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**ListAllEmojisAndEmojiCategoriesResponse**](ListAllEmojisAndEmojiCategoriesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listAnnouncements - -> ListAnnouncementsResponse listAnnouncements(apiToken, opts) - -List announcements +Add extra data to a message -## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- +## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ---------------------------- ### Example @@ -731,15 +32,14 @@ List announcements import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'order': "order_example", // String | - 'status': "status_example", // String | - 'announcementGroup': "announcementGroup_example" // String | + 'apiToken': {{API_TOKEN}}, // String | + 'addExtraDataToAMessageRequest': new SendbirdPlatformSdk.AddExtraDataToAMessageRequest() // AddExtraDataToAMessageRequest | }; -apiInstance.listAnnouncements(apiToken, opts).then((data) => { +apiInstance.addExtraDataToAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -752,16 +52,15 @@ apiInstance.listAnnouncements(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - **order** | **String**| | [optional] - **status** | **String**| | [optional] - **announcementGroup** | **String**| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **addExtraDataToAMessageRequest** | [**AddExtraDataToAMessageRequest**](AddExtraDataToAMessageRequest.md)| | [optional] ### Return type -[**ListAnnouncementsResponse**](ListAnnouncementsResponse.md) +[**AddExtraDataToAMessageResponse**](AddExtraDataToAMessageResponse.md) ### Authorization @@ -769,17 +68,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## listEmojis +## deleteAMessage -> ListEmojisResponse listEmojis(apiToken) +> Object deleteAMessage(channelType, channelUrl, messageId, opts) -List emojis +Delete a message -## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis +## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ---------------------------- ### Example @@ -787,8 +86,13 @@ List emojis import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.listEmojis(apiToken).then((data) => { +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.deleteAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -801,11 +105,14 @@ apiInstance.listEmojis(apiToken).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**ListEmojisResponse**](ListEmojisResponse.md) +**Object** ### Authorization @@ -817,13 +124,13 @@ No authorization required - **Accept**: application/json -## listMessages +## getAMessage -> ListMessagesResponse listMessages(apiToken, channelType, channelUrl, opts) +> SendbirdMessageResponse getAMessage(channelType, channelUrl, messageId, opts) -List messages +Get a message -## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. +## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. ### Example @@ -831,30 +138,18 @@ List messages import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) let opts = { - 'messageTs': "messageTs_example", // String | - 'messageId': 56, // Number | - 'prevLimit': 56, // Number | - 'nextLimit': 56, // Number | - 'include': true, // Boolean | - 'reverse': true, // Boolean | - 'senderId': "senderId_example", // String | - 'senderIds': "senderIds_example", // String | - 'operatorFilter': "operatorFilter_example", // String | - 'customTypes': "customTypes_example", // String | - 'messageType': "messageType_example", // String | - 'includingRemoved': true, // Boolean | 'includeReactions': true, // Boolean | + 'includeThreadInfo': true, // Boolean | + 'includeParentMessageInfo': true, // Boolean | + 'includePollDetails': true, // Boolean | Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. 'withSortedMetaArray': true, // Boolean | - 'showSubchannelMessagesOnly': true, // Boolean | - 'userId': "userId_example", // String | - 'customType': "customType_example", // String | - 'withMetaArray': true // Boolean | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.listMessages(apiToken, channelType, channelUrl, opts).then((data) => { +apiInstance.getAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -867,85 +162,19 @@ apiInstance.listMessages(apiToken, channelType, channelUrl, opts).then((data) => Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageTs** | **String**| | [optional] - **messageId** | **Number**| | [optional] - **prevLimit** | **Number**| | [optional] - **nextLimit** | **Number**| | [optional] - **include** | **Boolean**| | [optional] - **reverse** | **Boolean**| | [optional] - **senderId** | **String**| | [optional] - **senderIds** | **String**| | [optional] - **operatorFilter** | **String**| | [optional] - **customTypes** | **String**| | [optional] - **messageType** | **String**| | [optional] - **includingRemoved** | **Boolean**| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | **includeReactions** | **Boolean**| | [optional] + **includeThreadInfo** | **Boolean**| | [optional] + **includeParentMessageInfo** | **Boolean**| | [optional] + **includePollDetails** | **Boolean**| Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. | [optional] **withSortedMetaArray** | **Boolean**| | [optional] - **showSubchannelMessagesOnly** | **Boolean**| | [optional] - **userId** | **String**| | [optional] - **customType** | **String**| | [optional] - **withMetaArray** | **Boolean**| | [optional] - -### Return type - -[**ListMessagesResponse**](ListMessagesResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listReactionsOfMessage - -> ListReactionsOfMessageResponse listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, opts) - -List reactions of a message - -## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'listUsers': true // Boolean | -}; -apiInstance.listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **listUsers** | **Boolean**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**ListReactionsOfMessageResponse**](ListReactionsOfMessageResponse.md) +[**SendbirdMessageResponse**](SendbirdMessageResponse.md) ### Authorization @@ -957,63 +186,13 @@ No authorization required - **Accept**: application/json -## migrateMessagesByUrl - -> migrateMessagesByUrl(apiToken, targetChannelUrl, opts) - -Migrate messages - -## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let targetChannelUrl = "targetChannelUrl_example"; // String | -let opts = { - 'body': {key: null} // Object | -}; -apiInstance.migrateMessagesByUrl(apiToken, targetChannelUrl, opts).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **targetChannelUrl** | **String**| | - **body** | **Object**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: Not defined - - -## removeExtraDataFromMessage +## getTotalNumberOfMessagesInAChannel -> Object removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, opts) +> GetTotalNumberOfMessagesInAChannelResponse getTotalNumberOfMessagesInAChannel(channelType, channelUrl, opts) -Remove extra data from a message +Get total number of messages in a channel -## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- +## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ---------------------------- ### Example @@ -1021,14 +200,12 @@ Remove extra data from a message import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'keys': ["null"] // [String] | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { +apiInstance.getTotalNumberOfMessagesInAChannel(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1041,15 +218,13 @@ apiInstance.removeExtraDataFromMessage(apiToken, channelType, channelUrl, messag Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **keys** | [**[String]**](String.md)| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -**Object** +[**GetTotalNumberOfMessagesInAChannelResponse**](GetTotalNumberOfMessagesInAChannelResponse.md) ### Authorization @@ -1061,13 +236,13 @@ No authorization required - **Accept**: application/json -## removeReactionFromAMessage +## listMessages -> RemoveReactionFromAMessageResponse removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, opts) +> ListMessagesResponse listMessages(channelType, channelUrl, messageTs, messageId, opts) -Remove a reaction from a message +List messages -## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- +## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. ### Example @@ -1075,15 +250,32 @@ Remove a reaction from a message import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageTs = 789; // Number | Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. +let messageId = 789; // Number | Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. let opts = { + 'prevLimit': 56, // Number | Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) + 'nextLimit': 56, // Number | Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) + 'include': true, // Boolean | Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) + 'reverse': true, // Boolean | Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) + 'senderId': "senderId_example", // String | Restricts the search scope to only retrieve messages sent by the user with the specified ID. + 'senderIds': "senderIds_example", // String | Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. + 'operatorFilter': "operatorFilter_example", // String | + 'customTypes': "customTypes_example", // String | Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. + 'messageType': "messageType_example", // String | + 'includingRemoved': true, // Boolean | + 'includeReactions': true, // Boolean | + 'includeReplyType': "includeReplyType_example", // String | One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL + 'includeParentMessageInfo': true, // Boolean | + 'includeThreadInfo': true, // Boolean | + 'includePollDetails': true, // Boolean | Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + 'withSortedMetaArray': true, // Boolean | Determines whether to include the sorted_metaarray property in the response. (Default: false) + 'showSubchannelMessagesOnly': true, // Boolean | 'userId': "userId_example", // String | - 'reaction': "reaction_example" // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { +apiInstance.listMessages(channelType, channelUrl, messageTs, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1096,16 +288,33 @@ apiInstance.removeReactionFromAMessage(apiToken, channelType, channelUrl, messag Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageTs** | **Number**| Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. | + **messageId** | **Number**| Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. | + **prevLimit** | **Number**| Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) | [optional] + **nextLimit** | **Number**| Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) | [optional] + **include** | **Boolean**| Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) | [optional] + **reverse** | **Boolean**| Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) | [optional] + **senderId** | **String**| Restricts the search scope to only retrieve messages sent by the user with the specified ID. | [optional] + **senderIds** | **String**| Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. | [optional] + **operatorFilter** | **String**| | [optional] + **customTypes** | **String**| Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. | [optional] + **messageType** | **String**| | [optional] + **includingRemoved** | **Boolean**| | [optional] + **includeReactions** | **Boolean**| | [optional] + **includeReplyType** | **String**| One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL | [optional] + **includeParentMessageInfo** | **Boolean**| | [optional] + **includeThreadInfo** | **Boolean**| | [optional] + **includePollDetails** | **Boolean**| Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. | [optional] + **withSortedMetaArray** | **Boolean**| Determines whether to include the sorted_metaarray property in the response. (Default: false) | [optional] + **showSubchannelMessagesOnly** | **Boolean**| | [optional] **userId** | **String**| | [optional] - **reaction** | **String**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**RemoveReactionFromAMessageResponse**](RemoveReactionFromAMessageResponse.md) +[**ListMessagesResponse**](ListMessagesResponse.md) ### Authorization @@ -1117,65 +326,13 @@ No authorization required - **Accept**: application/json -## sendMessage +## markChannelMessagesAsRead -> SendBirdMessageResponse sendMessage(apiToken, channelType, channelUrl, opts) +> Object markChannelMessagesAsRead(channelUrl, opts) -Send a message - -## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'sendMessageData': new SendbirdPlatformSdk.SendMessageData() // SendMessageData | -}; -apiInstance.sendMessage(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **sendMessageData** | [**SendMessageData**](SendMessageData.md)| | [optional] - -### Return type - -[**SendBirdMessageResponse**](SendBirdMessageResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## translateMessageIntoOtherLanguages - -> SendBirdMessageResponse translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, opts) - -Translate a message into other languages +Mark all messages as read -## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- +## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read ### Example @@ -1183,14 +340,12 @@ Translate a message into other languages import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'translateMessageIntoOtherLanguagesData': new SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData() // TranslateMessageIntoOtherLanguagesData | + 'apiToken': {{API_TOKEN}}, // String | + 'markChannelMessagesAsReadRequest': new SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest() // MarkChannelMessagesAsReadRequest | }; -apiInstance.translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, opts).then((data) => { +apiInstance.markChannelMessagesAsRead(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1203,15 +358,13 @@ apiInstance.translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **translateMessageIntoOtherLanguagesData** | [**TranslateMessageIntoOtherLanguagesData**](TranslateMessageIntoOtherLanguagesData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **markChannelMessagesAsReadRequest** | [**MarkChannelMessagesAsReadRequest**](MarkChannelMessagesAsReadRequest.md)| | [optional] ### Return type -[**SendBirdMessageResponse**](SendBirdMessageResponse.md) +**Object** ### Authorization @@ -1223,13 +376,13 @@ No authorization required - **Accept**: application/json -## updateEmojiCategoryUrlById +## migrateMessages -> SendBirdEmojiCategory updateEmojiCategoryUrlById(apiToken, emojiCategoryId, opts) +> Object migrateMessages(targetChannelUrl, opts) -Update an emoji category URL +Migrate messages -## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- +## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages ### Example @@ -1237,12 +390,12 @@ Update an emoji category URL import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiCategoryId = "emojiCategoryId_example"; // String | +let targetChannelUrl = "targetChannelUrl_example"; // String | (Required) let opts = { - 'updateEmojiCategoryUrlByIdData': new SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData() // UpdateEmojiCategoryUrlByIdData | + 'apiToken': {{API_TOKEN}}, // String | + 'body': {key: null} // Object | }; -apiInstance.updateEmojiCategoryUrlById(apiToken, emojiCategoryId, opts).then((data) => { +apiInstance.migrateMessages(targetChannelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1255,13 +408,13 @@ apiInstance.updateEmojiCategoryUrlById(apiToken, emojiCategoryId, opts).then((da Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiCategoryId** | **String**| | - **updateEmojiCategoryUrlByIdData** | [**UpdateEmojiCategoryUrlByIdData**](UpdateEmojiCategoryUrlByIdData.md)| | [optional] + **targetChannelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **body** | **Object**| | [optional] ### Return type -[**SendBirdEmojiCategory**](SendBirdEmojiCategory.md) +**Object** ### Authorization @@ -1273,13 +426,13 @@ No authorization required - **Accept**: application/json -## updateEmojiUrlByKey +## removeExtraDataFromAMessage -> SendBirdEmoji updateEmojiUrlByKey(apiToken, emojiKey, opts) +> Object removeExtraDataFromAMessage(channelType, channelUrl, messageId, opts) -Update an emoji URL +Remove extra data from a message -## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- +## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ---------------------------- ### Example @@ -1287,12 +440,14 @@ Update an emoji URL import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let emojiKey = "emojiKey_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) let opts = { - 'updateEmojiUrlByKeyData': new SendbirdPlatformSdk.UpdateEmojiUrlByKeyData() // UpdateEmojiUrlByKeyData | + 'keys': "keys_example", // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.updateEmojiUrlByKey(apiToken, emojiKey, opts).then((data) => { +apiInstance.removeExtraDataFromAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1305,13 +460,15 @@ apiInstance.updateEmojiUrlByKey(apiToken, emojiKey, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **emojiKey** | **String**| | - **updateEmojiUrlByKeyData** | [**UpdateEmojiUrlByKeyData**](UpdateEmojiUrlByKeyData.md)| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | + **keys** | **String**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**SendBirdEmoji**](SendBirdEmoji.md) +**Object** ### Authorization @@ -1319,17 +476,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## updateExtraDataInMessage +## sendAMessage -> UpdateExtraDataInMessageResponse updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, opts) +> SendbirdMessageResponse sendAMessage(channelType, channelUrl, opts) -Update extra data in a message +Send a message -## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- +## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ---------------------------- ### Example @@ -1337,14 +494,13 @@ Update extra data in a message import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'updateExtraDataInMessageData': new SendbirdPlatformSdk.UpdateExtraDataInMessageData() // UpdateExtraDataInMessageData | + 'apiToken': {{API_TOKEN}}, // String | + 'sendAMessageRequest': new SendbirdPlatformSdk.SendAMessageRequest() // SendAMessageRequest | }; -apiInstance.updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, opts).then((data) => { +apiInstance.sendAMessage(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1357,15 +513,14 @@ apiInstance.updateExtraDataInMessage(apiToken, channelType, channelUrl, messageI Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **updateExtraDataInMessageData** | [**UpdateExtraDataInMessageData**](UpdateExtraDataInMessageData.md)| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **sendAMessageRequest** | [**SendAMessageRequest**](SendAMessageRequest.md)| | [optional] ### Return type -[**UpdateExtraDataInMessageResponse**](UpdateExtraDataInMessageResponse.md) +[**SendbirdMessageResponse**](SendbirdMessageResponse.md) ### Authorization @@ -1377,13 +532,13 @@ No authorization required - **Accept**: application/json -## updateMessageById +## updateAMessage -> SendBirdMessageResponse updateMessageById(apiToken, channelType, channelUrl, messageId, opts) +> SendbirdMessageResponse updateAMessage(channelType, channelUrl, messageId, opts) Update a message -## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- +## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ---------------------------- ### Example @@ -1391,14 +546,14 @@ Update a message import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) let opts = { - 'updateMessageByIdData': new SendbirdPlatformSdk.UpdateMessageByIdData() // UpdateMessageByIdData | + 'apiToken': {{API_TOKEN}}, // String | + 'updateAMessageRequest': new SendbirdPlatformSdk.UpdateAMessageRequest() // UpdateAMessageRequest | }; -apiInstance.updateMessageById(apiToken, channelType, channelUrl, messageId, opts).then((data) => { +apiInstance.updateAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1411,15 +566,15 @@ apiInstance.updateMessageById(apiToken, channelType, channelUrl, messageId, opts Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **updateMessageByIdData** | [**UpdateMessageByIdData**](UpdateMessageByIdData.md)| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateAMessageRequest** | [**UpdateAMessageRequest**](UpdateAMessageRequest.md)| | [optional] ### Return type -[**SendBirdMessageResponse**](SendBirdMessageResponse.md) +[**SendbirdMessageResponse**](SendbirdMessageResponse.md) ### Authorization @@ -1431,13 +586,13 @@ No authorization required - **Accept**: application/json -## useDefaultEmojis +## updateExtraDataInAMessage -> UseDefaultEmojisResponse useDefaultEmojis(apiToken, opts) +> UpdateExtraDataInAMessageResponse updateExtraDataInAMessage(channelType, channelUrl, messageId, opts) -Use default emojis +Update extra data in a message -## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis +## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ---------------------------- ### Example @@ -1445,11 +600,14 @@ Use default emojis import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) +let messageId = "messageId_example"; // String | (Required) let opts = { - 'useDefaultEmojisData': new SendbirdPlatformSdk.UseDefaultEmojisData() // UseDefaultEmojisData | + 'apiToken': {{API_TOKEN}}, // String | + 'updateExtraDataInAMessageRequest': new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest() // UpdateExtraDataInAMessageRequest | }; -apiInstance.useDefaultEmojis(apiToken, opts).then((data) => { +apiInstance.updateExtraDataInAMessage(channelType, channelUrl, messageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1462,12 +620,15 @@ apiInstance.useDefaultEmojis(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **useDefaultEmojisData** | [**UseDefaultEmojisData**](UseDefaultEmojisData.md)| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **messageId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateExtraDataInAMessageRequest** | [**UpdateExtraDataInAMessageRequest**](UpdateExtraDataInAMessageRequest.md)| | [optional] ### Return type -[**UseDefaultEmojisResponse**](UseDefaultEmojisResponse.md) +[**UpdateExtraDataInAMessageResponse**](UpdateExtraDataInAMessageResponse.md) ### Authorization @@ -1478,107 +639,3 @@ No authorization required - **Content-Type**: application/json - **Accept**: application/json - -## viewMessageById - -> SendBirdMessageResponse viewMessageById(apiToken, channelType, channelUrl, messageId, opts) - -View a message - -## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'withSortedMetaArray': true, // Boolean | - 'withMetaArray': true // Boolean | -}; -apiInstance.viewMessageById(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **withSortedMetaArray** | **Boolean**| | [optional] - **withMetaArray** | **Boolean**| | [optional] - -### Return type - -[**SendBirdMessageResponse**](SendBirdMessageResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewTotalNumberOfMessagesInChannel - -> ViewTotalNumberOfMessagesInChannelResponse viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl) - -View total number of messages in a channel - -## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MessageApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - -### Return type - -[**ViewTotalNumberOfMessagesInChannelResponse**](ViewTotalNumberOfMessagesInChannelResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/MetadataApi.md b/docs/MetadataApi.md index 2344bf6..2ce0f13 100644 --- a/docs/MetadataApi.md +++ b/docs/MetadataApi.md @@ -4,751 +4,20 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**createChannelMetacounter**](MetadataApi.md#createChannelMetacounter) | **POST** /v3/{channel_type}/{channel_url}/metacounter | Create a channel metacounter -[**createChannelMetadata**](MetadataApi.md#createChannelMetadata) | **POST** /v3/{channel_type}/{channel_url}/metadata | Create a channel metadata -[**createUserMetadata**](MetadataApi.md#createUserMetadata) | **POST** /v3/users/{user_id}/metadata | Create a user metadata -[**deleteChannelMetacounter**](MetadataApi.md#deleteChannelMetacounter) | **DELETE** /v3/{channel_type}/{channel_url}/metacounter | Delete a channel metacounter - When deleting all items of a channel metacounter -[**deleteChannelMetacounterByKey**](MetadataApi.md#deleteChannelMetacounterByKey) | **DELETE** /v3/{channel_type}/{channel_url}/metacounter/{key} | Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key -[**deleteChannelMetadata**](MetadataApi.md#deleteChannelMetadata) | **DELETE** /v3/{channel_type}/{channel_url}/metadata | Delete a channel metadata - When deleting all items of a channel metadata -[**deleteChannelMetadataByKey**](MetadataApi.md#deleteChannelMetadataByKey) | **DELETE** /v3/{channel_type}/{channel_url}/metadata/{key} | Delete a channel metadata - When deleting a specific item of a channel metadata by its key -[**deleteUserMetadata**](MetadataApi.md#deleteUserMetadata) | **DELETE** /v3/users/{user_id}/metadata | Delete a user metadata - When deleting all items of a user metadata -[**deleteUserMetadataByKey**](MetadataApi.md#deleteUserMetadataByKey) | **DELETE** /v3/users/{user_id}/metadata/{key} | Delete a user metadata - When deleting a specific item of a user metadata by its key -[**updateChannelMetacounter**](MetadataApi.md#updateChannelMetacounter) | **PUT** /v3/{channel_type}/{channel_url}/metacounter | Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter -[**updateChannelMetacounterByKey**](MetadataApi.md#updateChannelMetacounterByKey) | **PUT** /v3/{channel_type}/{channel_url}/metacounter/{key} | Update a channel metacounter - When updating a specific item of a channel metacounter by its key -[**updateChannelMetadata**](MetadataApi.md#updateChannelMetadata) | **PUT** /v3/{channel_type}/{channel_url}/metadata | Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata -[**updateChannelMetadataByKey**](MetadataApi.md#updateChannelMetadataByKey) | **PUT** /v3/{channel_type}/{channel_url}/metadata/{key} | Update a channel metadata - When updating a specific item of a channel metadata by its key -[**updateUserMetadata**](MetadataApi.md#updateUserMetadata) | **PUT** /v3/users/{user_id}/metadata | Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata -[**updateUserMetadataByKey**](MetadataApi.md#updateUserMetadataByKey) | **PUT** /v3/users/{user_id}/metadata/{key} | Update a user metadata - When updating a specific item of a user metadata by its key -[**viewChannelMetacounter**](MetadataApi.md#viewChannelMetacounter) | **GET** /v3/{channel_type}/{channel_url}/metacounter | View a channel metacounter - When retrieving all items of a channel metacounter -[**viewChannelMetacounterByKey**](MetadataApi.md#viewChannelMetacounterByKey) | **GET** /v3/{channel_type}/{channel_url}/metacounter/{key} | View a channel metacounter - When retrieving a specific item of a channel metacounter by its key -[**viewChannelMetadata**](MetadataApi.md#viewChannelMetadata) | **GET** /v3/{channel_type}/{channel_url}/metadata | View a channel metadata - When retrieving all items of a channel metadata -[**viewChannelMetadataByKey**](MetadataApi.md#viewChannelMetadataByKey) | **GET** /v3/{channel_type}/{channel_url}/metadata/{key} | View a channel metadata - When retrieving a specific item of a channel metadata by its key -[**viewUserMetadata**](MetadataApi.md#viewUserMetadata) | **GET** /v3/users/{user_id}/metadata | View a user metadata - When retrieving all items of a user metadata -[**viewUserMetadataByKey**](MetadataApi.md#viewUserMetadataByKey) | **GET** /v3/users/{user_id}/metadata/{key} | View a user metadata - When retrieving a specific item of a user metadata by its key - - - -## createChannelMetacounter - -> Object createChannelMetacounter(apiToken, channelType, channelUrl, opts) - -Create a channel metacounter - -## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- +[**createAChannelMetadata**](MetadataApi.md#createAChannelMetadata) | **POST** /v3/{channel_type}/{channel_url}/metadata | Create a channel metadata +[**deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata**](MetadataApi.md#deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata) | **DELETE** /v3/{channel_type}/{channel_url}/metadata | Delete a channel metadata - When deleting all items of a channel metadata +[**updateAChannelMetadata**](MetadataApi.md#updateAChannelMetadata) | **PUT** /v3/{channel_type}/{channel_url}/metadata | Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata +[**viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata**](MetadataApi.md#viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata) | **GET** /v3/{channel_type}/{channel_url}/metadata | View a channel metadata - When retrieving all items of a channel metadata -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'createChannelMetacounterData': new SendbirdPlatformSdk.CreateChannelMetacounterData() // CreateChannelMetacounterData | -}; -apiInstance.createChannelMetacounter(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **createChannelMetacounterData** | [**CreateChannelMetacounterData**](CreateChannelMetacounterData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## createChannelMetadata - -> CreateChannelMetadataResponse createChannelMetadata(apiToken, channelType, channelUrl, opts) - -Create a channel metadata - -## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'createChannelMetadataData': new SendbirdPlatformSdk.CreateChannelMetadataData() // CreateChannelMetadataData | -}; -apiInstance.createChannelMetadata(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **createChannelMetadataData** | [**CreateChannelMetadataData**](CreateChannelMetadataData.md)| | [optional] - -### Return type - -[**CreateChannelMetadataResponse**](CreateChannelMetadataResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## createUserMetadata - -> CreateUserMetadataResponse createUserMetadata(apiToken, userId, opts) - -Create a user metadata - -## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'createUserMetadataData': new SendbirdPlatformSdk.CreateUserMetadataData() // CreateUserMetadataData | -}; -apiInstance.createUserMetadata(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **createUserMetadataData** | [**CreateUserMetadataData**](CreateUserMetadataData.md)| | [optional] - -### Return type - -[**CreateUserMetadataResponse**](CreateUserMetadataResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## deleteChannelMetacounter - -> deleteChannelMetacounter(apiToken, channelType, channelUrl) - -Delete a channel metacounter - When deleting all items of a channel metacounter - -## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.deleteChannelMetacounter(apiToken, channelType, channelUrl).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteChannelMetacounterByKey - -> deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key) - -Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - -## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -apiInstance.deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteChannelMetadata - -> deleteChannelMetadata(apiToken, channelType, channelUrl, opts) - -Delete a channel metadata - When deleting all items of a channel metadata - -## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'key': "key_example" // String | -}; -apiInstance.deleteChannelMetadata(apiToken, channelType, channelUrl, opts).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteChannelMetadataByKey - -> deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key) - -Delete a channel metadata - When deleting a specific item of a channel metadata by its key - -## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -apiInstance.deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteUserMetadata - -> deleteUserMetadata(apiToken, userId, opts) - -Delete a user metadata - When deleting all items of a user metadata - -## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'key': "key_example" // String | -}; -apiInstance.deleteUserMetadata(apiToken, userId, opts).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **key** | **String**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## deleteUserMetadataByKey - -> deleteUserMetadataByKey(apiToken, userId, key) - -Delete a user metadata - When deleting a specific item of a user metadata by its key - -## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let key = "key_example"; // String | -apiInstance.deleteUserMetadataByKey(apiToken, userId, key).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **key** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## updateChannelMetacounter - -> Object updateChannelMetacounter(apiToken, channelType, channelUrl, opts) - -Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - -## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'updateChannelMetacounterData': new SendbirdPlatformSdk.UpdateChannelMetacounterData() // UpdateChannelMetacounterData | -}; -apiInstance.updateChannelMetacounter(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **updateChannelMetacounterData** | [**UpdateChannelMetacounterData**](UpdateChannelMetacounterData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateChannelMetacounterByKey - -> {String: String} updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, opts) - -Update a channel metacounter - When updating a specific item of a channel metacounter by its key - -## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -let opts = { - 'body': {key: null} // Object | -}; -apiInstance.updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | - **body** | **Object**| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateChannelMetadata - -> {String: String} updateChannelMetadata(apiToken, channelType, channelUrl, opts) - -Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - -## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'updateChannelMetadataData': new SendbirdPlatformSdk.UpdateChannelMetadataData() // UpdateChannelMetadataData | -}; -apiInstance.updateChannelMetadata(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **updateChannelMetadataData** | [**UpdateChannelMetadataData**](UpdateChannelMetadataData.md)| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateChannelMetadataByKey - -> {String: String} updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, opts) - -Update a channel metadata - When updating a specific item of a channel metadata by its key - -## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -let opts = { - 'body': {key: null} // Object | -}; -apiInstance.updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | - **body** | **Object**| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## updateUserMetadata - -> UpdateUserMetadataResponse updateUserMetadata(apiToken, userId, opts) - -Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - -## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'updateUserMetadataData': new SendbirdPlatformSdk.UpdateUserMetadataData() // UpdateUserMetadataData | -}; -apiInstance.updateUserMetadata(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **updateUserMetadataData** | [**UpdateUserMetadataData**](UpdateUserMetadataData.md)| | [optional] - -### Return type - -[**UpdateUserMetadataResponse**](UpdateUserMetadataResponse.md) -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json +## createAChannelMetadata -## updateUserMetadataByKey +> CreateAChannelMetadataResponse createAChannelMetadata(channelType, channelUrl, opts) -> {String: String} updateUserMetadataByKey(apiToken, userId, key, opts) - -Update a user metadata - When updating a specific item of a user metadata by its key +Create a channel metadata -## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. +## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ---------------------------- ### Example @@ -756,13 +25,13 @@ Update a user metadata - When updating a specific item of a user metadata by its import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let key = "key_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'body': {key: null} // Object | + 'apiToken': {{API_TOKEN}}, // String | + 'createAChannelMetadataRequest': new SendbirdPlatformSdk.CreateAChannelMetadataRequest() // CreateAChannelMetadataRequest | }; -apiInstance.updateUserMetadataByKey(apiToken, userId, key, opts).then((data) => { +apiInstance.createAChannelMetadata(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -775,14 +44,14 @@ apiInstance.updateUserMetadataByKey(apiToken, userId, key, opts).then((data) => Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **key** | **String**| | - **body** | **Object**| | [optional] + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **createAChannelMetadataRequest** | [**CreateAChannelMetadataRequest**](CreateAChannelMetadataRequest.md)| | [optional] ### Return type -**{String: String}** +[**CreateAChannelMetadataResponse**](CreateAChannelMetadataResponse.md) ### Authorization @@ -794,13 +63,13 @@ No authorization required - **Accept**: application/json -## viewChannelMetacounter +## deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata -> {String: String} viewChannelMetacounter(apiToken, channelType, channelUrl, opts) +> Object deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) -View a channel metacounter - When retrieving all items of a channel metacounter +Delete a channel metadata - When deleting all items of a channel metadata -## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. +## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. ### Example @@ -808,14 +77,13 @@ View a channel metacounter - When retrieving all items of a channel metacounter import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { 'key': "key_example", // String | - 'keys': ["null"] // [String] | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewChannelMetacounter(apiToken, channelType, channelUrl, opts).then((data) => { +apiInstance.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -828,61 +96,10 @@ apiInstance.viewChannelMetacounter(apiToken, channelType, channelUrl, opts).then Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | **key** | **String**| | [optional] - **keys** | [**[String]**](String.md)| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewChannelMetacounterByKey - -> Object viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key) - -View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - -## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -apiInstance.viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | + **apiToken** | **String**| | [optional] ### Return type @@ -898,13 +115,13 @@ No authorization required - **Accept**: application/json -## viewChannelMetadata +## updateAChannelMetadata -> {String: String} viewChannelMetadata(apiToken, channelType, channelUrl, opts) +> Object updateAChannelMetadata(channelType, channelUrl, opts) -View a channel metadata - When retrieving all items of a channel metadata +Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata -## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. +## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. ### Example @@ -912,65 +129,13 @@ View a channel metadata - When retrieving all items of a channel metadata import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'key': "key_example", // String | - 'keys': ["null"] // [String] | + 'apiToken': {{API_TOKEN}}, // String | + 'updateAChannelMetadataRequest': new SendbirdPlatformSdk.UpdateAChannelMetadataRequest() // UpdateAChannelMetadataRequest | }; -apiInstance.viewChannelMetadata(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | [optional] - **keys** | [**[String]**](String.md)| | [optional] - -### Return type - -**{String: String}** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewChannelMetadataByKey - -> {String: String} viewChannelMetadataByKey(apiToken, channelType, channelUrl, key) - -View a channel metadata - When retrieving a specific item of a channel metadata by its key - -## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let key = "key_example"; // String | -apiInstance.viewChannelMetadataByKey(apiToken, channelType, channelUrl, key).then((data) => { +apiInstance.updateAChannelMetadata(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -983,14 +148,14 @@ apiInstance.viewChannelMetadataByKey(apiToken, channelType, channelUrl, key).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **key** | **String**| | + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateAChannelMetadataRequest** | [**UpdateAChannelMetadataRequest**](UpdateAChannelMetadataRequest.md)| | [optional] ### Return type -**{String: String}** +**Object** ### Authorization @@ -998,17 +163,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## viewUserMetadata +## viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata -> ViewUserMetadataResponse viewUserMetadata(apiToken, userId, opts) +> Object viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) -View a user metadata - When retrieving all items of a user metadata +View a channel metadata - When retrieving all items of a channel metadata -## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. +## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. ### Example @@ -1016,13 +181,14 @@ View a user metadata - When retrieving all items of a user metadata import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let channelType = "channelType_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { 'key': "key_example", // String | - 'keys': ["null"] // [String] | + 'keys': "keys_example", // String | In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewUserMetadata(apiToken, userId, opts).then((data) => { +apiInstance.viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1035,62 +201,15 @@ apiInstance.viewUserMetadata(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **channelType** | **String**| (Required) | + **channelUrl** | **String**| (Required) | **key** | **String**| | [optional] - **keys** | [**[String]**](String.md)| | [optional] - -### Return type - -[**ViewUserMetadataResponse**](ViewUserMetadataResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewUserMetadataByKey - -> {String: String} viewUserMetadataByKey(apiToken, userId, key) - -View a user metadata - When retrieving a specific item of a user metadata by its key - -## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.MetadataApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let key = "key_example"; // String | -apiInstance.viewUserMetadataByKey(apiToken, userId, key).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **key** | **String**| | + **keys** | **String**| In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. | [optional] + **apiToken** | **String**| | [optional] ### Return type -**{String: String}** +**Object** ### Authorization diff --git a/docs/ModerationApi.md b/docs/ModerationApi.md index 5ad2feb..fc188e8 100644 --- a/docs/ModerationApi.md +++ b/docs/ModerationApi.md @@ -4,93 +4,21 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**banFromChannelsWithCustomChannelTypes**](ModerationApi.md#banFromChannelsWithCustomChannelTypes) | **POST** /v3/users/{user_id}/banned_channel_custom_types | Ban from channels with custom channel types -[**blockUser**](ModerationApi.md#blockUser) | **POST** /v3/users/{user_id}/block | Block a user -[**gcBanUser**](ModerationApi.md#gcBanUser) | **POST** /v3/group_channels/{channel_url}/ban | Ban a user -[**gcFreezeChannel**](ModerationApi.md#gcFreezeChannel) | **PUT** /v3/group_channels/{channel_url}/freeze | Freeze a channel -[**gcListBannedUsers**](ModerationApi.md#gcListBannedUsers) | **GET** /v3/group_channels/{channel_url}/ban | List banned users -[**gcListMutedUsers**](ModerationApi.md#gcListMutedUsers) | **GET** /v3/group_channels/{channel_url}/mute | List muted users -[**gcMuteUser**](ModerationApi.md#gcMuteUser) | **POST** /v3/group_channels/{channel_url}/mute | Mute a user -[**gcUnbanUserById**](ModerationApi.md#gcUnbanUserById) | **DELETE** /v3/group_channels/{channel_url}/ban/{banned_user_id} | Unban a user -[**gcUnmuteUserById**](ModerationApi.md#gcUnmuteUserById) | **DELETE** /v3/group_channels/{channel_url}/mute/{muted_user_id} | Unmute a user -[**gcUpdateBanById**](ModerationApi.md#gcUpdateBanById) | **PUT** /v3/group_channels/{channel_url}/ban/{banned_user_id} | Update a ban -[**gcViewBanById**](ModerationApi.md#gcViewBanById) | **GET** /v3/group_channels/{channel_url}/ban/{banned_user_id} | View a ban -[**gcViewMuteById**](ModerationApi.md#gcViewMuteById) | **GET** /v3/group_channels/{channel_url}/mute/{muted_user_id} | View a mute -[**listBannedChannels**](ModerationApi.md#listBannedChannels) | **GET** /v3/users/{user_id}/ban | List banned channels +[**blockAUser**](ModerationApi.md#blockAUser) | **POST** /v3/users/{user_id}/block | Block a user +[**freezeAGroupChannel**](ModerationApi.md#freezeAGroupChannel) | **PUT** /v3/group_channels/{channel_url}/freeze | Freeze a group channel +[**freezeAnOpenChannel**](ModerationApi.md#freezeAnOpenChannel) | **PUT** /v3/open_channels/{channel_url}/freeze | Freeze an open channel [**listBlockedUsers**](ModerationApi.md#listBlockedUsers) | **GET** /v3/users/{user_id}/block | List blocked users -[**listMutedChannels**](ModerationApi.md#listMutedChannels) | **GET** /v3/users/{user_id}/mute | List muted channels -[**muteInChannelsWithCustomChannelTypes**](ModerationApi.md#muteInChannelsWithCustomChannelTypes) | **POST** /v3/users/{user_id}/muted_channel_custom_types | Mute in channels with custom channel types -[**ocBanUser**](ModerationApi.md#ocBanUser) | **POST** /v3/open_channels/{channel_url}/ban | Ban a user -[**ocFreezeChannel**](ModerationApi.md#ocFreezeChannel) | **PUT** /v3/open_channels/{channel_url}/freeze | Freeze a channel -[**ocListBannedUsers**](ModerationApi.md#ocListBannedUsers) | **GET** /v3/open_channels/{channel_url}/ban | List banned users -[**ocListMutedUsers**](ModerationApi.md#ocListMutedUsers) | **GET** /v3/open_channels/{channel_url}/mute | List muted users -[**ocMuteUser**](ModerationApi.md#ocMuteUser) | **POST** /v3/open_channels/{channel_url}/mute | Mute a user -[**ocUnbanUserById**](ModerationApi.md#ocUnbanUserById) | **DELETE** /v3/open_channels/{channel_url}/ban/{banned_user_id} | Unban a user -[**ocUnmuteUserById**](ModerationApi.md#ocUnmuteUserById) | **DELETE** /v3/open_channels/{channel_url}/mute/{muted_user_id} | Unmute a user -[**ocUpdateBanById**](ModerationApi.md#ocUpdateBanById) | **PUT** /v3/open_channels/{channel_url}/ban/{banned_user_id} | Update a ban -[**ocViewBanById**](ModerationApi.md#ocViewBanById) | **GET** /v3/open_channels/{channel_url}/ban/{banned_user_id} | View a ban -[**ocViewMuteById**](ModerationApi.md#ocViewMuteById) | **GET** /v3/open_channels/{channel_url}/mute/{muted_user_id} | View a mute -[**unblockUserById**](ModerationApi.md#unblockUserById) | **DELETE** /v3/users/{user_id}/block/{target_id} | Unblock a user +[**unblockAUser**](ModerationApi.md#unblockAUser) | **DELETE** /v3/users/{user_id}/block/{target_id} | Unblock a user -## banFromChannelsWithCustomChannelTypes +## blockAUser -> Object banFromChannelsWithCustomChannelTypes(apiToken, userId, opts) - -Ban from channels with custom channel types - -## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'banFromChannelsWithCustomChannelTypesData': new SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData() // BanFromChannelsWithCustomChannelTypesData | -}; -apiInstance.banFromChannelsWithCustomChannelTypes(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **banFromChannelsWithCustomChannelTypesData** | [**BanFromChannelsWithCustomChannelTypesData**](BanFromChannelsWithCustomChannelTypesData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## blockUser - -> BlockUserResponse blockUser(apiToken, userId, opts) +> BlockAUserResponse blockAUser(userId, opts) Block a user -## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- +## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) ### Example @@ -98,12 +26,12 @@ Block a user import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'blockUserData': new SendbirdPlatformSdk.BlockUserData() // BlockUserData | + 'apiToken': {{API_TOKEN}}, // String | + 'blockAUserRequest': new SendbirdPlatformSdk.BlockAUserRequest() // BlockAUserRequest | }; -apiInstance.blockUser(apiToken, userId, opts).then((data) => { +apiInstance.blockAUser(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -116,13 +44,13 @@ apiInstance.blockUser(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **blockUserData** | [**BlockUserData**](BlockUserData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **blockAUserRequest** | [**BlockAUserRequest**](BlockAUserRequest.md)| | [optional] ### Return type -[**BlockUserResponse**](BlockUserResponse.md) +[**BlockAUserResponse**](BlockAUserResponse.md) ### Authorization @@ -134,13 +62,13 @@ No authorization required - **Accept**: application/json -## gcBanUser +## freezeAGroupChannel -> GcBanUserResponse gcBanUser(apiToken, channelUrl, opts) +> SendbirdGroupChannelDetail freezeAGroupChannel(channelUrl, opts) -Ban a user +Freeze a group channel -## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- +## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel) ### Example @@ -148,12 +76,12 @@ Ban a user import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcBanUserData': new SendbirdPlatformSdk.GcBanUserData() // GcBanUserData | + 'apiToken': {{API_TOKEN}}, // String | + 'freezeAGroupChannelRequest': new SendbirdPlatformSdk.FreezeAGroupChannelRequest() // FreezeAGroupChannelRequest | }; -apiInstance.gcBanUser(apiToken, channelUrl, opts).then((data) => { +apiInstance.freezeAGroupChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -166,13 +94,13 @@ apiInstance.gcBanUser(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcBanUserData** | [**GcBanUserData**](GcBanUserData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **freezeAGroupChannelRequest** | [**FreezeAGroupChannelRequest**](FreezeAGroupChannelRequest.md)| | [optional] ### Return type -[**GcBanUserResponse**](GcBanUserResponse.md) +[**SendbirdGroupChannelDetail**](SendbirdGroupChannelDetail.md) ### Authorization @@ -184,13 +112,13 @@ No authorization required - **Accept**: application/json -## gcFreezeChannel +## freezeAnOpenChannel -> SendBirdGroupChannel gcFreezeChannel(apiToken, channelUrl, opts) +> SendbirdOpenChannel freezeAnOpenChannel(channelUrl, opts) -Freeze a channel +Freeze an open channel -## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- +## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel) ### Example @@ -198,12 +126,12 @@ Freeze a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'gcFreezeChannelData': new SendbirdPlatformSdk.GcFreezeChannelData() // GcFreezeChannelData | + 'apiToken': {{API_TOKEN}}, // String | + 'freezeAnOpenChannelRequest': new SendbirdPlatformSdk.FreezeAnOpenChannelRequest() // FreezeAnOpenChannelRequest | }; -apiInstance.gcFreezeChannel(apiToken, channelUrl, opts).then((data) => { +apiInstance.freezeAnOpenChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -216,13 +144,13 @@ apiInstance.gcFreezeChannel(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcFreezeChannelData** | [**GcFreezeChannelData**](GcFreezeChannelData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **freezeAnOpenChannelRequest** | [**FreezeAnOpenChannelRequest**](FreezeAnOpenChannelRequest.md)| | [optional] ### Return type -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) +[**SendbirdOpenChannel**](SendbirdOpenChannel.md) ### Authorization @@ -234,65 +162,13 @@ No authorization required - **Accept**: application/json -## gcListBannedUsers - -> GcListBannedUsersResponse gcListBannedUsers(apiToken, channelUrl, opts) - -List banned users - -## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.gcListBannedUsers(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**GcListBannedUsersResponse**](GcListBannedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## gcListMutedUsers +## listBlockedUsers -> GcListMutedUsersResponse gcListMutedUsers(apiToken, channelUrl, opts) +> ListBlockedUsersResponse listBlockedUsers(userId, opts) -List muted users +List blocked users -## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. +## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user. ### Example @@ -300,13 +176,17 @@ List muted users import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { + 'list': "list_example", // String | Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) 'token': "token_example", // String | - 'limit': 56 // Number | + 'limit': 56, // Number | + 'userIds': "userIds_example", // String | Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. + 'metadatakey': "metadatakey_example", // String | + 'metadatavaluesIn': "metadatavaluesIn_example", // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcListMutedUsers(apiToken, channelUrl, opts).then((data) => { +apiInstance.listBlockedUsers(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -319,160 +199,18 @@ apiInstance.gcListMutedUsers(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **userId** | **String**| (Required) | + **list** | **String**| Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) | [optional] **token** | **String**| | [optional] **limit** | **Number**| | [optional] + **userIds** | **String**| Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. | [optional] + **metadatakey** | **String**| | [optional] + **metadatavaluesIn** | **String**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**GcListMutedUsersResponse**](GcListMutedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## gcMuteUser - -> SendBirdGroupChannel gcMuteUser(apiToken, channelUrl, opts) - -Mute a user - -## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'gcMuteUserData': new SendbirdPlatformSdk.GcMuteUserData() // GcMuteUserData | -}; -apiInstance.gcMuteUser(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **gcMuteUserData** | [**GcMuteUserData**](GcMuteUserData.md)| | [optional] - -### Return type - -[**SendBirdGroupChannel**](SendBirdGroupChannel.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## gcUnbanUserById - -> OcDeleteChannelByUrl200Response gcUnbanUserById(apiToken, channelUrl, bannedUserId) - -Unban a user - -## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | -apiInstance.gcUnbanUserById(apiToken, channelUrl, bannedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - -### Return type - -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## gcUnmuteUserById - -> OcDeleteChannelByUrl200Response gcUnmuteUserById(apiToken, channelUrl, mutedUserId) - -Unmute a user - -## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let mutedUserId = "mutedUserId_example"; // String | -apiInstance.gcUnmuteUserById(apiToken, channelUrl, mutedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **mutedUserId** | **String**| | - -### Return type - -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +[**ListBlockedUsersResponse**](ListBlockedUsersResponse.md) ### Authorization @@ -484,13 +222,13 @@ No authorization required - **Accept**: application/json -## gcUpdateBanById +## unblockAUser -> GcUpdateBanByIdResponse gcUpdateBanById(apiToken, channelUrl, bannedUserId, opts) +> Object unblockAUser(userId, targetId, opts) -Update a ban +Unblock a user -## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- +## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user ### Example @@ -498,868 +236,12 @@ Update a ban import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | +let userId = "userId_example"; // String | (Required) +let targetId = "targetId_example"; // String | (Required) let opts = { - 'gcUpdateBanByIdData': new SendbirdPlatformSdk.GcUpdateBanByIdData() // GcUpdateBanByIdData | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.gcUpdateBanById(apiToken, channelUrl, bannedUserId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - **gcUpdateBanByIdData** | [**GcUpdateBanByIdData**](GcUpdateBanByIdData.md)| | [optional] - -### Return type - -[**GcUpdateBanByIdResponse**](GcUpdateBanByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## gcViewBanById - -> GcViewBanByIdResponse gcViewBanById(apiToken, channelUrl, bannedUserId) - -View a ban - -## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | -apiInstance.gcViewBanById(apiToken, channelUrl, bannedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - -### Return type - -[**GcViewBanByIdResponse**](GcViewBanByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## gcViewMuteById - -> GcViewMuteByIdResponse gcViewMuteById(apiToken, channelUrl, mutedUserId) - -View a mute - -## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let mutedUserId = "mutedUserId_example"; // String | -apiInstance.gcViewMuteById(apiToken, channelUrl, mutedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **mutedUserId** | **String**| | - -### Return type - -[**GcViewMuteByIdResponse**](GcViewMuteByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listBannedChannels - -> ListBannedChannelsResponse listBannedChannels(apiToken, userId, opts) - -List banned channels - -## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listBannedChannels(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListBannedChannelsResponse**](ListBannedChannelsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listBlockedUsers - -> ListBlockedUsersResponse listBlockedUsers(apiToken, userId, opts) - -List blocked users - -## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'userIds': "userIds_example", // String | - 'metadatakey': "metadatakey_example", // String | - 'metadatavaluesIn': "metadatavaluesIn_example" // String | -}; -apiInstance.listBlockedUsers(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - **userIds** | **String**| | [optional] - **metadatakey** | **String**| | [optional] - **metadatavaluesIn** | **String**| | [optional] - -### Return type - -[**ListBlockedUsersResponse**](ListBlockedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listMutedChannels - -> ListMutedChannelsResponse listMutedChannels(apiToken, userId, opts) - -List muted channels - -## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listMutedChannels(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListMutedChannelsResponse**](ListMutedChannelsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## muteInChannelsWithCustomChannelTypes - -> Object muteInChannelsWithCustomChannelTypes(apiToken, userId, opts) - -Mute in channels with custom channel types - -## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'muteInChannelsWithCustomChannelTypesData': new SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData() // MuteInChannelsWithCustomChannelTypesData | -}; -apiInstance.muteInChannelsWithCustomChannelTypes(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **muteInChannelsWithCustomChannelTypesData** | [**MuteInChannelsWithCustomChannelTypesData**](MuteInChannelsWithCustomChannelTypesData.md)| | [optional] - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## ocBanUser - -> OcBanUserResponse ocBanUser(apiToken, channelUrl, opts) - -Ban a user - -## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'ocBanUserData': new SendbirdPlatformSdk.OcBanUserData() // OcBanUserData | -}; -apiInstance.ocBanUser(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **ocBanUserData** | [**OcBanUserData**](OcBanUserData.md)| | [optional] - -### Return type - -[**OcBanUserResponse**](OcBanUserResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## ocFreezeChannel - -> SendBirdOpenChannel ocFreezeChannel(apiToken, channelUrl, opts) - -Freeze a channel - -## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'ocFreezeChannelData': new SendbirdPlatformSdk.OcFreezeChannelData() // OcFreezeChannelData | -}; -apiInstance.ocFreezeChannel(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **ocFreezeChannelData** | [**OcFreezeChannelData**](OcFreezeChannelData.md)| | [optional] - -### Return type - -[**SendBirdOpenChannel**](SendBirdOpenChannel.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## ocListBannedUsers - -> OcListBannedUsersResponse ocListBannedUsers(apiToken, channelUrl, opts) - -List banned users - -## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.ocListBannedUsers(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**OcListBannedUsersResponse**](OcListBannedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## ocListMutedUsers - -> OcListMutedUsersResponse ocListMutedUsers(apiToken, channelUrl, opts) - -List muted users - -## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.ocListMutedUsers(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**OcListMutedUsersResponse**](OcListMutedUsersResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## ocMuteUser - -> SendBirdOpenChannel ocMuteUser(apiToken, channelUrl, opts) - -Mute a user - -## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'ocMuteUserData': new SendbirdPlatformSdk.OcMuteUserData() // OcMuteUserData | -}; -apiInstance.ocMuteUser(apiToken, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **ocMuteUserData** | [**OcMuteUserData**](OcMuteUserData.md)| | [optional] - -### Return type - -[**SendBirdOpenChannel**](SendBirdOpenChannel.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## ocUnbanUserById - -> OcDeleteChannelByUrl200Response ocUnbanUserById(apiToken, channelUrl, bannedUserId) - -Unban a user - -## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | -apiInstance.ocUnbanUserById(apiToken, channelUrl, bannedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - -### Return type - -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## ocUnmuteUserById - -> OcDeleteChannelByUrl200Response ocUnmuteUserById(apiToken, channelUrl, mutedUserId) - -Unmute a user - -## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let mutedUserId = "mutedUserId_example"; // String | -apiInstance.ocUnmuteUserById(apiToken, channelUrl, mutedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **mutedUserId** | **String**| | - -### Return type - -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## ocUpdateBanById - -> OcUpdateBanByIdResponse ocUpdateBanById(apiToken, channelUrl, bannedUserId, opts) - -Update a ban - -## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | -let opts = { - 'ocUpdateBanByIdData': new SendbirdPlatformSdk.OcUpdateBanByIdData() // OcUpdateBanByIdData | -}; -apiInstance.ocUpdateBanById(apiToken, channelUrl, bannedUserId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - **ocUpdateBanByIdData** | [**OcUpdateBanByIdData**](OcUpdateBanByIdData.md)| | [optional] - -### Return type - -[**OcUpdateBanByIdResponse**](OcUpdateBanByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## ocViewBanById - -> OcViewBanByIdResponse ocViewBanById(apiToken, channelUrl, bannedUserId) - -View a ban - -## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let bannedUserId = "bannedUserId_example"; // String | -apiInstance.ocViewBanById(apiToken, channelUrl, bannedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **bannedUserId** | **String**| | - -### Return type - -[**OcViewBanByIdResponse**](OcViewBanByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## ocViewMuteById - -> OcViewMuteByIdResponse ocViewMuteById(apiToken, channelUrl, mutedUserId) - -View a mute - -## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let mutedUserId = "mutedUserId_example"; // String | -apiInstance.ocViewMuteById(apiToken, channelUrl, mutedUserId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **mutedUserId** | **String**| | - -### Return type - -[**OcViewMuteByIdResponse**](OcViewMuteByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## unblockUserById - -> Object unblockUserById(apiToken, userId, targetId) - -Unblock a user - -## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ModerationApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let targetId = "targetId_example"; // String | -apiInstance.unblockUserById(apiToken, userId, targetId).then((data) => { +apiInstance.unblockAUser(userId, targetId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1372,9 +254,9 @@ apiInstance.unblockUserById(apiToken, userId, targetId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **targetId** | **String**| | + **userId** | **String**| (Required) | + **targetId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type diff --git a/docs/MuteInChannelsWithCustomChannelTypesData.md b/docs/MuteInChannelsWithCustomChannelTypesData.md deleted file mode 100644 index 92611f6..0000000 --- a/docs/MuteInChannelsWithCustomChannelTypesData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelCustomTypes** | **[String]** | Specifies an array of one or more custom channel types, in order to mute the user in channels with the channel types. The user is permanently muted unless unmuted (10 years, technically). | - - diff --git a/docs/MuteUsersInChannelsWithCustomChannelTypeData.md b/docs/MuteUsersInChannelsWithCustomChannelTypeData.md deleted file mode 100644 index 8629885..0000000 --- a/docs/MuteUsersInChannelsWithCustomChannelTypeData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userIds** | **[String]** | | -**seconds** | **Number** | | [optional] -**description** | **String** | | [optional] -**onDemandUpsert** | **Boolean** | | [optional] - - diff --git a/docs/OcBanUserData.md b/docs/OcBanUserData.md deleted file mode 100644 index 2fb3f5d..0000000 --- a/docs/OcBanUserData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.OcBanUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel where to ban the specified user. | -**userId** | **String** | Specifies the ID of the user to ban. | -**agentId** | **String** | Specifies the ID of the operator (agent) who bans the user. | -**seconds** | **Number** | Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) | -**description** | **String** | Specifies a reason for the banning. The length is limited to 250 characters. | - - diff --git a/docs/OcBanUserResponse.md b/docs/OcBanUserResponse.md deleted file mode 100644 index 60d3ca8..0000000 --- a/docs/OcBanUserResponse.md +++ /dev/null @@ -1,18 +0,0 @@ -# SendbirdPlatformSdk.OcBanUserResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] -**userId** | **String** | | [optional] -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**nextUrl** | **String** | | [optional] -**requireAuthForProfileImage** | **Boolean** | | [optional] -**nickname** | **String** | | [optional] -**profileUrl** | **String** | | [optional] -**metadata** | [**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) | | [optional] - - diff --git a/docs/OcCreateChannelData.md b/docs/OcCreateChannelData.md deleted file mode 100644 index 866cdf9..0000000 --- a/docs/OcCreateChannelData.md +++ /dev/null @@ -1,18 +0,0 @@ -# SendbirdPlatformSdk.OcCreateChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. (Default: open channel) | [optional] -**channelUrl** | **String** | Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. | [optional] -**coverUrl** | **String** | Specifies the URL of the cover image. The length is limited to 2,048 characters. | [optional] -**coverFile** | **File** | Uploads a file for the channel cover image. | [optional] -**customType** | **String** | Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | [optional] -**data** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | [optional] -**isEphemeral** | **Boolean** | Determines whether to preserve the messages in the channel for the purpose of retrieving chat history or not. It set to true, the messages in the channel are not saved in the Sendbird database and the chat history can't be retrieved. (Default: false) | [optional] -**isDynamicPartitioned2HowDynamicPartitioningWorks** | **Boolean** | Determines whether the channel is an open channel with dynamic partitioning or not. If the value of this property is true, the open channel can create several subchannels in order to accommodate a massive number of usres. (Default: false)<br/><br/> For the new Sendbird applications created after December 15, 2020, this property will be automatically set to true. | [optional] -**operatorIds** | **[String]** | Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.<br/><br/> Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. | [optional] -**operators** | **[String]** | (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. | [optional] - - diff --git a/docs/OcDeleteChannelByUrl200Response.md b/docs/OcDeleteChannelByUrl200Response.md deleted file mode 100644 index 4655846..0000000 --- a/docs/OcDeleteChannelByUrl200Response.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.OcDeleteChannelByUrl200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**anyOf** | **String** | | [optional] - - diff --git a/docs/OcFreezeChannelData.md b/docs/OcFreezeChannelData.md deleted file mode 100644 index df9dc49..0000000 --- a/docs/OcFreezeChannelData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.OcFreezeChannelData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to freeze. | -**freeze** | **Boolean** | Determines whether to freeze the channel. (Default: false) | - - diff --git a/docs/OcListBannedUsersResponse.md b/docs/OcListBannedUsersResponse.md deleted file mode 100644 index 22b78ae..0000000 --- a/docs/OcListBannedUsersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.OcListBannedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bannedList** | [**[OcListBannedUsersResponseBannedListInner]**](OcListBannedUsersResponseBannedListInner.md) | | [optional] -**totalBanCount** | **Number** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/OcListBannedUsersResponseBannedListInner.md b/docs/OcListBannedUsersResponseBannedListInner.md deleted file mode 100644 index e23c3eb..0000000 --- a/docs/OcListBannedUsersResponseBannedListInner.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/OcListChannelsResponse.md b/docs/OcListChannelsResponse.md deleted file mode 100644 index 82289c8..0000000 --- a/docs/OcListChannelsResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.OcListChannelsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channels** | [**[SendBirdOpenChannel]**](SendBirdOpenChannel.md) | | [optional] -**next** | **String** | | [optional] -**ts** | **Number** | | [optional] - - diff --git a/docs/OcListMutedUsersResponse.md b/docs/OcListMutedUsersResponse.md deleted file mode 100644 index 41cae45..0000000 --- a/docs/OcListMutedUsersResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.OcListMutedUsersResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mutedList** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**totalMuteCount** | **Number** | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/OcListOperatorsResponse.md b/docs/OcListOperatorsResponse.md deleted file mode 100644 index 12d6943..0000000 --- a/docs/OcListOperatorsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.OcListOperatorsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**operators** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/OcListParticipantsResponse.md b/docs/OcListParticipantsResponse.md deleted file mode 100644 index 8257af0..0000000 --- a/docs/OcListParticipantsResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.OcListParticipantsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**participants** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**next** | **String** | | [optional] - - diff --git a/docs/OcMuteUserData.md b/docs/OcMuteUserData.md deleted file mode 100644 index 34607cd..0000000 --- a/docs/OcMuteUserData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.OcMuteUserData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | Specifies the ID of the target user to mute. | -**seconds** | **Number** | Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) | -**description** | **String** | Specifies a reason for the muting. | - - diff --git a/docs/OcRegisterOperatorsData.md b/docs/OcRegisterOperatorsData.md deleted file mode 100644 index 159b1ca..0000000 --- a/docs/OcRegisterOperatorsData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.OcRegisterOperatorsData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to register operators to. | -**operatorIds** | **[String]** | Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100. | - - diff --git a/docs/OcUpdateBanByIdData.md b/docs/OcUpdateBanByIdData.md deleted file mode 100644 index 7b0197f..0000000 --- a/docs/OcUpdateBanByIdData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.OcUpdateBanByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the target channel. | -**bannedUserId** | **String** | Specifies the ID of the banned user to update. | -**seconds** | **Number** | Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). | -**description** | **String** | Specifies a new reason for the banning to update. The length is limited to 250 characters. | - - diff --git a/docs/OcUpdateBanByIdResponse.md b/docs/OcUpdateBanByIdResponse.md deleted file mode 100644 index 7f9131f..0000000 --- a/docs/OcUpdateBanByIdResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.OcUpdateBanByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**description** | **String** | | [optional] -**endAt** | **Number** | | [optional] -**startAt** | **Number** | | [optional] - - diff --git a/docs/OcUpdateChannelByUrlData.md b/docs/OcUpdateChannelByUrlData.md deleted file mode 100644 index 3587c94..0000000 --- a/docs/OcUpdateChannelByUrlData.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.OcUpdateChannelByUrlData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | Specifies the URL of the channel to update. | -**name** | **String** | Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. | -**coverUrl** | **String** | Specifies the URL of the cover image. The length is limited to 2,048 characters. | -**coverFile** | **File** | Uploads the file for the channel cover image. | -**customType** | **String** | Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | -**data** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | -**operatorIds** | **[String]** | Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.<br/><br/> Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. | -**operators** | **[String]** | (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. | - - diff --git a/docs/OcViewBanByIdResponse.md b/docs/OcViewBanByIdResponse.md deleted file mode 100644 index 83eb51e..0000000 --- a/docs/OcViewBanByIdResponse.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.OcViewBanByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**description** | **String** | | [optional] -**endAt** | **Number** | | [optional] -**startAt** | **Number** | | [optional] - - diff --git a/docs/OcViewMuteByIdResponse.md b/docs/OcViewMuteByIdResponse.md deleted file mode 100644 index 8c237ca..0000000 --- a/docs/OcViewMuteByIdResponse.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.OcViewMuteByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**isMuted** | **Boolean** | | [optional] -**remainingDuration** | **Number** | | [optional] -**startAt** | **Number** | | [optional] -**endAt** | **Number** | | [optional] -**description** | **String** | | [optional] - - diff --git a/docs/OpenChannelApi.md b/docs/OpenChannelApi.md index 80bff71..c428823 100644 --- a/docs/OpenChannelApi.md +++ b/docs/OpenChannelApi.md @@ -4,25 +4,24 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**ocCancelTheRegistrationOfOperators**](OpenChannelApi.md#ocCancelTheRegistrationOfOperators) | **DELETE** /v3/open_channels/{channel_url}/operators | Cancel the registration of operators -[**ocCreateChannel**](OpenChannelApi.md#ocCreateChannel) | **POST** /v3/open_channels | Create a channel -[**ocDeleteChannelByUrl**](OpenChannelApi.md#ocDeleteChannelByUrl) | **DELETE** /v3/open_channels/{channel_url} | Delete a channel -[**ocListChannels**](OpenChannelApi.md#ocListChannels) | **GET** /v3/open_channels | List channels -[**ocListOperators**](OpenChannelApi.md#ocListOperators) | **GET** /v3/open_channels/{channel_url}/operators | List operators -[**ocListParticipants**](OpenChannelApi.md#ocListParticipants) | **GET** /v3/open_channels/{channel_url}/participants | List participants -[**ocRegisterOperators**](OpenChannelApi.md#ocRegisterOperators) | **POST** /v3/open_channels/{channel_url}/operators | Register operators -[**ocUpdateChannelByUrl**](OpenChannelApi.md#ocUpdateChannelByUrl) | **PUT** /v3/open_channels/{channel_url} | Update a channel -[**ocViewChannelByUrl**](OpenChannelApi.md#ocViewChannelByUrl) | **GET** /v3/open_channels/{channel_url} | View a channel +[**createAnOpenChannel**](OpenChannelApi.md#createAnOpenChannel) | **POST** /v3/open_channels | Create an open channel +[**deleteAnOpenChannel**](OpenChannelApi.md#deleteAnOpenChannel) | **DELETE** /v3/open_channels/{channel_url} | Delete an open channel +[**getAnOpenChannel**](OpenChannelApi.md#getAnOpenChannel) | **GET** /v3/open_channels/{channel_url} | Get an open channel +[**listChannelOperators**](OpenChannelApi.md#listChannelOperators) | **GET** /v3/open_channels/{channel_url}/operators | List operators of an open channel +[**listOpenChannels**](OpenChannelApi.md#listOpenChannels) | **GET** /v3/open_channels | List open channels +[**registerOperators**](OpenChannelApi.md#registerOperators) | **POST** /v3/open_channels/{channel_url}/operators | Register operators to an open channel +[**unregisterOperators**](OpenChannelApi.md#unregisterOperators) | **DELETE** /v3/open_channels/{channel_url}/operators | Unregister operators from an open channel +[**updateAnOpenChannel**](OpenChannelApi.md#updateAnOpenChannel) | **PUT** /v3/open_channels/{channel_url} | Update an open channel -## ocCancelTheRegistrationOfOperators +## createAnOpenChannel -> ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) +> SendbirdOpenChannel createAnOpenChannel(opts) -Cancel the registration of operators +Create an open channel -## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. +## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) ### Example @@ -30,63 +29,11 @@ Cancel the registration of operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -let operatorIds = ["null"]; // [String] | let opts = { - 'deleteAll': true // Boolean | + 'apiToken': {{API_TOKEN}}, // String | + 'createAnOpenChannelRequest': new SendbirdPlatformSdk.CreateAnOpenChannelRequest() // CreateAnOpenChannelRequest | }; -apiInstance.ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **operatorIds** | [**[String]**](String.md)| | - **deleteAll** | **Boolean**| | [optional] - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## ocCreateChannel - -> SendBirdOpenChannel ocCreateChannel(apiToken, opts) - -Create a channel - -## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'ocCreateChannelData': new SendbirdPlatformSdk.OcCreateChannelData() // OcCreateChannelData | -}; -apiInstance.ocCreateChannel(apiToken, opts).then((data) => { +apiInstance.createAnOpenChannel(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -99,12 +46,12 @@ apiInstance.ocCreateChannel(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **ocCreateChannelData** | [**OcCreateChannelData**](OcCreateChannelData.md)| | [optional] + **apiToken** | **String**| | [optional] + **createAnOpenChannelRequest** | [**CreateAnOpenChannelRequest**](CreateAnOpenChannelRequest.md)| | [optional] ### Return type -[**SendBirdOpenChannel**](SendBirdOpenChannel.md) +[**SendbirdOpenChannel**](SendbirdOpenChannel.md) ### Authorization @@ -116,13 +63,13 @@ No authorization required - **Accept**: application/json -## ocDeleteChannelByUrl +## deleteAnOpenChannel -> OcDeleteChannelByUrl200Response ocDeleteChannelByUrl(apiToken, channelUrl) +> Object deleteAnOpenChannel(channelUrl, opts) -Delete a channel +Delete an open channel -## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- +## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel ### Example @@ -130,9 +77,11 @@ Delete a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.ocDeleteChannelByUrl(apiToken, channelUrl).then((data) => { +let channelUrl = "channelUrl_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.deleteAnOpenChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -145,12 +94,12 @@ apiInstance.ocDeleteChannelByUrl(apiToken, channelUrl).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -162,13 +111,13 @@ No authorization required - **Accept**: application/json -## ocListChannels +## getAnOpenChannel -> OcListChannelsResponse ocListChannels(apiToken, opts) +> SendbirdOpenChannel getAnOpenChannel(channelUrl, opts) -List channels +Get an open channel -## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- +## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel) ### Example @@ -176,18 +125,12 @@ List channels import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'customTypes': "customTypes_example", // String | - 'nameContains': "nameContains_example", // String | - 'urlContains': "urlContains_example", // String | - 'showFrozen': true, // Boolean | - 'showMetadata': true, // Boolean | - 'customType': "customType_example" // String | + 'apiToken': {{API_TOKEN}}, // String | + 'includeOperators': true // Boolean | Determines whether to include a list of operators in the response. (Default: false) }; -apiInstance.ocListChannels(apiToken, opts).then((data) => { +apiInstance.getAnOpenChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -200,19 +143,13 @@ apiInstance.ocListChannels(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - **customTypes** | **String**| | [optional] - **nameContains** | **String**| | [optional] - **urlContains** | **String**| | [optional] - **showFrozen** | **Boolean**| | [optional] - **showMetadata** | **Boolean**| | [optional] - **customType** | **String**| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **includeOperators** | **Boolean**| Determines whether to include a list of operators in the response. (Default: false) | [optional] ### Return type -[**OcListChannelsResponse**](OcListChannelsResponse.md) +[**SendbirdOpenChannel**](SendbirdOpenChannel.md) ### Authorization @@ -224,13 +161,13 @@ No authorization required - **Accept**: application/json -## ocListOperators +## listChannelOperators -> OcListOperatorsResponse ocListOperators(apiToken, channelUrl, opts) +> ListOperatorsResponse listChannelOperators(channelUrl, opts) -List operators +List operators of an open channel -## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. +## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. ### Example @@ -238,13 +175,13 @@ List operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { 'token': "token_example", // String | - 'limit': 56 // Number | + 'limit': 56, // Number | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.ocListOperators(apiToken, channelUrl, opts).then((data) => { +apiInstance.listChannelOperators(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -257,14 +194,14 @@ apiInstance.ocListOperators(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **channelUrl** | **String**| (Required) | **token** | **String**| | [optional] **limit** | **Number**| | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**OcListOperatorsResponse**](OcListOperatorsResponse.md) +[**ListOperatorsResponse**](ListOperatorsResponse.md) ### Authorization @@ -276,13 +213,13 @@ No authorization required - **Accept**: application/json -## ocListParticipants +## listOpenChannels -> OcListParticipantsResponse ocListParticipants(apiToken, channelUrl, opts) +> ListOpenChannelsResponse listOpenChannels(opts) -List participants +List open channels -## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. +## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels) ### Example @@ -290,13 +227,18 @@ List participants import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | let opts = { 'token': "token_example", // String | - 'limit': 56 // Number | + 'channelUrls': "channelUrls_example", // String | Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + 'limit': 56, // Number | + 'customTypes': "customTypes_example", // String | Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. + 'nameContains': "nameContains_example", // String | + 'urlContains': "urlContains_example", // String | + 'showFrozen': true, // Boolean | Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) + 'showMetadata': true, // Boolean | Determines whether to include channel metadata in the response. (Default: false) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.ocListParticipants(apiToken, channelUrl, opts).then((data) => { +apiInstance.listOpenChannels(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -309,14 +251,19 @@ apiInstance.ocListParticipants(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | **token** | **String**| | [optional] + **channelUrls** | **String**| Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. | [optional] **limit** | **Number**| | [optional] + **customTypes** | **String**| Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. | [optional] + **nameContains** | **String**| | [optional] + **urlContains** | **String**| | [optional] + **showFrozen** | **Boolean**| Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) | [optional] + **showMetadata** | **Boolean**| Determines whether to include channel metadata in the response. (Default: false) | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**OcListParticipantsResponse**](OcListParticipantsResponse.md) +[**ListOpenChannelsResponse**](ListOpenChannelsResponse.md) ### Authorization @@ -328,13 +275,13 @@ No authorization required - **Accept**: application/json -## ocRegisterOperators +## registerOperators -> OcDeleteChannelByUrl200Response ocRegisterOperators(apiToken, channelUrl, opts) +> Object registerOperators(channelUrl, opts) -Register operators +Register operators to an open channel -## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- +## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel ### Example @@ -342,12 +289,12 @@ Register operators import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'ocRegisterOperatorsData': new SendbirdPlatformSdk.OcRegisterOperatorsData() // OcRegisterOperatorsData | + 'apiToken': {{API_TOKEN}}, // String | + 'registerOperatorsToAGroupChannelRequest': new SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest() // RegisterOperatorsToAGroupChannelRequest | }; -apiInstance.ocRegisterOperators(apiToken, channelUrl, opts).then((data) => { +apiInstance.registerOperators(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -360,13 +307,13 @@ apiInstance.ocRegisterOperators(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **ocRegisterOperatorsData** | [**OcRegisterOperatorsData**](OcRegisterOperatorsData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **registerOperatorsToAGroupChannelRequest** | [**RegisterOperatorsToAGroupChannelRequest**](RegisterOperatorsToAGroupChannelRequest.md)| | [optional] ### Return type -[**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) +**Object** ### Authorization @@ -378,13 +325,13 @@ No authorization required - **Accept**: application/json -## ocUpdateChannelByUrl +## unregisterOperators -> SendBirdOpenChannel ocUpdateChannelByUrl(apiToken, channelUrl, opts) +> Object unregisterOperators(channelUrl, operatorIds, opts) -Update a channel +Unregister operators from an open channel -## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- +## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. ### Example @@ -392,12 +339,13 @@ Update a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | +let channelUrl = "channelUrl_example"; // String | (Required) +let operatorIds = "operatorIds_example"; // String | Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. let opts = { - 'ocUpdateChannelByUrlData': new SendbirdPlatformSdk.OcUpdateChannelByUrlData() // OcUpdateChannelByUrlData | + 'deleteAll': true, // Boolean | Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.ocUpdateChannelByUrl(apiToken, channelUrl, opts).then((data) => { +apiInstance.unregisterOperators(channelUrl, operatorIds, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -410,13 +358,14 @@ apiInstance.ocUpdateChannelByUrl(apiToken, channelUrl, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | - **ocUpdateChannelByUrlData** | [**OcUpdateChannelByUrlData**](OcUpdateChannelByUrlData.md)| | [optional] + **channelUrl** | **String**| (Required) | + **operatorIds** | **String**| Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. | + **deleteAll** | **Boolean**| Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**SendBirdOpenChannel**](SendBirdOpenChannel.md) +**Object** ### Authorization @@ -424,17 +373,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## ocViewChannelByUrl +## updateAnOpenChannel -> SendBirdOpenChannel ocViewChannelByUrl(apiToken, channelUrl) +> SendbirdOpenChannel updateAnOpenChannel(channelUrl, opts) -View a channel +Update an open channel -## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- +## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel ### Example @@ -442,9 +391,12 @@ View a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.OpenChannelApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.ocViewChannelByUrl(apiToken, channelUrl).then((data) => { +let channelUrl = "channelUrl_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}}, // String | + 'updateAnOpenChannelRequest': new SendbirdPlatformSdk.UpdateAnOpenChannelRequest() // UpdateAnOpenChannelRequest | +}; +apiInstance.updateAnOpenChannel(channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -457,12 +409,13 @@ apiInstance.ocViewChannelByUrl(apiToken, channelUrl).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelUrl** | **String**| | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateAnOpenChannelRequest** | [**UpdateAnOpenChannelRequest**](UpdateAnOpenChannelRequest.md)| | [optional] ### Return type -[**SendBirdOpenChannel**](SendBirdOpenChannel.md) +[**SendbirdOpenChannel**](SendbirdOpenChannel.md) ### Authorization @@ -470,6 +423,6 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json diff --git a/docs/PrivacyApi.md b/docs/PrivacyApi.md deleted file mode 100644 index 2075153..0000000 --- a/docs/PrivacyApi.md +++ /dev/null @@ -1,202 +0,0 @@ -# SendbirdPlatformSdk.PrivacyApi - -All URIs are relative to *https://api-APP_ID.sendbird.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**cancelTheRegistrationOfGdprRequestById**](PrivacyApi.md#cancelTheRegistrationOfGdprRequestById) | **DELETE** /v3/privacy/gdpr/{request_id} | Cancel the registration of a GDPR request -[**listGdprRequests**](PrivacyApi.md#listGdprRequests) | **GET** /v3/privacy/gdpr | List GDPR requests -[**registerGdprRequest**](PrivacyApi.md#registerGdprRequest) | **POST** /v3/privacy/gdpr | Register a GDPR request -[**viewGdprRequestById**](PrivacyApi.md#viewGdprRequestById) | **GET** /v3/privacy/gdpr/{request_id} | View a GDPR request - - - -## cancelTheRegistrationOfGdprRequestById - -> cancelTheRegistrationOfGdprRequestById(apiToken, requestId) - -Cancel the registration of a GDPR request - -## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.PrivacyApi(); -let apiToken = {{API_TOKEN}}; // String | -let requestId = "requestId_example"; // String | -apiInstance.cancelTheRegistrationOfGdprRequestById(apiToken, requestId).then(() => { - console.log('API called successfully.'); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **requestId** | **String**| | - -### Return type - -null (empty response body) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - - -## listGdprRequests - -> ListGdprRequestsResponse listGdprRequests(apiToken, opts) - -List GDPR requests - -## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.PrivacyApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listGdprRequests(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListGdprRequestsResponse**](ListGdprRequestsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## registerGdprRequest - -> RegisterGdprRequestResponse registerGdprRequest(apiToken, opts) - -Register a GDPR request - -## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.PrivacyApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'registerGdprRequestData': new SendbirdPlatformSdk.RegisterGdprRequestData() // RegisterGdprRequestData | -}; -apiInstance.registerGdprRequest(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **registerGdprRequestData** | [**RegisterGdprRequestData**](RegisterGdprRequestData.md)| | [optional] - -### Return type - -[**RegisterGdprRequestResponse**](RegisterGdprRequestResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## viewGdprRequestById - -> ViewGdprRequestByIdResponse viewGdprRequestById(apiToken, requestId) - -View a GDPR request - -## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.PrivacyApi(); -let apiToken = {{API_TOKEN}}; // String | -let requestId = "requestId_example"; // String | -apiInstance.viewGdprRequestById(apiToken, requestId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **requestId** | **String**| | - -### Return type - -[**ViewGdprRequestByIdResponse**](ViewGdprRequestByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/RegisterAndScheduleDataExportData.md b/docs/RegisterAndScheduleDataExportData.md deleted file mode 100644 index e8f955c..0000000 --- a/docs/RegisterAndScheduleDataExportData.md +++ /dev/null @@ -1,21 +0,0 @@ -# SendbirdPlatformSdk.RegisterAndScheduleDataExportData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startTs** | **Number** | Specifies the starting timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. | -**endTs** | **Number** | Specifies the ending timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. | -**format** | **String** | Specifies the format of the file to export the messages to. Acceptable values are json and csv. (Default: json) | [optional] -**csvDelimiter** | **String** | Sets a single character delimiter to separate the values in each row of the csv file which stores two-dimensional arrays of the exported message data. Either English alphabets or special characters can be used as a delimiter, including a horizontal tab (\\t), a line feed (\\n), a vertical bar (\\ | [optional] -**timezone** | **String** | Specifies the timezone to be applied to the timestamp of the exported messages. For example, US/Pacific, Asia/Seoul, Europe/London, etc. (Default: UTC) | [optional] -**senderIds** | **[String]** | Specifies an array of the IDs of the users which are used to filter the messages by its sender for the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs in the request. (Default: all messages sent by any user) | [optional] -**excludeSenderIds** | **[String]** | Specifies an array of the IDs of the users which are used to exclude their sent messages from the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs. (Default: all messages sent by any user) | [optional] -**channelUrls** | **[String]** | Specifies an array of one or more URLs of channels to export the messages from. This property is effective only when the data_type parameter is set to messages or channels. (Default: all channels) | [optional] -**excludeChannelUrls** | **[String]** | Specifies an array of one or more URLs of channels to exclude when exporting the messages. This property is effective only when the data_type parameter is set to messages or channels. (Default: include all channels) | [optional] -**userIds** | **[String]** | Specifies an array of the IDs of the users to export their information. This property is effective only when the data_type parameter is set to users. (Default: all users) | [optional] -**showReadReceipt** | **Boolean** | Determines whether to include information about the read receipts of each channel in the exported data. The read receipt indicates the timestamps of when each user has last read the messages in the channel, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). (Default: true) | [optional] -**showChannelMetadata** | **Boolean** | Determines whether to include [channel metadata](/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata) in the result files. | [optional] -**neighboringMessageLimit** | **Number** | Specifies the maximum number of other users' messages to be exported, which took place after the specified message of a user filtered by the sender_ids property. Even if there may be more messages that took place, if the quantity exceeds the number of the neighboring_message_limit, they are omitted. Only the messages that took place right after the specified message will be counted and exported. This can be used to better analyze the context. Acceptable values are 1 to 10, inclusive. (Default: 0) | [optional] - - diff --git a/docs/RegisterAndScheduleDataExportResponse.md b/docs/RegisterAndScheduleDataExportResponse.md deleted file mode 100644 index a92c2af..0000000 --- a/docs/RegisterAndScheduleDataExportResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelCustomTypes** | **[String]** | | [optional] -**dataType** | **String** | | [optional] -**requestId** | **String** | | [optional] -**status** | **String** | | [optional] -**format** | **String** | | [optional] -**csvDelimiter** | **String** | | [optional] -**timezone** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**startTs** | **Number** | | [optional] -**endTs** | **Number** | | [optional] -**channelUrls** | **[String]** | | [optional] -**senderIds** | **[String]** | | [optional] -**file** | [**ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile**](ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md) | | [optional] -**userIds** | **[String]** | | [optional] - - diff --git a/docs/RegisterAsOperatorToChannelsWithCustomChannelTypesData.md b/docs/RegisterAsOperatorToChannelsWithCustomChannelTypesData.md deleted file mode 100644 index 9889d0a..0000000 --- a/docs/RegisterAsOperatorToChannelsWithCustomChannelTypesData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelCustomTypes** | **[String]** | Specifies an array of one or more custom channel types, in order to register the user as an operator to channels with the channel types. | - - diff --git a/docs/RegisterGdprRequestData.md b/docs/RegisterGdprRequestData.md deleted file mode 100644 index 2f6cdc6..0000000 --- a/docs/RegisterGdprRequestData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.RegisterGdprRequestData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**action** | **String** | Determines the type of a GDPR request. Acceptable values are limited to access and delete. If set to access, Sendbird server generates a downloadable zip file containing the data of the specified user with the user_id property to comply with GDPR's [right to access](https://gdpr-info.eu/art-15-gdpr/) of the data subject. If set to delete, the specified users with the user_ids property will be permanently deleted from your Sendbird application to comply with GDPR's [right to erasure](https://gdpr-info.eu/art-17-gdpr/) of the data subject. (Default: delete) | -**userIds** | **[String]** | Specifies an array of the IDs of the users to delete in order to meet the GDPR's requirements. The maximum number of users to be processed at once is 100. This should be specified when the value of the action property is delete. | -**channelDeleteOption** | **String** | Determines the scope of group channels to delete in addition to deleting the specified users with the user_ids property. Acceptable values are limited to the following:<br />- do_not_delete (default): the users will be deleted but their joined group channels will remain.<br />- 1_on_1: only 1-on-1 group channels of the users will be deleted. (This option can be useful when eliminating spam users) <br />- all: all joined group channels of the users will be deleted.<br /><br /> This only works when the value of the action property is delete. | -**userId** | **String** | Specifies the ID of the user to meet the GDPR's requirements. | - - diff --git a/docs/RegisterGdprRequestResponse.md b/docs/RegisterGdprRequestResponse.md deleted file mode 100644 index 743e101..0000000 --- a/docs/RegisterGdprRequestResponse.md +++ /dev/null @@ -1,15 +0,0 @@ -# SendbirdPlatformSdk.RegisterGdprRequestResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**action** | **String** | | [optional] -**status** | **String** | | [optional] -**userId** | **String** | | [optional] -**userIds** | **[String]** | | [optional] -**channelDeleteOption** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/RegisterOperatorsToAGroupChannelRequest.md b/docs/RegisterOperatorsToAGroupChannelRequest.md new file mode 100644 index 0000000..08affa5 --- /dev/null +++ b/docs/RegisterOperatorsToAGroupChannelRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**operatorIds** | **[String]** | | + + diff --git a/docs/RemoveARegistrationOrDeviceTokenResponse.md b/docs/RemoveARegistrationOrDeviceTokenResponse.md new file mode 100644 index 0000000..4ed792a --- /dev/null +++ b/docs/RemoveARegistrationOrDeviceTokenResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **String** | | [optional] +**user** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] + + diff --git a/docs/RemoveAllRegistrationOrDeviceTokenResponse.md b/docs/RemoveAllRegistrationOrDeviceTokenResponse.md new file mode 100644 index 0000000..592f1e1 --- /dev/null +++ b/docs/RemoveAllRegistrationOrDeviceTokenResponse.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**token** | **[String]** | | [optional] +**user** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] + + diff --git a/docs/RemovePushConfigurationByIdResponse.md b/docs/RemovePushConfigurationByIdResponse.md deleted file mode 100644 index 448d99a..0000000 --- a/docs/RemovePushConfigurationByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.RemovePushConfigurationByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | **[String]** | | [optional] - - diff --git a/docs/RemoveReactionFromAMessageResponse.md b/docs/RemoveReactionFromAMessageResponse.md deleted file mode 100644 index 1ec5b1f..0000000 --- a/docs/RemoveReactionFromAMessageResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.RemoveReactionFromAMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reaction** | **String** | | [optional] -**userId** | **Number** | | [optional] -**success** | **Boolean** | | [optional] -**msgId** | **Number** | | [optional] -**updatedAt** | **Number** | | [optional] -**operation** | **String** | | [optional] - - diff --git a/docs/RemoveRegistrationOrDeviceTokenByTokenResponse.md b/docs/RemoveRegistrationOrDeviceTokenByTokenResponse.md deleted file mode 100644 index 900bdd7..0000000 --- a/docs/RemoveRegistrationOrDeviceTokenByTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **[String]** | | [optional] -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] - - diff --git a/docs/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.md b/docs/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.md deleted file mode 100644 index 2b0651d..0000000 --- a/docs/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | [optional] - - diff --git a/docs/RemoveRegistrationOrDeviceTokenResponse.md b/docs/RemoveRegistrationOrDeviceTokenResponse.md deleted file mode 100644 index 5fa2023..0000000 --- a/docs/RemoveRegistrationOrDeviceTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **[String]** | | [optional] -**user** | [**SendBirdUser**](SendBirdUser.md) | | [optional] - - diff --git a/docs/ReportApi.md b/docs/ReportApi.md deleted file mode 100644 index 161d7cb..0000000 --- a/docs/ReportApi.md +++ /dev/null @@ -1,438 +0,0 @@ -# SendbirdPlatformSdk.ReportApi - -All URIs are relative to *https://api-APP_ID.sendbird.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**listReports**](ReportApi.md#listReports) | **GET** /v3/report | List reports -[**listReportsOnChannelByUrl**](ReportApi.md#listReportsOnChannelByUrl) | **GET** /v3/report/{channel_type}/{channel_url} | List reports on a channel -[**listReportsOnMessageById**](ReportApi.md#listReportsOnMessageById) | **GET** /v3/report/{channel_type}/{channel_url}/messages/{message_id} | List reports on a message -[**listReportsOnUserById**](ReportApi.md#listReportsOnUserById) | **GET** /v3/report/users/{offending_user_id} | List reports on a user -[**reportChannelByUrl**](ReportApi.md#reportChannelByUrl) | **POST** /v3/report/{channel_type}/{channel_url} | Report a channel -[**reportMessageById**](ReportApi.md#reportMessageById) | **POST** /v3/report/{channel_type}/{channel_url}/messages/{message_id} | Report a message -[**reportUserById**](ReportApi.md#reportUserById) | **POST** /v3/report/users/{offending_user_id} | Report a user -[**viewModeratedMessageById**](ReportApi.md#viewModeratedMessageById) | **GET** /v3/report/{channel_type}/{channel_url}/profanity_messages/{message_id} | View a moderated message - - - -## listReports - -> ListReportsResponse listReports(apiToken, opts) - -List reports - -## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'startTs': 56, // Number | - 'endTs': 56 // Number | -}; -apiInstance.listReports(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - **startTs** | **Number**| | [optional] - **endTs** | **Number**| | [optional] - -### Return type - -[**ListReportsResponse**](ListReportsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listReportsOnChannelByUrl - -> ListReportsOnChannelByUrlResponse listReportsOnChannelByUrl(apiToken, channelType, channelUrl, opts) - -List reports on a channel - -## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listReportsOnChannelByUrl(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListReportsOnChannelByUrlResponse**](ListReportsOnChannelByUrlResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listReportsOnMessageById - -> ListReportsOnMessageByIdResponse listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, opts) - -List reports on a message - -## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListReportsOnMessageByIdResponse**](ListReportsOnMessageByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## listReportsOnUserById - -> ListReportsOnUserByIdResponse listReportsOnUserById(apiToken, offendingUserId, opts) - -List reports on a user - -## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let offendingUserId = "offendingUserId_example"; // String | -let opts = { - 'token': "token_example", // String | - 'limit': 56 // Number | -}; -apiInstance.listReportsOnUserById(apiToken, offendingUserId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **offendingUserId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] - -### Return type - -[**ListReportsOnUserByIdResponse**](ListReportsOnUserByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## reportChannelByUrl - -> ReportChannelByUrlResponse reportChannelByUrl(apiToken, channelType, channelUrl, opts) - -Report a channel - -## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let opts = { - 'reportChannelByUrlData': new SendbirdPlatformSdk.ReportChannelByUrlData() // ReportChannelByUrlData | -}; -apiInstance.reportChannelByUrl(apiToken, channelType, channelUrl, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **reportChannelByUrlData** | [**ReportChannelByUrlData**](ReportChannelByUrlData.md)| | [optional] - -### Return type - -[**ReportChannelByUrlResponse**](ReportChannelByUrlResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## reportMessageById - -> ReportMessageByIdResponse reportMessageById(apiToken, channelType, channelUrl, messageId, opts) - -Report a message - -## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -let opts = { - 'reportMessageByIdData': new SendbirdPlatformSdk.ReportMessageByIdData() // ReportMessageByIdData | -}; -apiInstance.reportMessageById(apiToken, channelType, channelUrl, messageId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - **reportMessageByIdData** | [**ReportMessageByIdData**](ReportMessageByIdData.md)| | [optional] - -### Return type - -[**ReportMessageByIdResponse**](ReportMessageByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## reportUserById - -> ReportUserByIdResponse reportUserById(apiToken, offendingUserId, opts) - -Report a user - -## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let offendingUserId = "offendingUserId_example"; // String | -let opts = { - 'reportUserByIdData': new SendbirdPlatformSdk.ReportUserByIdData() // ReportUserByIdData | -}; -apiInstance.reportUserById(apiToken, offendingUserId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **offendingUserId** | **String**| | - **reportUserByIdData** | [**ReportUserByIdData**](ReportUserByIdData.md)| | [optional] - -### Return type - -[**ReportUserByIdResponse**](ReportUserByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## viewModeratedMessageById - -> Object viewModeratedMessageById(apiToken, channelType, channelUrl, messageId) - -View a moderated message - -## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.ReportApi(); -let apiToken = {{API_TOKEN}}; // String | -let channelType = "channelType_example"; // String | -let channelUrl = "channelUrl_example"; // String | -let messageId = "messageId_example"; // String | -apiInstance.viewModeratedMessageById(apiToken, channelType, channelUrl, messageId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **channelType** | **String**| | - **channelUrl** | **String**| | - **messageId** | **String**| | - -### Return type - -**Object** - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/ReportChannelByUrlData.md b/docs/ReportChannelByUrlData.md deleted file mode 100644 index 1ff4e34..0000000 --- a/docs/ReportChannelByUrlData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.ReportChannelByUrlData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | [optional] -**channelUrl** | **String** | Specifies the URL of the channel to report for offensive messages or inappropriate activities. | [optional] -**reportCategory** | **String** | Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. | -**reportingUserId** | **String** | Specifies the unique ID of the user who reports the channel. | [optional] -**reportDescription** | **String** | Specifies additional information to be included in the report. | [optional] - - diff --git a/docs/ReportChannelByUrlResponse.md b/docs/ReportChannelByUrlResponse.md deleted file mode 100644 index 17cbbaa..0000000 --- a/docs/ReportChannelByUrlResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ReportChannelByUrlResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportType** | **String** | | [optional] -**reportCategory** | **String** | | [optional] -**reportingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**offendingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportedMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**reportDescription** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ReportMessageByIdData.md b/docs/ReportMessageByIdData.md deleted file mode 100644 index 0167ea9..0000000 --- a/docs/ReportMessageByIdData.md +++ /dev/null @@ -1,15 +0,0 @@ -# SendbirdPlatformSdk.ReportMessageByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | [optional] -**channelUrl** | **String** | Specifies the URL of the channel where the message to report is in. | [optional] -**messageId** | **String** | Specifies the unique ID of the message to report. | [optional] -**reportCategory** | **String** | Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. | -**offendingUserId** | **String** | Specifies the unique ID of the user who has sent the message to report. | -**reportingUserId** | **String** | Specifies the unique ID of the user who reports the message. | [optional] -**reportDescription** | **String** | Specifies additional information to be included in the report. | [optional] - - diff --git a/docs/ReportMessageByIdResponse.md b/docs/ReportMessageByIdResponse.md deleted file mode 100644 index 40a7190..0000000 --- a/docs/ReportMessageByIdResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ReportMessageByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportType** | **String** | | [optional] -**reportCategory** | **String** | | [optional] -**reportingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**offendingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportedMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**reportDescription** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ReportUserByIdData.md b/docs/ReportUserByIdData.md deleted file mode 100644 index 92cb406..0000000 --- a/docs/ReportUserByIdData.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.ReportUserByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**offendingUserId** | **String** | Specifies the unique ID of the user to report for using offensive or abusive language such as sending explicit messages or inappropriate comments. | -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | [optional] -**channelUrl** | **String** | Specifies the URL of the channel where the user to report is in. | [optional] -**reportCategory** | **String** | Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. | -**reportingUserId** | **String** | Specifies the unique ID of the user who reports the offending user. | [optional] -**reportDescription** | **String** | Specifies additional information to be included in the report. | [optional] - - diff --git a/docs/ReportUserByIdResponse.md b/docs/ReportUserByIdResponse.md deleted file mode 100644 index 120fcf0..0000000 --- a/docs/ReportUserByIdResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ReportUserByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**reportType** | **String** | | [optional] -**reportCategory** | **String** | | [optional] -**reportingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**offendingUser** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**reportedMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**channel** | [**SendBirdChannelResponse**](SendBirdChannelResponse.md) | | [optional] -**reportDescription** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ResetChatHistoryRequest.md b/docs/ResetChatHistoryRequest.md new file mode 100644 index 0000000..8a7b56a --- /dev/null +++ b/docs/ResetChatHistoryRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.ResetChatHistoryRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resetAll** | **Boolean** | | [optional] +**userId** | **String** | | + + diff --git a/docs/ResetChatHistoryResponse.md b/docs/ResetChatHistoryResponse.md new file mode 100644 index 0000000..a749731 --- /dev/null +++ b/docs/ResetChatHistoryResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.ResetChatHistoryResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**tsMessageOffset** | **Number** | The timestamp in Unix milliseconds indicating the point in time that determines when the user can view messages in a specific channel. Messages sent on or before this timestamp can't be viewed by the user. | [optional] + + diff --git a/docs/ResetPushPreferencesResponse.md b/docs/ResetPushPreferencesResponse.md deleted file mode 100644 index 78a0f2d..0000000 --- a/docs/ResetPushPreferencesResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# SendbirdPlatformSdk.ResetPushPreferencesResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**snoozeStartTs** | **String** | | [optional] -**startHour** | **Number** | | [optional] -**snoozeEnabled** | **Boolean** | | [optional] -**endMin** | **Number** | | [optional] -**timezone** | **String** | | [optional] -**blockPushFromBots** | **Boolean** | | [optional] -**pushBlockedBotIds** | **[Number]** | | [optional] -**startMin** | **Number** | | [optional] -**snoozeEndTs** | **String** | | [optional] -**doNotDisturb** | **Boolean** | | [optional] -**endHour** | **Number** | | [optional] -**enablePushForReplies** | **Boolean** | | [optional] -**pushSound** | **String** | | [optional] -**pushTriggerOption** | **String** | | [optional] - - diff --git a/docs/RetrieveAdvancedAnalyticsMetricsResponse.md b/docs/RetrieveAdvancedAnalyticsMetricsResponse.md deleted file mode 100644 index fa616ee..0000000 --- a/docs/RetrieveAdvancedAnalyticsMetricsResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**segments** | **String** | | [optional] -**date** | **String** | | [optional] -**value** | **Number** | | [optional] -**channelType** | **String** | | [optional] -**customChannelType** | **String** | | [optional] -**customMessageType** | **String** | | [optional] - - diff --git a/docs/RetrieveIpWhitelistResponse.md b/docs/RetrieveIpWhitelistResponse.md deleted file mode 100644 index 5bb77ff..0000000 --- a/docs/RetrieveIpWhitelistResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.RetrieveIpWhitelistResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipWhitelistAddresses** | **[String]** | | [optional] - - diff --git a/docs/RetrieveListOfSubscribedEventsResponse.md b/docs/RetrieveListOfSubscribedEventsResponse.md deleted file mode 100644 index 050636f..0000000 --- a/docs/RetrieveListOfSubscribedEventsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**webhook** | [**RetrieveListOfSubscribedEventsResponseWebhook**](RetrieveListOfSubscribedEventsResponseWebhook.md) | | [optional] - - diff --git a/docs/RetrieveListOfSubscribedEventsResponseWebhook.md b/docs/RetrieveListOfSubscribedEventsResponseWebhook.md deleted file mode 100644 index c1b640c..0000000 --- a/docs/RetrieveListOfSubscribedEventsResponseWebhook.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**enabled** | **Boolean** | | [optional] -**url** | **String** | | [optional] -**includeMembers** | **Boolean** | | [optional] -**enabledEvents** | **[String]** | | [optional] -**allWebhookCategories** | **[String]** | | [optional] -**includeUnreadCount** | **Boolean** | | [optional] - - diff --git a/docs/RevokeSecondaryApiTokenByTokenResponse.md b/docs/RevokeSecondaryApiTokenByTokenResponse.md deleted file mode 100644 index 23409a9..0000000 --- a/docs/RevokeSecondaryApiTokenByTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/SBObject.md b/docs/SBObject.md deleted file mode 100644 index 16189c0..0000000 --- a/docs/SBObject.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.SBObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**constructor** | [**Function**](Function.md) | | [optional] - - diff --git a/docs/ScheduleAnAnnouncementRequest.md b/docs/ScheduleAnAnnouncementRequest.md new file mode 100644 index 0000000..a9ca839 --- /dev/null +++ b/docs/ScheduleAnAnnouncementRequest.md @@ -0,0 +1,26 @@ +# SendbirdPlatformSdk.ScheduleAnAnnouncementRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**announcementGroup** | **String** | | [optional] +**assignSenderAsChannelInviter** | **Boolean** | | [optional] +**ceaseAt** | **String** | | [optional] +**createChannel** | **Boolean** | | [optional] +**createChannelOptions** | [**ScheduleAnAnnouncementRequestCreateChannelOptions**](ScheduleAnAnnouncementRequestCreateChannelOptions.md) | | [optional] +**enablePush** | **Boolean** | | [optional] +**endAt** | **Number** | | [optional] +**keepChannelHiddenForSender** | **Boolean** | | [optional] +**markAsRead** | **Boolean** | | [optional] +**message** | [**ScheduleAnAnnouncementRequestMessage**](ScheduleAnAnnouncementRequestMessage.md) | | [optional] +**resumeAt** | **String** | | [optional] +**scheduledAt** | **Number** | | [optional] +**sendToFrozenChannels** | **Boolean** | | [optional] +**targetAt** | **String** | | [optional] +**targetChannelType** | **String** | | [optional] +**targetCustomType** | **String** | | [optional] +**targetList** | **[String]** | | [optional] +**uniqueId** | **String** | | [optional] + + diff --git a/docs/ScheduleAnAnnouncementRequestCreateChannelOptions.md b/docs/ScheduleAnAnnouncementRequestCreateChannelOptions.md new file mode 100644 index 0000000..c7f07aa --- /dev/null +++ b/docs/ScheduleAnAnnouncementRequestCreateChannelOptions.md @@ -0,0 +1,13 @@ +# SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coverUrl** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**distinct** | **Boolean** | | [optional] +**name** | **String** | | [optional] + + diff --git a/docs/ScheduleAnAnnouncementRequestMessage.md b/docs/ScheduleAnAnnouncementRequestMessage.md new file mode 100644 index 0000000..327fd4a --- /dev/null +++ b/docs/ScheduleAnAnnouncementRequestMessage.md @@ -0,0 +1,13 @@ +# SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**type** | **String** | | [optional] +**userId** | **String** | | [optional] + + diff --git a/docs/ScheduleAnAnnouncementResponse.md b/docs/ScheduleAnAnnouncementResponse.md new file mode 100644 index 0000000..ea23c2c --- /dev/null +++ b/docs/ScheduleAnAnnouncementResponse.md @@ -0,0 +1,32 @@ +# SendbirdPlatformSdk.ScheduleAnAnnouncementResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**announcementGroup** | **String** | | [optional] +**ceaseAt** | **String** | | [optional] +**completedAt** | **Number** | | [optional] +**createChannel** | **Boolean** | | [optional] +**createChannelOptions** | [**ScheduleAnAnnouncementRequestCreateChannelOptions**](ScheduleAnAnnouncementRequestCreateChannelOptions.md) | | [optional] +**enablePush** | **Boolean** | | [optional] +**endAt** | **Number** | | [optional] +**markAsRead** | **Boolean** | | [optional] +**message** | [**ScheduleAnAnnouncementResponseMessage**](ScheduleAnAnnouncementResponseMessage.md) | | [optional] +**openCount** | **Number** | | [optional] +**openRate** | **Number** | | [optional] +**priority** | **String** | | [optional] +**resumeAt** | **String** | | [optional] +**scheduledAt** | **Number** | | [optional] +**sendToFrozenChannels** | **Boolean** | | [optional] +**sentChannelCount** | **Number** | | [optional] +**sentUserCount** | **Number** | | [optional] +**status** | **String** | | [optional] +**targetAt** | **String** | | [optional] +**targetChannelCount** | **Number** | | [optional] +**targetChannelType** | **String** | | [optional] +**targetCustomType** | **String** | | [optional] +**targetUserCount** | **Number** | | [optional] +**uniqueId** | **String** | | [optional] + + diff --git a/docs/ScheduleAnAnnouncementResponseMessage.md b/docs/ScheduleAnAnnouncementResponseMessage.md new file mode 100644 index 0000000..b75840d --- /dev/null +++ b/docs/ScheduleAnAnnouncementResponseMessage.md @@ -0,0 +1,14 @@ +# SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**content** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**messageRetentionHour** | **Number** | | [optional] +**type** | **String** | | [optional] +**userId** | **String** | | [optional] + + diff --git a/docs/ScheduleAnnouncementData.md b/docs/ScheduleAnnouncementData.md deleted file mode 100644 index e38632f..0000000 --- a/docs/ScheduleAnnouncementData.md +++ /dev/null @@ -1,32 +0,0 @@ -# SendbirdPlatformSdk.ScheduleAnnouncementData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | [**ScheduleAnnouncementDataMessage**](ScheduleAnnouncementDataMessage.md) | | -**messageType** | **String** | Specifies the type of the message, which can be either MESG for a text message and ADMM for an admin message. | [optional] -**userId** | **String** | Specifies the unique ID of the sender when the message.type is MESG. When the message.type value is ADMM, this property is not effective. | [optional] -**content** | **String** | Specifies the content of the message. | [optional] -**targetAt** | **String** | Specifies the target channels to send the announcement to. Acceptable values are the following: <br/> - sender_all_channels (Default): sends the announcement to all of the sender's group channels.<br />- target_channels: sends the announcement to all target group channels. When the `message.type` of the announcement is ADMM, this is the only valid option. <br /> - target_users_included_channels: sends the announcement to group channels consisting of the sender, target users, and other members. <br/> - target_users_only_channels: sends the announcement to group channels consisting of the sender and target users only. | -**targetList** | **[String]** | Specifies an array of one or more target user IDs or target channel URLs to send the announcement to when the target_at is target_channels, target_users_only_channels, or target_users_included_channels.<br /><br /> When the target_at value is sender_all_channels, this property is not effective. | -**targetChannelType** | **String** | Determines which type of group channel to send the announcement to, based on the target_at and target_list. This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels and the target_list is specified. Acceptable values are limited to the following:<br/>- all: send the announcement to all channels that have all target users and the sender in them, regardless of channel type.<br/>- distinct (default): sends this announcement to the distinct channels. Distinct channels continue to use the same existing channels whenever someone attempts to create a new channel with the same members.<br/>- non-distinct: sends this announcement to the non-distinct channels. Non-distinct channels always create a new channel even if there is an existing channel with the same members.<br/><br/> The distinct and non-distinct channels are a subtype of group channels, determined by the [is_distinct](/docs/chat/v3/platform-api/guides/group-channel#2-types-of-a-channel-3-resource-representation) property. | -**uniqueId** | **String** | Specifies the unique ID of the new announcement. The unique_id will be automatically created unless specified. | [optional] -**messageCustomType** | **String** | Specifies the custom message type of the message of the new announcement. | [optional] -**messageData** | **String** | Specifies additional message information such as custom font size, font type or `JSON` formatted string. | [optional] -**createChannel** | **Boolean** | Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. By specifying the create_channel_options, you can configure the properties of newly created channels. (Default: false) | [optional] -**announcementGroup** | **String** | Specifies the announcement group that the new announcement belongs to.<br/> <br/> This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels. | [optional] -**createChannelOptions** | **String** | A newly created channel configuration. | [optional] -**createChannelOptionsName** | **String** | Specifies the name of channels to be created. (Default: Group Channel) | [optional] -**createChannelOptionsCoverUrl** | **String** | Specifies the URL of the cover image for the new channels. | [optional] -**createChannelOptionsCustomType** | **String** | Specifies the custom channel type of the new channels. | [optional] -**createChannelOptionsData** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | [optional] -**createChannelOptionsDistinct** | **String** | Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) | [optional] -**scheduledAt** | **Number** | Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. If not specified, the default is the timestamp of when the request was delivered to Sendbird server. (Default: current timestamp) | [optional] -**ceaseAt** | **String** | Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This should be specified in conjunction with the resume_at property.<br/><br/> If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. | [optional] -**resumeAt** | **String** | Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This should be specified in conjunction with the cease_at property above.<br/><br/> If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. | [optional] -**endAt** | **Number** | Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous##2-timestamps) format. If this property is specified, the announcement ends even when the announcement is not sent to all its targets. <br/><br/> For the announcement to run safely, the end_at time should be set at least 10 minutes later than the scheduled_at time. | [optional] -**enablePush** | **Boolean** | Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for the announcement. (Default: true) | [optional] -**assignSenderAsChannelInviter** | **Boolean** | Determines whether to assign an announcement sender as an inviter of the newly created channels. (Default: false) | [optional] - - diff --git a/docs/ScheduleAnnouncementDataMessage.md b/docs/ScheduleAnnouncementDataMessage.md deleted file mode 100644 index 9876002..0000000 --- a/docs/ScheduleAnnouncementDataMessage.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.ScheduleAnnouncementDataMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**userId** | **String** | | [optional] -**content** | **String** | | [optional] - - diff --git a/docs/ScheduleAnnouncementResponse.md b/docs/ScheduleAnnouncementResponse.md deleted file mode 100644 index 4e4d1e5..0000000 --- a/docs/ScheduleAnnouncementResponse.md +++ /dev/null @@ -1,26 +0,0 @@ -# SendbirdPlatformSdk.ScheduleAnnouncementResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**announcementGroup** | **String** | | [optional] -**message** | [**ScheduleAnnouncementResponseMessage**](ScheduleAnnouncementResponseMessage.md) | | [optional] -**enablePush** | **Boolean** | | [optional] -**targetAt** | **String** | | [optional] -**targetUserCount** | **Number** | | [optional] -**targetChannelCount** | **Number** | | [optional] -**targetChannelType** | **String** | | [optional] -**createChannelOptions** | [**ScheduleAnnouncementResponseCreateChannelOptions**](ScheduleAnnouncementResponseCreateChannelOptions.md) | | [optional] -**status** | **String** | | [optional] -**scheduledAt** | **Number** | | [optional] -**ceaseAt** | **String** | | [optional] -**resumeAt** | **String** | | [optional] -**completedAt** | **Number** | | [optional] -**sentUserCount** | **Number** | | [optional] -**sentChannelCount** | **Number** | | [optional] -**openCount** | **Number** | | [optional] -**openRate** | **Number** | | [optional] - - diff --git a/docs/ScheduleAnnouncementResponseCreateChannelOptions.md b/docs/ScheduleAnnouncementResponseCreateChannelOptions.md deleted file mode 100644 index 7350e4f..0000000 --- a/docs/ScheduleAnnouncementResponseCreateChannelOptions.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**distinct** | **Boolean** | | [optional] -**data** | **String** | | [optional] -**name** | **String** | | [optional] -**coverUrl** | **String** | | [optional] -**customType** | **String** | | [optional] - - diff --git a/docs/ScheduleAnnouncementResponseMessage.md b/docs/ScheduleAnnouncementResponseMessage.md deleted file mode 100644 index f7118dd..0000000 --- a/docs/ScheduleAnnouncementResponseMessage.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**customType** | **String** | | [optional] -**userId** | **String** | | [optional] -**content** | **String** | | [optional] -**data** | **String** | | [optional] - - diff --git a/docs/SendABotMessageRequest.md b/docs/SendABotMessageRequest.md new file mode 100644 index 0000000..991656c --- /dev/null +++ b/docs/SendABotMessageRequest.md @@ -0,0 +1,18 @@ +# SendbirdPlatformSdk.SendABotMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrl** | **String** | | +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**dedupId** | **String** | | [optional] +**extendedMessagePayload** | [**SendbirdExtendedMessagePayload**](SendbirdExtendedMessagePayload.md) | | [optional] +**markAsRead** | **Boolean** | | [optional] +**mentioned** | **[String]** | | [optional] +**message** | **String** | | +**sendPush** | **Boolean** | | [optional] + + diff --git a/docs/SendAMessageRequest.md b/docs/SendAMessageRequest.md new file mode 100644 index 0000000..ee22d45 --- /dev/null +++ b/docs/SendAMessageRequest.md @@ -0,0 +1,53 @@ +# SendbirdPlatformSdk.SendAMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apnsBundleId** | **String** | | [optional] +**appleCriticalAlertOptions** | **Object** | | [optional] +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**dedupId** | **String** | | [optional] +**includePollDetails** | **Boolean** | | [optional] +**isSilent** | **Boolean** | | [optional] +**markAsRead** | **Boolean** | | [optional] +**mentionType** | **String** | | [optional] +**mentionedUserIds** | **[String]** | | [optional] +**message** | **String** | | +**messageType** | **String** | Specifies the type of the message. The value of ADMM represents an admin message. | +**pollId** | **Number** | | [optional] +**pushMessageTemplate** | [**SendTextMessageRequestBodyPushMessageTemplate**](SendTextMessageRequestBodyPushMessageTemplate.md) | | [optional] +**sendPush** | **Boolean** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] +**sound** | **String** | | [optional] +**volume** | **Number** | | [optional] +**files** | [**SendbirdFile**](SendbirdFile.md) | | +**requireAuth** | **Boolean** | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. | [optional] +**thumbnail1** | **String** | | [optional] +**thumbnail2** | **String** | | [optional] +**thumbnail3** | **String** | | [optional] +**thumbnails** | **[String]** | | [optional] + + + +## Enum: MentionTypeEnum + + +* `users` (value: `"users"`) + +* `channel` (value: `"channel"`) + + + + + +## Enum: MessageTypeEnum + + +* `ADMM` (value: `"ADMM"`) + + + + diff --git a/docs/SendAdminMessageRequestBody.md b/docs/SendAdminMessageRequestBody.md new file mode 100644 index 0000000..8b993e5 --- /dev/null +++ b/docs/SendAdminMessageRequestBody.md @@ -0,0 +1,40 @@ +# SendbirdPlatformSdk.SendAdminMessageRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apnsBundleId** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**dedupId** | **String** | | [optional] +**isSilent** | **Boolean** | | [optional] +**mentionType** | **String** | | [optional] +**mentionedUserIds** | **[String]** | | [optional] +**message** | **String** | | +**messageType** | **String** | Specifies the type of the message. The value of ADMM represents an admin message. | +**pushMessageTemplate** | [**SendTextMessageRequestBodyPushMessageTemplate**](SendTextMessageRequestBodyPushMessageTemplate.md) | | [optional] +**sendPush** | **Boolean** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] + + + +## Enum: MentionTypeEnum + + +* `users` (value: `"users"`) + +* `channel` (value: `"channel"`) + + + + + +## Enum: MessageTypeEnum + + +* `ADMM` (value: `"ADMM"`) + + + + diff --git a/docs/SendBirdAdminMessage.md b/docs/SendBirdAdminMessage.md deleted file mode 100644 index 833336c..0000000 --- a/docs/SendBirdAdminMessage.md +++ /dev/null @@ -1,62 +0,0 @@ -# SendbirdPlatformSdk.SendBirdAdminMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appleCriticalAlertOptions** | [**SendBirdAppleCriticalAlertOptions**](SendBirdAppleCriticalAlertOptions.md) | | [optional] -**channelType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] -**mentionType** | **String** | | [optional] -**mentionedUsers** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**message** | **String** | | [optional] -**messageId** | **Number** | | [optional] -**messageType** | **String** | | [optional] -**metaArray** | [**SBObject**](SBObject.md) | | [optional] -**metaArrays** | [**[SendBirdMessageMetaArray]**](SendBirdMessageMetaArray.md) | | [optional] -**ogMetaData** | [**SendBirdOGMetaData**](SendBirdOGMetaData.md) | | [optional] -**parentMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**parentMessageId** | **Number** | | [optional] -**parentMessageText** | **String** | | [optional] -**reactions** | [**[SendBirdReaction]**](SendBirdReaction.md) | | [optional] -**sendingStatus** | **String** | | [optional] -**silent** | **Boolean** | | [optional] -**threadInfo** | [**SendBirdThreadInfo**](SendBirdThreadInfo.md) | | [optional] -**translations** | [**SBObject**](SBObject.md) | | [optional] -**updatedAt** | **Number** | | [optional] - - - -## Enum: MessageTypeEnum - - -* `MESG` (value: `"MESG"`) - -* `ADMM` (value: `"ADMM"`) - -* `FILE` (value: `"FILE"`) - - - - - -## Enum: SendingStatusEnum - - -* `canceled` (value: `"canceled"`) - -* `failed` (value: `"failed"`) - -* `none` (value: `"none"`) - -* `pending` (value: `"pending"`) - -* `succeeded` (value: `"succeeded"`) - - - - diff --git a/docs/SendBirdAppleCriticalAlertOptions.md b/docs/SendBirdAppleCriticalAlertOptions.md deleted file mode 100644 index c072eba..0000000 --- a/docs/SendBirdAppleCriticalAlertOptions.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**volume** | **Number** | | [optional] - - diff --git a/docs/SendBirdAutoEventMessageSettings.md b/docs/SendBirdAutoEventMessageSettings.md deleted file mode 100644 index a7606af..0000000 --- a/docs/SendBirdAutoEventMessageSettings.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.SendBirdAutoEventMessageSettings - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoEventMessage** | [**ConfigureAutoEventDataAutoEventMessage**](ConfigureAutoEventDataAutoEventMessage.md) | | [optional] - - diff --git a/docs/SendBirdBaseChannel.md b/docs/SendBirdBaseChannel.md deleted file mode 100644 index a0fc344..0000000 --- a/docs/SendBirdBaseChannel.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.SendBirdBaseChannel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**coverUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**creator** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**isEphemeral** | **Boolean** | | [optional] -**isFrozen** | **Boolean** | | [optional] -**name** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/SendBirdBaseMessageInstance.md b/docs/SendBirdBaseMessageInstance.md deleted file mode 100644 index 4ae70de..0000000 --- a/docs/SendBirdBaseMessageInstance.md +++ /dev/null @@ -1,62 +0,0 @@ -# SendbirdPlatformSdk.SendBirdBaseMessageInstance - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appleCriticalAlertOptions** | [**SendBirdAppleCriticalAlertOptions**](SendBirdAppleCriticalAlertOptions.md) | | [optional] -**channelType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] -**mentionType** | **String** | | [optional] -**mentionedUsers** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**messageId** | **Number** | | [optional] -**messageType** | **String** | | [optional] -**metaArray** | [**SBObject**](SBObject.md) | | [optional] -**metaArrays** | [**[SendBirdMessageMetaArray]**](SendBirdMessageMetaArray.md) | | [optional] -**ogMetaData** | [**SendBirdOGMetaData**](SendBirdOGMetaData.md) | | [optional] -**parentMessage** | [**SendBirdMessageResponse**](SendBirdMessageResponse.md) | | [optional] -**parentMessageId** | **Number** | | [optional] -**parentMessageText** | **String** | | [optional] -**reactions** | [**[SendBirdReaction]**](SendBirdReaction.md) | | [optional] -**sendingStatus** | **String** | | [optional] -**silent** | **Boolean** | | [optional] -**threadInfo** | [**SendBirdThreadInfo**](SendBirdThreadInfo.md) | | [optional] -**updatedAt** | **Number** | | [optional] - - - -## Enum: MessageTypeEnum - - -* `admin` (value: `"admin"`) - -* `base` (value: `"base"`) - -* `file` (value: `"file"`) - -* `user` (value: `"user"`) - - - - - -## Enum: SendingStatusEnum - - -* `canceled` (value: `"canceled"`) - -* `failed` (value: `"failed"`) - -* `none` (value: `"none"`) - -* `pending` (value: `"pending"`) - -* `succeeded` (value: `"succeeded"`) - - - - diff --git a/docs/SendBirdChannelResponse.md b/docs/SendBirdChannelResponse.md deleted file mode 100644 index 706fb99..0000000 --- a/docs/SendBirdChannelResponse.md +++ /dev/null @@ -1,119 +0,0 @@ -# SendbirdPlatformSdk.SendBirdChannelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | | [optional] -**coverUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**createdBy** | [**SendBirdGroupChannelCreatedBy**](SendBirdGroupChannelCreatedBy.md) | | [optional] -**creator** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**disappearingMessage** | [**SendBirdGroupChannelDisappearingMessage**](SendBirdGroupChannelDisappearingMessage.md) | | [optional] -**freeze** | **Boolean** | | [optional] -**ignoreProfanityFilter** | **Boolean** | | [optional] -**hiddenState** | **String** | | [optional] -**invitedAt** | **Number** | | [optional] -**inviter** | [**SendBirdGroupChannelInviter**](SendBirdGroupChannelInviter.md) | | [optional] -**isAccessCodeRequired** | **Boolean** | | [optional] -**isBroadcast** | **Boolean** | | [optional] -**isCreated** | **Boolean** | | [optional] -**isDiscoverable** | **Boolean** | | [optional] -**isDistinct** | **Boolean** | | [optional] -**isEphemeral** | **Boolean** | | [optional] -**isFrozen** | **Boolean** | | [optional] -**isHidden** | **Boolean** | | [optional] -**isPublic** | **Boolean** | | [optional] -**isPushEnabled** | **Boolean** | | [optional] -**isSuper** | **Boolean** | | [optional] -**joinedAt** | **Number** | | [optional] -**joinedMemberCount** | **Number** | | [optional] -**lastMessage** | [**SendBirdGroupChannelLastMessage**](SendBirdGroupChannelLastMessage.md) | | [optional] -**maxLengthMessage** | **Number** | | [optional] -**memberCount** | **Number** | | [optional] -**members** | [**[SendBirdMember]**](SendBirdMember.md) | | [optional] -**messageOffsetTimestamp** | **Number** | | [optional] -**messageSurvivalSeconds** | **Number** | | [optional] -**myCountPreference** | **String** | | [optional] -**myLastRead** | **Number** | | [optional] -**myMemberState** | **String** | | [optional] -**myMutedState** | **String** | | [optional] -**myPushTriggerOption** | **String** | | [optional] -**myRole** | **String** | | [optional] -**name** | **String** | | [optional] -**operators** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**smsFallback** | [**SendBirdGroupChannelSmsFallback**](SendBirdGroupChannelSmsFallback.md) | | [optional] -**unreadMentionCount** | **Number** | | [optional] -**unreadMessageCount** | **Number** | | [optional] -**channel** | [**SendBirdGroupChannelChannel**](SendBirdGroupChannelChannel.md) | | [optional] -**isDynamicPartitioned** | **Boolean** | | [optional] -**participantCount** | **Number** | | [optional] - - - -## Enum: HiddenStateEnum - - -* `hidden_allow_auto_unhide` (value: `"hidden_allow_auto_unhide"`) - -* `hidden_prevent_auto_unhide` (value: `"hidden_prevent_auto_unhide"`) - -* `unhidden` (value: `"unhidden"`) - - - - - -## Enum: MyMemberStateEnum - - -* `invited` (value: `"invited"`) - -* `joined` (value: `"joined"`) - -* `none` (value: `"none"`) - - - - - -## Enum: MyMutedStateEnum - - -* `muted` (value: `"muted"`) - -* `unmuted` (value: `"unmuted"`) - - - - - -## Enum: MyPushTriggerOptionEnum - - -* `all` (value: `"all"`) - -* `default` (value: `"default"`) - -* `mention_only` (value: `"mention_only"`) - -* `false` (value: `"false"`) - - - - - -## Enum: MyRoleEnum - - -* `empty` (value: `""`) - -* `none` (value: `"none"`) - -* `operator` (value: `"operator"`) - - - - diff --git a/docs/SendBirdEmoji.md b/docs/SendBirdEmoji.md deleted file mode 100644 index 92e074e..0000000 --- a/docs/SendBirdEmoji.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdEmoji - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/SendBirdEmojiCategory.md b/docs/SendBirdEmojiCategory.md deleted file mode 100644 index aeb1ba9..0000000 --- a/docs/SendBirdEmojiCategory.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SendBirdEmojiCategory - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojis** | [**[SendBirdEmoji]**](SendBirdEmoji.md) | | [optional] -**id** | **Number** | | [optional] -**name** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/SendBirdFileMessageParams.md b/docs/SendBirdFileMessageParams.md deleted file mode 100644 index 0af96bc..0000000 --- a/docs/SendBirdFileMessageParams.md +++ /dev/null @@ -1,47 +0,0 @@ -# SendbirdPlatformSdk.SendBirdFileMessageParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appleCriticalAlertOptions** | [**SendBirdAppleCriticalAlertOptions**](SendBirdAppleCriticalAlertOptions.md) | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**file** | **Blob** | | [optional] -**fileName** | **String** | | [optional] -**fileSize** | **Number** | | [optional] -**fileUrl** | **String** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] -**mentionType** | **String** | | [optional] -**mentionedUserIds** | **[String]** | | [optional] -**mentionedUsers** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**metaArrayKeys** | **[String]** | | [optional] -**metaArrays** | [**[SendBirdMessageMetaArray]**](SendBirdMessageMetaArray.md) | | [optional] -**mimeType** | **String** | | [optional] -**parentMessageId** | **Number** | | [optional] -**pushNotificationDeliveryOption** | **String** | | [optional] -**thumbnailSizes** | [**[SendBirdThumbnailSize]**](SendBirdThumbnailSize.md) | | [optional] - - - -## Enum: MentionTypeEnum - - -* `channel` (value: `"channel"`) - -* `users` (value: `"users"`) - - - - - -## Enum: PushNotificationDeliveryOptionEnum - - -* `default` (value: `"default"`) - -* `suppress` (value: `"suppress"`) - - - - diff --git a/docs/SendBirdGroupChannel.md b/docs/SendBirdGroupChannel.md deleted file mode 100644 index 7bc164d..0000000 --- a/docs/SendBirdGroupChannel.md +++ /dev/null @@ -1,117 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | | [optional] -**coverUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**createdBy** | [**SendBirdGroupChannelCreatedBy**](SendBirdGroupChannelCreatedBy.md) | | [optional] -**creator** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**disappearingMessage** | [**SendBirdGroupChannelDisappearingMessage**](SendBirdGroupChannelDisappearingMessage.md) | | [optional] -**freeze** | **Boolean** | | [optional] -**ignoreProfanityFilter** | **Boolean** | | [optional] -**hiddenState** | **String** | | [optional] -**invitedAt** | **Number** | | [optional] -**inviter** | [**SendBirdGroupChannelInviter**](SendBirdGroupChannelInviter.md) | | [optional] -**isAccessCodeRequired** | **Boolean** | | [optional] -**isBroadcast** | **Boolean** | | [optional] -**isCreated** | **Boolean** | | [optional] -**isDiscoverable** | **Boolean** | | [optional] -**isDistinct** | **Boolean** | | [optional] -**isEphemeral** | **Boolean** | | [optional] -**isFrozen** | **Boolean** | | [optional] -**isHidden** | **Boolean** | | [optional] -**isPublic** | **Boolean** | | [optional] -**isPushEnabled** | **Boolean** | | [optional] -**isSuper** | **Boolean** | | [optional] -**joinedAt** | **Number** | | [optional] -**joinedMemberCount** | **Number** | | [optional] -**lastMessage** | [**SendBirdGroupChannelLastMessage**](SendBirdGroupChannelLastMessage.md) | | [optional] -**maxLengthMessage** | **Number** | | [optional] -**memberCount** | **Number** | | [optional] -**members** | [**[SendBirdMember]**](SendBirdMember.md) | | [optional] -**messageOffsetTimestamp** | **Number** | | [optional] -**messageSurvivalSeconds** | **Number** | | [optional] -**myCountPreference** | **String** | | [optional] -**myLastRead** | **Number** | | [optional] -**myMemberState** | **String** | | [optional] -**myMutedState** | **String** | | [optional] -**myPushTriggerOption** | **String** | | [optional] -**myRole** | **String** | | [optional] -**name** | **String** | | [optional] -**operators** | **[Object]** | | [optional] -**smsFallback** | [**SendBirdGroupChannelSmsFallback**](SendBirdGroupChannelSmsFallback.md) | | [optional] -**unreadMentionCount** | **Number** | | [optional] -**unreadMessageCount** | **Number** | | [optional] -**channel** | [**SendBirdGroupChannelChannel**](SendBirdGroupChannelChannel.md) | | [optional] - - - -## Enum: HiddenStateEnum - - -* `hidden_allow_auto_unhide` (value: `"hidden_allow_auto_unhide"`) - -* `hidden_prevent_auto_unhide` (value: `"hidden_prevent_auto_unhide"`) - -* `unhidden` (value: `"unhidden"`) - - - - - -## Enum: MyMemberStateEnum - - -* `invited` (value: `"invited"`) - -* `joined` (value: `"joined"`) - -* `none` (value: `"none"`) - - - - - -## Enum: MyMutedStateEnum - - -* `muted` (value: `"muted"`) - -* `unmuted` (value: `"unmuted"`) - - - - - -## Enum: MyPushTriggerOptionEnum - - -* `all` (value: `"all"`) - -* `default` (value: `"default"`) - -* `mention_only` (value: `"mention_only"`) - -* `false` (value: `"false"`) - - - - - -## Enum: MyRoleEnum - - -* `empty` (value: `""`) - -* `none` (value: `"none"`) - -* `operator` (value: `"operator"`) - - - - diff --git a/docs/SendBirdGroupChannelChannel.md b/docs/SendBirdGroupChannelChannel.md deleted file mode 100644 index 14d04a2..0000000 --- a/docs/SendBirdGroupChannelChannel.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelChannel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelUrl** | **String** | | [optional] -**name** | **String** | | [optional] -**coverUrl** | **String** | | [optional] -**data** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**customType** | **String** | | [optional] -**maxLengthMessage** | **Number** | | [optional] -**memberCount** | **Number** | | [optional] - - diff --git a/docs/SendBirdGroupChannelCollection.md b/docs/SendBirdGroupChannelCollection.md deleted file mode 100644 index 4a9e708..0000000 --- a/docs/SendBirdGroupChannelCollection.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelCollection - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelList** | [**[SendBirdGroupChannel]**](SendBirdGroupChannel.md) | | [optional] -**hasMore** | **Boolean** | | [optional] - - diff --git a/docs/SendBirdGroupChannelCreatedBy.md b/docs/SendBirdGroupChannelCreatedBy.md deleted file mode 100644 index 7884945..0000000 --- a/docs/SendBirdGroupChannelCreatedBy.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuthForProfileImage** | **Boolean** | | [optional] -**nickname** | **String** | | [optional] -**userId** | **String** | | [optional] -**profileUrl** | **String** | | [optional] - - diff --git a/docs/SendBirdGroupChannelDisappearingMessage.md b/docs/SendBirdGroupChannelDisappearingMessage.md deleted file mode 100644 index 1a1452f..0000000 --- a/docs/SendBirdGroupChannelDisappearingMessage.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messageSurvivalSeconds** | **Number** | | [optional] -**isTriggeredByMessageRead** | **Boolean** | | [optional] - - diff --git a/docs/SendBirdGroupChannelInviter.md b/docs/SendBirdGroupChannelInviter.md deleted file mode 100644 index 0f6f2fa..0000000 --- a/docs/SendBirdGroupChannelInviter.md +++ /dev/null @@ -1,31 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelInviter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuthForProfileImage** | **Boolean** | | [optional] -**isOnline** | **Boolean** | | [optional] -**userId** | **String** | | [optional] -**accessToken** | **String** | | [optional] -**hasEverLoggedIn** | **Boolean** | | [optional] -**isActive** | **Boolean** | | [optional] -**lastSeenAt** | **Number** | | [optional] -**nickname** | **String** | | [optional] -**discoveryKeys** | **[String]** | | [optional] -**sessionTokens** | **[Object]** | | [optional] -**preferredLanguages** | **[String]** | | [optional] -**profileUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**phoneNumber** | **String** | | [optional] -**local** | **String** | | [optional] -**locale** | **String** | | [optional] -**isHideMeFromFriends** | **Boolean** | | [optional] -**isShadowBlocked** | **Boolean** | | [optional] -**isCreated** | **Boolean** | | [optional] -**metadata** | **Object** | | [optional] -**description** | **String** | | [optional] -**endAt** | **Number** | | [optional] -**startAt** | **Number** | | [optional] - - diff --git a/docs/SendBirdGroupChannelLastMessage.md b/docs/SendBirdGroupChannelLastMessage.md deleted file mode 100644 index 82834c9..0000000 --- a/docs/SendBirdGroupChannelLastMessage.md +++ /dev/null @@ -1,35 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelLastMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuth** | **Boolean** | | [optional] -**messageSurvivalSeconds** | **Number** | | [optional] -**customType** | **String** | | [optional] -**mentionedUsers** | [**[SendBirdMessageResponseMentionedUsersInner]**](SendBirdMessageResponseMentionedUsersInner.md) | | [optional] -**translations** | **Object** | | [optional] -**updatedAt** | **Number** | | [optional] -**isOpMsg** | **Boolean** | | [optional] -**isRemoved** | **Boolean** | | [optional] -**user** | [**SendBirdMessageResponseUser**](SendBirdMessageResponseUser.md) | | [optional] -**file** | **Object** | | [optional] -**message** | **String** | | [optional] -**data** | **String** | | [optional] -**messageRetentionHour** | **Number** | | [optional] -**silent** | **Boolean** | | [optional] -**type** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**channelType** | **String** | | [optional] -**reqId** | **String** | | [optional] -**mentionType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**messageId** | **Number** | | [optional] -**size** | **Number** | | [optional] -**sortedMetaarray** | **[Object]** | | [optional] -**threadInfo** | **Object** | | [optional] -**parentMessageId** | **Number** | | [optional] -**parentMessageInfo** | **Object** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] - - diff --git a/docs/SendBirdGroupChannelSmsFallback.md b/docs/SendBirdGroupChannelSmsFallback.md deleted file mode 100644 index 223fda7..0000000 --- a/docs/SendBirdGroupChannelSmsFallback.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**waitSeconds** | **Number** | | [optional] -**excludeUserIds** | **[String]** | | [optional] - - diff --git a/docs/SendBirdMember.md b/docs/SendBirdMember.md deleted file mode 100644 index 2174037..0000000 --- a/docs/SendBirdMember.md +++ /dev/null @@ -1,54 +0,0 @@ -# SendbirdPlatformSdk.SendBirdMember - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionStatus** | **String** | | [optional] -**friendDiscoveryKey** | **String** | | [optional] -**friendName** | **String** | | [optional] -**isActive** | **Boolean** | | [optional] -**isMuted** | **Boolean** | | [optional] -**lastSeenAt** | **Number** | | [optional] -**nickname** | **String** | | [optional] -**plainProfileUrl** | **String** | | [optional] -**preferredLanguages** | **[String]** | | [optional] -**profileUrl** | **String** | | [optional] -**requireAuth** | **Boolean** | | [optional] -**requireAuthForProfileImage** | **Boolean** | | [optional] -**metadata** | **Object** | | [optional] -**isOnline** | **Boolean** | | [optional] -**mutedEndAt** | **Number** | | [optional] -**mutedDescription** | **String** | | [optional] -**restrictionInfo** | [**SendBirdRestrictionInfo**](SendBirdRestrictionInfo.md) | | [optional] -**role** | **String** | | [optional] -**state** | **String** | | [optional] -**userId** | **String** | | [optional] - - - -## Enum: RoleEnum - - -* `empty` (value: `""`) - -* `none` (value: `"none"`) - -* `operator` (value: `"operator"`) - - - - - -## Enum: StateEnum - - -* `empty` (value: `""`) - -* `invited` (value: `"invited"`) - -* `joined` (value: `"joined"`) - - - - diff --git a/docs/SendBirdMessageMetaArray.md b/docs/SendBirdMessageMetaArray.md deleted file mode 100644 index 9bb7281..0000000 --- a/docs/SendBirdMessageMetaArray.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdMessageMetaArray - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | | [optional] -**value** | **[String]** | | [optional] - - diff --git a/docs/SendBirdMessageResponse.md b/docs/SendBirdMessageResponse.md deleted file mode 100644 index f1a2e0d..0000000 --- a/docs/SendBirdMessageResponse.md +++ /dev/null @@ -1,35 +0,0 @@ -# SendbirdPlatformSdk.SendBirdMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuth** | **Boolean** | | [optional] -**messageSurvivalSeconds** | **Number** | | [optional] -**customType** | **String** | | [optional] -**mentionedUsers** | [**[SendBirdMessageResponseMentionedUsersInner]**](SendBirdMessageResponseMentionedUsersInner.md) | | [optional] -**translations** | **Object** | | [optional] -**updatedAt** | **Number** | | [optional] -**isOpMsg** | **Boolean** | | [optional] -**isRemoved** | **Boolean** | | [optional] -**user** | [**SendBirdMessageResponseUser**](SendBirdMessageResponseUser.md) | | [optional] -**file** | **Object** | | [optional] -**message** | **String** | | [optional] -**data** | **String** | | [optional] -**messageRetentionHour** | **Number** | | [optional] -**silent** | **Boolean** | | [optional] -**type** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**channelType** | **String** | | [optional] -**reqId** | **String** | | [optional] -**mentionType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**messageId** | **Number** | | [optional] -**size** | **Number** | | [optional] -**sortedMetaarray** | **[Object]** | | [optional] -**threadInfo** | **Object** | | [optional] -**parentMessageId** | **Number** | | [optional] -**parentMessageInfo** | **Object** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] - - diff --git a/docs/SendBirdMessageResponseMentionedUsersInner.md b/docs/SendBirdMessageResponseMentionedUsersInner.md deleted file mode 100644 index 901de66..0000000 --- a/docs/SendBirdMessageResponseMentionedUsersInner.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | [optional] -**nickname** | **String** | | [optional] -**profileUrl** | **String** | | [optional] -**metadata** | [**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) | | [optional] - - diff --git a/docs/SendBirdMessageResponseUser.md b/docs/SendBirdMessageResponseUser.md deleted file mode 100644 index fe9f7fb..0000000 --- a/docs/SendBirdMessageResponseUser.md +++ /dev/null @@ -1,15 +0,0 @@ -# SendbirdPlatformSdk.SendBirdMessageResponseUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuthForProfileImage** | **Boolean** | | [optional] -**isActive** | **Boolean** | | [optional] -**role** | **String** | | [optional] -**userId** | **String** | | [optional] -**nickname** | **String** | | [optional] -**profileUrl** | **String** | | [optional] -**metadata** | [**OcDeleteChannelByUrl200Response**](OcDeleteChannelByUrl200Response.md) | | [optional] - - diff --git a/docs/SendBirdOGImage.md b/docs/SendBirdOGImage.md deleted file mode 100644 index 0fb4454..0000000 --- a/docs/SendBirdOGImage.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.SendBirdOGImage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**alt** | **String** | | [optional] -**height** | **Number** | | [optional] -**secureUrl** | **String** | | [optional] -**type** | **String** | | [optional] -**url** | **String** | | [optional] -**width** | **Number** | | [optional] - - diff --git a/docs/SendBirdOGMetaData.md b/docs/SendBirdOGMetaData.md deleted file mode 100644 index 0185f05..0000000 --- a/docs/SendBirdOGMetaData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SendBirdOGMetaData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultImage** | [**SendBirdOGImage**](SendBirdOGImage.md) | | [optional] -**description** | **String** | | [optional] -**title** | **String** | | [optional] -**url** | **String** | | [optional] - - diff --git a/docs/SendBirdOpenChannel.md b/docs/SendBirdOpenChannel.md deleted file mode 100644 index e77c6e7..0000000 --- a/docs/SendBirdOpenChannel.md +++ /dev/null @@ -1,22 +0,0 @@ -# SendbirdPlatformSdk.SendBirdOpenChannel - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**customType** | **String** | | [optional] -**channelUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**coverUrl** | **String** | | [optional] -**creator** | [**SendBirdUser**](SendBirdUser.md) | | [optional] -**data** | **String** | | [optional] -**isDynamicPartitioned** | **Boolean** | | [optional] -**isEphemeral** | **Boolean** | | [optional] -**isFrozen** | **Boolean** | | [optional] -**maxLengthMessage** | **Number** | | [optional] -**operators** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**participantCount** | **Number** | | [optional] -**freeze** | **Boolean** | | [optional] - - diff --git a/docs/SendBirdPlugin.md b/docs/SendBirdPlugin.md deleted file mode 100644 index df73cb3..0000000 --- a/docs/SendBirdPlugin.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.SendBirdPlugin - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**detail** | **Object** | | [optional] -**type** | **String** | | [optional] -**vendor** | **String** | | [optional] - - diff --git a/docs/SendBirdPoll.md b/docs/SendBirdPoll.md deleted file mode 100644 index 6c8660e..0000000 --- a/docs/SendBirdPoll.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.SendBirdPoll - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**details** | [**SendBirdPollDetails**](SendBirdPollDetails.md) | | [optional] -**id** | **Number** | | [optional] -**title** | **String** | | [optional] - - diff --git a/docs/SendBirdPollDetails.md b/docs/SendBirdPollDetails.md deleted file mode 100644 index 127fc33..0000000 --- a/docs/SendBirdPollDetails.md +++ /dev/null @@ -1,31 +0,0 @@ -# SendbirdPlatformSdk.SendBirdPollDetails - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**allowMultipleVotes** | **Boolean** | | [optional] -**allowUserSuggestion** | **Boolean** | | [optional] -**closeAt** | **Number** | | [optional] -**createdAt** | **Number** | | [optional] -**createdBy** | **String** | | [optional] -**isAnonymous** | **Boolean** | | [optional] -**options** | [**[SendBirdPollOption]**](SendBirdPollOption.md) | | [optional] -**status** | **String** | | [optional] -**updatedAt** | **Number** | | [optional] -**voterCount** | **Number** | | [optional] - - - -## Enum: StatusEnum - - -* `closed` (value: `"closed"`) - -* `open` (value: `"open"`) - -* `removed` (value: `"removed"`) - - - - diff --git a/docs/SendBirdPollOption.md b/docs/SendBirdPollOption.md deleted file mode 100644 index 2997da7..0000000 --- a/docs/SendBirdPollOption.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.SendBirdPollOption - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **Number** | | [optional] -**createdBy** | **String** | | [optional] -**id** | **Number** | | [optional] -**partialVoters** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**pollId** | **Number** | | [optional] -**text** | **String** | | [optional] -**updatedAt** | **Number** | | [optional] -**voteCount** | **Number** | | [optional] - - diff --git a/docs/SendBirdPollUpdatedVoteCount.md b/docs/SendBirdPollUpdatedVoteCount.md deleted file mode 100644 index f2e617e..0000000 --- a/docs/SendBirdPollUpdatedVoteCount.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**optionId** | **Number** | | [optional] -**voteCount** | **Number** | | [optional] - - diff --git a/docs/SendBirdReaction.md b/docs/SendBirdReaction.md deleted file mode 100644 index 8c92577..0000000 --- a/docs/SendBirdReaction.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.SendBirdReaction - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**key** | **String** | | [optional] -**updatedAt** | **Number** | | [optional] -**userIds** | **[String]** | | [optional] - - diff --git a/docs/SendBirdRestrictionInfo.md b/docs/SendBirdRestrictionInfo.md deleted file mode 100644 index 09b2375..0000000 --- a/docs/SendBirdRestrictionInfo.md +++ /dev/null @@ -1,22 +0,0 @@ -# SendbirdPlatformSdk.SendBirdRestrictionInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**description** | **String** | | [optional] -**endAt** | **Number** | | [optional] -**restrictionType** | **String** | | [optional] - - - -## Enum: RestrictionTypeEnum - - -* `banned` (value: `"banned"`) - -* `muted` (value: `"muted"`) - - - - diff --git a/docs/SendBirdSender.md b/docs/SendBirdSender.md deleted file mode 100644 index de44ca6..0000000 --- a/docs/SendBirdSender.md +++ /dev/null @@ -1,21 +0,0 @@ -# SendbirdPlatformSdk.SendBirdSender - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionStatus** | **String** | | [optional] -**friendDiscoveryKey** | **String** | | [optional] -**friendName** | **String** | | [optional] -**isActive** | **Boolean** | | [optional] -**isBlockedByMe** | **Boolean** | | [optional] -**lastSeenAt** | **Number** | | [optional] -**metadata** | **Object** | | [optional] -**nickname** | **String** | | [optional] -**plainProfileUrl** | **String** | | [optional] -**preferredLanguages** | **[String]** | | [optional] -**profileUrl** | **String** | | [optional] -**requireAuth** | **Boolean** | | [optional] -**userId** | **String** | | [optional] - - diff --git a/docs/SendBirdThreadInfo.md b/docs/SendBirdThreadInfo.md deleted file mode 100644 index f3b6785..0000000 --- a/docs/SendBirdThreadInfo.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SendBirdThreadInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lastRepliedAt** | **Number** | | [optional] -**mostRepliedUsers** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**replyCount** | **Number** | | [optional] -**updatedAt** | **Number** | | [optional] - - diff --git a/docs/SendBirdThumbnailSBObject.md b/docs/SendBirdThumbnailSBObject.md deleted file mode 100644 index 73d9ad7..0000000 --- a/docs/SendBirdThumbnailSBObject.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.SendBirdThumbnailSBObject - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**height** | **Number** | | [optional] -**plainUrl** | **String** | | [optional] -**realHeight** | **Number** | | [optional] -**realWidth** | **Number** | | [optional] -**url** | **String** | | [optional] -**width** | **Number** | | [optional] - - diff --git a/docs/SendBirdThumbnailSize.md b/docs/SendBirdThumbnailSize.md deleted file mode 100644 index c042f66..0000000 --- a/docs/SendBirdThumbnailSize.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.SendBirdThumbnailSize - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**maxHeight** | **Number** | | [optional] -**maxWidth** | **Number** | | [optional] - - diff --git a/docs/SendBirdUser.md b/docs/SendBirdUser.md deleted file mode 100644 index 5b1430e..0000000 --- a/docs/SendBirdUser.md +++ /dev/null @@ -1,31 +0,0 @@ -# SendbirdPlatformSdk.SendBirdUser - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requireAuthForProfileImage** | **Boolean** | | [optional] -**isOnline** | **Boolean** | | [optional] -**userId** | **String** | | [optional] -**accessToken** | **String** | | [optional] -**hasEverLoggedIn** | **Boolean** | | [optional] -**isActive** | **Boolean** | | [optional] -**lastSeenAt** | **Number** | | [optional] -**nickname** | **String** | | [optional] -**discoveryKeys** | **[String]** | | [optional] -**sessionTokens** | **[Object]** | | [optional] -**preferredLanguages** | **[String]** | | [optional] -**profileUrl** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**phoneNumber** | **String** | | [optional] -**local** | **String** | | [optional] -**locale** | **String** | | [optional] -**isHideMeFromFriends** | **Boolean** | | [optional] -**isShadowBlocked** | **Boolean** | | [optional] -**isCreated** | **Boolean** | | [optional] -**metadata** | **Object** | | [optional] -**description** | **String** | | [optional] -**endAt** | **Number** | | [optional] -**startAt** | **Number** | | [optional] - - diff --git a/docs/SendBirdUserMessageParams.md b/docs/SendBirdUserMessageParams.md deleted file mode 100644 index 9c02215..0000000 --- a/docs/SendBirdUserMessageParams.md +++ /dev/null @@ -1,45 +0,0 @@ -# SendbirdPlatformSdk.SendBirdUserMessageParams - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**appleCriticalAlertOptions** | [**SendBirdAppleCriticalAlertOptions**](SendBirdAppleCriticalAlertOptions.md) | | [optional] -**customType** | **String** | | [optional] -**data** | **String** | | [optional] -**isReplyToChannel** | **Boolean** | | [optional] -**mentionType** | **String** | | [optional] -**mentionedUserIds** | **[String]** | | [optional] -**mentionedUsers** | [**[SendBirdUser]**](SendBirdUser.md) | | [optional] -**message** | **String** | | [optional] -**metaArrayKeys** | **[String]** | | [optional] -**metaArrays** | [**[SendBirdMessageMetaArray]**](SendBirdMessageMetaArray.md) | | [optional] -**parentMessageId** | **Number** | | [optional] -**pollId** | **Number** | | [optional] -**pushNotificationDeliveryOption** | **String** | | [optional] -**targetLanguages** | **[String]** | | [optional] -**translationTargetLanguages** | **[String]** | | [optional] - - - -## Enum: MentionTypeEnum - - -* `channel` (value: `"channel"`) - -* `users` (value: `"users"`) - - - - - -## Enum: PushNotificationDeliveryOptionEnum - - -* `default` (value: `"default"`) - -* `suppress` (value: `"suppress"`) - - - - diff --git a/docs/SendBotSMessageData.md b/docs/SendBotSMessageData.md deleted file mode 100644 index 0473c7c..0000000 --- a/docs/SendBotSMessageData.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.SendBotSMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**message** | **String** | Specifies the content of the message sent by the bot. | -**channelUrl** | **String** | Specifies the URL of the channel where the message is sent to. | -**customType** | **String** | Specifies a custom message type which is used for message grouping. The length is limited to 128 characters. | [optional] -**data** | **String** | Specifies additional message information such as custom font size, font type or `JSON` formatted string. | [optional] -**sendPush** | **Boolean** | Determines whether to send a push notification for the message to the members of the channel (Default: true) | [optional] -**mentioned** | **[String]** | Specifies an array of one or more IDs of the users who get a notification for the message. | [optional] -**markAsRead** | **Boolean** | Determines whether to mark the message as read for the bot. If set to false, the bot's unread_count and read_receipt remain unchanged after the message is sent. (Default: true) | [optional] -**dedupId** | **String** | Specifies the unique ID for the message to prevent the same message data from getting sent to the channel. | [optional] -**createdAt** | **Number** | Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. | [optional] - - diff --git a/docs/SendFileMessageRequestBody.md b/docs/SendFileMessageRequestBody.md new file mode 100644 index 0000000..5305cd9 --- /dev/null +++ b/docs/SendFileMessageRequestBody.md @@ -0,0 +1,49 @@ +# SendbirdPlatformSdk.SendFileMessageRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apnsBundleId** | **String** | | [optional] +**appleCriticalAlertOptions** | **Object** | | [optional] +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**dedupId** | **String** | | [optional] +**files** | [**SendbirdFile**](SendbirdFile.md) | | +**isSilent** | **Boolean** | | [optional] +**markAsRead** | **Boolean** | | [optional] +**mentionType** | **String** | | [optional] +**mentionedUserIds** | **[String]** | | [optional] +**messageType** | **String** | Specifies the type of the message. The value of FILE represents a file message. | +**requireAuth** | **Boolean** | Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. | [optional] +**sendPush** | **Boolean** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] +**sound** | **String** | | [optional] +**thumbnail1** | **String** | | [optional] +**thumbnail2** | **String** | | [optional] +**thumbnail3** | **String** | | [optional] +**thumbnails** | **[String]** | | [optional] +**volume** | **Number** | | [optional] + + + +## Enum: MentionTypeEnum + + +* `users` (value: `"users"`) + +* `channel` (value: `"channel"`) + + + + + +## Enum: MessageTypeEnum + + +* `FILE` (value: `"FILE"`) + + + + diff --git a/docs/SendMessageData.md b/docs/SendMessageData.md deleted file mode 100644 index 205f456..0000000 --- a/docs/SendMessageData.md +++ /dev/null @@ -1,34 +0,0 @@ -# SendbirdPlatformSdk.SendMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | Specifies the user ID of the sender. | -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | [optional] -**channelUrl** | **String** | Specifies the URL of the channel to send a message to. | [optional] -**messageType** | **String** | Specifies the type of the message as MESG, FILE or ADMM | -**message** | **String** | Specifies the content of the message. | -**customType** | **String** | Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | [optional] -**data** | **String** | Specifies additional message information such as custom font size, font type or `JSON` formatted string. | [optional] -**sendPush** | **Boolean** | Determines whether to send a push notification for the message to the members of the channel (applicable to group channels only). Unlike text and file messages, a push notification for an admin message is not sent by default. (Default: true) | [optional] -**mentionType** | **String** | Specifies the mentioning type which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) | [optional] -**mentionedUserIds** | **[String]** | Specifies an array of one or more IDs of the users who will get a notification for the message. | [optional] -**isSilent** | **Boolean** | Determines whether to send a message without updating some of the channel properties. If a message is sent in a channel, with this property set to true, the channel's last_message is updated only for the sender while its unread_message_count remains unchanged for all channel members. Also, the message doesn't send a push notification to message receivers. If the message is sent to a hidden channel, the channel still remains hidden. (Default: false)</br></br> Once the value of this property is set, it can't be reverted. | [optional] -**sortedMetaarray** | **String** | Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. | [optional] -**createdAt** | **Number** | Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. This property can be used when migrating the messages of other system to Sendbird server. If specified, the server sets the message's creation time as the property value. | [optional] -**dedupId** | **String** | Specifies the unique message ID created by other system. In general, this property is used to prevent the same message data from getting inserted when migrating the messages of the other system to Sendbird server. If specified, the server performs a duplicate check using the property value. | [optional] -**apnsBundleId** | **String** | Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Notifications > Push notification services | [optional] -**sound** | **String** | Specifies the name of the file that sounds for critical alerts. | [optional] -**volume** | **Number** | Specifies the volume of the critical alert sound. The volume ranges from 0.0 to 1.0, which indicates silent and full volume, respectively. (Default 1.0) | [optional] -**url** | **String** | | [optional] -**file** | **String** | | [optional] -**fileName** | **String** | | [optional] -**fileSize** | **Number** | | [optional] -**fileType** | **String** | | [optional] -**thumbnails** | **[String]** | | [optional] -**thumbnail1** | **String** | | [optional] -**thumbnail2** | **String** | | [optional] -**thumbnail3** | **String** | | [optional] - - diff --git a/docs/SendTextMessageRequestBody.md b/docs/SendTextMessageRequestBody.md new file mode 100644 index 0000000..4643ced --- /dev/null +++ b/docs/SendTextMessageRequestBody.md @@ -0,0 +1,47 @@ +# SendbirdPlatformSdk.SendTextMessageRequestBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**apnsBundleId** | **String** | | [optional] +**appleCriticalAlertOptions** | **Object** | | [optional] +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**dedupId** | **String** | | [optional] +**includePollDetails** | **Boolean** | | [optional] +**isSilent** | **Boolean** | | [optional] +**markAsRead** | **Boolean** | | [optional] +**mentionType** | **String** | | [optional] +**mentionedUserIds** | **[String]** | | [optional] +**message** | **String** | | +**messageType** | **String** | Specifies the type of the message. The value of MESG represents a text message. | +**pollId** | **Number** | | [optional] +**pushMessageTemplate** | [**SendTextMessageRequestBodyPushMessageTemplate**](SendTextMessageRequestBodyPushMessageTemplate.md) | | [optional] +**sendPush** | **Boolean** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] +**sound** | **String** | | [optional] +**volume** | **Number** | | [optional] + + + +## Enum: MentionTypeEnum + + +* `users` (value: `"users"`) + +* `channel` (value: `"channel"`) + + + + + +## Enum: MessageTypeEnum + + +* `MESG` (value: `"MESG"`) + + + + diff --git a/docs/SendTextMessageRequestBodyPushMessageTemplate.md b/docs/SendTextMessageRequestBodyPushMessageTemplate.md new file mode 100644 index 0000000..f587d60 --- /dev/null +++ b/docs/SendTextMessageRequestBodyPushMessageTemplate.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. | [optional] +**body** | **String** | Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. | [optional] + + diff --git a/docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md b/docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md new file mode 100644 index 0000000..8bd805b --- /dev/null +++ b/docs/SendTextMessageRequestBodyPushMessageTemplateOneOf.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**title** | **String** | Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. | [optional] +**body** | **String** | Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. | [optional] + + diff --git a/docs/SendbirdBasicUserInfo.md b/docs/SendbirdBasicUserInfo.md new file mode 100644 index 0000000..7ff316a --- /dev/null +++ b/docs/SendbirdBasicUserInfo.md @@ -0,0 +1,29 @@ +# SendbirdPlatformSdk.SendbirdBasicUserInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requireAuthForProfileImage** | **Boolean** | | [optional] +**isActive** | **Boolean** | | [optional] +**isBlockedByMe** | **Boolean** | | [optional] +**role** | **String** | | [optional] +**nickname** | **String** | | [optional] +**userId** | **String** | | +**profileUrl** | **String** | | [optional] +**metadata** | **Object** | | [optional] + + + +## Enum: RoleEnum + + +* `empty` (value: `""`) + +* `none` (value: `"none"`) + +* `operator` (value: `"operator"`) + + + + diff --git a/docs/SendbirdDisappearingMessage.md b/docs/SendbirdDisappearingMessage.md new file mode 100644 index 0000000..2eec60f --- /dev/null +++ b/docs/SendbirdDisappearingMessage.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendbirdDisappearingMessage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**messageSurvivalSeconds** | **Number** | | [optional] +**isTriggeredByMessageRead** | **Boolean** | | [optional] + + diff --git a/docs/SendbirdExtendedMessagePayload.md b/docs/SendbirdExtendedMessagePayload.md new file mode 100644 index 0000000..e577a8f --- /dev/null +++ b/docs/SendbirdExtendedMessagePayload.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendbirdExtendedMessagePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customView** | **Object** | JSON format you want to embed in message, eq : {\"title\": \"title\", \"image\": \"https://link.to/image.jpg\"} | [optional] +**suggestedReplies** | **[String]** | Specifies an array of suggested replies to be sent with the message. | [optional] + + diff --git a/docs/SendbirdFile.md b/docs/SendbirdFile.md new file mode 100644 index 0000000..becc6ad --- /dev/null +++ b/docs/SendbirdFile.md @@ -0,0 +1,14 @@ +# SendbirdPlatformSdk.SendbirdFile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**url** | **String** | | [optional] +**fileName** | **String** | | [optional] +**fileSize** | **Number** | | [optional] +**fileType** | **String** | | [optional] +**thumbnails** | [**[SendbirdThumbnail]**](SendbirdThumbnail.md) | | [optional] +**requireAuth** | **Boolean** | | [optional] + + diff --git a/docs/SendbirdGroupChannel.md b/docs/SendbirdGroupChannel.md new file mode 100644 index 0000000..2139829 --- /dev/null +++ b/docs/SendbirdGroupChannel.md @@ -0,0 +1,107 @@ +# SendbirdPlatformSdk.SendbirdGroupChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrl** | **String** | | +**countPreference** | **String** | | [optional] +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**createdBy** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**deliveryReceipt** | **Object** | | [optional] +**disappearingMessage** | [**SendbirdDisappearingMessage**](SendbirdDisappearingMessage.md) | | [optional] +**freeze** | **Boolean** | | [optional] +**hasAiBot** | **Boolean** | | [optional] +**hasBot** | **Boolean** | | [optional] +**hiddenState** | **String** | | [optional] +**ignoreProfanityFilter** | **Boolean** | | [optional] +**invitedAt** | **Number** | | [optional] +**inviter** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**isAccessCodeRequired** | **Boolean** | | [optional] +**isBroadcast** | **Boolean** | | [optional] +**isDiscoverable** | **Boolean** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**isExclusive** | **Boolean** | | [optional] +**isHidden** | **Boolean** | | [optional] +**isMuted** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isPushEnabled** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**joinedMemberCount** | **Number** | | [optional] +**joinedTs** | **Number** | | [optional] +**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**memberCount** | **Number** | | [optional] +**memberState** | **String** | | [optional] +**members** | [**[SendbirdMember]**](SendbirdMember.md) | | [optional] +**messageSurvivalSeconds** | **Number** | | [optional] +**metadata** | **Object** | | [optional] +**myRole** | **String** | | [optional] +**name** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**readReceipt** | **{String: Number}** | | [optional] +**smsFallback** | [**SendbirdSmsFallback**](SendbirdSmsFallback.md) | | [optional] +**tsMessageOffset** | **Number** | | [optional] +**unreadMentionCount** | **Number** | | [optional] +**unreadMessageCount** | **Number** | | [optional] +**userLastRead** | **Number** | | [optional] + + + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + + +## Enum: HiddenStateEnum + + +* `hidden_allow_auto_unhide` (value: `"hidden_allow_auto_unhide"`) + +* `hidden_prevent_auto_unhide` (value: `"hidden_prevent_auto_unhide"`) + +* `unhidden` (value: `"unhidden"`) + + + + + +## Enum: MemberStateEnum + + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + +* `none` (value: `"none"`) + + + + + +## Enum: MyRoleEnum + + +* `empty` (value: `""`) + +* `none` (value: `"none"`) + +* `operator` (value: `"operator"`) + + + + diff --git a/docs/SendbirdGroupChannelDetail.md b/docs/SendbirdGroupChannelDetail.md new file mode 100644 index 0000000..775bea9 --- /dev/null +++ b/docs/SendbirdGroupChannelDetail.md @@ -0,0 +1,41 @@ +# SendbirdPlatformSdk.SendbirdGroupChannelDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channel** | [**SendbirdGroupChannelDetailChannel**](SendbirdGroupChannelDetailChannel.md) | | [optional] +**channelUrl** | **String** | | +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**createdBy** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**deliveryReceipt** | **{String: Number}** | | [optional] +**disappearingMessage** | [**SendbirdDisappearingMessage**](SendbirdDisappearingMessage.md) | | [optional] +**freeze** | **Boolean** | | [optional] +**hasAiBot** | **Boolean** | | [optional] +**hasBot** | **Boolean** | | [optional] +**id** | **Number** | | [optional] +**ignoreProfanityFilter** | **Boolean** | | [optional] +**isAccessCodeRequired** | **Boolean** | | [optional] +**isBroadcast** | **Boolean** | | [optional] +**isDiscoverable** | **Boolean** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**joinedMemberCount** | **Number** | | [optional] +**lastMessage** | [**SendbirdMessageResponse**](SendbirdMessageResponse.md) | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**memberCount** | **Number** | | [optional] +**members** | [**[SendbirdMember]**](SendbirdMember.md) | | [optional] +**messageSurvivalSeconds** | **Number** | | [optional] +**name** | **String** | | [optional] +**operators** | [**[SendbirdUser]**](SendbirdUser.md) | | [optional] +**readReceipt** | **{String: Number}** | | [optional] +**smsFallback** | [**SendbirdSmsFallback**](SendbirdSmsFallback.md) | | [optional] +**unreadMentionCount** | **Number** | | [optional] +**unreadMessageCount** | **Number** | | [optional] + + diff --git a/docs/SendbirdGroupChannelDetailChannel.md b/docs/SendbirdGroupChannelDetailChannel.md new file mode 100644 index 0000000..12ebc0d --- /dev/null +++ b/docs/SendbirdGroupChannelDetailChannel.md @@ -0,0 +1,16 @@ +# SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrl** | **String** | | [optional] +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**memberCount** | **Number** | | [optional] +**name** | **String** | | [optional] + + diff --git a/docs/SendbirdMember.md b/docs/SendbirdMember.md new file mode 100644 index 0000000..4c366b3 --- /dev/null +++ b/docs/SendbirdMember.md @@ -0,0 +1,56 @@ +# SendbirdPlatformSdk.SendbirdMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deliveredTs** | **Number** | | [optional] +**doNotDisturb** | **Boolean** | | [optional] +**friendDiscoveryKey** | **[String]** | | [optional] +**friendName** | **String** | | [optional] +**isActive** | **Boolean** | | [optional] +**isBlockedByMe** | **Boolean** | | [optional] +**isBlockingMe** | **Boolean** | | [optional] +**isMuted** | **Boolean** | | [optional] +**isOnline** | **Boolean** | | [optional] +**lastSeenAt** | **Number** | | [optional] +**metadata** | **Object** | | [optional] +**mutedDescription** | **String** | | [optional] +**mutedEndAt** | **Number** | | [optional] +**nickname** | **String** | | [optional] +**pushEnabled** | **Boolean** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**profileUrl** | **String** | | [optional] +**requireAuthForProfileImage** | **Boolean** | | [optional] +**readTs** | **Number** | | [optional] +**role** | **String** | | [optional] +**state** | **String** | | [optional] +**userId** | **String** | | + + + +## Enum: RoleEnum + + +* `empty` (value: `""`) + +* `none` (value: `"none"`) + +* `operator` (value: `"operator"`) + + + + + +## Enum: StateEnum + + +* `empty` (value: `""`) + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + + + + diff --git a/docs/SendbirdMessageResponse.md b/docs/SendbirdMessageResponse.md new file mode 100644 index 0000000..82bf11f --- /dev/null +++ b/docs/SendbirdMessageResponse.md @@ -0,0 +1,38 @@ +# SendbirdPlatformSdk.SendbirdMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**requireAuth** | **Boolean** | | [optional] +**messageSurvivalSeconds** | **Number** | | [optional] +**customType** | **String** | | [optional] +**mentionedUsers** | [**[SendbirdBasicUserInfo]**](SendbirdBasicUserInfo.md) | | [optional] +**translations** | **Object** | | [optional] +**updatedAt** | **Number** | | [optional] +**isOpMsg** | **Boolean** | | [optional] +**reactions** | [**[SendbirdReaction]**](SendbirdReaction.md) | | [optional] +**isRemoved** | **Boolean** | | [optional] +**user** | [**SendbirdBasicUserInfo**](SendbirdBasicUserInfo.md) | | [optional] +**file** | **Object** | | [optional] +**files** | [**[SendbirdFile]**](SendbirdFile.md) | | [optional] +**message** | **String** | | [optional] +**data** | **String** | | [optional] +**messageRetentionHour** | **Number** | | [optional] +**silent** | **Boolean** | | [optional] +**type** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**channelType** | **String** | | [optional] +**reqId** | **String** | | [optional] +**mentionType** | **String** | | [optional] +**channelUrl** | **String** | | [optional] +**messageId** | **Number** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] +**threadInfo** | **Object** | | [optional] +**parentMessageId** | **Number** | | [optional] +**parentMessageInfo** | [**SendbirdParentMessageInfo**](SendbirdParentMessageInfo.md) | | [optional] +**isReplyToChannel** | **Boolean** | | [optional] +**messageEvents** | [**SendbirdMessageResponseMessageEvents**](SendbirdMessageResponseMessageEvents.md) | | [optional] +**extendedMessagePayload** | [**SendbirdExtendedMessagePayload**](SendbirdExtendedMessagePayload.md) | | [optional] + + diff --git a/docs/SendbirdMessageResponseMessageEvents.md b/docs/SendbirdMessageResponseMessageEvents.md new file mode 100644 index 0000000..c0317cb --- /dev/null +++ b/docs/SendbirdMessageResponseMessageEvents.md @@ -0,0 +1,12 @@ +# SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sendPushNotification** | **String** | | [optional] +**updateUnreadCount** | **Boolean** | | [optional] +**updateMentionCount** | **Boolean** | | [optional] +**updateLastMessage** | **Boolean** | | [optional] + + diff --git a/docs/SendbirdOpenChannel.md b/docs/SendbirdOpenChannel.md new file mode 100644 index 0000000..7a250c2 --- /dev/null +++ b/docs/SendbirdOpenChannel.md @@ -0,0 +1,21 @@ +# SendbirdPlatformSdk.SendbirdOpenChannel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**channelUrl** | **String** | | +**coverUrl** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**freeze** | **Boolean** | | [optional] +**isDynamicPartitioned** | **Boolean** | | [optional] +**isEphemeral** | **Boolean** | | [optional] +**maxLengthMessage** | **Number** | | [optional] +**name** | **String** | | [optional] +**operators** | [**[SendbirdBasicUserInfo]**](SendbirdBasicUserInfo.md) | | [optional] +**participantCount** | **Number** | | [optional] +**metadata** | **Object** | | [optional] + + diff --git a/docs/SendbirdParentMessageInfo.md b/docs/SendbirdParentMessageInfo.md new file mode 100644 index 0000000..fca7dc3 --- /dev/null +++ b/docs/SendbirdParentMessageInfo.md @@ -0,0 +1,15 @@ +# SendbirdPlatformSdk.SendbirdParentMessageInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customType** | **String** | | [optional] +**message** | **String** | | [optional] +**type** | **String** | | [optional] +**ts** | **Number** | | [optional] +**user** | [**SendbirdUser**](SendbirdUser.md) | | [optional] +**file** | [**SendbirdFile**](SendbirdFile.md) | | [optional] +**files** | [**[SendbirdFile]**](SendbirdFile.md) | | [optional] + + diff --git a/docs/SendbirdPushTriggerOption.md b/docs/SendbirdPushTriggerOption.md new file mode 100644 index 0000000..a774375 --- /dev/null +++ b/docs/SendbirdPushTriggerOption.md @@ -0,0 +1,14 @@ +# SendbirdPlatformSdk.SendbirdPushTriggerOption + +## Enum + + +* `all` (value: `"all"`) + +* `mention_only` (value: `"mention_only"`) + +* `off` (value: `"off"`) + +* `default` (value: `"default"`) + + diff --git a/docs/SendbirdReaction.md b/docs/SendbirdReaction.md new file mode 100644 index 0000000..3d5d5c3 --- /dev/null +++ b/docs/SendbirdReaction.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.SendbirdReaction + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | | [optional] +**updatedAt** | **Number** | | [optional] +**userIds** | **[String]** | | [optional] + + diff --git a/docs/SendbirdSmsFallback.md b/docs/SendbirdSmsFallback.md new file mode 100644 index 0000000..de1fb45 --- /dev/null +++ b/docs/SendbirdSmsFallback.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendbirdSmsFallback + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**waitSeconds** | **Number** | | [optional] +**excludeUserIds** | **[String]** | | [optional] + + diff --git a/docs/SendbirdSortedMetaarrayInner.md b/docs/SendbirdSortedMetaarrayInner.md new file mode 100644 index 0000000..7f39ce7 --- /dev/null +++ b/docs/SendbirdSortedMetaarrayInner.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.SendbirdSortedMetaarrayInner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**key** | **String** | | [optional] +**value** | **[String]** | | [optional] + + diff --git a/docs/SendbirdThumbnail.md b/docs/SendbirdThumbnail.md new file mode 100644 index 0000000..2417be0 --- /dev/null +++ b/docs/SendbirdThumbnail.md @@ -0,0 +1,14 @@ +# SendbirdPlatformSdk.SendbirdThumbnail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**height** | **Number** | | [optional] +**plainUrl** | **String** | | [optional] +**realHeight** | **Number** | | [optional] +**realWidth** | **Number** | | [optional] +**url** | **String** | | [optional] +**width** | **Number** | | [optional] + + diff --git a/docs/SendbirdUser.md b/docs/SendbirdUser.md new file mode 100644 index 0000000..625a09c --- /dev/null +++ b/docs/SendbirdUser.md @@ -0,0 +1,43 @@ +# SendbirdPlatformSdk.SendbirdUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessToken** | **String** | | [optional] +**createdAt** | **Number** | | [optional] +**discoveryKeys** | **[String]** | | [optional] +**hasEverLoggedIn** | **Boolean** | | [optional] +**isActive** | **Boolean** | | [optional] +**isHideMeFromFriends** | **Boolean** | | [optional] +**isOnline** | **Boolean** | | [optional] +**isShadowBlocked** | **Boolean** | | [optional] +**lastSeenAt** | **Number** | | [optional] +**locale** | **String** | | [optional] +**metadata** | **Object** | | [optional] +**nickname** | **String** | | [optional] +**preferredLanguages** | **[String]** | | [optional] +**profileUrl** | **String** | | [optional] +**requireAuthForProfileImage** | **Boolean** | | [optional] +**userId** | **String** | | +**state** | **String** | | [optional] +**unreadChannelCount** | **Number** | | [optional] +**unreadMessageCount** | **Number** | | [optional] +**phoneNumber** | **String** | | [optional] +**isCreated** | **Boolean** | | [optional] +**sessionTokens** | **[String]** | | [optional] + + + +## Enum: StateEnum + + +* `empty` (value: `""`) + +* `invited` (value: `"invited"`) + +* `joined` (value: `"joined"`) + + + + diff --git a/docs/SetDomainFilterData.md b/docs/SetDomainFilterData.md deleted file mode 100644 index 96262d3..0000000 --- a/docs/SetDomainFilterData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**domainFilter** | [**SetDomainFilterDataDomainFilter**](SetDomainFilterDataDomainFilter.md) | | [optional] -**profanityFilter** | [**SetDomainFilterDataProfanityFilter**](SetDomainFilterDataProfanityFilter.md) | | [optional] -**profanityTriggeredModeration** | [**SetDomainFilterDataProfanityTriggeredModeration**](SetDomainFilterDataProfanityTriggeredModeration.md) | | [optional] -**imageModeration** | [**SetDomainFilterDataImageModeration**](SetDomainFilterDataImageModeration.md) | | [optional] - - diff --git a/docs/SetDomainFilterDataDomainFilter.md b/docs/SetDomainFilterDataDomainFilter.md deleted file mode 100644 index fabce15..0000000 --- a/docs/SetDomainFilterDataDomainFilter.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataDomainFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**domains** | **[String]** | | [optional] -**type** | **Number** | | [optional] -**shouldCheckGlobal** | **Boolean** | | [optional] - - diff --git a/docs/SetDomainFilterDataImageModeration.md b/docs/SetDomainFilterDataImageModeration.md deleted file mode 100644 index 96bee2a..0000000 --- a/docs/SetDomainFilterDataImageModeration.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataImageModeration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **Number** | | [optional] -**softBlock** | **Boolean** | | [optional] -**limits** | [**SetDomainFilterDataImageModerationLimits**](SetDomainFilterDataImageModerationLimits.md) | | [optional] -**checkUrls** | **Boolean** | | [optional] - - diff --git a/docs/SetDomainFilterDataImageModerationLimits.md b/docs/SetDomainFilterDataImageModerationLimits.md deleted file mode 100644 index f5a8eb2..0000000 --- a/docs/SetDomainFilterDataImageModerationLimits.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**adult** | **Number** | | [optional] -**spoof** | **Number** | | [optional] -**medical** | **Number** | | [optional] -**violence** | **Number** | | [optional] -**racy** | **Number** | | [optional] - - diff --git a/docs/SetDomainFilterDataProfanityFilter.md b/docs/SetDomainFilterDataProfanityFilter.md deleted file mode 100644 index 452736c..0000000 --- a/docs/SetDomainFilterDataProfanityFilter.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**keywords** | **[String]** | | [optional] -**regexFilters** | [**[SetDomainFilterDataProfanityFilterRegexFiltersInner]**](SetDomainFilterDataProfanityFilterRegexFiltersInner.md) | | [optional] -**type** | **Number** | | [optional] -**shouldCheckGlobal** | **Boolean** | | [optional] - - diff --git a/docs/SetDomainFilterDataProfanityFilterRegexFiltersInner.md b/docs/SetDomainFilterDataProfanityFilterRegexFiltersInner.md deleted file mode 100644 index 3ce68e2..0000000 --- a/docs/SetDomainFilterDataProfanityFilterRegexFiltersInner.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataProfanityFilterRegexFiltersInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regex** | **String** | | [optional] - - diff --git a/docs/SetDomainFilterDataProfanityTriggeredModeration.md b/docs/SetDomainFilterDataProfanityTriggeredModeration.md deleted file mode 100644 index 8248012..0000000 --- a/docs/SetDomainFilterDataProfanityTriggeredModeration.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**count** | **Number** | | [optional] -**duration** | **Number** | | [optional] -**action** | **Number** | | [optional] - - diff --git a/docs/StartTypingIndicatorsRequest.md b/docs/StartTypingIndicatorsRequest.md new file mode 100644 index 0000000..b50022b --- /dev/null +++ b/docs/StartTypingIndicatorsRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.StartTypingIndicatorsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userIds** | **[String]** | | + + diff --git a/docs/StatisticsApi.md b/docs/StatisticsApi.md index f0364a6..2e6980e 100644 --- a/docs/StatisticsApi.md +++ b/docs/StatisticsApi.md @@ -4,215 +4,18 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**getDetailedOpenRateOfAnnouncementById**](StatisticsApi.md#getDetailedOpenRateOfAnnouncementById) | **GET** /v3/announcement_open_rate/{unique_id} | Get detailed open rate of an announcement -[**getDetailedOpenStatusOfAnnouncementById**](StatisticsApi.md#getDetailedOpenStatusOfAnnouncementById) | **GET** /v3/announcement_open_status/{unique_id} | Get detailed open status of an announcement -[**retrieveAdvancedAnalyticsMetrics**](StatisticsApi.md#retrieveAdvancedAnalyticsMetrics) | **GET** /v3/statistics/metric | Retrieve Advanced analytics metrics -[**viewNumberOfConcurrentConnections**](StatisticsApi.md#viewNumberOfConcurrentConnections) | **GET** /v3/applications/ccu | View number of concurrent connections [**viewNumberOfDailyActiveUsers**](StatisticsApi.md#viewNumberOfDailyActiveUsers) | **GET** /v3/applications/dau | View number of daily active users [**viewNumberOfMonthlyActiveUsers**](StatisticsApi.md#viewNumberOfMonthlyActiveUsers) | **GET** /v3/applications/mau | View number of monthly active users -[**viewNumberOfPeakConnections**](StatisticsApi.md#viewNumberOfPeakConnections) | **GET** /v3/applications/peak_connections | View number of peak connections -## getDetailedOpenRateOfAnnouncementById - -> GetDetailedOpenRateOfAnnouncementByIdResponse getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId) - -Get detailed open rate of an announcement - -## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | -let uniqueId = "uniqueId_example"; // String | -apiInstance.getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **uniqueId** | **String**| | - -### Return type - -[**GetDetailedOpenRateOfAnnouncementByIdResponse**](GetDetailedOpenRateOfAnnouncementByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## getDetailedOpenStatusOfAnnouncementById - -> GetDetailedOpenStatusOfAnnouncementByIdResponse getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, opts) - -Get detailed open status of an announcement - -## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | -let uniqueId = "uniqueId_example"; // String | -let opts = { - 'limit': 56, // Number | - 'next': "next_example", // String | - 'uniqueIds': ["null"], // [String] | - 'channelUrls': ["null"], // [String] | - 'hasOpened': true // Boolean | -}; -apiInstance.getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **uniqueId** | **String**| | - **limit** | **Number**| | [optional] - **next** | **String**| | [optional] - **uniqueIds** | [**[String]**](String.md)| | [optional] - **channelUrls** | [**[String]**](String.md)| | [optional] - **hasOpened** | **Boolean**| | [optional] - -### Return type - -[**GetDetailedOpenStatusOfAnnouncementByIdResponse**](GetDetailedOpenStatusOfAnnouncementByIdResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## retrieveAdvancedAnalyticsMetrics - -> RetrieveAdvancedAnalyticsMetricsResponse retrieveAdvancedAnalyticsMetrics(apiToken) - -Retrieve Advanced analytics metrics - -## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.retrieveAdvancedAnalyticsMetrics(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**RetrieveAdvancedAnalyticsMetricsResponse**](RetrieveAdvancedAnalyticsMetricsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewNumberOfConcurrentConnections - -> ViewNumberOfConcurrentConnectionsResponse viewNumberOfConcurrentConnections(apiToken) - -View number of concurrent connections - -## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | -apiInstance.viewNumberOfConcurrentConnections(apiToken).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - -### Return type - -[**ViewNumberOfConcurrentConnectionsResponse**](ViewNumberOfConcurrentConnectionsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - ## viewNumberOfDailyActiveUsers -> ViewNumberOfDailyActiveUsersResponse viewNumberOfDailyActiveUsers(apiToken, opts) +> ViewNumberOfDailyActiveUsersResponse viewNumberOfDailyActiveUsers(opts) View number of daily active users -## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- +## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users) ### Example @@ -220,11 +23,11 @@ View number of daily active users import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { - 'date': "date_example" // String | + 'date': "date_example", // String | YYYY-MM-DD + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewNumberOfDailyActiveUsers(apiToken, opts).then((data) => { +apiInstance.viewNumberOfDailyActiveUsers(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -237,8 +40,8 @@ apiInstance.viewNumberOfDailyActiveUsers(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **date** | **String**| | [optional] + **date** | **String**| YYYY-MM-DD | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -256,11 +59,11 @@ No authorization required ## viewNumberOfMonthlyActiveUsers -> ViewNumberOfMonthlyActiveUsersResponse viewNumberOfMonthlyActiveUsers(apiToken, opts) +> ViewNumberOfMonthlyActiveUsersResponse viewNumberOfMonthlyActiveUsers(opts) View number of monthly active users -## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- +## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users) ### Example @@ -268,11 +71,11 @@ View number of monthly active users import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { - 'date': "date_example" // String | + 'date': "date_example", // String | YYYY-MM-DD + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewNumberOfMonthlyActiveUsers(apiToken, opts).then((data) => { +apiInstance.viewNumberOfMonthlyActiveUsers(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -285,8 +88,8 @@ apiInstance.viewNumberOfMonthlyActiveUsers(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **date** | **String**| | [optional] + **date** | **String**| YYYY-MM-DD | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -301,63 +104,3 @@ No authorization required - **Content-Type**: Not defined - **Accept**: application/json - -## viewNumberOfPeakConnections - -> ViewNumberOfPeakConnectionsResponse viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) - -View number of peak connections - -## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.StatisticsApi(); -let apiToken = {{API_TOKEN}}; // String | -let timeDimension = "timeDimension_example"; // String | -let startYear = 56; // Number | -let startMonth = 56; // Number | -let endYear = 56; // Number | -let endMonth = 56; // Number | -let opts = { - 'startDay': 56, // Number | - 'endDay': 56 // Number | -}; -apiInstance.viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **timeDimension** | **String**| | - **startYear** | **Number**| | - **startMonth** | **Number**| | - **endYear** | **Number**| | - **endMonth** | **Number**| | - **startDay** | **Number**| | [optional] - **endDay** | **Number**| | [optional] - -### Return type - -[**ViewNumberOfPeakConnectionsResponse**](ViewNumberOfPeakConnectionsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/docs/TranslateMessageIntoOtherLanguagesData.md b/docs/TranslateMessageIntoOtherLanguagesData.md deleted file mode 100644 index f830251..0000000 --- a/docs/TranslateMessageIntoOtherLanguagesData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**targetLangs** | **[String]** | Specifies an array of one or more codes of [translation](/docs/chat/v3/platform-api/message/translations/translation-engine) to translate the message. | [optional] - - diff --git a/docs/UpdateAChannelMetadataRequest.md b/docs/UpdateAChannelMetadataRequest.md new file mode 100644 index 0000000..57ee041 --- /dev/null +++ b/docs/UpdateAChannelMetadataRequest.md @@ -0,0 +1,10 @@ +# SendbirdPlatformSdk.UpdateAChannelMetadataRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**metadata** | **Object** | | +**upsert** | **Boolean** | | [optional] + + diff --git a/docs/UpdateAGroupChannelRequest.md b/docs/UpdateAGroupChannelRequest.md new file mode 100644 index 0000000..fa9f6a3 --- /dev/null +++ b/docs/UpdateAGroupChannelRequest.md @@ -0,0 +1,18 @@ +# SendbirdPlatformSdk.UpdateAGroupChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**accessCode** | **String** | | [optional] +**coverFile** | **File** | | [optional] +**coverUrl** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**isDistinct** | **Boolean** | | [optional] +**isPublic** | **Boolean** | | [optional] +**isSuper** | **Boolean** | | [optional] +**name** | **String** | | [optional] +**operatorIds** | **[String]** | | [optional] + + diff --git a/docs/UpdateAMessageRequest.md b/docs/UpdateAMessageRequest.md new file mode 100644 index 0000000..d9c6b17 --- /dev/null +++ b/docs/UpdateAMessageRequest.md @@ -0,0 +1,28 @@ +# SendbirdPlatformSdk.UpdateAMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**mentionType** | **String** | | [optional] +**mentionedUserIds** | **[String]** | | [optional] +**message** | **String** | | [optional] +**url** | **String** | | [optional] +**messageType** | **String** | | + + + +## Enum: MessageTypeEnum + + +* `MESG` (value: `"MESG"`) + +* `ADMM` (value: `"ADMM"`) + +* `FILE` (value: `"FILE"`) + + + + diff --git a/docs/UpdateAUserRequest.md b/docs/UpdateAUserRequest.md new file mode 100644 index 0000000..434ee49 --- /dev/null +++ b/docs/UpdateAUserRequest.md @@ -0,0 +1,17 @@ +# SendbirdPlatformSdk.UpdateAUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**discoveryKeys** | **[String]** | | [optional] +**isActive** | **Boolean** | | [optional] +**issueAccessToken** | **Boolean** | | [optional] +**lastSeenAt** | **Number** | | [optional] +**leaveAllWhenDeactivated** | **Boolean** | | [optional] +**nickname** | **String** | | [optional] +**preferredLanguages** | **[String]** | | [optional] +**profileFile** | **File** | | [optional] +**profileUrl** | **String** | | [optional] + + diff --git a/docs/UpdateAnOpenChannelRequest.md b/docs/UpdateAnOpenChannelRequest.md new file mode 100644 index 0000000..9512e09 --- /dev/null +++ b/docs/UpdateAnOpenChannelRequest.md @@ -0,0 +1,14 @@ +# SendbirdPlatformSdk.UpdateAnOpenChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**coverFile** | **File** | | [optional] +**coverUrl** | **String** | | [optional] +**customType** | **String** | | [optional] +**data** | **String** | | [optional] +**name** | **String** | | [optional] +**operatorIds** | **[String]** | | [optional] + + diff --git a/docs/UpdateAnnouncementByIdData.md b/docs/UpdateAnnouncementByIdData.md deleted file mode 100644 index b28f213..0000000 --- a/docs/UpdateAnnouncementByIdData.md +++ /dev/null @@ -1,25 +0,0 @@ -# SendbirdPlatformSdk.UpdateAnnouncementByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | Specifies the unique ID of the announcement to update. | -**action** | **String** | Specifies an action to take on the announcement. If this property is updated, other specified properties in the request are not effective. Acceptable values are limited to remove, pause, resume, and cancel. The [Announcement actions](#2-update-an-announcement-3-how-to-change-announcement-status) table explains each action in detail. | [optional] -**announcementGroup** | **String** | Specifies the name of an announcement group to retrieve. If not specified, all announcements are returned, regardless of their group. | [optional] -**createChannel** | **Boolean** | Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. | [optional] -**createChannelOptionsName** | **String** | Specifies the name of the channel. (Default: Group Channel) | [optional] -**createChannelOptionsCoverUrl** | **String** | Specifies the URL of the cover image. | [optional] -**createChannelOptionsCustomType** | **String** | Specifies the custom channel type. | [optional] -**createChannelOptionsData** | **String** | Specifies additional channel information such as a long description of the channel or `JSON` formatted string. | [optional] -**createChannelOptionsDistinct** | **String** | Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) | [optional] -**messageUserId** | **String** | Specifies the unique ID of the announcement sender. | [optional] -**messageContent** | **String** | Specifies the content of the message. | [optional] -**messageData** | **String** | Specifies additional message information such as custom font size, font type or `JSON` formatted string. | [optional] -**enablePush** | **Boolean** | Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for announcements. | [optional] -**scheduledAt** | **Number** | Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. (Default: current timestamp) | [optional] -**endAt** | **Number** | Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format, even if the announcement is not sent to all its targets. | [optional] -**ceaseAt** | **String** | Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the resume_at below. | [optional] -**resumeAt** | **String** | Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the cease_at above. | [optional] - - diff --git a/docs/UpdateAnnouncementByIdResponse.md b/docs/UpdateAnnouncementByIdResponse.md deleted file mode 100644 index 9df3f2a..0000000 --- a/docs/UpdateAnnouncementByIdResponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.UpdateAnnouncementByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**announcementGroup** | **String** | | [optional] -**message** | [**UpdateAnnouncementByIdResponseMessage**](UpdateAnnouncementByIdResponseMessage.md) | | [optional] - - diff --git a/docs/UpdateAnnouncementByIdResponseMessage.md b/docs/UpdateAnnouncementByIdResponseMessage.md deleted file mode 100644 index 6d60f88..0000000 --- a/docs/UpdateAnnouncementByIdResponseMessage.md +++ /dev/null @@ -1,23 +0,0 @@ -# SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **String** | | [optional] -**customType** | **String** | | [optional] -**userId** | **String** | | [optional] -**content** | **String** | | [optional] -**data** | **String** | | [optional] -**enablePush** | **Boolean** | | [optional] -**targetAt** | **String** | | [optional] -**targetUserCount** | **Number** | | [optional] -**targetChannelCount** | **Number** | | [optional] -**status** | **String** | | [optional] -**scheduledAt** | **Number** | | [optional] -**completedAt** | **Number** | | [optional] -**sentUserCount** | **Number** | | [optional] -**openCount** | **Number** | | [optional] -**openRate** | **Number** | | [optional] - - diff --git a/docs/UpdateApnsPushConfigurationByIdData.md b/docs/UpdateApnsPushConfigurationByIdData.md deleted file mode 100644 index 45e57c2..0000000 --- a/docs/UpdateApnsPushConfigurationByIdData.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**providerId** | **String** | Specifies the provider ID of the push configuration to update. | -**apnsCert** | **File** | In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. You should specify either this property or the apns_type below to inform the server of which certificate type to update. | -**apnsCertEnvType** | **String** | Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. | -**apnsCertPassword** | **String** | Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. | -**hasUnreadCountBadge** | **Boolean** | Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) | -**contentAvailable** | **Boolean** | Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) | -**mutableContent** | **Boolean** | Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. | -**apnsType** | **String** | (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. | - - diff --git a/docs/UpdateApnsPushConfigurationByIdResponse.md b/docs/UpdateApnsPushConfigurationByIdResponse.md deleted file mode 100644 index 35a3ab8..0000000 --- a/docs/UpdateApnsPushConfigurationByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | **String** | | [optional] - - diff --git a/docs/UpdateBotByIdData.md b/docs/UpdateBotByIdData.md deleted file mode 100644 index e6fbee3..0000000 --- a/docs/UpdateBotByIdData.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.UpdateBotByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**botUserid** | **String** | Specifies the ID of the bot to update. | -**botNickname** | **String** | Specifies the bot's nickname. The length is limited to 80 characters. | -**botProfileUrl** | **String** | Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. | -**botCallbackUrl** | **String** | Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. | -**isPrivacyMode** | **Boolean** | In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. | -**enableMarkAsRead** | **Boolean** | Determines whether to mark the bot's message as read upon sending it. (Default: true) | -**showMember** | **Boolean** | Determines whether to include information about the members of each channel in a callback response. (Default: false) | -**channelInvitationPreference** | **Number** | Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) | - - diff --git a/docs/UpdateBotByIdResponse.md b/docs/UpdateBotByIdResponse.md deleted file mode 100644 index be3288e..0000000 --- a/docs/UpdateBotByIdResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.UpdateBotByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bot** | [**CreateBotResponseBot**](CreateBotResponseBot.md) | | [optional] -**botCallbackUrl** | **String** | | [optional] -**enableMarkAsRead** | **Boolean** | | [optional] -**isPrivacyMode** | **Boolean** | | [optional] -**showMember** | **Boolean** | | [optional] -**channelInvitationPreference** | **Number** | | [optional] - - diff --git a/docs/UpdateChannelInvitationPreferenceData.md b/docs/UpdateChannelInvitationPreferenceData.md deleted file mode 100644 index ce0a3f9..0000000 --- a/docs/UpdateChannelInvitationPreferenceData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoAccept** | **Boolean** | Determines for the user whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) | - - diff --git a/docs/UpdateChannelInvitationPreferenceRequest.md b/docs/UpdateChannelInvitationPreferenceRequest.md new file mode 100644 index 0000000..6274e62 --- /dev/null +++ b/docs/UpdateChannelInvitationPreferenceRequest.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**autoAccept** | **Boolean** | | [optional] + + diff --git a/docs/UpdateChannelMetacounterData.md b/docs/UpdateChannelMetacounterData.md deleted file mode 100644 index 0337de3..0000000 --- a/docs/UpdateChannelMetacounterData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.UpdateChannelMetacounterData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metacounter** | **String** | Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. | -**mode** | **String** | Specifies how to calculate the item value of the metacounter. Acceptable values are increase, decrease, and set. If set to increase, increments the item value of the metacounter by the value specified in the metacounter property, while decrease decrements. set sets the item value to the specified value exactly. (Default: set) | [optional] -**upsert** | **Boolean** | | [optional] - - diff --git a/docs/UpdateChannelMetadataData.md b/docs/UpdateChannelMetadataData.md deleted file mode 100644 index 7f00420..0000000 --- a/docs/UpdateChannelMetadataData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateChannelMetadataData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | **Object** | Specifies a `JSON` object which has key-value items to update. A key can't contain a comma (,) and its length is limited to 128 characters. A value must be a string and its length is limited to 190 characters. This property can have up to 5 items. | -**upsert** | **Boolean** | | - - diff --git a/docs/UpdateCountPreferenceOfAChannelRequest.md b/docs/UpdateCountPreferenceOfAChannelRequest.md new file mode 100644 index 0000000..c7dee17 --- /dev/null +++ b/docs/UpdateCountPreferenceOfAChannelRequest.md @@ -0,0 +1,24 @@ +# SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countPreference** | **String** | | + + + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + diff --git a/docs/UpdateCountPreferenceOfChannelByUrlData.md b/docs/UpdateCountPreferenceOfChannelByUrlData.md deleted file mode 100644 index 3406934..0000000 --- a/docs/UpdateCountPreferenceOfChannelByUrlData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**countPreference** | **String** | Determines whether to only count the number of unread messages or the number of unread mentioned messages in the specified group channel. Only the one that is chosen to be preferenced will be counted and added to the total number count after the action. A value of off indicates that both read statuses will not be counted, while all indicates that both read statuses will be counted by the system. A value of unread_message_count_only indicates that only the user's unread messages will be counted in the channel while unread_mentioned_count_only indicates that only the user's unread mentioned messages will be counted. (Default: all) | - - diff --git a/docs/UpdateCountPreferenceOfChannelByUrlResponse.md b/docs/UpdateCountPreferenceOfChannelByUrlResponse.md index 9c03af6..e42738e 100644 --- a/docs/UpdateCountPreferenceOfChannelByUrlResponse.md +++ b/docs/UpdateCountPreferenceOfChannelByUrlResponse.md @@ -7,3 +7,18 @@ Name | Type | Description | Notes **countPreference** | **String** | | [optional] + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + diff --git a/docs/UpdateDefaultChannelInvitationPreferenceData.md b/docs/UpdateDefaultChannelInvitationPreferenceData.md deleted file mode 100644 index e2ab3c4..0000000 --- a/docs/UpdateDefaultChannelInvitationPreferenceData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoAccept** | **Boolean** | Determines for users within an application whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) | - - diff --git a/docs/UpdateDefaultChannelInvitationPreferenceResponse.md b/docs/UpdateDefaultChannelInvitationPreferenceResponse.md deleted file mode 100644 index ef2a42d..0000000 --- a/docs/UpdateDefaultChannelInvitationPreferenceResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoAccept** | **Boolean** | | [optional] - - diff --git a/docs/UpdateEmojiCategoryUrlByIdData.md b/docs/UpdateEmojiCategoryUrlByIdData.md deleted file mode 100644 index 3688cb8..0000000 --- a/docs/UpdateEmojiCategoryUrlByIdData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojiCategoryId** | **Number** | Specifies the unique ID of the emoji category to update. | -**url** | **String** | Specifies the new URL of the emoji category. | - - diff --git a/docs/UpdateEmojiUrlByKeyData.md b/docs/UpdateEmojiUrlByKeyData.md deleted file mode 100644 index a08aea8..0000000 --- a/docs/UpdateEmojiUrlByKeyData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateEmojiUrlByKeyData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emojiKey** | **String** | Specifies the key of the emoji to update. | -**url** | **String** | Specifies the new image URL of the emoji. | - - diff --git a/docs/UpdateExtraDataInAMessageRequest.md b/docs/UpdateExtraDataInAMessageRequest.md new file mode 100644 index 0000000..89d1a98 --- /dev/null +++ b/docs/UpdateExtraDataInAMessageRequest.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**mode** | **String** | | [optional] +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] +**upsert** | **Boolean** | | [optional] + + diff --git a/docs/UpdateExtraDataInAMessageResponse.md b/docs/UpdateExtraDataInAMessageResponse.md new file mode 100644 index 0000000..7c4d6a6 --- /dev/null +++ b/docs/UpdateExtraDataInAMessageResponse.md @@ -0,0 +1,9 @@ +# SendbirdPlatformSdk.UpdateExtraDataInAMessageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**sortedMetaarray** | [**[SendbirdSortedMetaarrayInner]**](SendbirdSortedMetaarrayInner.md) | | [optional] + + diff --git a/docs/UpdateExtraDataInMessageData.md b/docs/UpdateExtraDataInMessageData.md deleted file mode 100644 index 163de4b..0000000 --- a/docs/UpdateExtraDataInMessageData.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.UpdateExtraDataInMessageData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | -**channelUrl** | **String** | Specifies the URL of the target channel. | -**messageId** | **Number** | Specifies the unique ID of the message to update key-values items. | -**sortedMetaarray** | **String** | Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. | -**mode** | **String** | Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are limited to add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. | -**upsert** | **Boolean** | Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of which keys match the ones you specify are updated with new values. (Default: false) | - - diff --git a/docs/UpdateExtraDataInMessageResponse.md b/docs/UpdateExtraDataInMessageResponse.md deleted file mode 100644 index ce097b8..0000000 --- a/docs/UpdateExtraDataInMessageResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateExtraDataInMessageResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sortedMetaarray** | [**[UpdateExtraDataInMessageResponseSortedMetaarrayInner]**](UpdateExtraDataInMessageResponseSortedMetaarrayInner.md) | | [optional] - - diff --git a/docs/UpdateExtraDataInMessageResponseSortedMetaarrayInner.md b/docs/UpdateExtraDataInMessageResponseSortedMetaarrayInner.md deleted file mode 100644 index e493a35..0000000 --- a/docs/UpdateExtraDataInMessageResponseSortedMetaarrayInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **[String]** | | [optional] -**key** | **String** | | [optional] - - diff --git a/docs/UpdateFcmPushConfigurationByIdData.md b/docs/UpdateFcmPushConfigurationByIdData.md deleted file mode 100644 index 3c1e61e..0000000 --- a/docs/UpdateFcmPushConfigurationByIdData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**providerId** | **String** | Specifies the provider ID of the push configuration to update. | -**apiKey** | **String** | Specifies the FCM server key to update. | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. | - - diff --git a/docs/UpdateFcmPushConfigurationByIdResponse.md b/docs/UpdateFcmPushConfigurationByIdResponse.md deleted file mode 100644 index 1de5ea7..0000000 --- a/docs/UpdateFcmPushConfigurationByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | **String** | | [optional] - - diff --git a/docs/UpdateHmsPushConfigurationByIdData.md b/docs/UpdateHmsPushConfigurationByIdData.md deleted file mode 100644 index a83e9c6..0000000 --- a/docs/UpdateHmsPushConfigurationByIdData.md +++ /dev/null @@ -1,12 +0,0 @@ -# SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**providerId** | **String** | Specifies the provider ID of the push configuration to update. | -**huaweiAppId** | **String** | Specifies the unique ID of application for HMS to update. | -**huaweiAppSecret** | **String** | Specifies the secret key of the application to update. | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. | - - diff --git a/docs/UpdateHmsPushConfigurationByIdResponse.md b/docs/UpdateHmsPushConfigurationByIdResponse.md deleted file mode 100644 index 5f90998..0000000 --- a/docs/UpdateHmsPushConfigurationByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | **String** | | [optional] - - diff --git a/docs/UpdateMessageByIdData.md b/docs/UpdateMessageByIdData.md deleted file mode 100644 index 9c8add7..0000000 --- a/docs/UpdateMessageByIdData.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.UpdateMessageByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelType** | **String** | Specifies the type of the channel. Either open_channels or group_channels. | [optional] -**channelUrl** | **String** | Specifies the URL of the target channel. | [optional] -**messageId** | **Number** | Specifies the unique ID of the message to update. | -**messageType** | **String** | Specifies the type of the message as ADMM. | [optional] -**message** | **String** | Specifies the content of the message. | [optional] -**customType** | **String** | Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.<br /><br /> Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. | [optional] -**data** | **String** | Specifies additional message information such as custom font size, font type or `JSON` formatted string. | [optional] -**mentionType** | **String** | Specifies the mentioning method which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) | [optional] -**mentionedUserIds** | **[String]** | Specifies an array of one or more IDs of the users who will get a notification for the message. | [optional] - - diff --git a/docs/UpdatePushNotificationContentTemplateData.md b/docs/UpdatePushNotificationContentTemplateData.md deleted file mode 100644 index 3d4484e..0000000 --- a/docs/UpdatePushNotificationContentTemplateData.md +++ /dev/null @@ -1,13 +0,0 @@ -# SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**templateName** | **String** | Specifies the name of a push notification content template to update. Acceptable values are default and alternative. | -**template** | **String** | The push notification content template of which content types to be updated and their detailed format. | -**templateMESG** | **String** | Specifies a format for text messages. We support customization of two fields, which are the sender_name and message. These fields will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. | -**templateFILE** | **String** | Specifies a format for file messages. We support customization with variables including filename and file_type_friendly. When sending notification requests to FCM, HMS, or APNs, the filename will be replaced with the corresponding string value while the file_type_friendly will indicate the type of the file sent, such as `Audio`, `Image`, and `Video`. | -**templateADMN** | **String** | Specifies a format for admin messages. We support customization of one field, which is the message. This field will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. | - - diff --git a/docs/UpdatePushNotificationContentTemplateResponse.md b/docs/UpdatePushNotificationContentTemplateResponse.md deleted file mode 100644 index 71dcb7c..0000000 --- a/docs/UpdatePushNotificationContentTemplateResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UpdatePushNotificationContentTemplateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushMessageTemplates** | [**[ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner]**](ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md) | | [optional] - - diff --git a/docs/UpdatePushPreferencesData.md b/docs/UpdatePushPreferencesData.md deleted file mode 100644 index 28587ed..0000000 --- a/docs/UpdatePushPreferencesData.md +++ /dev/null @@ -1,21 +0,0 @@ -# SendbirdPlatformSdk.UpdatePushPreferencesData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushTriggerOption** | **String** | Determines the type of push notification trigger to apply to the user's joined group channels. Valid values are the following:<br />- all (default): when disconnected from Sendbird server, the user receives notifications for all new messages including mentioned messages the user has been mentioned in.<br />- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages the user has been mentioned in.<br />- off: the user doesn't receive any notifications. | -**doNotDisturb** | **Boolean** | Determines whether to pause notification messages for the user during a specific time of day. (Default: false) | -**startHour** | **Number** | Specifies the hour to start pausing the notifications for Do Not Disturb of the user. | -**startMin** | **Number** | Specifies the minute of the hour to start pausing the notifications for Do Not Disturb of the user. | -**endHour** | **Number** | Specifies the hour to stop pausing the notifications for Do Not Disturb of the user. | -**endMin** | **Number** | Specifies the minute of the hour to stop pausing the notifications for Do Not Disturb of the user. | -**snoozeEnabled** | **Boolean** | Determines whether to snooze notification messages for the user during a specific period of time. (Default: false) | -**snoozeStartTs** | **Number** | Specifies the timestamp of when to start snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). | -**snoozeEndTs** | **Number** | Specifies the timestamp of when to end snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). | -**blockPushFromBots** | **Boolean** | Determines whether to block push notifications from [all bots](/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots) within the application. If the push_blocked_bot_ids is specified, notifications only from the bots in the property are blocked. (Default: false) | -**pushBlockedBotIds** | **[Number]** | Specifies an array of one or more IDs of bots whose push notifications are blocked. This property is effective only when the block_push_from_bots is set to true. | -**timezone** | **String** | Specifies the timezone to be applied to push preferences with a value such as UTC, Asia/Seoul, Europe/London, etc. | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to your client app. | - - diff --git a/docs/UpdatePushPreferencesForAChannelRequest.md b/docs/UpdatePushPreferencesForAChannelRequest.md new file mode 100644 index 0000000..9835ed1 --- /dev/null +++ b/docs/UpdatePushPreferencesForAChannelRequest.md @@ -0,0 +1,25 @@ +# SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**pushTriggerOption** | **String** | The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. | +**pushSound** | **String** | | [optional] + + + +## Enum: PushTriggerOptionEnum + + +* `default` (value: `"default"`) + +* `all` (value: `"all"`) + +* `mention_only` (value: `"mention_only"`) + +* `false` (value: `"false"`) + + + + diff --git a/docs/UpdatePushPreferencesForAChannelResponse.md b/docs/UpdatePushPreferencesForAChannelResponse.md new file mode 100644 index 0000000..e8ff6cc --- /dev/null +++ b/docs/UpdatePushPreferencesForAChannelResponse.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enable** | **Boolean** | | [optional] +**pushSound** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] + + diff --git a/docs/UpdatePushPreferencesForChannelByUrlData.md b/docs/UpdatePushPreferencesForChannelByUrlData.md deleted file mode 100644 index 1dc76ff..0000000 --- a/docs/UpdatePushPreferencesForChannelByUrlData.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushTriggerOption** | **String** | Determines the type of push notification trigger to apply to the speficied channel. Acceptable values are limited to the following:<br />- default: the user's push notification trigger setting automatically applies to the channel. This is the default setting.<br />- all: when disconnected from Sendbird server, the user receives notifications for all new messages in the channel including messages the user has been mentioned in.<br />- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages in the channel the user has been mentioned in.<br />- off: the user doesn't receive any notifications in the channel. | -**enable** | **Boolean** | (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: true) | -**pushSound** | **String** | Specifies the name of a sound file to be played when a push notification is delivered to the specified channel. | - - diff --git a/docs/UpdatePushPreferencesForChannelByUrlResponse.md b/docs/UpdatePushPreferencesForChannelByUrlResponse.md deleted file mode 100644 index d8ead3e..0000000 --- a/docs/UpdatePushPreferencesForChannelByUrlResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushTriggerOption** | **String** | | [optional] -**doNotDisturb** | **Boolean** | | [optional] -**startHour** | **Number** | | [optional] -**startMin** | **Number** | | [optional] -**endHour** | **Number** | | [optional] -**endMin** | **Number** | | [optional] -**snoozeEnabled** | **Boolean** | | [optional] -**snoozeStartTs** | **Number** | | [optional] -**snoozeEndTs** | **Number** | | [optional] -**timezone** | **String** | | [optional] -**pushSound** | **String** | | [optional] -**enable** | **Boolean** | | [optional] - - diff --git a/docs/UpdatePushPreferencesRequest.md b/docs/UpdatePushPreferencesRequest.md new file mode 100644 index 0000000..9b9cf4d --- /dev/null +++ b/docs/UpdatePushPreferencesRequest.md @@ -0,0 +1,22 @@ +# SendbirdPlatformSdk.UpdatePushPreferencesRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**blockPushFromBots** | **Boolean** | | [optional] +**doNotDisturb** | **Boolean** | | [optional] +**enablePushForReplies** | **Boolean** | | [optional] +**endHour** | **Number** | | [optional] +**endMin** | **Number** | | [optional] +**pushBlockedBotIds** | **[String]** | | [optional] +**pushSound** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**snoozeEnabled** | **Boolean** | | [optional] +**snoozeEndTs** | **Number** | | [optional] +**snoozeStartTs** | **Number** | | [optional] +**startHour** | **Number** | | [optional] +**startMin** | **Number** | | [optional] +**timezone** | **String** | | [optional] + + diff --git a/docs/UpdatePushPreferencesResponse.md b/docs/UpdatePushPreferencesResponse.md index c9b9820..c3600db 100644 --- a/docs/UpdatePushPreferencesResponse.md +++ b/docs/UpdatePushPreferencesResponse.md @@ -5,18 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **blockPushFromBots** | **Boolean** | | [optional] -**enablePushForReplies** | **Boolean** | | [optional] -**pushBlockedBotIds** | **[String]** | | [optional] -**pushTriggerOption** | **String** | | [optional] **doNotDisturb** | **Boolean** | | [optional] -**startHour** | **Number** | | [optional] -**startMin** | **Number** | | [optional] +**enablePushForReplies** | **Boolean** | | [optional] **endHour** | **Number** | | [optional] **endMin** | **Number** | | [optional] +**pushBlockedBotIds** | **[String]** | | [optional] +**pushSound** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] **snoozeEnabled** | **Boolean** | | [optional] -**snoozeStartTs** | **Number** | | [optional] **snoozeEndTs** | **Number** | | [optional] +**snoozeStartTs** | **Number** | | [optional] +**startHour** | **Number** | | [optional] +**startMin** | **Number** | | [optional] **timezone** | **String** | | [optional] -**pushSound** | **String** | | [optional] diff --git a/docs/UpdateUserByIdData.md b/docs/UpdateUserByIdData.md deleted file mode 100644 index 83eafd9..0000000 --- a/docs/UpdateUserByIdData.md +++ /dev/null @@ -1,20 +0,0 @@ -# SendbirdPlatformSdk.UpdateUserByIdData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | Specifies the unique ID of the user to update. | -**nickname** | **String** | Specifies the user's nickname. The length is limited to 80 characters. | -**profileUrl** | **String** | Specifies the URL of the user's profile image. The length is limited to 2,048 characters.<br /><br /> The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. | -**profileFile** | **File** | Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. | [optional] -**issueAccessToken** | **Boolean** | Determines whether to revoke the existing access token and create a new one for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) | [optional] -**issueSessionToken** | **Boolean** | Determines whether to add a new session token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, a session token is not required when the user logs in. (Default: false) | [optional] -**sessionTokenExpiresAt** | **Number** | Specifies the time for the issued session token to expire in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The length should be 13. If not specified and the issue_session_token property above is true, the value of this property is set to the sum of the current timestamp and 604800000 by default, which indicates that the token will be valid for the next 7 days starting from the current timestamp. | [optional] -**isActive** | **Boolean** | Determines whether to activate or deactivate the user within the application. | [optional] -**lastSeenAt** | **Number** | Specifies the time when the user goes offline, to indicate when they were last online, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. | [optional] -**discoveryKeys** | **[String]** | Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. | [optional] -**preferredLanguages** | **[String]** | Specifies an array of one or more [language codes](/docs/chat/v3/platform-api/guides/miscellaneous#2-language-codes-for-auto-translation) to translate notification messages to preferred languages. Up to 4 languages can be set for the user. If messages are sent in one of the preferred languages, notification messages won't be translated. If messages are sent in a language other than the preferred languages, notification messages will be translated into the first language in the array. In addition, the messages translated into other preferred languages will be provided in the `sendbird` property of a notification message payload. | [optional] -**leaveAllWhenDeactivated** | **Boolean** | Determines whether the user leaves all joined group channels upon deactivation. Note that this value is true by default. Use in conjunction with the is_active property above. | [optional] - - diff --git a/docs/UpdateUserMetadataData.md b/docs/UpdateUserMetadataData.md deleted file mode 100644 index 1fe7fc3..0000000 --- a/docs/UpdateUserMetadataData.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateUserMetadataData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | **Object** | Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. | -**upsert** | **Boolean** | | - - diff --git a/docs/UpdateUserMetadataResponse.md b/docs/UpdateUserMetadataResponse.md deleted file mode 100644 index bfd073f..0000000 --- a/docs/UpdateUserMetadataResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.UpdateUserMetadataResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**metadata** | **{String: String}** | | [optional] -**upsert** | **Boolean** | | [optional] - - diff --git a/docs/UseDefaultEmojisData.md b/docs/UseDefaultEmojisData.md deleted file mode 100644 index 891f033..0000000 --- a/docs/UseDefaultEmojisData.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UseDefaultEmojisData - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**useDefaultEmoji** | **Boolean** | Determines whether to use the 7 default emojis initially provided. | - - diff --git a/docs/UseDefaultEmojisResponse.md b/docs/UseDefaultEmojisResponse.md deleted file mode 100644 index 9ef6ed9..0000000 --- a/docs/UseDefaultEmojisResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.UseDefaultEmojisResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**useDefaultEmoji** | **Boolean** | | [optional] - - diff --git a/docs/UserApi.md b/docs/UserApi.md index d57fb72..0bd6f11 100644 --- a/docs/UserApi.md +++ b/docs/UserApi.md @@ -4,42 +4,39 @@ All URIs are relative to *https://api-APP_ID.sendbird.com* Method | HTTP request | Description ------------- | ------------- | ------------- -[**addRegistrationOrDeviceToken**](UserApi.md#addRegistrationOrDeviceToken) | **POST** /v3/users/{user_id}/push/{token_type} | Add a registration or device token -[**choosePushNotificationContentTemplate**](UserApi.md#choosePushNotificationContentTemplate) | **PUT** /v3/users/{user_id}/push/template | Choose a push notification content template -[**createUser**](UserApi.md#createUser) | **POST** /v3/users | Create a user +[**addARegistrationOrDeviceToken**](UserApi.md#addARegistrationOrDeviceToken) | **POST** /v3/users/{user_id}/push/{token_type} | Add a registration or device token +[**chooseAPushNotificationContentTemplate**](UserApi.md#chooseAPushNotificationContentTemplate) | **PUT** /v3/users/{user_id}/push/template | Choose a push notification content template +[**createAUser**](UserApi.md#createAUser) | **POST** /v3/users | Create a user [**createUserToken**](UserApi.md#createUserToken) | **POST** /v3/users/{user_id}/token | Create user token -[**deleteUserById**](UserApi.md#deleteUserById) | **DELETE** /v3/users/{user_id} | Delete a user +[**deleteAUser**](UserApi.md#deleteAUser) | **DELETE** /v3/users/{user_id} | Delete a user +[**getChannelInvitationPreference**](UserApi.md#getChannelInvitationPreference) | **GET** /v3/users/{user_id}/channel_invitation_preference | Get channel invitation preference [**leaveMyGroupChannels**](UserApi.md#leaveMyGroupChannels) | **PUT** /v3/users/{user_id}/my_group_channels/leave | Leave my group channels [**listMyGroupChannels**](UserApi.md#listMyGroupChannels) | **GET** /v3/users/{user_id}/my_group_channels | List my group channels [**listRegistrationOrDeviceTokens**](UserApi.md#listRegistrationOrDeviceTokens) | **GET** /v3/users/{user_id}/push/{token_type} | List registration or device tokens [**listUsers**](UserApi.md#listUsers) | **GET** /v3/users | List users [**markAllMessagesAsRead**](UserApi.md#markAllMessagesAsRead) | **PUT** /v3/users/{user_id}/mark_as_read_all | Mark all messages as read -[**registerAsOperatorToChannelsWithCustomChannelTypes**](UserApi.md#registerAsOperatorToChannelsWithCustomChannelTypes) | **POST** /v3/users/{user_id}/operating_channel_custom_types | Register as an operator to channels with custom channel types -[**removeRegistrationOrDeviceToken**](UserApi.md#removeRegistrationOrDeviceToken) | **DELETE** /v3/users/{user_id}/push | Remove a registration or device token - When unregistering all device tokens -[**removeRegistrationOrDeviceTokenByToken**](UserApi.md#removeRegistrationOrDeviceTokenByToken) | **DELETE** /v3/users/{user_id}/push/{token_type}/{token} | Remove a registration or device token - When unregistering a specific token -[**removeRegistrationOrDeviceTokenFromOwnerByToken**](UserApi.md#removeRegistrationOrDeviceTokenFromOwnerByToken) | **DELETE** /v3/push/device_tokens/{token_type}/{token} | Remove a registration or device token from an owner +[**removeARegistrationOrDeviceToken**](UserApi.md#removeARegistrationOrDeviceToken) | **DELETE** /v3/users/{user_id}/push/{token_type}/{token} | Remove a registration or device token - When unregistering a specific token +[**removeARegistrationOrDeviceTokenFromAnOwner**](UserApi.md#removeARegistrationOrDeviceTokenFromAnOwner) | **DELETE** /v3/push/device_tokens/{token_type}/{token} | Remove a registration or device token from an owner +[**removeAllRegistrationOrDeviceToken**](UserApi.md#removeAllRegistrationOrDeviceToken) | **DELETE** /v3/users/{user_id}/push | Remove a registration or device token - When unregistering all device tokens [**resetPushPreferences**](UserApi.md#resetPushPreferences) | **DELETE** /v3/users/{user_id}/push_preference | Reset push preferences +[**updateAUser**](UserApi.md#updateAUser) | **PUT** /v3/users/{user_id} | Update a user [**updateChannelInvitationPreference**](UserApi.md#updateChannelInvitationPreference) | **PUT** /v3/users/{user_id}/channel_invitation_preference | Update channel invitation preference -[**updateCountPreferenceOfChannelByUrl**](UserApi.md#updateCountPreferenceOfChannelByUrl) | **PUT** /v3/users/{user_id}/count_preference/{channel_url} | Update count preference of a channel +[**updateCountPreferenceOfAChannel**](UserApi.md#updateCountPreferenceOfAChannel) | **PUT** /v3/users/{user_id}/count_preference/{channel_url} | Update count preference of a channel [**updatePushPreferences**](UserApi.md#updatePushPreferences) | **PUT** /v3/users/{user_id}/push_preference | Update push preferences -[**updatePushPreferencesForChannelByUrl**](UserApi.md#updatePushPreferencesForChannelByUrl) | **PUT** /v3/users/{user_id}/push_preference/{channel_url} | Update push preferences for a channel -[**updateUserById**](UserApi.md#updateUserById) | **PUT** /v3/users/{user_id} | Update a user -[**viewChannelInvitationPreference**](UserApi.md#viewChannelInvitationPreference) | **GET** /v3/users/{user_id}/channel_invitation_preference | View channel invitation preference -[**viewCountPreferenceOfChannelByUrl**](UserApi.md#viewCountPreferenceOfChannelByUrl) | **GET** /v3/users/{user_id}/count_preference/{channel_url} | View count preference of a channel -[**viewNumberOfChannelsByJoinStatus**](UserApi.md#viewNumberOfChannelsByJoinStatus) | **GET** /v3/users/{user_id}/group_channel_count | View number of channels by join status +[**updatePushPreferencesForAChannel**](UserApi.md#updatePushPreferencesForAChannel) | **PUT** /v3/users/{user_id}/push_preference/{channel_url} | Update push preferences for a channel +[**viewAUser**](UserApi.md#viewAUser) | **GET** /v3/users/{user_id} | View a user +[**viewCountPreferenceOfAChannel**](UserApi.md#viewCountPreferenceOfAChannel) | **GET** /v3/users/{user_id}/count_preference/{channel_url} | View count preference of a channel [**viewNumberOfChannelsWithUnreadMessages**](UserApi.md#viewNumberOfChannelsWithUnreadMessages) | **GET** /v3/users/{user_id}/unread_channel_count | View number of channels with unread messages -[**viewNumberOfUnreadItems**](UserApi.md#viewNumberOfUnreadItems) | **GET** /v3/users/{user_id}/unread_item_count | View number of unread items [**viewNumberOfUnreadMessages**](UserApi.md#viewNumberOfUnreadMessages) | **GET** /v3/users/{user_id}/unread_message_count | View number of unread messages [**viewPushPreferences**](UserApi.md#viewPushPreferences) | **GET** /v3/users/{user_id}/push_preference | View push preferences -[**viewPushPreferencesForChannelByUrl**](UserApi.md#viewPushPreferencesForChannelByUrl) | **GET** /v3/users/{user_id}/push_preference/{channel_url} | View push preferences for a channel -[**viewUserById**](UserApi.md#viewUserById) | **GET** /v3/users/{user_id} | View a user -[**viewWhoOwnsRegistrationOrDeviceTokenByToken**](UserApi.md#viewWhoOwnsRegistrationOrDeviceTokenByToken) | **GET** /v3/push/device_tokens/{token_type}/{token} | View who owns a registration or device token +[**viewPushPreferencesForAChannel**](UserApi.md#viewPushPreferencesForAChannel) | **GET** /v3/users/{user_id}/push_preference/{channel_url} | View push preferences for a channel +[**viewWhoOwnsARegistrationOrDeviceToken**](UserApi.md#viewWhoOwnsARegistrationOrDeviceToken) | **GET** /v3/push/device_tokens/{token_type}/{token} | View who owns a registration or device token -## addRegistrationOrDeviceToken +## addARegistrationOrDeviceToken -> AddRegistrationOrDeviceTokenResponse addRegistrationOrDeviceToken(apiToken, userId, tokenType, opts) +> AddARegistrationOrDeviceTokenResponse addARegistrationOrDeviceToken(userId, tokenType, opts) Add a registration or device token @@ -51,13 +48,13 @@ Add a registration or device token import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let tokenType = "tokenType_example"; // String | +let userId = "userId_example"; // String | (Required) +let tokenType = "tokenType_example"; // String | (Required) let opts = { - 'addRegistrationOrDeviceTokenData': new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData() // AddRegistrationOrDeviceTokenData | + 'apiToken': {{API_TOKEN}}, // String | + 'addARegistrationOrDeviceTokenRequest': new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest() // AddARegistrationOrDeviceTokenRequest | }; -apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, opts).then((data) => { +apiInstance.addARegistrationOrDeviceToken(userId, tokenType, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -70,14 +67,14 @@ apiInstance.addRegistrationOrDeviceToken(apiToken, userId, tokenType, opts).then Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **tokenType** | **String**| | - **addRegistrationOrDeviceTokenData** | [**AddRegistrationOrDeviceTokenData**](AddRegistrationOrDeviceTokenData.md)| | [optional] + **userId** | **String**| (Required) | + **tokenType** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **addARegistrationOrDeviceTokenRequest** | [**AddARegistrationOrDeviceTokenRequest**](AddARegistrationOrDeviceTokenRequest.md)| | [optional] ### Return type -[**AddRegistrationOrDeviceTokenResponse**](AddRegistrationOrDeviceTokenResponse.md) +[**AddARegistrationOrDeviceTokenResponse**](AddARegistrationOrDeviceTokenResponse.md) ### Authorization @@ -89,13 +86,13 @@ No authorization required - **Accept**: application/json -## choosePushNotificationContentTemplate +## chooseAPushNotificationContentTemplate -> ChoosePushNotificationContentTemplateResponse choosePushNotificationContentTemplate(apiToken, userId, opts) +> ChooseAPushNotificationContentTemplateResponse chooseAPushNotificationContentTemplate(userId, opts) Choose a push notification content template -## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- +## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template ### Example @@ -103,12 +100,12 @@ Choose a push notification content template import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'body': {key: null} // Object | + 'apiToken': {{API_TOKEN}}, // String | + 'chooseAPushNotificationContentTemplateRequest': new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest() // ChooseAPushNotificationContentTemplateRequest | }; -apiInstance.choosePushNotificationContentTemplate(apiToken, userId, opts).then((data) => { +apiInstance.chooseAPushNotificationContentTemplate(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -121,13 +118,13 @@ apiInstance.choosePushNotificationContentTemplate(apiToken, userId, opts).then(( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **body** | **Object**| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **chooseAPushNotificationContentTemplateRequest** | [**ChooseAPushNotificationContentTemplateRequest**](ChooseAPushNotificationContentTemplateRequest.md)| | [optional] ### Return type -[**ChoosePushNotificationContentTemplateResponse**](ChoosePushNotificationContentTemplateResponse.md) +[**ChooseAPushNotificationContentTemplateResponse**](ChooseAPushNotificationContentTemplateResponse.md) ### Authorization @@ -139,13 +136,13 @@ No authorization required - **Accept**: application/json -## createUser +## createAUser -> SendBirdUser createUser(apiToken, opts) +> SendbirdUser createAUser(opts) Create a user -## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user +## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user ### Example @@ -153,11 +150,11 @@ Create a user import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { - 'createUserData': new SendbirdPlatformSdk.CreateUserData() // CreateUserData | + 'apiToken': {{API_TOKEN}}, // String | + 'createAUserRequest': new SendbirdPlatformSdk.CreateAUserRequest() // CreateAUserRequest | }; -apiInstance.createUser(apiToken, opts).then((data) => { +apiInstance.createAUser(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -170,12 +167,12 @@ apiInstance.createUser(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **createUserData** | [**CreateUserData**](CreateUserData.md)| | [optional] + **apiToken** | **String**| | [optional] + **createAUserRequest** | [**CreateAUserRequest**](CreateAUserRequest.md)| | [optional] ### Return type -[**SendBirdUser**](SendBirdUser.md) +[**SendbirdUser**](SendbirdUser.md) ### Authorization @@ -189,11 +186,11 @@ No authorization required ## createUserToken -> CreateUserTokenResponse createUserToken(apiToken, userId, opts) +> CreateUserTokenResponse createUserToken(userId, opts) Create user token -## Create user token +## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token ### Example @@ -201,12 +198,12 @@ Create user token import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'createUserTokenData': new SendbirdPlatformSdk.CreateUserTokenData() // CreateUserTokenData | + 'apiToken': {{API_TOKEN}}, // String | + 'createUserTokenRequest': new SendbirdPlatformSdk.CreateUserTokenRequest() // CreateUserTokenRequest | }; -apiInstance.createUserToken(apiToken, userId, opts).then((data) => { +apiInstance.createUserToken(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -219,9 +216,9 @@ apiInstance.createUserToken(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **createUserTokenData** | [**CreateUserTokenData**](CreateUserTokenData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **createUserTokenRequest** | [**CreateUserTokenRequest**](CreateUserTokenRequest.md)| | [optional] ### Return type @@ -237,13 +234,13 @@ No authorization required - **Accept**: application/json -## deleteUserById +## deleteAUser -> Object deleteUserById(apiToken, userId) +> Object deleteAUser(userId, opts) Delete a user -## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- +## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user) ### Example @@ -251,9 +248,11 @@ Delete a user import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -apiInstance.deleteUserById(apiToken, userId).then((data) => { +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.deleteAUser(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -266,8 +265,8 @@ apiInstance.deleteUserById(apiToken, userId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type @@ -283,13 +282,61 @@ No authorization required - **Accept**: application/json +## getChannelInvitationPreference + +> GetChannelInvitationPreferenceResponse getChannelInvitationPreference(userId, opts) + +Get channel invitation preference + +## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference) + +### Example + +```javascript +import SendbirdPlatformSdk from 'sendbird-platform-sdk'; + +let apiInstance = new SendbirdPlatformSdk.UserApi(); +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.getChannelInvitationPreference(userId, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + +### Return type + +[**GetChannelInvitationPreferenceResponse**](GetChannelInvitationPreferenceResponse.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## leaveMyGroupChannels -> Object leaveMyGroupChannels(apiToken, userId, opts) +> Object leaveMyGroupChannels(userId, opts) Leave my group channels -## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. +## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [<code>leave_all_when_deactivated</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. ### Example @@ -297,12 +344,12 @@ Leave my group channels import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'leaveMyGroupChannelsData': new SendbirdPlatformSdk.LeaveMyGroupChannelsData() // LeaveMyGroupChannelsData | + 'apiToken': {{API_TOKEN}}, // String | + 'leaveMyGroupChannelsRequest': new SendbirdPlatformSdk.LeaveMyGroupChannelsRequest() // LeaveMyGroupChannelsRequest | }; -apiInstance.leaveMyGroupChannels(apiToken, userId, opts).then((data) => { +apiInstance.leaveMyGroupChannels(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -315,9 +362,9 @@ apiInstance.leaveMyGroupChannels(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **leaveMyGroupChannelsData** | [**LeaveMyGroupChannelsData**](LeaveMyGroupChannelsData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **leaveMyGroupChannelsRequest** | [**LeaveMyGroupChannelsRequest**](LeaveMyGroupChannelsRequest.md)| | [optional] ### Return type @@ -335,11 +382,11 @@ No authorization required ## listMyGroupChannels -> ListMyGroupChannelsResponse listMyGroupChannels(apiToken, userId, opts) +> ListMyGroupChannelsResponse listMyGroupChannels(userId, apiToken, opts) List my group channels -## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. +## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user. ### Example @@ -347,51 +394,53 @@ List my group channels import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); +let userId = "userId_example"; // String | (Required) let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | let opts = { - 'token': "token_example", // String | - 'limit': 56, // Number | - 'distinctMode': "distinctMode_example", // String | - 'publicMode': "publicMode_example", // String | - 'superMode': "superMode_example", // String | - 'hiddenMode': "hiddenMode_example", // String | - 'memberStateFilter': "memberStateFilter_example", // String | - 'unreadFilter': "unreadFilter_example", // String | - 'createdAfter': 56, // Number | - 'createdBefore': 56, // Number | - 'showEmpty': true, // Boolean | - 'showFrozen': true, // Boolean | - 'showMember': true, // Boolean | - 'showDeliveryReceipt': true, // Boolean | - 'showReadReceipt': true, // Boolean | + 'token': "token_example", // String | Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + 'limit': 10, // Number | Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + 'distinctMode': all, // String | + 'publicMode': all, // String | + 'superMode': all, // String | + 'createdAfter': 1234567890123, // Number | Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + 'createdBefore': 1234567890123, // Number | Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. + 'showEmpty': false, // Boolean | + 'showMember': false, // Boolean | + 'showDeliveryReceipt': false, // Boolean | + 'showReadReceipt': false, // Boolean | + 'showMetadata': false, // Boolean | + 'showFrozen': false, // Boolean | 'order': "order_example", // String | - 'metadataOrderKey': "metadataOrderKey_example", // String | - 'customTypes': "customTypes_example", // String | - 'customTypeStartswith': "customTypeStartswith_example", // String | - 'channelUrls': "channelUrls_example", // String | - 'name': "name_example", // String | - 'nameContains': "nameContains_example", // String | - 'nameStartswith': "nameStartswith_example", // String | - 'membersExactlyIn': "membersExactlyIn_example", // String | - 'membersIncludeIn': "membersIncludeIn_example", // String | - 'queryType': "queryType_example", // String | - 'membersNickname': "membersNickname_example", // String | - 'membersNicknameContains': "membersNicknameContains_example", // String | - 'searchQuery': "searchQuery_example", // String | - 'searchFields': "searchFields_example", // String | - 'metadataKey': "metadataKey_example", // String | - 'metadataValues': "metadataValues_example", // String | - 'metadataValueStartswith': "metadataValueStartswith_example", // String | - 'metacounterKey': "metacounterKey_example", // String | - 'metacounterValues': "metacounterValues_example", // String | - 'metacounterValueGt': "metacounterValueGt_example", // String | - 'metacounterValueGte': "metacounterValueGte_example", // String | - 'metacounterValueLt': "metacounterValueLt_example", // String | - 'metacounterValueLte': "metacounterValueLte_example", // String | - 'customType': "customType_example" // String | + 'metadataOrderKey': "metadataOrderKey_example", // String | Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + 'customTypes': "customTypes_example", // String | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + 'customTypeStartswith': "customTypeStartswith_example", // String | Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + 'channelUrls': "channelUrls_example", // String | Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + 'name': "name_example", // String | Specifies one or more group channel names. + 'nameContains': "nameContains_example", // String | Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + 'nameStartswith': "nameStartswith_example", // String | Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + 'membersExactlyIn': "membersExactlyIn_example", // String | Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + 'membersIncludeIn': "membersIncludeIn_example", // String | Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + 'queryType': "queryType_example", // String | Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + 'membersNickname': "membersNickname_example", // String | Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + 'membersNicknameContains': "membersNicknameContains_example", // String | Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + 'metadataKey': "metadataKey_example", // String | Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + 'metadataValues': "metadataValues_example", // String | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + 'metadataValueStartswith': "metadataValueStartswith_example", // String | Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + 'metacounterKey': "metacounterKey_example", // String | Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + 'metacounterValues': "metacounterValues_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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + 'metacounterValueGt': "metacounterValueGt_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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + '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. + '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. + '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. + 'includeSortedMetaarrayInLastMessage': false, // Boolean | Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + '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. + 'readReceipt': false, // Boolean | (Deprecated) Superseded by show_read_receipt. + 'member': true, // Boolean | (Deprecated) Superseded by show_member. + 'isDistinct': true, // Boolean | (Deprecated) Superseded by distinct_mode. + 'membersIn': "membersIn_example", // String | (Deprecated) Superseded by members_exactly_in. + 'userId2': "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. }; -apiInstance.listMyGroupChannels(apiToken, userId, opts).then((data) => { +apiInstance.listMyGroupChannels(userId, apiToken, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -404,48 +453,50 @@ apiInstance.listMyGroupChannels(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **userId** | **String**| (Required) | **apiToken** | **String**| | - **userId** | **String**| | - **token** | **String**| | [optional] - **limit** | **Number**| | [optional] + **token** | **String**| Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. | [optional] + **limit** | **Number**| Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) | [optional] **distinctMode** | **String**| | [optional] **publicMode** | **String**| | [optional] **superMode** | **String**| | [optional] - **hiddenMode** | **String**| | [optional] - **memberStateFilter** | **String**| | [optional] - **unreadFilter** | **String**| | [optional] - **createdAfter** | **Number**| | [optional] - **createdBefore** | **Number**| | [optional] + **createdAfter** | **Number**| Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. | [optional] + **createdBefore** | **Number**| Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. | [optional] **showEmpty** | **Boolean**| | [optional] - **showFrozen** | **Boolean**| | [optional] **showMember** | **Boolean**| | [optional] **showDeliveryReceipt** | **Boolean**| | [optional] **showReadReceipt** | **Boolean**| | [optional] + **showMetadata** | **Boolean**| | [optional] + **showFrozen** | **Boolean**| | [optional] **order** | **String**| | [optional] - **metadataOrderKey** | **String**| | [optional] - **customTypes** | **String**| | [optional] - **customTypeStartswith** | **String**| | [optional] - **channelUrls** | **String**| | [optional] - **name** | **String**| | [optional] - **nameContains** | **String**| | [optional] - **nameStartswith** | **String**| | [optional] - **membersExactlyIn** | **String**| | [optional] - **membersIncludeIn** | **String**| | [optional] - **queryType** | **String**| | [optional] - **membersNickname** | **String**| | [optional] - **membersNicknameContains** | **String**| | [optional] - **searchQuery** | **String**| | [optional] - **searchFields** | **String**| | [optional] - **metadataKey** | **String**| | [optional] - **metadataValues** | **String**| | [optional] - **metadataValueStartswith** | **String**| | [optional] - **metacounterKey** | **String**| | [optional] - **metacounterValues** | **String**| | [optional] - **metacounterValueGt** | **String**| | [optional] - **metacounterValueGte** | **String**| | [optional] - **metacounterValueLt** | **String**| | [optional] - **metacounterValueLte** | **String**| | [optional] - **customType** | **String**| | [optional] + **metadataOrderKey** | **String**| Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. | [optional] + **customTypes** | **String**| Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. | [optional] + **customTypeStartswith** | **String**| Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. | [optional] + **channelUrls** | **String**| Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. | [optional] + **name** | **String**| Specifies one or more group channel names. | [optional] + **nameContains** | **String**| Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | [optional] + **nameStartswith** | **String**| Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. | [optional] + **membersExactlyIn** | **String**| Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | [optional] + **membersIncludeIn** | **String**| Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. | [optional] + **queryType** | **String**| Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) | [optional] + **membersNickname** | **String**| Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. | [optional] + **membersNicknameContains** | **String**| Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. | [optional] + **metadataKey** | **String**| Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. | [optional] + **metadataValues** | **String**| Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. | [optional] + **metadataValueStartswith** | **String**| Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. | [optional] + **metacounterKey** | **String**| Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. | [optional] + **metacounterValues** | **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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. | [optional] + **metacounterValueGt** | **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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. | [optional] + **metacounterValueGte** | **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. | [optional] + **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] + **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] + **includeSortedMetaarrayInLastMessage** | **Boolean**| Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. | [optional] + **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] + **readReceipt** | **Boolean**| (Deprecated) Superseded by show_read_receipt. | [optional] + **member** | **Boolean**| (Deprecated) Superseded by show_member. | [optional] + **isDistinct** | **Boolean**| (Deprecated) Superseded by distinct_mode. | [optional] + **membersIn** | **String**| (Deprecated) Superseded by members_exactly_in. | [optional] + **userId2** | **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] ### Return type @@ -463,11 +514,11 @@ No authorization required ## listRegistrationOrDeviceTokens -> ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens(apiToken, userId, tokenType) +> ListRegistrationOrDeviceTokensResponse listRegistrationOrDeviceTokens(userId, tokenType, opts) List registration or device tokens -## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- +## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens ### Example @@ -475,10 +526,12 @@ List registration or device tokens import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let tokenType = "tokenType_example"; // String | -apiInstance.listRegistrationOrDeviceTokens(apiToken, userId, tokenType).then((data) => { +let userId = "userId_example"; // String | (Required) +let tokenType = "tokenType_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.listRegistrationOrDeviceTokens(userId, tokenType, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -491,9 +544,9 @@ apiInstance.listRegistrationOrDeviceTokens(apiToken, userId, tokenType).then((da Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **tokenType** | **String**| | + **userId** | **String**| (Required) | + **tokenType** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type @@ -511,11 +564,11 @@ No authorization required ## listUsers -> ListUsersResponse listUsers(apiToken, opts) +> ListUsersResponse listUsers(opts) List users -## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- +## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users ### Example @@ -523,19 +576,19 @@ List users import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | let opts = { 'token': "token_example", // String | 'limit': 56, // Number | - 'activeMode': "activeMode_example", // String | - 'showBot': true, // Boolean | - 'userIds': "userIds_example", // String | + 'activeMode': "activeMode_example", // String | Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) + 'showBot': true, // Boolean | Determines whether to include bots in the list. (Default: true) + 'userIds': "userIds_example", // String | Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. 'nickname': "nickname_example", // String | 'nicknameStartswith': "nicknameStartswith_example", // String | 'metadatakey': "metadatakey_example", // String | - 'metadatavaluesIn': "metadatavaluesIn_example" // String | + 'metadatavaluesIn': "metadatavaluesIn_example", // String | Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.listUsers(apiToken, opts).then((data) => { +apiInstance.listUsers(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -548,16 +601,16 @@ apiInstance.listUsers(apiToken, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | **token** | **String**| | [optional] **limit** | **Number**| | [optional] - **activeMode** | **String**| | [optional] - **showBot** | **Boolean**| | [optional] - **userIds** | **String**| | [optional] + **activeMode** | **String**| Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) | [optional] + **showBot** | **Boolean**| Determines whether to include bots in the list. (Default: true) | [optional] + **userIds** | **String**| Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. | [optional] **nickname** | **String**| | [optional] **nicknameStartswith** | **String**| | [optional] **metadatakey** | **String**| | [optional] - **metadatavaluesIn** | **String**| | [optional] + **metadatavaluesIn** | **String**| Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -575,11 +628,11 @@ No authorization required ## markAllMessagesAsRead -> Object markAllMessagesAsRead(apiToken, userId, opts) +> Object markAllMessagesAsRead(userId, opts) Mark all messages as read -## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- +## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read ### Example @@ -587,12 +640,12 @@ Mark all messages as read import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'markAllMessagesAsReadData': new SendbirdPlatformSdk.MarkAllMessagesAsReadData() // MarkAllMessagesAsReadData | + 'apiToken': {{API_TOKEN}}, // String | + 'markAllMessagesAsReadRequest': new SendbirdPlatformSdk.MarkAllMessagesAsReadRequest() // MarkAllMessagesAsReadRequest | }; -apiInstance.markAllMessagesAsRead(apiToken, userId, opts).then((data) => { +apiInstance.markAllMessagesAsRead(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -605,9 +658,9 @@ apiInstance.markAllMessagesAsRead(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **markAllMessagesAsReadData** | [**MarkAllMessagesAsReadData**](MarkAllMessagesAsReadData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **markAllMessagesAsReadRequest** | [**MarkAllMessagesAsReadRequest**](MarkAllMessagesAsReadRequest.md)| | [optional] ### Return type @@ -623,13 +676,13 @@ No authorization required - **Accept**: application/json -## registerAsOperatorToChannelsWithCustomChannelTypes +## removeARegistrationOrDeviceToken -> Object registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, opts) +> RemoveARegistrationOrDeviceTokenResponse removeARegistrationOrDeviceToken(userId, tokenType, token, opts) -Register as an operator to channels with custom channel types +Remove a registration or device token - When unregistering a specific token -## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- +## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token ### Example @@ -637,12 +690,13 @@ Register as an operator to channels with custom channel types import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) +let tokenType = "tokenType_example"; // String | (Required) +let token = "token_example"; // String | (Required) let opts = { - 'registerAsOperatorToChannelsWithCustomChannelTypesData': new SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData() // RegisterAsOperatorToChannelsWithCustomChannelTypesData | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, opts).then((data) => { +apiInstance.removeARegistrationOrDeviceToken(userId, tokenType, token, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -655,13 +709,14 @@ apiInstance.registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **registerAsOperatorToChannelsWithCustomChannelTypesData** | [**RegisterAsOperatorToChannelsWithCustomChannelTypesData**](RegisterAsOperatorToChannelsWithCustomChannelTypesData.md)| | [optional] + **userId** | **String**| (Required) | + **tokenType** | **String**| (Required) | + **token** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -**Object** +[**RemoveARegistrationOrDeviceTokenResponse**](RemoveARegistrationOrDeviceTokenResponse.md) ### Authorization @@ -669,17 +724,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## removeRegistrationOrDeviceToken +## removeARegistrationOrDeviceTokenFromAnOwner -> RemoveRegistrationOrDeviceTokenResponse removeRegistrationOrDeviceToken(apiToken, userId) +> [MarkChannelMessagesAsReadRequest] removeARegistrationOrDeviceTokenFromAnOwner(tokenType, token, opts) -Remove a registration or device token - When unregistering all device tokens +Remove a registration or device token from an owner -## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- +## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner ### Example @@ -687,9 +742,12 @@ Remove a registration or device token - When unregistering all device tokens import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -apiInstance.removeRegistrationOrDeviceToken(apiToken, userId).then((data) => { +let tokenType = "tokenType_example"; // String | (Required) +let token = "token_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.removeARegistrationOrDeviceTokenFromAnOwner(tokenType, token, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -702,12 +760,13 @@ apiInstance.removeRegistrationOrDeviceToken(apiToken, userId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **tokenType** | **String**| (Required) | + **token** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**RemoveRegistrationOrDeviceTokenResponse**](RemoveRegistrationOrDeviceTokenResponse.md) +[**[MarkChannelMessagesAsReadRequest]**](MarkChannelMessagesAsReadRequest.md) ### Authorization @@ -719,13 +778,13 @@ No authorization required - **Accept**: application/json -## removeRegistrationOrDeviceTokenByToken +## removeAllRegistrationOrDeviceToken -> RemoveRegistrationOrDeviceTokenByTokenResponse removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token) +> RemoveAllRegistrationOrDeviceTokenResponse removeAllRegistrationOrDeviceToken(userId, opts) -Remove a registration or device token - When unregistering a specific token +Remove a registration or device token - When unregistering all device tokens -## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- +## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token ### Example @@ -733,11 +792,11 @@ Remove a registration or device token - When unregistering a specific token import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let tokenType = "tokenType_example"; // String | -let token = "token_example"; // String | -apiInstance.removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token).then((data) => { +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.removeAllRegistrationOrDeviceToken(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -750,14 +809,12 @@ apiInstance.removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **tokenType** | **String**| | - **token** | **String**| | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**RemoveRegistrationOrDeviceTokenByTokenResponse**](RemoveRegistrationOrDeviceTokenByTokenResponse.md) +[**RemoveAllRegistrationOrDeviceTokenResponse**](RemoveAllRegistrationOrDeviceTokenResponse.md) ### Authorization @@ -769,13 +826,13 @@ No authorization required - **Accept**: application/json -## removeRegistrationOrDeviceTokenFromOwnerByToken +## resetPushPreferences -> RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token) +> Object resetPushPreferences(userId, opts) -Remove a registration or device token from an owner +Reset push preferences -## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- +## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences) ### Example @@ -783,10 +840,11 @@ Remove a registration or device token from an owner import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let tokenType = "tokenType_example"; // String | -let token = "token_example"; // String | -apiInstance.removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token).then((data) => { +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.resetPushPreferences(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -799,13 +857,12 @@ apiInstance.removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **tokenType** | **String**| | - **token** | **String**| | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse**](RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.md) +**Object** ### Authorization @@ -817,13 +874,13 @@ No authorization required - **Accept**: application/json -## resetPushPreferences +## updateAUser -> ResetPushPreferencesResponse resetPushPreferences(apiToken, userId) +> SendbirdUser updateAUser(userId, opts) -Reset push preferences +Update a user -## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- +## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it&apos;s replaced with [&lt;code&gt;/users/{user_id}/token&lt;/code&gt;](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user) ### Example @@ -831,9 +888,12 @@ Reset push preferences import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -apiInstance.resetPushPreferences(apiToken, userId).then((data) => { +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}}, // String | + 'updateAUserRequest': new SendbirdPlatformSdk.UpdateAUserRequest() // UpdateAUserRequest | +}; +apiInstance.updateAUser(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -846,12 +906,13 @@ apiInstance.resetPushPreferences(apiToken, userId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateAUserRequest** | [**UpdateAUserRequest**](UpdateAUserRequest.md)| | [optional] ### Return type -[**ResetPushPreferencesResponse**](ResetPushPreferencesResponse.md) +[**SendbirdUser**](SendbirdUser.md) ### Authorization @@ -859,17 +920,17 @@ No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json ## updateChannelInvitationPreference -> UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference(apiToken, userId, opts) +> UpdateChannelInvitationPreferenceResponse updateChannelInvitationPreference(userId, opts) Update channel invitation preference -## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference +## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference ### Example @@ -877,12 +938,12 @@ Update channel invitation preference import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'updateChannelInvitationPreferenceData': new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData() // UpdateChannelInvitationPreferenceData | + 'apiToken': {{API_TOKEN}}, // String | + 'updateChannelInvitationPreferenceRequest': new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest() // UpdateChannelInvitationPreferenceRequest | }; -apiInstance.updateChannelInvitationPreference(apiToken, userId, opts).then((data) => { +apiInstance.updateChannelInvitationPreference(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -895,9 +956,9 @@ apiInstance.updateChannelInvitationPreference(apiToken, userId, opts).then((data Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **updateChannelInvitationPreferenceData** | [**UpdateChannelInvitationPreferenceData**](UpdateChannelInvitationPreferenceData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateChannelInvitationPreferenceRequest** | [**UpdateChannelInvitationPreferenceRequest**](UpdateChannelInvitationPreferenceRequest.md)| | [optional] ### Return type @@ -913,13 +974,13 @@ No authorization required - **Accept**: application/json -## updateCountPreferenceOfChannelByUrl +## updateCountPreferenceOfAChannel -> UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, opts) +> UpdateCountPreferenceOfChannelByUrlResponse updateCountPreferenceOfAChannel(userId, channelUrl, opts) Update count preference of a channel -## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- +## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel ### Example @@ -927,13 +988,13 @@ Update count preference of a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let channelUrl = "channelUrl_example"; // String | +let userId = "userId_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'updateCountPreferenceOfChannelByUrlData': new SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData() // UpdateCountPreferenceOfChannelByUrlData | + 'apiToken': {{API_TOKEN}}, // String | + 'updateCountPreferenceOfAChannelRequest': new SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest() // UpdateCountPreferenceOfAChannelRequest | }; -apiInstance.updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, opts).then((data) => { +apiInstance.updateCountPreferenceOfAChannel(userId, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -946,10 +1007,10 @@ apiInstance.updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, op Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **channelUrl** | **String**| | - **updateCountPreferenceOfChannelByUrlData** | [**UpdateCountPreferenceOfChannelByUrlData**](UpdateCountPreferenceOfChannelByUrlData.md)| | [optional] + **userId** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updateCountPreferenceOfAChannelRequest** | [**UpdateCountPreferenceOfAChannelRequest**](UpdateCountPreferenceOfAChannelRequest.md)| | [optional] ### Return type @@ -967,11 +1028,11 @@ No authorization required ## updatePushPreferences -> UpdatePushPreferencesResponse updatePushPreferences(apiToken, userId, opts) +> UpdatePushPreferencesResponse updatePushPreferences(userId, opts) Update push preferences -## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- +## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences) ### Example @@ -979,12 +1040,12 @@ Update push preferences import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'updatePushPreferencesData': new SendbirdPlatformSdk.UpdatePushPreferencesData() // UpdatePushPreferencesData | + 'apiToken': {{API_TOKEN}}, // String | + 'updatePushPreferencesRequest': new SendbirdPlatformSdk.UpdatePushPreferencesRequest() // UpdatePushPreferencesRequest | }; -apiInstance.updatePushPreferences(apiToken, userId, opts).then((data) => { +apiInstance.updatePushPreferences(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -997,9 +1058,9 @@ apiInstance.updatePushPreferences(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **updatePushPreferencesData** | [**UpdatePushPreferencesData**](UpdatePushPreferencesData.md)| | [optional] + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updatePushPreferencesRequest** | [**UpdatePushPreferencesRequest**](UpdatePushPreferencesRequest.md)| | [optional] ### Return type @@ -1015,13 +1076,13 @@ No authorization required - **Accept**: application/json -## updatePushPreferencesForChannelByUrl +## updatePushPreferencesForAChannel -> UpdatePushPreferencesForChannelByUrlResponse updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, opts) +> UpdatePushPreferencesForAChannelResponse updatePushPreferencesForAChannel(userId, channelUrl, opts) Update push preferences for a channel -## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- +## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel) ### Example @@ -1029,13 +1090,13 @@ Update push preferences for a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let channelUrl = "channelUrl_example"; // String | +let userId = "userId_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'updatePushPreferencesForChannelByUrlData': new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData() // UpdatePushPreferencesForChannelByUrlData | + 'apiToken': {{API_TOKEN}}, // String | + 'updatePushPreferencesForAChannelRequest': new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest() // UpdatePushPreferencesForAChannelRequest | }; -apiInstance.updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, opts).then((data) => { +apiInstance.updatePushPreferencesForAChannel(userId, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1048,14 +1109,14 @@ apiInstance.updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, o Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **channelUrl** | **String**| | - **updatePushPreferencesForChannelByUrlData** | [**UpdatePushPreferencesForChannelByUrlData**](UpdatePushPreferencesForChannelByUrlData.md)| | [optional] + **userId** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] + **updatePushPreferencesForAChannelRequest** | [**UpdatePushPreferencesForAChannelRequest**](UpdatePushPreferencesForAChannelRequest.md)| | [optional] ### Return type -[**UpdatePushPreferencesForChannelByUrlResponse**](UpdatePushPreferencesForChannelByUrlResponse.md) +[**UpdatePushPreferencesForAChannelResponse**](UpdatePushPreferencesForAChannelResponse.md) ### Authorization @@ -1067,13 +1128,13 @@ No authorization required - **Accept**: application/json -## updateUserById +## viewAUser -> SendBirdUser updateUserById(apiToken, userId, opts) +> SendbirdUser viewAUser(userId, opts) -Update a user +View a user -## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- +## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. ### Example @@ -1081,12 +1142,14 @@ Update a user import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'updateUserByIdData': new SendbirdPlatformSdk.UpdateUserByIdData() // UpdateUserByIdData | + 'includeUnreadCount': true, // Boolean | + 'customTypes': "customTypes_example", // String | + 'superMode': "superMode_example", // String | Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.updateUserById(apiToken, userId, opts).then((data) => { +apiInstance.viewAUser(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1099,59 +1162,15 @@ apiInstance.updateUserById(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **updateUserByIdData** | [**UpdateUserByIdData**](UpdateUserByIdData.md)| | [optional] - -### Return type - -[**SendBirdUser**](SendBirdUser.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## viewChannelInvitationPreference - -> ViewChannelInvitationPreferenceResponse viewChannelInvitationPreference(apiToken, userId) - -View channel invitation preference - -## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -apiInstance.viewChannelInvitationPreference(apiToken, userId).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **userId** | **String**| (Required) | + **includeUnreadCount** | **Boolean**| | [optional] + **customTypes** | **String**| | [optional] + **superMode** | **String**| Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) | [optional] + **apiToken** | **String**| | [optional] ### Return type -[**ViewChannelInvitationPreferenceResponse**](ViewChannelInvitationPreferenceResponse.md) +[**SendbirdUser**](SendbirdUser.md) ### Authorization @@ -1163,13 +1182,13 @@ No authorization required - **Accept**: application/json -## viewCountPreferenceOfChannelByUrl +## viewCountPreferenceOfAChannel -> ViewCountPreferenceOfChannelByUrlResponse viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl) +> ViewCountPreferenceOfAChannelResponse viewCountPreferenceOfAChannel(userId, channelUrl, opts) View count preference of a channel -## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- +## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel ### Example @@ -1177,60 +1196,12 @@ View count preference of a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **channelUrl** | **String**| | - -### Return type - -[**ViewCountPreferenceOfChannelByUrlResponse**](ViewCountPreferenceOfChannelByUrlResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewNumberOfChannelsByJoinStatus - -> ViewNumberOfChannelsByJoinStatusResponse viewNumberOfChannelsByJoinStatus(apiToken, userId, opts) - -View number of channels by join status - -## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'state': "state_example" // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewNumberOfChannelsByJoinStatus(apiToken, userId, opts).then((data) => { +apiInstance.viewCountPreferenceOfAChannel(userId, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1243,13 +1214,13 @@ apiInstance.viewNumberOfChannelsByJoinStatus(apiToken, userId, opts).then((data) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **state** | **String**| | [optional] + **userId** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**ViewNumberOfChannelsByJoinStatusResponse**](ViewNumberOfChannelsByJoinStatusResponse.md) +[**ViewCountPreferenceOfAChannelResponse**](ViewCountPreferenceOfAChannelResponse.md) ### Authorization @@ -1263,11 +1234,11 @@ No authorization required ## viewNumberOfChannelsWithUnreadMessages -> ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages(apiToken, userId, opts) +> ViewNumberOfChannelsWithUnreadMessagesResponse viewNumberOfChannelsWithUnreadMessages(userId, opts) View number of channels with unread messages -## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- +## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages ### Example @@ -1275,13 +1246,13 @@ View number of channels with unread messages import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'customTypes': ["null"], // [String] | - 'superMode': "superMode_example" // String | + 'customTypes': "customTypes_example", // String | + 'superMode': "superMode_example", // String | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewNumberOfChannelsWithUnreadMessages(apiToken, userId, opts).then((data) => { +apiInstance.viewNumberOfChannelsWithUnreadMessages(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1294,10 +1265,10 @@ apiInstance.viewNumberOfChannelsWithUnreadMessages(apiToken, userId, opts).then( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **customTypes** | [**[String]**](String.md)| | [optional] - **superMode** | **String**| | [optional] + **userId** | **String**| (Required) | + **customTypes** | **String**| | [optional] + **superMode** | **String**| Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -1313,65 +1284,13 @@ No authorization required - **Accept**: application/json -## viewNumberOfUnreadItems - -> ViewNumberOfUnreadItemsResponse viewNumberOfUnreadItems(apiToken, userId, opts) - -View number of unread items - -## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let opts = { - 'customType': "customType_example", // String | - 'itemKeys': "itemKeys_example" // String | -}; -apiInstance.viewNumberOfUnreadItems(apiToken, userId, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **customType** | **String**| | [optional] - **itemKeys** | **String**| | [optional] - -### Return type - -[**ViewNumberOfUnreadItemsResponse**](ViewNumberOfUnreadItemsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - ## viewNumberOfUnreadMessages -> ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages(apiToken, userId, opts) +> ViewNumberOfUnreadMessagesResponse viewNumberOfUnreadMessages(userId, opts) View number of unread messages -## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. +## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user. ### Example @@ -1379,13 +1298,13 @@ View number of unread messages import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) let opts = { - 'customTypes': "customTypes_example", // String | - 'superMode': "superMode_example" // String | + 'customTypes': "customTypes_example", // String | Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + 'superMode': "superMode_example", // String | Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewNumberOfUnreadMessages(apiToken, userId, opts).then((data) => { +apiInstance.viewNumberOfUnreadMessages(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1398,10 +1317,10 @@ apiInstance.viewNumberOfUnreadMessages(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **customTypes** | **String**| | [optional] - **superMode** | **String**| | [optional] + **userId** | **String**| (Required) | + **customTypes** | **String**| Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. | [optional] + **superMode** | **String**| Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) | [optional] + **apiToken** | **String**| | [optional] ### Return type @@ -1419,11 +1338,11 @@ No authorization required ## viewPushPreferences -> ViewPushPreferencesResponse viewPushPreferences(apiToken, userId) +> ViewPushPreferencesResponse viewPushPreferences(userId, opts) View push preferences -## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- +## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences) ### Example @@ -1431,9 +1350,11 @@ View push preferences import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -apiInstance.viewPushPreferences(apiToken, userId).then((data) => { +let userId = "userId_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.viewPushPreferences(userId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1446,8 +1367,8 @@ apiInstance.viewPushPreferences(apiToken, userId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | + **userId** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type @@ -1463,13 +1384,13 @@ No authorization required - **Accept**: application/json -## viewPushPreferencesForChannelByUrl +## viewPushPreferencesForAChannel -> ViewPushPreferencesForChannelByUrlResponse viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl) +> ViewPushPreferencesForAChannelResponse viewPushPreferencesForAChannel(userId, channelUrl, opts) View push preferences for a channel -## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- +## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel) ### Example @@ -1477,62 +1398,12 @@ View push preferences for a channel import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | -let channelUrl = "channelUrl_example"; // String | -apiInstance.viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **channelUrl** | **String**| | - -### Return type - -[**ViewPushPreferencesForChannelByUrlResponse**](ViewPushPreferencesForChannelByUrlResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - - -## viewUserById - -> SendBirdUser viewUserById(apiToken, userId, opts) - -View a user - -## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let userId = "userId_example"; // String | +let userId = "userId_example"; // String | (Required) +let channelUrl = "channelUrl_example"; // String | (Required) let opts = { - 'includeUnreadCount': true, // Boolean | - 'customTypes': "customTypes_example", // String | - 'superMode': "superMode_example" // String | + 'apiToken': {{API_TOKEN}} // String | }; -apiInstance.viewUserById(apiToken, userId, opts).then((data) => { +apiInstance.viewPushPreferencesForAChannel(userId, channelUrl, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1545,15 +1416,13 @@ apiInstance.viewUserById(apiToken, userId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **userId** | **String**| | - **includeUnreadCount** | **Boolean**| | [optional] - **customTypes** | **String**| | [optional] - **superMode** | **String**| | [optional] + **userId** | **String**| (Required) | + **channelUrl** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**SendBirdUser**](SendBirdUser.md) +[**ViewPushPreferencesForAChannelResponse**](ViewPushPreferencesForAChannelResponse.md) ### Authorization @@ -1565,9 +1434,9 @@ No authorization required - **Accept**: application/json -## viewWhoOwnsRegistrationOrDeviceTokenByToken +## viewWhoOwnsARegistrationOrDeviceToken -> [ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner] viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token) +> [MarkChannelMessagesAsReadRequest] viewWhoOwnsARegistrationOrDeviceToken(tokenType, token, opts) View who owns a registration or device token @@ -1579,10 +1448,12 @@ View who owns a registration or device token import SendbirdPlatformSdk from 'sendbird-platform-sdk'; let apiInstance = new SendbirdPlatformSdk.UserApi(); -let apiToken = {{API_TOKEN}}; // String | -let tokenType = "tokenType_example"; // String | -let token = "token_example"; // String | -apiInstance.viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token).then((data) => { +let tokenType = "tokenType_example"; // String | (Required) +let token = "token_example"; // String | (Required) +let opts = { + 'apiToken': {{API_TOKEN}} // String | +}; +apiInstance.viewWhoOwnsARegistrationOrDeviceToken(tokenType, token, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1595,13 +1466,13 @@ apiInstance.viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, tok Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **tokenType** | **String**| | - **token** | **String**| | + **tokenType** | **String**| (Required) | + **token** | **String**| (Required) | + **apiToken** | **String**| | [optional] ### Return type -[**[ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner]**](ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.md) +[**[MarkChannelMessagesAsReadRequest]**](MarkChannelMessagesAsReadRequest.md) ### Authorization diff --git a/docs/ViewAnnouncementByIdResponse.md b/docs/ViewAnnouncementByIdResponse.md deleted file mode 100644 index 65829c8..0000000 --- a/docs/ViewAnnouncementByIdResponse.md +++ /dev/null @@ -1,30 +0,0 @@ -# SendbirdPlatformSdk.ViewAnnouncementByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueId** | **String** | | [optional] -**announcementGroup** | **String** | | [optional] -**message** | [**ScheduleAnnouncementResponseMessage**](ScheduleAnnouncementResponseMessage.md) | | [optional] -**enablePush** | **Boolean** | | [optional] -**targetAt** | **String** | | [optional] -**targetUserCount** | **Number** | | [optional] -**targetChannelCount** | **Number** | | [optional] -**status** | **String** | | [optional] -**scheduledAt** | **Number** | | [optional] -**ceaseAt** | **String** | | [optional] -**resumeAt** | **String** | | [optional] -**completedAt** | **Number** | | [optional] -**sentUserCount** | **Number** | | [optional] -**openCount** | **Number** | | [optional] -**openRate** | **Number** | | [optional] -**createChannel** | **Boolean** | | [optional] -**createChannelOptions** | [**ScheduleAnnouncementResponseCreateChannelOptions**](ScheduleAnnouncementResponseCreateChannelOptions.md) | | [optional] -**endAt** | **Number** | | [optional] -**markAsRead** | **Boolean** | | [optional] -**sentChannelCount** | **Number** | | [optional] -**targetChannelType** | **String** | | [optional] -**targetCustomType** | **String** | | [optional] - - diff --git a/docs/ViewBotByIdResponse.md b/docs/ViewBotByIdResponse.md deleted file mode 100644 index 8578da1..0000000 --- a/docs/ViewBotByIdResponse.md +++ /dev/null @@ -1,14 +0,0 @@ -# SendbirdPlatformSdk.ViewBotByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**bot** | [**CreateBotResponseBot**](CreateBotResponseBot.md) | | [optional] -**botCallbackUrl** | **String** | | [optional] -**enableMarkAsRead** | **Boolean** | | [optional] -**isPrivacyMode** | **Boolean** | | [optional] -**showMember** | **Boolean** | | [optional] -**channelInvitationPreference** | **Number** | | [optional] - - diff --git a/docs/ViewChannelInvitationPreferenceResponse.md b/docs/ViewChannelInvitationPreferenceResponse.md deleted file mode 100644 index 307c4cf..0000000 --- a/docs/ViewChannelInvitationPreferenceResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewChannelInvitationPreferenceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoAccept** | **Boolean** | | [optional] - - diff --git a/docs/ViewCountPreferenceOfAChannelResponse.md b/docs/ViewCountPreferenceOfAChannelResponse.md new file mode 100644 index 0000000..54d8610 --- /dev/null +++ b/docs/ViewCountPreferenceOfAChannelResponse.md @@ -0,0 +1,24 @@ +# SendbirdPlatformSdk.ViewCountPreferenceOfAChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**countPreference** | **String** | | [optional] + + + +## Enum: CountPreferenceEnum + + +* `false` (value: `"false"`) + +* `all` (value: `"all"`) + +* `unread_message_count_only` (value: `"unread_message_count_only"`) + +* `unread_mentioned_count_only` (value: `"unread_mentioned_count_only"`) + + + + diff --git a/docs/ViewCountPreferenceOfChannelByUrlResponse.md b/docs/ViewCountPreferenceOfChannelByUrlResponse.md deleted file mode 100644 index 7d5a007..0000000 --- a/docs/ViewCountPreferenceOfChannelByUrlResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewCountPreferenceOfChannelByUrlResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**countPreference** | **String** | | [optional] - - diff --git a/docs/ViewDataExportByIdResponse.md b/docs/ViewDataExportByIdResponse.md deleted file mode 100644 index ecf369e..0000000 --- a/docs/ViewDataExportByIdResponse.md +++ /dev/null @@ -1,22 +0,0 @@ -# SendbirdPlatformSdk.ViewDataExportByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**dataType** | **String** | | [optional] -**status** | **String** | | [optional] -**format** | **String** | | [optional] -**csvDelimiter** | **String** | | [optional] -**timezone** | **String** | | [optional] -**createdAt** | **Number** | | [optional] -**startTs** | **Number** | | [optional] -**endTs** | **Number** | | [optional] -**channelUrls** | **[String]** | | [optional] -**channelCustomTypes** | **[String]** | | [optional] -**senderIds** | **[String]** | | [optional] -**file** | [**ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile**](ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md) | | [optional] -**userIds** | **[String]** | | [optional] - - diff --git a/docs/ViewDefaultChannelInvitationPreferenceResponse.md b/docs/ViewDefaultChannelInvitationPreferenceResponse.md deleted file mode 100644 index eed7bb2..0000000 --- a/docs/ViewDefaultChannelInvitationPreferenceResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewDefaultChannelInvitationPreferenceResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**autoAccept** | **Boolean** | | [optional] - - diff --git a/docs/ViewGdprRequestByIdResponse.md b/docs/ViewGdprRequestByIdResponse.md deleted file mode 100644 index 8214272..0000000 --- a/docs/ViewGdprRequestByIdResponse.md +++ /dev/null @@ -1,16 +0,0 @@ -# SendbirdPlatformSdk.ViewGdprRequestByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requestId** | **String** | | [optional] -**action** | **String** | | [optional] -**status** | **String** | | [optional] -**userId** | **String** | | [optional] -**files** | [**ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile**](ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.md) | | [optional] -**userIds** | **[String]** | | [optional] -**channelDeleteOption** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ViewNumberOfChannelsByJoinStatusResponse.md b/docs/ViewNumberOfChannelsByJoinStatusResponse.md deleted file mode 100644 index 3de812b..0000000 --- a/docs/ViewNumberOfChannelsByJoinStatusResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewNumberOfChannelsByJoinStatusResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**groupChannelCount** | **Number** | | [optional] - - diff --git a/docs/ViewNumberOfConcurrentConnectionsResponse.md b/docs/ViewNumberOfConcurrentConnectionsResponse.md deleted file mode 100644 index 3764045..0000000 --- a/docs/ViewNumberOfConcurrentConnectionsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewNumberOfConcurrentConnectionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ccu** | **Number** | | [optional] - - diff --git a/docs/ViewNumberOfPeakConnectionsResponse.md b/docs/ViewNumberOfPeakConnectionsResponse.md deleted file mode 100644 index a5787c1..0000000 --- a/docs/ViewNumberOfPeakConnectionsResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**peakConnections** | [**[ViewNumberOfPeakConnectionsResponsePeakConnectionsInner]**](ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.md) | | [optional] - - diff --git a/docs/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.md b/docs/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.md deleted file mode 100644 index dad858c..0000000 --- a/docs/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**date** | **String** | | [optional] -**peakConnections** | **Number** | | [optional] - - diff --git a/docs/ViewNumberOfUnreadItemsResponse.md b/docs/ViewNumberOfUnreadItemsResponse.md deleted file mode 100644 index 67843b4..0000000 --- a/docs/ViewNumberOfUnreadItemsResponse.md +++ /dev/null @@ -1,17 +0,0 @@ -# SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**nonSuperGroupChannelUnreadMessageCount** | **Number** | | [optional] -**superGroupChannelUnreadMessageCount** | **Number** | | [optional] -**groupChannelUnreadMessageCount** | **Number** | | [optional] -**superGroupChannelInvitationCount** | **Number** | | [optional] -**groupChannelInvitationCount** | **Number** | | [optional] -**superGroupChannelUnreadMentionCount** | **Number** | | [optional] -**groupChannelUnreadMentionCount** | **Number** | | [optional] -**nonSuperGroupChannelUnreadMentionCount** | **Number** | | [optional] -**nonSuperGroupChannelInvitationCount** | **Number** | | [optional] - - diff --git a/docs/ViewPushConfigurationByIdResponse.md b/docs/ViewPushConfigurationByIdResponse.md deleted file mode 100644 index c609da7..0000000 --- a/docs/ViewPushConfigurationByIdResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewPushConfigurationByIdResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushConfigurations** | [**[ListPushConfigurationsResponsePushConfigurationsInner]**](ListPushConfigurationsResponsePushConfigurationsInner.md) | | [optional] - - diff --git a/docs/ViewPushNotificationContentTemplateResponse.md b/docs/ViewPushNotificationContentTemplateResponse.md deleted file mode 100644 index 934d5f3..0000000 --- a/docs/ViewPushNotificationContentTemplateResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushMessageTemplates** | [**[ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner]**](ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md) | | [optional] - - diff --git a/docs/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md b/docs/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md deleted file mode 100644 index 19e5694..0000000 --- a/docs/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.md +++ /dev/null @@ -1,11 +0,0 @@ -# SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**templateName** | **String** | | [optional] -**template** | [**ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate**](ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md) | | [optional] -**pushMessagePreview** | [**ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate**](ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.md) | | [optional] - - diff --git a/docs/ViewPushPreferencesForAChannelResponse.md b/docs/ViewPushPreferencesForAChannelResponse.md new file mode 100644 index 0000000..02e8fa3 --- /dev/null +++ b/docs/ViewPushPreferencesForAChannelResponse.md @@ -0,0 +1,11 @@ +# SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enable** | **Boolean** | | [optional] +**pushSound** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] + + diff --git a/docs/ViewPushPreferencesForChannelByUrlResponse.md b/docs/ViewPushPreferencesForChannelByUrlResponse.md deleted file mode 100644 index e559aa6..0000000 --- a/docs/ViewPushPreferencesForChannelByUrlResponse.md +++ /dev/null @@ -1,20 +0,0 @@ -# SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pushTriggerOption** | **String** | | [optional] -**doNotDisturb** | **Boolean** | | [optional] -**startHour** | **Number** | | [optional] -**startMin** | **Number** | | [optional] -**endHour** | **Number** | | [optional] -**endMin** | **Number** | | [optional] -**snoozeEnabled** | **Boolean** | | [optional] -**snoozeStartTs** | **Number** | | [optional] -**snoozeEndTs** | **Number** | | [optional] -**timezone** | **String** | | [optional] -**pushSound** | **String** | | [optional] -**enable** | **Boolean** | | [optional] - - diff --git a/docs/ViewPushPreferencesResponse.md b/docs/ViewPushPreferencesResponse.md index c0d014f..7f41379 100644 --- a/docs/ViewPushPreferencesResponse.md +++ b/docs/ViewPushPreferencesResponse.md @@ -4,19 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**snoozeStartTs** | **String** | | [optional] -**startHour** | **Number** | | [optional] -**snoozeEnabled** | **Boolean** | | [optional] -**endMin** | **Number** | | [optional] -**timezone** | **String** | | [optional] **blockPushFromBots** | **Boolean** | | [optional] -**pushBlockedBotIds** | **[String]** | | [optional] -**startMin** | **Number** | | [optional] -**snoozeEndTs** | **String** | | [optional] **doNotDisturb** | **Boolean** | | [optional] -**endHour** | **Number** | | [optional] **enablePushForReplies** | **Boolean** | | [optional] +**endHour** | **Number** | | [optional] +**endMin** | **Number** | | [optional] +**pushBlockedBotIds** | **[String]** | | [optional] **pushSound** | **String** | | [optional] -**pushTriggerOption** | **String** | | [optional] +**pushTriggerOption** | [**SendbirdPushTriggerOption**](SendbirdPushTriggerOption.md) | | [optional] +**snoozeEnabled** | **Boolean** | | [optional] +**snoozeEndTs** | **Number** | | [optional] +**snoozeStartTs** | **Number** | | [optional] +**startHour** | **Number** | | [optional] +**startMin** | **Number** | | [optional] +**timezone** | **String** | | [optional] diff --git a/docs/ViewSecondaryApiTokenByTokenResponse.md b/docs/ViewSecondaryApiTokenByTokenResponse.md deleted file mode 100644 index 1efa59a..0000000 --- a/docs/ViewSecondaryApiTokenByTokenResponse.md +++ /dev/null @@ -1,10 +0,0 @@ -# SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**token** | **String** | | [optional] -**createdAt** | **Number** | | [optional] - - diff --git a/docs/ViewTotalNumberOfMessagesInChannelResponse.md b/docs/ViewTotalNumberOfMessagesInChannelResponse.md deleted file mode 100644 index 17be9cf..0000000 --- a/docs/ViewTotalNumberOfMessagesInChannelResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewTotalNumberOfMessagesInChannelResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**total** | **Number** | | [optional] - - diff --git a/docs/ViewUserMetadataResponse.md b/docs/ViewUserMetadataResponse.md deleted file mode 100644 index a250475..0000000 --- a/docs/ViewUserMetadataResponse.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewUserMetadataResponse - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**anyOf** | **String** | | [optional] - - diff --git a/docs/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.md b/docs/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.md deleted file mode 100644 index db7fcab..0000000 --- a/docs/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.md +++ /dev/null @@ -1,9 +0,0 @@ -# SendbirdPlatformSdk.ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userId** | **String** | | [optional] - - diff --git a/docs/WebhookApi.md b/docs/WebhookApi.md deleted file mode 100644 index d93e588..0000000 --- a/docs/WebhookApi.md +++ /dev/null @@ -1,106 +0,0 @@ -# SendbirdPlatformSdk.WebhookApi - -All URIs are relative to *https://api-APP_ID.sendbird.com* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**chooseWhichEventsToSubscribeTo**](WebhookApi.md#chooseWhichEventsToSubscribeTo) | **PUT** /v3/applications/settings/webhook | Choose which events to subscribe to -[**retrieveListOfSubscribedEvents**](WebhookApi.md#retrieveListOfSubscribedEvents) | **GET** /v3/applications/settings/webhook | Retrieve a list of subscribed events - - - -## chooseWhichEventsToSubscribeTo - -> ChooseWhichEventsToSubscribeToResponse chooseWhichEventsToSubscribeTo(apiToken, opts) - -Choose which events to subscribe to - -## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.WebhookApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'chooseWhichEventsToSubscribeToData': new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData() // ChooseWhichEventsToSubscribeToData | -}; -apiInstance.chooseWhichEventsToSubscribeTo(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **chooseWhichEventsToSubscribeToData** | [**ChooseWhichEventsToSubscribeToData**](ChooseWhichEventsToSubscribeToData.md)| | [optional] - -### Return type - -[**ChooseWhichEventsToSubscribeToResponse**](ChooseWhichEventsToSubscribeToResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - - -## retrieveListOfSubscribedEvents - -> RetrieveListOfSubscribedEventsResponse retrieveListOfSubscribedEvents(apiToken, opts) - -Retrieve a list of subscribed events - -## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - -### Example - -```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; - -let apiInstance = new SendbirdPlatformSdk.WebhookApi(); -let apiToken = {{API_TOKEN}}; // String | -let opts = { - 'displayAllWebhookCategories': true // Boolean | -}; -apiInstance.retrieveListOfSubscribedEvents(apiToken, opts).then((data) => { - console.log('API called successfully. Returned data: ' + data); -}, (error) => { - console.error(error); -}); - -``` - -### Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **apiToken** | **String**| | - **displayAllWebhookCategories** | **Boolean**| | [optional] - -### Return type - -[**RetrieveListOfSubscribedEventsResponse**](RetrieveListOfSubscribedEventsResponse.md) - -### Authorization - -No authorization required - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - diff --git a/package-lock.json b/package-lock.json index de80884..186d279 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sendbird-platform-sdk", - "version": "0.0.16", - "lockfileVersion": 2, + "version": "2.0.0", + "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sendbird-platform-sdk", - "version": "0.0.16", + "version": "2.0.0", "license": "MIT", "dependencies": { "@babel/cli": "^7.0.0", @@ -38,25 +38,27 @@ } }, "node_modules/@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.3.0.tgz", + "integrity": "sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==", + "license": "Apache-2.0", "dependencies": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@babel/cli": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.19.3.tgz", - "integrity": "sha512-643/TybmaCAe101m2tSVHi9UKpETXP9c/Ff4mD2tAwkdP6esKIfaauZFc67vGEM6r9fekbEGid+sZhbEnSe3dg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.27.0.tgz", + "integrity": "sha512-bZfxn8DRxwiVzDO5CEeV+7IqXeCkzI4yYnrQbpwjT76CUyossQc6RYE7n+xfm0/2k40lPaCpW0FhxYs7EBAetw==", + "license": "MIT", "dependencies": { - "@jridgewell/trace-mapping": "^0.3.8", - "commander": "^4.0.1", - "convert-source-map": "^1.1.0", + "@jridgewell/trace-mapping": "^0.3.25", + "commander": "^6.2.0", + "convert-source-map": "^2.0.0", "fs-readdir-recursive": "^1.1.0", "glob": "^7.2.0", "make-dir": "^2.1.0", @@ -71,51 +73,56 @@ }, "optionalDependencies": { "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.4.0" + "chokidar": "^3.6.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "node_modules/@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", + "version": "7.26.2", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.26.2.tgz", + "integrity": "sha512-RJlIHRueQgwWitWgF8OdFYGZX328Ax5BCemNGlqHfplnRT9ESi8JkFlvaVYbS+UubVY6dpv87Fs2u5M29iNFVQ==", + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.18.6" + "@babel/helper-validator-identifier": "^7.25.9", + "js-tokens": "^4.0.0", + "picocolors": "^1.0.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz", - "integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==", + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.26.8.tgz", + "integrity": "sha512-oH5UPLMWR3L2wEFLnFJ1TZXqHufiTKAiLfqw5zkhS4dKXLJ10yVztfil/twG8EDTA4F/tvVNw9nOl4ZMslB8rQ==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.6.tgz", - "integrity": "sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg==", - "dependencies": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.6", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helpers": "^7.19.4", - "@babel/parser": "^7.19.6", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.6", - "@babel/types": "^7.19.4", - "convert-source-map": "^1.7.0", + "version": "7.26.10", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.26.10.tgz", + "integrity": "sha512-vMqyb7XCDMPvJFFOaT9kxtiRh42GwlZEg1/uIgtZshS5a/8OaduUfCi7kynKgc3Tw/6Uo2D+db9qBttghhmxwQ==", + "license": "MIT", + "dependencies": { + "@ampproject/remapping": "^2.2.0", + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.26.10", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helpers": "^7.26.10", + "@babel/parser": "^7.26.10", + "@babel/template": "^7.26.9", + "@babel/traverse": "^7.26.10", + "@babel/types": "^7.26.10", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -126,86 +133,64 @@ } }, "node_modules/@babel/generator": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz", - "integrity": "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.27.0.tgz", + "integrity": "sha512-VybsKvpiN1gU1sdMZIp7FcqphVVKEwcuj02x73uvcHE0PTihx1nlBcowYWhDwjpoAXRv43+gDzyggGnn1XZhVw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.0", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0", + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.25", + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "dependencies": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - }, - "engines": { - "node": ">=6.0.0" - } - }, "node_modules/@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", - "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.25.9.tgz", + "integrity": "sha512-gv7320KBUFJz1RnylIg5WWYPRXKZ884AGkYpgpWW02TH66Dl+HaC1t1CKd0z3R4b6hdYEcmrNZHUmfCP+1u3/g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-explode-assignable-expression": "^7.18.6", - "@babel/types": "^7.18.9" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.0.tgz", + "integrity": "sha512-LVk7fbXml0H2xH34dFzKQ7TDZ2G4/rVTOrq9V+icbbadjbVxxeFeDsNHv2SrZeWoA+6ZiTyWYWtScEIW07EAcA==", + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.20.0", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" + "@babel/compat-data": "^7.26.8", + "@babel/helper-validator-option": "^7.25.9", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-create-class-features-plugin": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz", - "integrity": "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.27.0.tgz", + "integrity": "sha512-vSGCvMecvFCd/BdpGlhpXYNhhC4ccxyvQWpbGL4CWbvfEoLFWUZuSuf7s9Aw70flgQF+6vptvgK2IfOnKlRmBg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.9", - "@babel/helper-split-export-declaration": "^7.18.6" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/helper-replace-supers": "^7.26.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/traverse": "^7.27.0", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -215,13 +200,15 @@ } }, "node_modules/@babel/helper-create-regexp-features-plugin": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz", - "integrity": "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.27.0.tgz", + "integrity": "sha512-fO8l08T76v48BhpNRW/nQ0MxfnSdoSKUJBMjubOAYffsVuGG5qOfMq7N6Es7UJvi7Y8goXXo07EfcHZXDPuELQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.1.0" + "@babel/helper-annotate-as-pure": "^7.25.9", + "regexpu-core": "^6.2.0", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -231,137 +218,99 @@ } }, "node_modules/@babel/helper-define-polyfill-provider": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", - "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.4.tgz", + "integrity": "sha512-jljfR1rGnXXNWnmQg2K3+bvhkxB51Rl32QRaOTuwwjviGrHzIbSc8+x9CpraDtbT7mfyjXObULP4w/adunNwAw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", + "@babel/helper-compilation-targets": "^7.22.6", + "@babel/helper-plugin-utils": "^7.22.5", "debug": "^4.1.1", "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" + "resolve": "^1.14.2" }, "peerDependencies": { - "@babel/core": "^7.4.0-0" - } - }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==", - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-explode-assignable-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", - "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", - "dependencies": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "dependencies": { - "@babel/types": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/@babel/helper-member-expression-to-functions": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", - "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.25.9.tgz", + "integrity": "sha512-wbfdZ9w5vk0C0oyHqAJbc62+vet5prjj01jjJ8sKn3j9h3MQQlflEdXYvuqRWjHnM12coDEqiC1IRCi0U/EKwQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.9" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.25.9.tgz", + "integrity": "sha512-tnUA4RsrmflIM6W6RFTLFSXITtl0wKjgpnLgXyowocVPrbYrLUXSBXDgTs8BlbmIzIdlBySRQjINYs2BAkiLtw==", + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-module-transforms": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz", - "integrity": "sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw==", + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.26.0.tgz", + "integrity": "sha512-xO+xu6B5K2czEnQye6BHA7DolFFmS3LB7stHZFaOLb1pAwO1HWLS8fXA+eh0A2yIvltPVmx3eNNDBJA2SLHXFw==", + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.19.4", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.6", - "@babel/types": "^7.19.4" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.25.9.tgz", + "integrity": "sha512-FIpuNaz5ow8VyrYcnXQTDRGvV6tTjkNtCK/RYNDXGSLlUD6cBuQTSw43CShGxjvfBTfcUA/r6UhUCbtYqkhcuQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.18.6" + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", - "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.26.5.tgz", + "integrity": "sha512-RS+jZcRdZdRFzMyr+wcsaqOmld1/EqTghfaBGQQd/WnRdzdlvSZ//kF7U8VQTxf1ynZ4cjUcYgjVGx13ewNPMg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.25.9.tgz", + "integrity": "sha512-IZtukuUeBbhgOcaW2s06OXTzVNJR0ybm4W5xC1opWFFJMZbwRj5LCk+ByYH7WdZPZTt8KnFwA8pvjN2yqcPlgw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-wrap-function": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -371,124 +320,100 @@ } }, "node_modules/@babel/helper-replace-supers": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", - "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.26.5.tgz", + "integrity": "sha512-bJ6iIVdYX1YooY2X7w1q6VITt+LnUILtNk7zT78ykuwStx8BauCzxvFqFaHjOpW1bVnSUM1PN1f0p5P21wHxvg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/traverse": "^7.19.1", - "@babel/types": "^7.19.0" + "@babel/helper-member-expression-to-functions": "^7.25.9", + "@babel/helper-optimise-call-expression": "^7.25.9", + "@babel/traverse": "^7.26.5" }, "engines": { "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-simple-access": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz", - "integrity": "sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg==", - "dependencies": { - "@babel/types": "^7.19.4" }, - "engines": { - "node": ">=6.9.0" + "peerDependencies": { + "@babel/core": "^7.0.0" } }, "node_modules/@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.25.9.tgz", + "integrity": "sha512-K4Du3BFa3gvyhzgPcntrkDgZzQaq6uozzcpGbOO1OEJaI+EJdqWIMTLgFgQf6lrfiDFo5FU+BxKepI9RmZqahA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.20.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "dependencies": { - "@babel/types": "^7.18.6" + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz", + "integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz", + "integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.25.9.tgz", + "integrity": "sha512-e/zv1co8pp55dNdEcCynfj9X7nyUKUXoUEwfXqaZt0omVOmDe9oOTdKStH4GmAw6zxMFs50ZayuMfHDKlO7Tfw==", + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-wrap-function": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz", - "integrity": "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.25.9.tgz", + "integrity": "sha512-ETzz9UTjQSTmw39GboatdymDq4XIQbR8ySgVrylRhPOFpsd+JrKHIuF0de7GCWmem+T4uC5z7EZguod7Wj4A4g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" + "@babel/template": "^7.25.9", + "@babel/traverse": "^7.25.9", + "@babel/types": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz", - "integrity": "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.27.0.tgz", + "integrity": "sha512-U5eyP/CTFPuNE3qk+WZMxFkp/4zUzdceQlfzf7DdGdhp+Fezd7HD+i8Y24ZuTMKX3wQBld449jijbGq6OdGNQg==", + "license": "MIT", "dependencies": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.0" + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", + "node_modules/@babel/parser": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.27.0.tgz", + "integrity": "sha512-iaepho73/2Pz7w2eMS0Q5f83+0RKI7i4xmiYeBmDzfRVbQtTOG7Ts0S4HzJVsTMGI9keU8rNfuZr8DKfSt7Yyg==", + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/types": "^7.27.0" }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/parser": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz", - "integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==", "bin": { "parser": "bin/babel-parser.js" }, @@ -496,13 +421,15 @@ "node": ">=6.0.0" } }, - "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", + "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.25.9.tgz", + "integrity": "sha512-ZkRyVkThtxQ/J6nv3JFYv1RYY+JT5BvU0y3k5bWrmuG4woXypRa4PXmm9RhOwodRkYFWqC0C0cqcJ4OqR7kW+g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -511,85 +438,83 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", - "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", + "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.25.9.tgz", + "integrity": "sha512-MrGRLZxLD/Zjj0gdU15dfs+HH/OXvnw/U4jJD8vpcP2CJQapPEv1IWwjc/qMg7ItBlPwSv1hRBbb7LeuANdcnw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", - "@babel/plugin-proposal-optional-chaining": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.13.0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-proposal-async-generator-functions": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz", - "integrity": "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==", + "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.25.9.tgz", + "integrity": "sha512-2qUwwfAFpJLZqxd02YW9btUCZHl+RFvdDkNfZwaIJrvB8Tesjsk8pEQkTvGwZXLqXUx/2oyY3ySRhm6HOXuCug==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6xWgLZTJXwilVjlnV7ospI3xi+sl8lN8rXXbBD6vYn3UYDlGsag8wrZkKcSI8G6KgqKP7vNFaDgeDnfAABq61g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.13.0" } }, - "node_modules/@babel/plugin-proposal-class-static-block": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", - "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", + "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.25.9.tgz", + "integrity": "sha512-aLnMXYPnzwwqhYSCyXfKkIkYgJ8zv9RK+roo9DkTXz38ynIhd9XCbN08s3MGvqL2MYGVUGdRQLL/JqBIeJhJBg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-class-static-block": "^7.14.5" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.12.0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-proposal-decorators": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.20.0.tgz", - "integrity": "sha512-vnuRRS20ygSxclEYikHzVrP9nZDFXaSzvJxGLQNAiBX041TmhS4hOUHWNIpq/q4muENuEP9XPJFXTNFejhemkg==", + "node_modules/@babel/plugin-proposal-class-properties": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", + "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.19.0", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/plugin-syntax-decorators": "^7.19.0" + "@babel/helper-create-class-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, "engines": { "node": ">=6.9.0" @@ -598,14 +523,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-do-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.18.6.tgz", - "integrity": "sha512-ddToGCONJhCuL+l4FhtGnKl5ZYCj9fDVFiqiCdQDpeIbVn/NvMeSib+7T1/rk08jRafae4qNiP8OnJyuqlsuYA==", + "node_modules/@babel/plugin-proposal-decorators": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.25.9.tgz", + "integrity": "sha512-smkNLL/O1ezy9Nhy4CNosc4Va+1wo5w4gzSZeLe6y6dM4mmHfYOCPolXQPHQxonZCF+ZyebxN9vqOolkYrSn5g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-do-expressions": "^7.18.6" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/plugin-syntax-decorators": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -614,14 +541,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-dynamic-import": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", - "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", + "node_modules/@babel/plugin-proposal-do-expressions": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.25.9.tgz", + "integrity": "sha512-0IkO77tw2OcZua/ADovH//IEiUyQpNjWvLyMFNidXnZx4eEriQjwkH9t/EyQZUaQu0KOxxdszC7m8VUVs51ydg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -631,13 +558,13 @@ } }, "node_modules/@babel/plugin-proposal-export-default-from": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz", - "integrity": "sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.25.9.tgz", + "integrity": "sha512-ykqgwNfSnNOB+C8fV5X4mG3AVmvu+WVxcaU9xHHtBb7PCrPeweMmPjGsn8eMaeJg6SJuoUuZENeeSWaarWqonQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-export-default-from": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -650,7 +577,9 @@ "version": "7.18.9", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-export-namespace-from instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.9", "@babel/plugin-syntax-export-namespace-from": "^7.8.3" @@ -663,13 +592,13 @@ } }, "node_modules/@babel/plugin-proposal-function-bind": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.18.9.tgz", - "integrity": "sha512-9RfxqKkRBCCT0xoBl9AqieCMscJmSAL9HYixGMWH549jUpT9csWWK/HEYZEx9t9iW/PRSXgX95x9bDlgtAJGFA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.25.9.tgz", + "integrity": "sha512-1g0b0XU667A2IZNdhovGr0ZdywJxf081B8JN5qyiNqzJK7GtdYBxGcuA+lq7q8OgO4cAc4vF57Ad0XLoDBsJAg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-function-bind": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -679,14 +608,14 @@ } }, "node_modules/@babel/plugin-proposal-function-sent": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.18.6.tgz", - "integrity": "sha512-UdaOKPOLPt0O+Xu26tnw6oAZMLXhk+yMrXOzn6kAzTHBnWHJsoN1hlrgxFAQ+FRLS0ql1oYIQ2phvoFzmN3GMw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.25.9.tgz", + "integrity": "sha512-Qi9KEBTY6WAjHBeHJ1jm4HyGlwvZLfjUaxO9g1jKHqyQPe6c+q7DlKgyrBUH7v+VWLJ0bNy5cQlXHtOV5/uibw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-wrap-function": "^7.18.6", - "@babel/plugin-syntax-function-sent": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-wrap-function": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -699,7 +628,9 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-json-strings instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-json-strings": "^7.8.3" @@ -712,12 +643,14 @@ } }, "node_modules/@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz", - "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==", + "version": "7.20.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.20.7.tgz", + "integrity": "sha512-y7C7cZgpMIjWlKE5T7eJwp+tnRYM89HmRvWM5EQuB5BoHEONjmQ8lSNmBUwOyy/GFRsohJED51YBF79hE1djug==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-logical-assignment-operators instead.", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" }, "engines": { @@ -731,7 +664,9 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-nullish-coalescing-operator instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" @@ -747,7 +682,9 @@ "version": "7.18.6", "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-numeric-separator instead.", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.18.6", "@babel/plugin-syntax-numeric-separator": "^7.10.4" @@ -759,49 +696,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-object-rest-spread": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz", - "integrity": "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.19.4", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.18.8" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-optional-catch-binding": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", - "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, "node_modules/@babel/plugin-proposal-optional-chaining": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", - "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==", + "version": "7.21.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.21.0.tgz", + "integrity": "sha512-p4zeefM72gpmEe2fkUr/OnOXpWEf8nAgk7ZYVqqfFiyIG7oFfVZcCrU64hWn5xp4tQ9LkV4bTIa5rD0KANpKNA==", + "deprecated": "This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-optional-chaining instead.", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", + "@babel/helper-plugin-utils": "^7.20.2", + "@babel/helper-skip-transparent-expression-wrappers": "^7.20.0", "@babel/plugin-syntax-optional-chaining": "^7.8.3" }, "engines": { @@ -812,29 +716,14 @@ } }, "node_modules/@babel/plugin-proposal-pipeline-operator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.18.9.tgz", - "integrity": "sha512-Pc33e6m8f4MJhRXVCUwiKZNtEm+W2CUPHIL0lyJNtkp+w6d75CLw3gsBKQ81VAMUgT9jVPIEU8gwJ5nJgmJ1Ag==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-pipeline-operator": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" - }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.26.7.tgz", + "integrity": "sha512-RwHKOi/udKsbIBdVOPCwUBC4pCDBOxH1UgWh6QANTTOWL8oNDu2AI6gB4jcrlmiJYnim5oF2nmkDeueUgSSiKw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/plugin-syntax-pipeline-operator": "^7.26.7" }, "engines": { "node": ">=6.9.0" @@ -844,16 +733,11 @@ } }, "node_modules/@babel/plugin-proposal-private-property-in-object": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz", - "integrity": "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==", + "version": "7.21.0-placeholder-for-preset-env.2", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz", + "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==", "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - }, + "license": "MIT", "engines": { "node": ">=6.9.0" }, @@ -862,13 +746,13 @@ } }, "node_modules/@babel/plugin-proposal-throw-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.18.6.tgz", - "integrity": "sha512-WHOrJyhGoGrdtW480L79cF7Iq/gZDZ/z6OqK7mVyFR5I37dTpog/wNgb6hmaM3HYZtULEJl++7VaMWkNZsOcHg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.25.9.tgz", + "integrity": "sha512-Zw62DP6cdbXXEtTNMWYY10rIOPGAWPk8qdqM+AT3JbHtFq8ook0JXJCWdQJTlSVACHo0R6lvoNKO9B1ZVkjClg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-throw-expressions": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -877,27 +761,28 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", + "node_modules/@babel/plugin-syntax-decorators": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.25.9.tgz", + "integrity": "sha512-ryzI0McXUPJnRCvMo4lumIKZUzhYUO/ScI+Mz4YVaTLt04DHNSjEUjKVvbzQjZFLuod/cYEc07mJWhzl6v4DPg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { - "node": ">=4" + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", + "node_modules/@babel/plugin-syntax-dynamic-import": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", + "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -905,25 +790,27 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", + "node_modules/@babel/plugin-syntax-export-namespace-from": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", + "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.12.13" + "@babel/helper-plugin-utils": "^7.8.3" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "node_modules/@babel/plugin-syntax-import-assertions": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.26.0.tgz", + "integrity": "sha512-QCWT5Hh830hK5EQa7XzuqIkQU9tT/whqbDz7kuaZMHFl1inRRg7JnuAEOQ0Ur0QUl0NufCk1msK2BeY79Aj/eg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -932,13 +819,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-decorators": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.19.0.tgz", - "integrity": "sha512-xaBZUEDntt4faL1yN8oIFlhfXeQAWJW7CLKYsHTUqriCUbj8xOra8bfxxKGi/UwExPFBuPdH4XfHc9rGQhrVkQ==", + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.26.0.tgz", + "integrity": "sha512-e2dttdsJ1ZTpi3B9UYGLw41hifAubg19AtCu/2I/F1QNVclOBr1dYpTdmdyZ84Xiz43BS/tCUkMAZNLv12Pi+A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -947,26 +835,25 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-do-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.18.6.tgz", - "integrity": "sha512-kTogvOsjBTVOSZtkkziiXB5hwGXqwhq2gBXDaiWVruRLDT7C2GqfbsMnicHJ7ePq2GE8UJeWS34YbNP6yDhwUA==", + "node_modules/@babel/plugin-syntax-import-meta": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", + "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@babel/helper-plugin-utils": "^7.10.4" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-dynamic-import": { + "node_modules/@babel/plugin-syntax-json-strings": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", + "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -974,70 +861,66 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-export-default-from": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz", - "integrity": "sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew==", + "node_modules/@babel/plugin-syntax-logical-assignment-operators": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", + "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@babel/helper-plugin-utils": "^7.10.4" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-export-namespace-from": { + "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", + "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.3" + "@babel/helper-plugin-utils": "^7.8.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-function-bind": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.18.6.tgz", - "integrity": "sha512-wZN0Aq/AScknI9mKGcR3TpHdASMufFGaeJgc1rhPmLtZ/PniwjePSh8cfh8tXMB3U4kh/3cRKrLjDtedejg8jQ==", + "node_modules/@babel/plugin-syntax-numeric-separator": { + "version": "7.10.4", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", + "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@babel/helper-plugin-utils": "^7.10.4" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-function-sent": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.18.6.tgz", - "integrity": "sha512-f3OJHIlFIkg+cP1Hfo2SInLhsg0pz2Ikmgo7jMdIIKC+3jVXQlHB0bgSapOWxeWI0SU28qIWmfn5ZKu1yPJHkg==", + "node_modules/@babel/plugin-syntax-optional-chaining": { + "version": "7.8.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", + "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" - }, - "engines": { - "node": ">=6.9.0" + "@babel/helper-plugin-utils": "^7.8.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", + "node_modules/@babel/plugin-syntax-pipeline-operator": { + "version": "7.26.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.26.7.tgz", + "integrity": "sha512-6TChXGY5xmWVqMXPkUO0VbfXX4hEQJe/Mub4zQLqZWPGA3MJkhMKTg4/mJxSOP+R36EXRJcb8hluodMsu2g7hg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -1046,109 +929,99 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", + "node_modules/@babel/plugin-syntax-unicode-sets-regex": { + "version": "7.18.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz", + "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "@babel/helper-create-regexp-features-plugin": "^7.18.6", + "@babel/helper-plugin-utils": "^7.18.6" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", + "node_modules/@babel/plugin-transform-arrow-functions": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.25.9.tgz", + "integrity": "sha512-6jmooXYIwn9ca5/RylZADJ+EnSxVUS5sjeJ9UPk6RWRzXCmOJCy6dqItPJFpw2cuCangPK4OYr5uhGKcmrm5Qg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "@babel/helper-plugin-utils": "^7.25.9" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", + "node_modules/@babel/plugin-transform-async-generator-functions": { + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.26.8.tgz", + "integrity": "sha512-He9Ej2X7tNf2zdKMAGOsmg2MrFc+hfoAhd3po4cWfo/NWjzEAKa0oQruj1ROVUdl0e6fb6/kE/G3SSxE0lRJOg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.10.4" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-remap-async-to-generator": "^7.25.9", + "@babel/traverse": "^7.26.8" }, - "peerDependencies": { - "@babel/core": "^7.0.0-0" - } - }, - "node_modules/@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", + "node_modules/@babel/plugin-transform-async-to-generator": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.25.9.tgz", + "integrity": "sha512-NT7Ejn7Z/LjUH0Gv5KsBCxh7BH3fbLTV0ptHvpeMvrt3cPThHfJfst9Wrb7S8EvJ7vRTFI7z+VAvFVEQn/m5zQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@babel/helper-module-imports": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-remap-async-to-generator": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", + "node_modules/@babel/plugin-transform-block-scoped-functions": { + "version": "7.26.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.26.5.tgz", + "integrity": "sha512-chuTSY+hq09+/f5lMj8ZSYgCFpppV2CbYrhNFJ1BFoXpiWPnnAb7R0MqrafCpN8E1+YRrtM1MXZHJdIx8B6rMQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.8.0" + "@babel/helper-plugin-utils": "^7.26.5" + }, + "engines": { + "node": ">=6.9.0" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-pipeline-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.18.6.tgz", - "integrity": "sha512-pFtIdQomJtkTHWcNsGXhjJ5YUkL+AxJnP4G+Ol85UO6uT2fpHTPYLLE5bBeRA9cxf25qa/VKsJ3Fi67Gyqe3rA==", + "node_modules/@babel/plugin-transform-block-scoping": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.27.0.tgz", + "integrity": "sha512-u1jGphZ8uDI2Pj/HJj6YQ6XQLZCNjOlprjxB5SVz6rq2T6SwAR+CdrWK0CP7F+9rDVMXdB0+r6Am5G5aobOjAQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -1157,13 +1030,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.25.9.tgz", + "integrity": "sha512-bbMAII8GRSkcd0h0b4X+36GksxuheLFjP65ul9w6C3KgAamI3JqErNgSrosX6ZPj+Mpim5VvEbawXxJCyEUV3Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1172,28 +1047,36 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-syntax-throw-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.18.6.tgz", - "integrity": "sha512-rp1CqEZXGv1z1YZ3qYffBH3rhnOxrTwQG8fh2yqulTurwv9zu3Gthfd+niZBLSOi1rY6146TgF+JmVeDXaX4TQ==", + "node_modules/@babel/plugin-transform-class-static-block": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.26.0.tgz", + "integrity": "sha512-6J2APTs7BDDm+UMqP1useWqhcRAXo0WIoVj26N7kPFB6S73Lgvyka4KTZYIxtgYXiN5HTyRObA72N2iu628iTQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.12.0" } }, - "node_modules/@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", + "node_modules/@babel/plugin-transform-classes": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.25.9.tgz", + "integrity": "sha512-mD8APIXmseE7oZvZgGABDyM34GUmK45Um2TXiBUt7PnuAxrgoSVf123qUzPxEr/+/BHrRn5NMZCdE2m/1F8DGg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.14.5" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9", + "@babel/traverse": "^7.25.9", + "globals": "^11.1.0" }, "engines": { "node": ">=6.9.0" @@ -1202,13 +1085,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-arrow-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", - "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", + "node_modules/@babel/plugin-transform-computed-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.25.9.tgz", + "integrity": "sha512-HnBegGqXZR12xbcTHlJ9HGxw1OniltT26J5YpfruGqtUHlz/xKf/G2ak9e+t0rVqrjXa9WOhvYPz1ERfMj23AA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/template": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1217,15 +1102,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-async-to-generator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz", - "integrity": "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==", + "node_modules/@babel/plugin-transform-destructuring": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.25.9.tgz", + "integrity": "sha512-WkCGb/3ZxXepmMiX101nnGiU+1CAdut8oHyEOHxkKuS1qKpU2SMXE2uSvfz8PBuLd49V6LEsbtyPhWC7fnkgvQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-remap-async-to-generator": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1234,13 +1118,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", + "node_modules/@babel/plugin-transform-dotall-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.25.9.tgz", + "integrity": "sha512-t7ZQ7g5trIgSRYhI9pIJtRl64KHotutUJsh4Eze5l7olJv+mRSg4/MmbZ0tv1eeqRbdvo/+trvJD/Oc5DmW2cA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1249,13 +1135,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-block-scoping": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz", - "integrity": "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==", + "node_modules/@babel/plugin-transform-duplicate-keys": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.25.9.tgz", + "integrity": "sha512-LZxhJ6dvBb/f3x8xwWIuyiAHy56nrRG3PeYTpBkkzkYRRQ6tJLu68lEF5VIqMUZiAV7a8+Tb78nEoMCMcqjXBw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1264,36 +1151,31 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-classes": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz", - "integrity": "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==", - "dev": true, - "dependencies": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.19.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-replace-supers": "^7.18.9", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" + "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-0UfuJS0EsXbRvKnwcLjFtJy/Sxc5J5jhLHnFhy7u4zih97Hz6tJkLU+O+FMMrNZrosUPxDi6sYxJ/EA8jDiAog==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/plugin-transform-computed-properties": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", - "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", + "node_modules/@babel/plugin-transform-dynamic-import": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.25.9.tgz", + "integrity": "sha512-GCggjexbmSLaFhqsojeugBpeaRIgWNTcgKVq/0qIteFEqY2A+b9QidYadrWlnbWQUrW5fn+mCvf3tr7OeBFTyg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1302,13 +1184,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-destructuring": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz", - "integrity": "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==", + "node_modules/@babel/plugin-transform-exponentiation-operator": { + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.26.3.tgz", + "integrity": "sha512-7CAHcQ58z2chuXPWblnn1K6rLDnDWieghSOEmqQsrBenH0P9InCUtOJYD89pvngljmZlJcz3fcmgYsXFNGa1ZQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1317,14 +1200,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", + "node_modules/@babel/plugin-transform-export-namespace-from": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.25.9.tgz", + "integrity": "sha512-2NsEz+CxzJIVOPx2o9UsW1rXLqtChtLoVnwYHHiB04wS5sgn7mrV45fWMBX0Kk+ub9uXytVYfNP2HjbVbCB3Ww==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1333,13 +1216,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", + "node_modules/@babel/plugin-transform-for-of": { + "version": "7.26.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.26.9.tgz", + "integrity": "sha512-Hry8AusVm8LW5BVFgiyUReuoGzPUpdHQQqJY5bZnbbf+ngOHWuCuYFKw/BqaaWlvEUrF91HMhDtEaI1hZzNbLg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1348,14 +1233,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", + "node_modules/@babel/plugin-transform-function-name": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.25.9.tgz", + "integrity": "sha512-8lP+Yxjv14Vc5MuWBpJsoUCd3hD6V9DgBon2FVYL4jJgbnVQ9fTgYmonchzZJOVNgzEgbxp4OwAf6xz6M/14XA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1364,13 +1251,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-for-of": { - "version": "7.18.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", - "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", + "node_modules/@babel/plugin-transform-json-strings": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.25.9.tgz", + "integrity": "sha512-xoTMk0WXceiiIvsaquQQUaLLXSW1KJ159KP87VilruQm0LNNGxWzahxSS6T6i4Zg3ezp4vA4zuwiNUR53qmQAw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1379,15 +1267,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", + "node_modules/@babel/plugin-transform-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.25.9.tgz", + "integrity": "sha512-9N7+2lFziW8W9pBl2TzaNht3+pgMIRP74zizeCSrtnSKVdUl8mAjjOP2OOVQAfZ881P2cNjDj1uAMEdeD50nuQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1396,13 +1283,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", + "node_modules/@babel/plugin-transform-logical-assignment-operators": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.25.9.tgz", + "integrity": "sha512-wI4wRAzGko551Y8eVf6iOY9EouIDTtPb0ByZx+ktDGHwv6bHFimrgJM/2T021txPZ2s4c7bqvHbd+vXG6K948Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1412,12 +1300,13 @@ } }, "node_modules/@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.25.9.tgz", + "integrity": "sha512-PYazBVfofCQkkMzh2P6IdIUaCEWni3iYEerAsRWuVd8+jlM1S9S9cz1dF9hIzyoZ8IA3+OwVYIp9v9e+GbgZhA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1427,13 +1316,14 @@ } }, "node_modules/@babel/plugin-transform-modules-amd": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz", - "integrity": "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.25.9.tgz", + "integrity": "sha512-g5T11tnI36jVClQlMlt4qKDLlWnG5pP9CSM4GhdRciTNMRgkfpo5cR6b4rGIOYPgRRuFAvwjPQ/Yk+ql4dyhbw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1443,14 +1333,14 @@ } }, "node_modules/@babel/plugin-transform-modules-commonjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", - "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", + "version": "7.26.3", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.26.3.tgz", + "integrity": "sha512-MgR55l4q9KddUDITEzEFYn5ZsGDXMSsU9E+kh7fjRXTIC3RHqfCo8RPRbyReYJh44HQ/yomFkqbOFohXvDCiIQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-simple-access": "^7.19.4" + "@babel/helper-module-transforms": "^7.26.0", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1460,15 +1350,16 @@ } }, "node_modules/@babel/plugin-transform-modules-systemjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz", - "integrity": "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.25.9.tgz", + "integrity": "sha512-hyss7iIlH/zLHaehT+xwiymtPOpsiwIIRlCAOwBB04ta5Tt+lNItADdlXw3jAWZ96VJ2jlhl/c+PNIQPKNfvcA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-validator-identifier": "^7.19.1" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9", + "@babel/traverse": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1478,13 +1369,14 @@ } }, "node_modules/@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.25.9.tgz", + "integrity": "sha512-bS9MVObUgE7ww36HEfwe6g9WakQ0KF07mQF74uuXdkoziUPfKyu/nIm663kz//e5O1nPInPFx36z7WJmJ4yNEw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-module-transforms": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1494,13 +1386,14 @@ } }, "node_modules/@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz", - "integrity": "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.25.9.tgz", + "integrity": "sha512-oqB6WHdKTGl3q/ItQhpLSnWWOpjUJLsOCLVyeFgeTktkBSCiurvPOsyt93gibI9CmuKvTUEtWmG5VhZD+5T/KA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.19.0", - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1510,12 +1403,13 @@ } }, "node_modules/@babel/plugin-transform-new-target": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", - "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.25.9.tgz", + "integrity": "sha512-U/3p8X1yCSoKyUj2eOBIx3FOn6pElFOKvAAGf8HTtItuPyB+ZeOqfn+mvTtg9ZlOAjsPdK3ayQEjqHjU/yLeVQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1524,14 +1418,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.26.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.26.6.tgz", + "integrity": "sha512-CKW8Vu+uUZneQCPtXmSBUC6NCAUdya26hWCElAWh5mVSlSRsmiCPUUDKb3Z0szng1hiAJa098Hkhg9o4SE35Qw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" + "@babel/helper-plugin-utils": "^7.26.5" }, "engines": { "node": ">=6.9.0" @@ -1540,13 +1434,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-parameters": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz", - "integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==", + "node_modules/@babel/plugin-transform-numeric-separator": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.25.9.tgz", + "integrity": "sha512-TlprrJ1GBZ3r6s96Yq8gEQv82s8/5HnCVHtEJScUj90thHQbwe+E5MLhi2bbNHBEJuzrvltXSru+BUxHDoog7Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1555,13 +1450,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", + "node_modules/@babel/plugin-transform-object-rest-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.25.9.tgz", + "integrity": "sha512-fSaXafEE9CVHPweLYw4J0emp1t8zYTXyzN3UuG+lylqkvYd7RMrsOQ8TYx5RF231be0vqtFC6jnx3UmpJmKBYg==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-compilation-targets": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1570,14 +1468,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-regenerator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz", - "integrity": "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==", + "node_modules/@babel/plugin-transform-object-super": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.25.9.tgz", + "integrity": "sha512-Kj/Gh+Rw2RNLbCK1VAWj2U48yxxqL2x0k10nPtSdRa0O2xnHXalD0s+o1A6a0W43gJ00ANo38jxkQreckOzv5A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6", - "regenerator-transform": "^0.15.0" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-replace-supers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1586,13 +1485,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", + "node_modules/@babel/plugin-transform-optional-catch-binding": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.25.9.tgz", + "integrity": "sha512-qM/6m6hQZzDcZF3onzIhZeDHDO43bkNNlOX0i8n3lR6zLbu0GN2d8qfM/IERJZYauhAHSLHy39NF0Ctdvcid7g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1601,13 +1501,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.25.9.tgz", + "integrity": "sha512-6AvV0FsLULbpnXeBjrY4dmWF8F7gf8QnvTEoO/wX/5xm/xE1Xo8oPuD3MPS+KS9f9XBEAWN7X1aWr4z9HdOr7A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1616,14 +1518,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-spread": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", - "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", + "node_modules/@babel/plugin-transform-parameters": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.25.9.tgz", + "integrity": "sha512-wzz6MKwpnshBAiRmn4jR8LYz/g8Ksg0o80XmwZDlordjwEk9SxBzTWC7F5ef1jhbrbOW2DJ5J6ayRukrJmnr0g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1632,13 +1534,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.25.9.tgz", + "integrity": "sha512-D/JUozNpQLAPUVusvqMxyvjzllRaF8/nSrP1s2YGQT/W4LHK4xxsMcHjhOGTS01mp9Hda8nswb+FblLdJornQw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1647,13 +1551,16 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", + "node_modules/@babel/plugin-transform-private-property-in-object": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.25.9.tgz", + "integrity": "sha512-Evf3kcMqzXA3xfYJmZ9Pg1OvKdtqsDMSWBDzZOPLvHiTt36E75jLDQo5w1gtRU95Q4E5PDttrTf25Fw8d/uWLw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-annotate-as-pure": "^7.25.9", + "@babel/helper-create-class-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1662,13 +1569,14 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", + "node_modules/@babel/plugin-transform-property-literals": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.25.9.tgz", + "integrity": "sha512-IvIUeV5KrS/VPavfSM/Iu+RE6llrHrYIKY1yfCzyO/lMXHQ+p7uGhonmGVisv6tSBSVgWzMBohTcvkC9vQcQFA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" @@ -1677,13 +1585,15 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-unicode-escapes": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", - "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", + "node_modules/@babel/plugin-transform-regenerator": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.27.0.tgz", + "integrity": "sha512-LX/vCajUJQDqE7Aum/ELUMZAY19+cDpghxrnyt5I1tV6X5PyC86AOoWXWFYFeIvauyeSA6/ktn4tQVn/3ZifsA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.18.9" + "@babel/helper-plugin-utils": "^7.26.5", + "regenerator-transform": "^0.15.2" }, "engines": { "node": ">=6.9.0" @@ -1692,103 +1602,263 @@ "@babel/core": "^7.0.0-0" } }, - "node_modules/@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", + "node_modules/@babel/plugin-transform-regexp-modifiers": { + "version": "7.26.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.26.0.tgz", + "integrity": "sha512-vN6saax7lrA2yA/Pak3sCxuD6F5InBjn9IcrIKQPjpsLvuHYLVroTxjdlVRHjjBWxKOqIwpTXDkOssYT4BFdRw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" }, "engines": { "node": ">=6.9.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0" } }, - "node_modules/@babel/preset-env": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz", - "integrity": "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==", - "dev": true, - "dependencies": { - "@babel/compat-data": "^7.19.4", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-async-generator-functions": "^7.19.1", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-class-static-block": "^7.18.6", - "@babel/plugin-proposal-dynamic-import": "^7.18.6", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9", - "@babel/plugin-proposal-json-strings": "^7.18.6", - "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.19.4", - "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-private-methods": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.18.6", - "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.18.6", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.18.6", - "@babel/plugin-transform-async-to-generator": "^7.18.6", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.19.4", - "@babel/plugin-transform-classes": "^7.19.0", - "@babel/plugin-transform-computed-properties": "^7.18.9", - "@babel/plugin-transform-destructuring": "^7.19.4", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-for-of": "^7.18.8", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.18.6", - "@babel/plugin-transform-modules-commonjs": "^7.18.6", - "@babel/plugin-transform-modules-systemjs": "^7.19.0", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", - "@babel/plugin-transform-new-target": "^7.18.6", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-parameters": "^7.18.8", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.18.6", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.19.0", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.18.10", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.19.4", - "babel-plugin-polyfill-corejs2": "^0.3.3", - "babel-plugin-polyfill-corejs3": "^0.6.0", - "babel-plugin-polyfill-regenerator": "^0.4.1", - "core-js-compat": "^3.25.1", - "semver": "^6.3.0" + "node_modules/@babel/plugin-transform-reserved-words": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.25.9.tgz", + "integrity": "sha512-7DL7DKYjn5Su++4RXu8puKZm2XBPHyjWLUidaPEkCUBbE7IPcsrkRHggAOOKydH1dASWdcUBxrkOGNxUv5P3Jg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-shorthand-properties": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.25.9.tgz", + "integrity": "sha512-MUv6t0FhO5qHnS/W8XCbHmiRWOphNufpE1IVxhK5kuN3Td9FT1x4rx4K42s3RYdMXCXpfWkGSbCSd0Z64xA7Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-spread": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.25.9.tgz", + "integrity": "sha512-oNknIB0TbURU5pqJFVbOOFspVlrpVwo2H1+HUIsVDvp5VauGGDP1ZEvO8Nn5xyMEs3dakajOxlmkNW7kNgSm6A==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9", + "@babel/helper-skip-transparent-expression-wrappers": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-sticky-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.25.9.tgz", + "integrity": "sha512-WqBUSgeVwucYDP9U/xNRQam7xV8W5Zf+6Eo7T2SRVUFlhRiMNFdFz58u0KZmCVVqs2i7SHgpRnAhzRNmKfi2uA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-template-literals": { + "version": "7.26.8", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.26.8.tgz", + "integrity": "sha512-OmGDL5/J0CJPJZTHZbi2XpO0tyT2Ia7fzpW5GURwdtp2X3fMmN8au/ej6peC/T33/+CRiIpA8Krse8hFGVmT5Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.26.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typeof-symbol": { + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.0.tgz", + "integrity": "sha512-+LLkxA9rKJpNoGsbLnAgOCdESl73vwYn+V6b+5wHbrE7OGKVDPHIQvbFSzqE6rwqaCw2RE+zdJrlLkcf8YOA0w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.26.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-escapes": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.25.9.tgz", + "integrity": "sha512-s5EDrE6bW97LtxOcGj1Khcx5AaXwiMmi4toFWRDP9/y0Woo6pXC+iyPu/KuhKtfSrNFd7jJB+/fkOtZy6aIC6Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-property-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.25.9.tgz", + "integrity": "sha512-Jt2d8Ga+QwRluxRQ307Vlxa6dMrYEMZCgGxoPR8V52rxPyldHu3hdlHspxaqYmE7oID5+kB+UKUB/eWS+DkkWg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.25.9.tgz", + "integrity": "sha512-yoxstj7Rg9dlNn9UQxzk4fcNivwv4nUYz7fYXBaKxvw/lnmPuOm/ikoELygbYq68Bls3D/D+NBPHiLwZdZZ4HA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-unicode-sets-regex": { + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.25.9.tgz", + "integrity": "sha512-8BYqO3GeVNHtx69fdPshN3fnzUNLrWdHhk/icSwigksJGczKSizZ+Z6SBCxTs723Fr5VSNorTIK7a+R2tISvwQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-create-regexp-features-plugin": "^7.25.9", + "@babel/helper-plugin-utils": "^7.25.9" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/preset-env": { + "version": "7.26.9", + "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.26.9.tgz", + "integrity": "sha512-vX3qPGE8sEKEAZCWk05k3cpTAE3/nOYca++JA+Rd0z2NCNzabmYvEiSShKzm10zdquOIAVXsy2Ei/DTW34KlKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.26.8", + "@babel/helper-compilation-targets": "^7.26.5", + "@babel/helper-plugin-utils": "^7.26.5", + "@babel/helper-validator-option": "^7.25.9", + "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.25.9", + "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.25.9", + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.25.9", + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.25.9", + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.25.9", + "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", + "@babel/plugin-syntax-import-assertions": "^7.26.0", + "@babel/plugin-syntax-import-attributes": "^7.26.0", + "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", + "@babel/plugin-transform-arrow-functions": "^7.25.9", + "@babel/plugin-transform-async-generator-functions": "^7.26.8", + "@babel/plugin-transform-async-to-generator": "^7.25.9", + "@babel/plugin-transform-block-scoped-functions": "^7.26.5", + "@babel/plugin-transform-block-scoping": "^7.25.9", + "@babel/plugin-transform-class-properties": "^7.25.9", + "@babel/plugin-transform-class-static-block": "^7.26.0", + "@babel/plugin-transform-classes": "^7.25.9", + "@babel/plugin-transform-computed-properties": "^7.25.9", + "@babel/plugin-transform-destructuring": "^7.25.9", + "@babel/plugin-transform-dotall-regex": "^7.25.9", + "@babel/plugin-transform-duplicate-keys": "^7.25.9", + "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-dynamic-import": "^7.25.9", + "@babel/plugin-transform-exponentiation-operator": "^7.26.3", + "@babel/plugin-transform-export-namespace-from": "^7.25.9", + "@babel/plugin-transform-for-of": "^7.26.9", + "@babel/plugin-transform-function-name": "^7.25.9", + "@babel/plugin-transform-json-strings": "^7.25.9", + "@babel/plugin-transform-literals": "^7.25.9", + "@babel/plugin-transform-logical-assignment-operators": "^7.25.9", + "@babel/plugin-transform-member-expression-literals": "^7.25.9", + "@babel/plugin-transform-modules-amd": "^7.25.9", + "@babel/plugin-transform-modules-commonjs": "^7.26.3", + "@babel/plugin-transform-modules-systemjs": "^7.25.9", + "@babel/plugin-transform-modules-umd": "^7.25.9", + "@babel/plugin-transform-named-capturing-groups-regex": "^7.25.9", + "@babel/plugin-transform-new-target": "^7.25.9", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.26.6", + "@babel/plugin-transform-numeric-separator": "^7.25.9", + "@babel/plugin-transform-object-rest-spread": "^7.25.9", + "@babel/plugin-transform-object-super": "^7.25.9", + "@babel/plugin-transform-optional-catch-binding": "^7.25.9", + "@babel/plugin-transform-optional-chaining": "^7.25.9", + "@babel/plugin-transform-parameters": "^7.25.9", + "@babel/plugin-transform-private-methods": "^7.25.9", + "@babel/plugin-transform-private-property-in-object": "^7.25.9", + "@babel/plugin-transform-property-literals": "^7.25.9", + "@babel/plugin-transform-regenerator": "^7.25.9", + "@babel/plugin-transform-regexp-modifiers": "^7.26.0", + "@babel/plugin-transform-reserved-words": "^7.25.9", + "@babel/plugin-transform-shorthand-properties": "^7.25.9", + "@babel/plugin-transform-spread": "^7.25.9", + "@babel/plugin-transform-sticky-regex": "^7.25.9", + "@babel/plugin-transform-template-literals": "^7.26.8", + "@babel/plugin-transform-typeof-symbol": "^7.26.7", + "@babel/plugin-transform-unicode-escapes": "^7.25.9", + "@babel/plugin-transform-unicode-property-regex": "^7.25.9", + "@babel/plugin-transform-unicode-regex": "^7.25.9", + "@babel/plugin-transform-unicode-sets-regex": "^7.25.9", + "@babel/preset-modules": "0.1.6-no-external-plugins", + "babel-plugin-polyfill-corejs2": "^0.4.10", + "babel-plugin-polyfill-corejs3": "^0.11.0", + "babel-plugin-polyfill-regenerator": "^0.6.1", + "core-js-compat": "^3.40.0", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -1798,31 +1868,31 @@ } }, "node_modules/@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", + "version": "0.1.6-no-external-plugins", + "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz", + "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", "@babel/types": "^7.4.4", "esutils": "^2.0.2" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, "node_modules/@babel/register": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz", - "integrity": "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==", + "version": "7.25.9", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.25.9.tgz", + "integrity": "sha512-8D43jXtGsYmEeDvm4MWHYUpWf8iiXgWYx3fW7E7Wb7Oe6FWqJPl5K6TuFW0dOwNZzEE5rjlaSJYH9JjrUKJszA==", "dev": true, + "license": "MIT", "dependencies": { "clone-deep": "^4.0.1", "find-cache-dir": "^2.0.0", "make-dir": "^2.1.0", - "pirates": "^4.0.5", + "pirates": "^4.0.6", "source-map-support": "^0.5.16" }, "engines": { @@ -1833,44 +1903,44 @@ } }, "node_modules/@babel/runtime": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz", - "integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.27.0.tgz", + "integrity": "sha512-VtPOkrdPHZsKc/clNqyi9WUA8TINkZ4cGk63UUE3u4pmB2k+ZMQRDuIOagv8UVd6j7k0T3+RRIb7beKTebNbcw==", "dev": true, + "license": "MIT", "dependencies": { - "regenerator-runtime": "^0.13.10" + "regenerator-runtime": "^0.14.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.0.tgz", + "integrity": "sha512-2ncevenBqXI6qRMukPlXwHKHchC7RyMuu4xv5JBXRfOGVcTy1mXCD12qrp7Jsoxll1EV3+9sE4GugBVRjT2jFA==", + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" + "@babel/code-frame": "^7.26.2", + "@babel/parser": "^7.27.0", + "@babel/types": "^7.27.0" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", - "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", - "dependencies": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.1", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.1", - "@babel/types": "^7.20.0", - "debug": "^4.1.0", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.27.0.tgz", + "integrity": "sha512-19lYZFzYVQkkHkl4Cy4WrAVcqBkgvV2YM2TU3xG6DIwO7O3ecbDPfW3yM3bjAGcqcQHi+CCtjMR3dIEHxsd6bA==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.26.2", + "@babel/generator": "^7.27.0", + "@babel/parser": "^7.27.0", + "@babel/template": "^7.27.0", + "@babel/types": "^7.27.0", + "debug": "^4.3.1", "globals": "^11.1.0" }, "engines": { @@ -1878,71 +1948,79 @@ } }, "node_modules/@babel/types": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz", - "integrity": "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.27.0.tgz", + "integrity": "sha512-H45s8fVLYjbhFH62dIJ3WtmJ6RSPt/3DRO0ZcT2SUiYiQyz3BLVb9ADEnLl91m74aQPS3AzzeajZHYOalWe3bg==", + "license": "MIT", "dependencies": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.25.9", + "@babel/helper-validator-identifier": "^7.25.9" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", + "version": "0.3.8", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.8.tgz", + "integrity": "sha512-imAbBGkb+ebQyxKgzv5Hu2nmROxoDOXHh80evxdoXNOrvAnVx7zimzc1Oo5h9RlfV4vPXaE2iM5pOFbvOCClWA==", + "license": "MIT", "dependencies": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" + "@jridgewell/set-array": "^1.2.1", + "@jridgewell/sourcemap-codec": "^1.4.10", + "@jridgewell/trace-mapping": "^0.3.24" }, "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==", + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.2.1.tgz", + "integrity": "sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==", + "license": "MIT", "engines": { "node": ">=6.0.0" } }, "node_modules/@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz", + "integrity": "sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ==", + "license": "MIT" }, "node_modules/@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", + "version": "0.3.25", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz", + "integrity": "sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==", + "license": "MIT", "dependencies": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" } }, "node_modules/@nicolo-ribaudo/chokidar-2": { "version": "2.1.8-no-fsevents.3", "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", + "license": "MIT", "optional": true }, "node_modules/@sinonjs/commons": { - "version": "1.8.4", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.4.tgz", - "integrity": "sha512-RpmQdHVo8hCEHDVpO39zToS9jOhR6nw+/lQAzRNq9ErrGV9IeHM71XCn68svVl/euFeVW6BWX4p35gkhbOcSIQ==", + "version": "1.8.6", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.6.tgz", + "integrity": "sha512-Ky+XkAkqPZSm3NLBeUng77EBQl3cmeJhITaGHdYH8kjVB+aun3S4XBRti2zt17mtt0mIUDiNxYeoJm6drVvBJQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } @@ -1952,6 +2030,7 @@ "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1", "@sinonjs/samsam": "^3.1.0" @@ -1962,6 +2041,7 @@ "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1.3.0", "array-from": "^2.1.1", @@ -1969,22 +2049,25 @@ } }, "node_modules/@sinonjs/text-encoding": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", - "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", - "dev": true + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.3.tgz", + "integrity": "sha512-DE427ROAphMQzU4ENbliGYrBSYPXF+TtLg9S8vzeA+OF4ZKzoDdzfL8sxuMUGS/lgRhM6j1URSk9ghf7Xo1tyA==", + "dev": true, + "license": "(Unlicense OR Apache-2.0)" }, "node_modules/@ungap/promise-all-settled": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/ansi-colors": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1994,26 +2077,33 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", "dependencies": { - "color-convert": "^1.9.0" + "color-convert": "^2.0.1" }, "engines": { - "node": ">=4" + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "devOptional": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -2026,88 +2116,101 @@ "version": "2.0.1", "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true + "dev": true, + "license": "Python-2.0" }, "node_modules/array-from": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/asynckit": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==", + "license": "MIT" }, "node_modules/babel-plugin-polyfill-corejs2": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", - "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", + "version": "0.4.13", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.13.tgz", + "integrity": "sha512-3sX/eOms8kd3q2KZ6DAhKPc0dgm525Gqq5NtWKZ7QYYZEv57OQ54KtblzJzH1lQF/eQxO8KjWGIK9IPUJNus5g==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.3.3", - "semver": "^6.1.1" + "@babel/compat-data": "^7.22.6", + "@babel/helper-define-polyfill-provider": "^0.6.4", + "semver": "^6.3.1" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-corejs3": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", - "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", + "version": "0.11.1", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.11.1.tgz", + "integrity": "sha512-yGCqvBT4rwMczo28xkH/noxJ6MZ4nJfkVYdoDaC/utLtWrXxv27HVrzAeSbqR8SxDsp46n0YF47EbHoixy6rXQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.3.3", - "core-js-compat": "^3.25.1" + "@babel/helper-define-polyfill-provider": "^0.6.3", + "core-js-compat": "^3.40.0" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/babel-plugin-polyfill-regenerator": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", - "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", + "version": "0.6.4", + "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.4.tgz", + "integrity": "sha512-7gD3pRadPrbjhjLyxebmx/WrFYcuSjZ0XbdUujQMZ/fcE9oeewk2U/7PCvez84UeuK3oSjmPZ0Ch0dlupQvGzw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-define-polyfill-provider": "^0.3.3" + "@babel/helper-define-polyfill-provider": "^0.6.4" }, "peerDependencies": { - "@babel/core": "^7.0.0-0" + "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0" } }, "node_modules/balanced-match": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "license": "MIT" }, "node_modules/binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz", + "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "license": "MIT", "dependencies": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "devOptional": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -2117,12 +2220,13 @@ "version": "1.3.1", "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", + "version": "4.24.4", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.24.4.tgz", + "integrity": "sha512-KDi1Ny1gSePi1vm0q4oxSF8b4DR44GF4BbmS2YdhPLOEqd8pDviZOGH/GsmRwoWJ2+5Lr085X7naowMwKHDG1A==", "funding": [ { "type": "opencollective", @@ -2131,13 +2235,18 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" + "caniuse-lite": "^1.0.30001688", + "electron-to-chromium": "^1.5.73", + "node-releases": "^2.0.19", + "update-browserslist-db": "^1.1.1" }, "bin": { "browserslist": "cli.js" @@ -2150,15 +2259,33 @@ "version": "1.1.2", "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true + "dev": true, + "license": "MIT" }, - "node_modules/call-bind": { + "node_modules/call-bind-apply-helpers": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", + "resolved": "https://registry.npmjs.org/call-bind-apply-helpers/-/call-bind-apply-helpers-1.0.2.tgz", + "integrity": "sha512-Sp1ablJ0ivDkSzjcaJdxEunN5/XvksFJ2sMBFfq6x0ryhQV/2b/KwFe21cMpmHtPOSij8K99/wSfoEuTObmuMQ==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/call-bound": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/call-bound/-/call-bound-1.0.4.tgz", + "integrity": "sha512-+ys997U96po4Kx/ABpBCqhA9EuxJaQWDQg7295H4hBphv3IZg0boBKuwYpt4YXp6MZ5AmZQnU/tyMTlRpaSejg==", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" + "call-bind-apply-helpers": "^1.0.2", + "get-intrinsic": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2169,6 +2296,7 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -2177,9 +2305,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001429", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz", - "integrity": "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==", + "version": "1.0.30001715", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001715.tgz", + "integrity": "sha512-7ptkFGMm2OAOgvZpwgA4yjQ5SQbrNVGdRjzH0pBdy1Fasvcr+KAeECmbCAECzTuDuoX0FCY8KzUxjf9+9kfZEw==", "funding": [ { "type": "opencollective", @@ -2188,32 +2316,49 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } - ] + ], + "license": "CC-BY-4.0" }, "node_modules/chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" } }, "node_modules/chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ], + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz", + "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==", + "license": "MIT", "optional": true, "dependencies": { "anymatch": "~3.1.2", @@ -2227,6 +2372,9 @@ "engines": { "node": ">= 8.10.0" }, + "funding": { + "url": "https://paulmillr.com/funding/" + }, "optionalDependencies": { "fsevents": "~2.3.2" } @@ -2236,6 +2384,7 @@ "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^4.2.0", "strip-ansi": "^6.0.0", @@ -2247,6 +2396,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2256,6 +2406,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2265,6 +2416,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -2279,6 +2431,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -2291,6 +2444,7 @@ "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", "dev": true, + "license": "MIT", "dependencies": { "is-plain-object": "^2.0.4", "kind-of": "^6.0.2", @@ -2301,22 +2455,30 @@ } }, "node_modules/color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", "dependencies": { - "color-name": "1.1.3" + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" }, "node_modules/combined-stream": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" }, @@ -2325,9 +2487,10 @@ } }, "node_modules/commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==", + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/commander/-/commander-6.2.1.tgz", + "integrity": "sha512-U7VdrJFnJgo4xjrHpTzu0yrHPGImdsmD95ZlgYSEajAn2JKzDhDTPG9kBTefmObL2w/ngeZnilk+OV9CG3d7UA==", + "license": "MIT", "engines": { "node": ">= 6" } @@ -2336,35 +2499,44 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.1.tgz", + "integrity": "sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "license": "MIT" }, "node_modules/convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", + "license": "MIT" }, "node_modules/cookiejar": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz", - "integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==" + "version": "2.1.4", + "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.4.tgz", + "integrity": "sha512-LDx6oHrK+PhzLKJU9j5S7/Y3jM/mUHvD/DeI1WQmJn652iPC5Y4TBzC9l+5OMOXlyTTA+SmVUPm0HQUwpD5Jqw==", + "license": "MIT" }, "node_modules/core-js-compat": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz", - "integrity": "sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A==", + "version": "3.41.0", + "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.41.0.tgz", + "integrity": "sha512-RFsU9LySVue9RTwdDVX/T0e2Y6jRYWXERKElIjpuEOEnxaXffI0X7RUwVzfYLfzuLXSNJDYoRYUAmRUcyln20A==", "dev": true, + "license": "MIT", "dependencies": { - "browserslist": "^4.21.4" + "browserslist": "^4.24.4" }, "funding": { "type": "opencollective", @@ -2372,11 +2544,12 @@ } }, "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "version": "4.4.0", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.0.tgz", + "integrity": "sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==", + "license": "MIT", "dependencies": { - "ms": "2.1.2" + "ms": "^2.1.3" }, "engines": { "node": ">=6.0" @@ -2392,6 +2565,7 @@ "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -2403,6 +2577,7 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "license": "MIT", "engines": { "node": ">=0.4.0" } @@ -2412,35 +2587,103 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } }, + "node_modules/dunder-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz", + "integrity": "sha512-KIN/nDJBQRcXw0MLVhZE9iQHmG68qAVIBg9CqmUYjmQIhgij9U5MFvrqkUL5FbtyyzZuOeOt0zdeRe4UY7ct+A==", + "license": "MIT", + "dependencies": { + "call-bind-apply-helpers": "^1.0.1", + "es-errors": "^1.3.0", + "gopd": "^1.2.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" + "version": "1.5.143", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.143.tgz", + "integrity": "sha512-QqklJMOFBMqe46k8iIOwA9l2hz57V2OKMmP5eSWcUvwx+mASAsbU+wkF1pHjn9ZVSBPrsYWr4/W/95y5SwYg2g==", + "license": "ISC" }, "node_modules/emoji-regex": { "version": "8.0.0", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/es-define-property": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/es-define-property/-/es-define-property-1.0.1.tgz", + "integrity": "sha512-e3nRfgfUZ4rNGL232gUgX06QNyyez04KdjFrF+LTRoOXmrOgFKDg4BCdsjW8EnT69eqdYGmRpJwiPVYNrCaW3g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-errors": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/es-errors/-/es-errors-1.3.0.tgz", + "integrity": "sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-object-atoms": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/es-object-atoms/-/es-object-atoms-1.1.1.tgz", + "integrity": "sha512-FGgH2h8zKNim9ljj7dankFPcICIK9Cp5bm+c2gQSYePhpaG5+esrLODihIorn+Pe6FGJzWhXQotPv73jTaldXA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0" + }, + "engines": { + "node": ">= 0.4" + } + }, + "node_modules/es-set-tostringtag": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/es-set-tostringtag/-/es-set-tostringtag-2.1.0.tgz", + "integrity": "sha512-j6vWzfrGVfyXxge+O0x5sh6cvxAog0a/4Rdd2K36zCMV5eJ+/+tOAngRO8cODMNWbVRdVlmGZQL2YS3yR8bIUA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.6", + "has-tostringtag": "^1.0.2", + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" + } }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==", + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", + "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", + "dev": true, + "license": "MIT", "engines": { - "node": ">=0.8.0" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, "node_modules/esutils": { @@ -2448,6 +2691,7 @@ "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", "dev": true, + "license": "BSD-2-Clause", "engines": { "node": ">=0.10.0" } @@ -2461,13 +2705,15 @@ "node_modules/fast-safe-stringify": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" + "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", + "license": "MIT" }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "devOptional": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" }, @@ -2480,6 +2726,7 @@ "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", "dev": true, + "license": "MIT", "dependencies": { "commondir": "^1.0.1", "make-dir": "^2.0.0", @@ -2494,6 +2741,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^6.0.0", "path-exists": "^4.0.0" @@ -2510,18 +2758,21 @@ "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", "dev": true, + "license": "BSD-3-Clause", "bin": { "flat": "cli.js" } }, "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.3.tgz", + "integrity": "sha512-q5YBMeWy6E2Un0nMGWMgI65MAKtaylxfNJGJxpGh45YDciZB4epbWpaAfImil6CPAPTYB4sh0URQNDRIZG5F2w==", + "license": "MIT", "dependencies": { "asynckit": "^0.4.0", "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" + "es-set-tostringtag": "^2.1.0", + "mime-types": "^2.1.35" }, "engines": { "node": ">= 6" @@ -2532,6 +2783,7 @@ "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==", "deprecated": "Please upgrade to latest, formidable@v2 or formidable@v3! Check these notes: https://bit.ly/2ZEqIau", + "license": "MIT", "funding": { "url": "https://ko-fi.com/tunnckoCore/commissions" } @@ -2539,18 +2791,21 @@ "node_modules/fs-readdir-recursive": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==" + "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==", + "license": "MIT" }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "license": "ISC" }, "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -2560,14 +2815,19 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } }, "node_modules/gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -2577,27 +2837,54 @@ "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", "dev": true, + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } }, "node_modules/get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz", + "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==", + "license": "MIT", "dependencies": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" + "call-bind-apply-helpers": "^1.0.2", + "es-define-property": "^1.0.1", + "es-errors": "^1.3.0", + "es-object-atoms": "^1.1.1", + "function-bind": "^1.1.2", + "get-proto": "^1.0.1", + "gopd": "^1.2.0", + "has-symbols": "^1.1.0", + "hasown": "^2.0.2", + "math-intrinsics": "^1.1.0" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/get-proto": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/get-proto/-/get-proto-1.0.1.tgz", + "integrity": "sha512-sTSfBjoXBp89JvIKIefqw7U2CCebsc74kiY6awiGogKtoSGbgjYE/G/+l9sF3MWFPNc9IcoOC4ODfKHfxFmp0g==", + "license": "MIT", + "dependencies": { + "dunder-proto": "^1.0.1", + "es-object-atoms": "^1.0.0" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/glob": { "version": "7.2.3", "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -2618,6 +2905,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", "devOptional": true, + "license": "ISC", "dependencies": { "is-glob": "^4.0.1" }, @@ -2629,42 +2917,63 @@ "version": "11.12.0", "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", + "license": "MIT", "engines": { "node": ">=4" } }, + "node_modules/gopd": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/gopd/-/gopd-1.2.0.tgz", + "integrity": "sha512-ZUKRh6/kUFoAiTAtTYPZJ3hw9wNxx+BIBOijnlG9PnrJsCcSjs1wyyD6vJpaYtgnzDrKYRSqf3OO6Rfa93xsRg==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/growl": { "version": "1.10.5", "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", "dev": true, + "license": "MIT", "engines": { "node": ">=4.x" } }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dependencies": { - "function-bind": "^1.1.1" - }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", "engines": { - "node": ">= 0.4.0" + "node": ">=8" } }, - "node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "node_modules/has-symbols": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.1.0.tgz", + "integrity": "sha512-1cDNdwJ2Jaohmb3sg4OmKaMBwuC48sYni5HUw2DvsC8LjGTLK9h+eb1X6RyuOHe4hT0ULCW68iomhjUoKUqlPQ==", + "license": "MIT", "engines": { - "node": ">=4" + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", + "node_modules/has-tostringtag": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/has-tostringtag/-/has-tostringtag-1.0.2.tgz", + "integrity": "sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw==", + "license": "MIT", + "dependencies": { + "has-symbols": "^1.0.3" + }, "engines": { "node": ">= 0.4" }, @@ -2672,11 +2981,24 @@ "url": "https://github.com/sponsors/ljharb" } }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.2" + }, + "engines": { + "node": ">= 0.4" + } + }, "node_modules/he": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", "dev": true, + "license": "MIT", "bin": { "he": "bin/he" } @@ -2685,6 +3007,8 @@ "version": "1.0.6", "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.", + "license": "ISC", "dependencies": { "once": "^1.3.0", "wrappy": "1" @@ -2693,13 +3017,15 @@ "node_modules/inherits": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", + "license": "ISC" }, "node_modules/is-binary-path": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", "devOptional": true, + "license": "MIT", "dependencies": { "binary-extensions": "^2.0.0" }, @@ -2708,12 +3034,16 @@ } }, "node_modules/is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2724,6 +3054,7 @@ "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2733,6 +3064,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -2742,6 +3074,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", "devOptional": true, + "license": "MIT", "dependencies": { "is-extglob": "^2.1.1" }, @@ -2754,6 +3087,7 @@ "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.12.0" } @@ -2763,6 +3097,7 @@ "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -2772,6 +3107,7 @@ "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, + "license": "MIT", "dependencies": { "isobject": "^3.0.1" }, @@ -2783,19 +3119,22 @@ "version": "0.0.1", "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true + "dev": true, + "license": "ISC" }, "node_modules/isobject": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2803,13 +3142,15 @@ "node_modules/js-tokens": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" }, "node_modules/js-yaml": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^2.0.1" }, @@ -2818,20 +3159,22 @@ } }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, "node_modules/json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", "bin": { "json5": "lib/cli.js" }, @@ -2843,13 +3186,15 @@ "version": "4.2.1", "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/kind-of": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -2859,6 +3204,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^5.0.0" }, @@ -2873,19 +3219,22 @@ "version": "4.17.21", "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/log-symbols": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0" }, @@ -2893,97 +3242,27 @@ "node": ">=10" } }, - "node_modules/log-symbols/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "dependencies": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/chalk?sponsor=1" - } - }, - "node_modules/log-symbols/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/log-symbols/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "node_modules/log-symbols/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, - "node_modules/log-symbols/node_modules/supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=8" - } - }, "node_modules/lolex": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", - "dev": true + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "license": "ISC", "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" + "yallist": "^3.0.2" } }, "node_modules/make-dir": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "license": "MIT", "dependencies": { "pify": "^4.0.1", "semver": "^5.6.0" @@ -2993,17 +3272,28 @@ } }, "node_modules/make-dir/node_modules/semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", "bin": { "semver": "bin/semver" } }, + "node_modules/math-intrinsics": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz", + "integrity": "sha512-/IXtbwEk5HTPyEwyKX6hGkYXxM9nbj64B+ilVJnC/R6B0pH5G4V3b0pVbL7DBj4tkhBAppbQUlf6F6Xl9LHu1g==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + } + }, "node_modules/methods": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -3012,6 +3302,7 @@ "version": "2.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==", + "license": "MIT", "bin": { "mime": "cli.js" }, @@ -3023,6 +3314,7 @@ "version": "1.52.0", "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "license": "MIT", "engines": { "node": ">= 0.6" } @@ -3031,6 +3323,7 @@ "version": "2.1.35", "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "license": "MIT", "dependencies": { "mime-db": "1.52.0" }, @@ -3042,6 +3335,7 @@ "version": "3.1.2", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -3054,6 +3348,7 @@ "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz", "integrity": "sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==", "dev": true, + "license": "MIT", "dependencies": { "@ungap/promise-all-settled": "1.1.2", "ansi-colors": "4.1.1", @@ -3098,6 +3393,7 @@ "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", "dev": true, + "license": "MIT", "dependencies": { "anymatch": "~3.1.1", "braces": "~3.0.2", @@ -3119,6 +3415,7 @@ "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "dev": true, + "license": "MIT", "dependencies": { "ms": "2.1.2" }, @@ -3135,25 +3432,16 @@ "version": "2.1.2", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - }, - "node_modules/mocha/node_modules/escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } + "dev": true, + "license": "MIT" }, "node_modules/mocha/node_modules/glob": { "version": "7.1.6", "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", + "deprecated": "Glob versions prior to v9 are no longer supported", "dev": true, + "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", "inflight": "^1.0.4", @@ -3169,20 +3457,12 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/mocha/node_modules/has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true, - "engines": { - "node": ">=8" - } - }, "node_modules/mocha/node_modules/minimatch": { "version": "3.0.4", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, + "license": "ISC", "dependencies": { "brace-expansion": "^1.1.7" }, @@ -3190,17 +3470,12 @@ "node": "*" } }, - "node_modules/mocha/node_modules/ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, "node_modules/mocha/node_modules/readdirp": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", "dev": true, + "license": "MIT", "dependencies": { "picomatch": "^2.2.1" }, @@ -3208,31 +3483,18 @@ "node": ">=8.10.0" } }, - "node_modules/mocha/node_modules/supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "dependencies": { - "has-flag": "^4.0.0" - }, - "engines": { - "node": ">=10" - }, - "funding": { - "url": "https://github.com/chalk/supports-color?sponsor=1" - } - }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" }, "node_modules/nanoid": { "version": "3.1.20", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", "dev": true, + "license": "MIT", "bin": { "nanoid": "bin/nanoid.cjs" }, @@ -3245,6 +3507,7 @@ "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/formatio": "^3.2.1", "@sinonjs/text-encoding": "^0.7.1", @@ -3258,28 +3521,35 @@ "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1.7.0" } }, "node_modules/node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" + "version": "2.0.19", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.19.tgz", + "integrity": "sha512-xxOWJsBKtzAq7DY0J+DTzuz58K8e7sJbdgwkbMWQe8UYB6ekmsQ45q0M/tJDsGaZmbC+l7n57UV8Hl5tHxO9uw==", + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==", + "version": "1.13.4", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.13.4.tgz", + "integrity": "sha512-W67iLl4J2EXEGTbfeHCffrjDfitvLANg0UlX3wFUUSTx92KXRFegMHUVgSqE+wvhAbi4WqjGg9czysTV2Epbew==", + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3288,6 +3558,7 @@ "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "license": "ISC", "dependencies": { "wrappy": "1" } @@ -3297,6 +3568,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { "yocto-queue": "^0.1.0" }, @@ -3312,6 +3584,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^3.0.2" }, @@ -3327,6 +3600,7 @@ "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -3336,6 +3610,7 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -3344,6 +3619,7 @@ "version": "1.0.1", "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -3352,27 +3628,31 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.9.0.tgz", + "integrity": "sha512-xIp7/apCFJuUHdDLWe8O1HIkb0kQrOMb/0u6FXQjemHn/ii5LrIzU6bdECnsiTF/GjZkMEKg1xdiZwNqDYlZ6g==", "dev": true, + "license": "MIT", "dependencies": { "isarray": "0.0.1" } }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "devOptional": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -3384,15 +3664,17 @@ "version": "4.0.1", "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -3402,6 +3684,7 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^3.0.0" }, @@ -3414,6 +3697,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^3.0.0" }, @@ -3426,6 +3710,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^3.0.0", "path-exists": "^3.0.0" @@ -3439,6 +3724,7 @@ "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", "dev": true, + "license": "MIT", "dependencies": { "p-try": "^2.0.0" }, @@ -3454,6 +3740,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.0.0" }, @@ -3466,16 +3753,18 @@ "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", + "version": "6.14.0", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.14.0.tgz", + "integrity": "sha512-YWWTjgABSKcvs/nWBi9PycY/JiPJqOD4JA6o9Sej2AtvSGarXxKC3OQSk4pAarbdQlKAh5D4FCQkJNkW+GAn3w==", + "license": "BSD-3-Clause", "dependencies": { - "side-channel": "^1.0.4" + "side-channel": "^1.1.0" }, "engines": { "node": ">=0.6" @@ -3489,14 +3778,16 @@ "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", "dev": true, + "license": "MIT", "dependencies": { "safe-buffer": "^5.1.0" } }, "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "license": "MIT", "dependencies": { "inherits": "^2.0.3", "string_decoder": "^1.1.1", @@ -3510,6 +3801,7 @@ "version": "3.6.0", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", + "license": "MIT", "optional": true, "dependencies": { "picomatch": "^2.2.1" @@ -3522,13 +3814,15 @@ "version": "1.4.2", "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.0.tgz", + "integrity": "sha512-DqHn3DwbmmPVzeKj9woBadqmXxLvQoQIwu7nopMc72ztvxVmVk2SBhSnx67zuye5TP+lJsb/TBQsjLKhnDf3MA==", "dev": true, + "license": "MIT", "dependencies": { "regenerate": "^1.4.2" }, @@ -3537,62 +3831,71 @@ } }, "node_modules/regenerator-runtime": { - "version": "0.13.10", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz", - "integrity": "sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==", - "dev": true + "version": "0.14.1", + "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz", + "integrity": "sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw==", + "dev": true, + "license": "MIT" }, "node_modules/regenerator-transform": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz", - "integrity": "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==", + "version": "0.15.2", + "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.2.tgz", + "integrity": "sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/runtime": "^7.8.4" } }, "node_modules/regexpu-core": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", - "integrity": "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.2.0.tgz", + "integrity": "sha512-H66BPQMrv+V16t8xtmq+UC0CBpiTBA60V8ibS1QVReIp8T1z8hwFxqcGzm9K6lgsN7sB5edVH8a+ze6Fqm4weA==", "dev": true, + "license": "MIT", "dependencies": { "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsgen": "^0.7.1", - "regjsparser": "^0.9.1", + "regenerate-unicode-properties": "^10.2.0", + "regjsgen": "^0.8.0", + "regjsparser": "^0.12.0", "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" + "unicode-match-property-value-ecmascript": "^2.1.0" }, "engines": { "node": ">=4" } }, "node_modules/regjsgen": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", - "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", - "dev": true + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz", + "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==", + "dev": true, + "license": "MIT" }, "node_modules/regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.12.0.tgz", + "integrity": "sha512-cnE+y8bz4NhMjISKbgeVJtqNbtf5QpjZP+Bslo+UqkIt9QPnX9q095eiRRASJG1/tz6dlNr6Z5NsBiWYokp6EQ==", "dev": true, + "license": "BSD-2-Clause", "dependencies": { - "jsesc": "~0.5.0" + "jsesc": "~3.0.2" }, "bin": { "regjsparser": "bin/parser" } }, "node_modules/regjsparser/node_modules/jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.0.2.tgz", + "integrity": "sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" } }, "node_modules/require-directory": { @@ -3600,23 +3903,28 @@ "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", + "version": "1.22.10", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.10.tgz", + "integrity": "sha512-NPRy+/ncIMeDlTAsuqwKIiferiawhefFJtkNSW0qZJEqMEb+qBt/77B/jGeeek+F0uOeN05CDa6HXbbIgtVX4w==", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.9.0", + "is-core-module": "^2.16.0", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -3638,12 +3946,14 @@ "type": "consulting", "url": "https://feross.org/support" } - ] + ], + "license": "MIT" }, "node_modules/semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" } @@ -3653,6 +3963,7 @@ "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "randombytes": "^2.1.0" } @@ -3662,6 +3973,7 @@ "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", "dev": true, + "license": "MIT", "dependencies": { "kind-of": "^6.0.2" }, @@ -3670,13 +3982,72 @@ } }, "node_modules/side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.1.0.tgz", + "integrity": "sha512-ZX99e6tRweoUXqR+VBrslhda51Nh5MTQwou5tnUDgbtyM0dBgmhEDtWGP/xbKn6hqfPRHujUNwz5fy/wbbhnpw==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3", + "side-channel-list": "^1.0.0", + "side-channel-map": "^1.0.1", + "side-channel-weakmap": "^1.0.2" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-list": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/side-channel-list/-/side-channel-list-1.0.0.tgz", + "integrity": "sha512-FCLHtRD/gnpCiCHEiJLOwdmFP+wzCmDEkc9y7NsYxeF4u7Btsn1ZuwgwJGxImImHicJArLP4R0yX4c2KCrMrTA==", + "license": "MIT", + "dependencies": { + "es-errors": "^1.3.0", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/side-channel-map/-/side-channel-map-1.0.1.tgz", + "integrity": "sha512-VCjCNfgMsby3tTdo02nbjtM/ewra6jPHmpThenkTYh8pG9ucZ/1P8So4u4FGBek/BjpOVsDCMoLA/iuBKIFXRA==", + "license": "MIT", + "dependencies": { + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3" + }, + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/side-channel-weakmap": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/side-channel-weakmap/-/side-channel-weakmap-1.0.2.tgz", + "integrity": "sha512-WPS/HvHQTYnHisLo9McqBHOJk2FkHO/tlpvldyrnem4aeQp4hai3gythswg6p01oSoTl58rcpiFAjF2br2Ak2A==", + "license": "MIT", "dependencies": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" + "call-bound": "^1.0.2", + "es-errors": "^1.3.0", + "get-intrinsic": "^1.2.5", + "object-inspect": "^1.13.3", + "side-channel-map": "^1.0.1" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -3686,7 +4057,9 @@ "version": "7.5.0", "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", + "deprecated": "16.1.1", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@sinonjs/commons": "^1.4.0", "@sinonjs/formatio": "^3.2.1", @@ -3702,14 +4075,39 @@ "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.3.1" } }, + "node_modules/sinon/node_modules/has-flag": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", + "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=4" + } + }, + "node_modules/sinon/node_modules/supports-color": { + "version": "5.5.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", + "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^3.0.0" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/slash": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==", + "license": "MIT", "engines": { "node": ">=6" } @@ -3719,6 +4117,7 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } @@ -3728,6 +4127,7 @@ "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -3737,6 +4137,7 @@ "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "license": "MIT", "dependencies": { "safe-buffer": "~5.2.0" } @@ -3746,6 +4147,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, + "license": "MIT", "dependencies": { "is-fullwidth-code-point": "^2.0.0", "strip-ansi": "^4.0.0" @@ -3759,6 +4161,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^3.0.0" }, @@ -3771,6 +4174,7 @@ "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -3782,7 +4186,8 @@ "version": "5.3.1", "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.3.1.tgz", "integrity": "sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==", - "deprecated": "Please upgrade to v7.0.2+ of superagent. We have fixed numerous issues with streams, form-data, attach(), filesystem errors not bubbling up (ENOENT on attach()), and all tests are now passing. See the releases tab for more information at .", + "deprecated": "Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net", + "license": "MIT", "dependencies": { "component-emitter": "^1.3.0", "cookiejar": "^2.1.2", @@ -3801,12 +4206,10 @@ } }, "node_modules/superagent/node_modules/semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "dependencies": { - "lru-cache": "^6.0.0" - }, + "version": "7.7.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz", + "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==", + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3815,14 +4218,19 @@ } }, "node_modules/supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^3.0.0" + "has-flag": "^4.0.0" }, "engines": { - "node": ">=4" + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" } }, "node_modules/supports-preserve-symlinks-flag": { @@ -3830,6 +4238,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -3837,19 +4246,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==", - "engines": { - "node": ">=4" - } - }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "devOptional": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" }, @@ -3862,15 +4264,17 @@ "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz", + "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3880,6 +4284,7 @@ "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", "dev": true, + "license": "MIT", "dependencies": { "unicode-canonical-property-names-ecmascript": "^2.0.0", "unicode-property-aliases-ecmascript": "^2.0.0" @@ -3889,10 +4294,11 @@ } }, "node_modules/unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.0.tgz", + "integrity": "sha512-4IehN3V/+kkr5YeSSDDQG8QLqO26XpL2XP3GQtqwlT/QYSECAwFztxVHjlbh0+gjJ3XmNLS0zDsbgs9jWKExLg==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -3902,14 +4308,15 @@ "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } }, "node_modules/update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.3.tgz", + "integrity": "sha512-UxhIZQ+QInVdunkDAaiazvvT/+fXL5Osr0JZlJulepYu6Jd7qJtDZjlur0emRlT71EN3ScPoE7gvsuIKKNavKw==", "funding": [ { "type": "opencollective", @@ -3918,14 +4325,19 @@ { "type": "tidelift", "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" } ], + "license": "MIT", "dependencies": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" }, "bin": { - "browserslist-lint": "cli.js" + "update-browserslist-db": "cli.js" }, "peerDependencies": { "browserslist": ">= 4.21.0" @@ -3934,13 +4346,15 @@ "node_modules/util-deprecate": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", + "license": "MIT" }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -3956,6 +4370,7 @@ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, + "license": "ISC", "dependencies": { "string-width": "^1.0.2 || 2" } @@ -3964,13 +4379,15 @@ "version": "6.1.0", "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.0.tgz", "integrity": "sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==", - "dev": true + "dev": true, + "license": "Apache-2.0" }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -3988,48 +4405,17 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/wrap-ansi/node_modules/ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "dependencies": { - "color-convert": "^2.0.1" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/chalk/ansi-styles?sponsor=1" - } - }, - "node_modules/wrap-ansi/node_modules/color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "dependencies": { - "color-name": "~1.1.4" - }, - "engines": { - "node": ">=7.0.0" - } - }, - "node_modules/wrap-ansi/node_modules/color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, "node_modules/wrap-ansi/node_modules/is-fullwidth-code-point": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4039,6 +4425,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -4053,6 +4440,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -4063,27 +4451,31 @@ "node_modules/wrappy": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==", + "license": "ISC" }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } }, "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC" }, "node_modules/yargs": { "version": "16.2.0", "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", "dev": true, + "license": "MIT", "dependencies": { "cliui": "^7.0.2", "escalade": "^3.1.1", @@ -4102,6 +4494,7 @@ "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", "dev": true, + "license": "ISC", "engines": { "node": ">=10" } @@ -4111,6 +4504,7 @@ "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", "dev": true, + "license": "MIT", "dependencies": { "camelcase": "^6.0.0", "decamelize": "^4.0.0", @@ -4126,6 +4520,7 @@ "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4135,6 +4530,7 @@ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4144,6 +4540,7 @@ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", "dev": true, + "license": "MIT", "dependencies": { "emoji-regex": "^8.0.0", "is-fullwidth-code-point": "^3.0.0", @@ -4158,6 +4555,7 @@ "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", "dev": true, + "license": "MIT", "dependencies": { "ansi-regex": "^5.0.1" }, @@ -4170,6 +4568,7 @@ "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -4177,2956 +4576,5 @@ "url": "https://github.com/sponsors/sindresorhus" } } - }, - "dependencies": { - "@ampproject/remapping": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.0.tgz", - "integrity": "sha512-qRmjj8nj9qmLTQXXmaR1cck3UXSRMPrbsLJAasZpF+t3riI71BXed5ebIOYwQntykeZuhjsdweEc9BxH5Jc26w==", - "requires": { - "@jridgewell/gen-mapping": "^0.1.0", - "@jridgewell/trace-mapping": "^0.3.9" - } - }, - "@babel/cli": { - "version": "7.19.3", - "resolved": "https://registry.npmjs.org/@babel/cli/-/cli-7.19.3.tgz", - "integrity": "sha512-643/TybmaCAe101m2tSVHi9UKpETXP9c/Ff4mD2tAwkdP6esKIfaauZFc67vGEM6r9fekbEGid+sZhbEnSe3dg==", - "requires": { - "@jridgewell/trace-mapping": "^0.3.8", - "@nicolo-ribaudo/chokidar-2": "2.1.8-no-fsevents.3", - "chokidar": "^3.4.0", - "commander": "^4.0.1", - "convert-source-map": "^1.1.0", - "fs-readdir-recursive": "^1.1.0", - "glob": "^7.2.0", - "make-dir": "^2.1.0", - "slash": "^2.0.0" - } - }, - "@babel/code-frame": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.18.6.tgz", - "integrity": "sha512-TDCmlK5eOvH+eH7cdAFlNXeVJqWIQ7gW9tY1GJIpUtFb6CmjVyq2VM3u71bOyR8CRihcCgMUYoDNyLXao3+70Q==", - "requires": { - "@babel/highlight": "^7.18.6" - } - }, - "@babel/compat-data": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.20.1.tgz", - "integrity": "sha512-EWZ4mE2diW3QALKvDMiXnbZpRvlj+nayZ112nK93SnhqOtpdsbVD4W+2tEoT3YNBAG9RBR0ISY758ZkOgsn6pQ==" - }, - "@babel/core": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.19.6.tgz", - "integrity": "sha512-D2Ue4KHpc6Ys2+AxpIx1BZ8+UegLLLE2p3KJEuJRKmokHOtl49jQ5ny1773KsGLZs8MQvBidAF6yWUJxRqtKtg==", - "requires": { - "@ampproject/remapping": "^2.1.0", - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.19.6", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helpers": "^7.19.4", - "@babel/parser": "^7.19.6", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.6", - "@babel/types": "^7.19.4", - "convert-source-map": "^1.7.0", - "debug": "^4.1.0", - "gensync": "^1.0.0-beta.2", - "json5": "^2.2.1", - "semver": "^6.3.0" - } - }, - "@babel/generator": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.20.1.tgz", - "integrity": "sha512-u1dMdBUmA7Z0rBB97xh8pIhviK7oItYOkjbsCxTWMknyvbQRBwX7/gn4JXurRdirWMFh+ZtYARqkA6ydogVZpg==", - "requires": { - "@babel/types": "^7.20.0", - "@jridgewell/gen-mapping": "^0.3.2", - "jsesc": "^2.5.1" - }, - "dependencies": { - "@jridgewell/gen-mapping": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.2.tgz", - "integrity": "sha512-mh65xKQAzI6iBcFzwv28KVWSmCkdRBWoOh+bYQGW3+6OZvbbN3TqMGo5hqYxQniRcH9F2VZIoJCm4pa3BPDK/A==", - "requires": { - "@jridgewell/set-array": "^1.0.1", - "@jridgewell/sourcemap-codec": "^1.4.10", - "@jridgewell/trace-mapping": "^0.3.9" - } - } - } - }, - "@babel/helper-annotate-as-pure": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.18.6.tgz", - "integrity": "sha512-duORpUiYrEpzKIop6iNbjnwKLAKnJ47csTyRACyEmWj0QdUrm5aqNJGHSSEQSUAvNW0ojX0dOmK9dZduvkfeXA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-builder-binary-assignment-operator-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.18.9.tgz", - "integrity": "sha512-yFQ0YCHoIqarl8BCRwBL8ulYUaZpz3bNsA7oFepAzee+8/+ImtADXNOmO5vJvsPff3qi+hvpkY/NYBTrBQgdNw==", - "dev": true, - "requires": { - "@babel/helper-explode-assignable-expression": "^7.18.6", - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-compilation-targets": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.20.0.tgz", - "integrity": "sha512-0jp//vDGp9e8hZzBc6N/KwA5ZK3Wsm/pfm4CrY7vzegkVxc65SgSn6wYOnwHe9Js9HRQ1YTCKLGPzDtaS3RoLQ==", - "requires": { - "@babel/compat-data": "^7.20.0", - "@babel/helper-validator-option": "^7.18.6", - "browserslist": "^4.21.3", - "semver": "^6.3.0" - } - }, - "@babel/helper-create-class-features-plugin": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.19.0.tgz", - "integrity": "sha512-NRz8DwF4jT3UfrmUoZjd0Uph9HQnP30t7Ash+weACcyNkiYTywpIjDBgReJMKgr+n86sn2nPVVmJ28Dm053Kqw==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.9", - "@babel/helper-split-export-declaration": "^7.18.6" - } - }, - "@babel/helper-create-regexp-features-plugin": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz", - "integrity": "sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "regexpu-core": "^5.1.0" - } - }, - "@babel/helper-define-polyfill-provider": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.3.3.tgz", - "integrity": "sha512-z5aQKU4IzbqCC1XH0nAqfsFLMVSo22SBKUc0BxGrLkolTdPTructy0ToNnlO2zA4j9Q/7pjMZf0DSY+DSTYzww==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.17.7", - "@babel/helper-plugin-utils": "^7.16.7", - "debug": "^4.1.1", - "lodash.debounce": "^4.0.8", - "resolve": "^1.14.2", - "semver": "^6.1.2" - } - }, - "@babel/helper-environment-visitor": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.18.9.tgz", - "integrity": "sha512-3r/aACDJ3fhQ/EVgFy0hpj8oHyHpQc+LPtJoY9SzTThAsStm4Ptegq92vqKoE3vD706ZVFWITnMnxucw+S9Ipg==" - }, - "@babel/helper-explode-assignable-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-explode-assignable-expression/-/helper-explode-assignable-expression-7.18.6.tgz", - "integrity": "sha512-eyAYAsQmB80jNfg4baAtLeWAQHfHFiR483rzFK+BhETlGZaQC9bsfrugfXDCbRHLQbIA7U5NxhhOxN7p/dWIcg==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-function-name": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.19.0.tgz", - "integrity": "sha512-WAwHBINyrpqywkUH0nTnNgI5ina5TFn85HKS0pbPDfxFfhyR/aNQEn4hGi1P1JyT//I0t4OgXUlofzWILRvS5w==", - "requires": { - "@babel/template": "^7.18.10", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.18.6.tgz", - "integrity": "sha512-UlJQPkFqFULIcyW5sbzgbkxn2FKRgwWiRexcuaR8RNJRy8+LLveqPjwZV/bwrLZCN0eUHD/x8D0heK1ozuoo6Q==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-member-expression-to-functions": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.18.9.tgz", - "integrity": "sha512-RxifAh2ZoVU67PyKIO4AMi1wTenGfMR/O/ae0CCRqwgBAt5v7xjdtRw7UoSbsreKrQn5t7r89eruK/9JjYHuDg==", - "dev": true, - "requires": { - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-module-imports": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.18.6.tgz", - "integrity": "sha512-0NFvs3VkuSYbFi1x2Vd6tKrywq+z/cLeYC/RJNFrIX/30Bf5aiGYbtvGXolEktzJH8o5E5KJ3tT+nkxuuZFVlA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-module-transforms": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.19.6.tgz", - "integrity": "sha512-fCmcfQo/KYr/VXXDIyd3CBGZ6AFhPFy1TfSEJ+PilGVlQT6jcbqtHAM4C1EciRqMza7/TpOUZliuSH+U6HAhJw==", - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-simple-access": "^7.19.4", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/helper-validator-identifier": "^7.19.1", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.6", - "@babel/types": "^7.19.4" - } - }, - "@babel/helper-optimise-call-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.18.6.tgz", - "integrity": "sha512-HP59oD9/fEHQkdcbgFCnbmgH5vIQTJbxh2yf+CdM89/glUNnuzr87Q8GIjGEnOktTROemO0Pe0iPAYbqZuOUiA==", - "dev": true, - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.19.0.tgz", - "integrity": "sha512-40Ryx7I8mT+0gaNxm8JGTZFUITNqdLAgdg0hXzeVZxVD6nFsdhQvip6v8dqkRHzsz1VFpFAaOCHNn0vKBL7Czw==", - "dev": true - }, - "@babel/helper-remap-async-to-generator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.18.9.tgz", - "integrity": "sha512-dI7q50YKd8BAv3VEfgg7PS7yD3Rtbi2J1XMXaalXO0W0164hYLnh8zpjRS0mte9MfVp/tltvr/cfdXPvJr1opA==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-wrap-function": "^7.18.9", - "@babel/types": "^7.18.9" - } - }, - "@babel/helper-replace-supers": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.19.1.tgz", - "integrity": "sha512-T7ahH7wV0Hfs46SFh5Jz3s0B6+o8g3c+7TMxu7xKfmHikg7EAZ3I2Qk9LFhjxXq8sL7UkP5JflezNwoZa8WvWw==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-member-expression-to-functions": "^7.18.9", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/traverse": "^7.19.1", - "@babel/types": "^7.19.0" - } - }, - "@babel/helper-simple-access": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.19.4.tgz", - "integrity": "sha512-f9Xq6WqBFqaDfbCzn2w85hwklswz5qsKlh7f08w4Y9yhJHpnNC0QemtSkK5YyOY8kPGvyiwdzZksGUhnGdaUIg==", - "requires": { - "@babel/types": "^7.19.4" - } - }, - "@babel/helper-skip-transparent-expression-wrappers": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.20.0.tgz", - "integrity": "sha512-5y1JYeNKfvnT8sZcK9DVRtpTbGiomYIHviSP3OQWmDPU3DeH4a1ZlT/N2lyQ5P8egjcRaT/Y9aNqUxK0WsnIIg==", - "dev": true, - "requires": { - "@babel/types": "^7.20.0" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.18.6.tgz", - "integrity": "sha512-bde1etTx6ZyTmobl9LLMMQsaizFVZrquTEHOqKeQESMKo4PlObf+8+JA25ZsIpZhT/WEd39+vOdLXAFG/nELpA==", - "requires": { - "@babel/types": "^7.18.6" - } - }, - "@babel/helper-string-parser": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.19.4.tgz", - "integrity": "sha512-nHtDoQcuqFmwYNYPz3Rah5ph2p8PFeFCsZk9A/48dPc/rGocJ5J3hAAZ7pb76VWX3fZKu+uEr/FhH5jLx7umrw==" - }, - "@babel/helper-validator-identifier": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.19.1.tgz", - "integrity": "sha512-awrNfaMtnHUr653GgGEs++LlAvW6w+DcPrOliSMXWCKo597CwL5Acf/wWdNkf/tfEQE3mjkeD1YOVZOUV/od1w==" - }, - "@babel/helper-validator-option": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.18.6.tgz", - "integrity": "sha512-XO7gESt5ouv/LRJdrVjkShckw6STTaB7l9BrpBaAHDeF5YZT+01PCwmR0SJHnkW6i8OwW/EVWRShfi4j2x+KQw==" - }, - "@babel/helper-wrap-function": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.19.0.tgz", - "integrity": "sha512-txX8aN8CZyYGTwcLhlk87KRqncAzhh5TpQamZUa0/u3an36NtDpUP6bQgBCBcLeBs09R/OwQu3OjK0k/HwfNDg==", - "dev": true, - "requires": { - "@babel/helper-function-name": "^7.19.0", - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.19.0", - "@babel/types": "^7.19.0" - } - }, - "@babel/helpers": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.20.1.tgz", - "integrity": "sha512-J77mUVaDTUJFZ5BpP6mMn6OIl3rEWymk2ZxDBQJUG3P+PbmyMcF3bYWvz0ma69Af1oobDqT/iAsvzhB58xhQUg==", - "requires": { - "@babel/template": "^7.18.10", - "@babel/traverse": "^7.20.1", - "@babel/types": "^7.20.0" - } - }, - "@babel/highlight": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.18.6.tgz", - "integrity": "sha512-u7stbOuYjaPezCuLj29hNW1v64M2Md2qupEKP1fHc7WdOA3DgLh37suiSrZYY7haUB7iBeQZ9P1uiRF359do3g==", - "requires": { - "@babel/helper-validator-identifier": "^7.18.6", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/parser": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.20.1.tgz", - "integrity": "sha512-hp0AYxaZJhxULfM1zyp7Wgr+pSUKBcP3M+PHnSzWGdXOzg/kHWIgiUWARvubhUKGOEw3xqY4x+lyZ9ytBVcELw==" - }, - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.18.6.tgz", - "integrity": "sha512-Dgxsyg54Fx1d4Nge8UnvTrED63vrwOdPmyvPzlNN/boaliRP54pm3pGzZD1SJUwrBA+Cs/xdG8kXX6Mn/RfISQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.18.9.tgz", - "integrity": "sha512-AHrP9jadvH7qlOj6PINbgSuphjQUAK7AOT7DPjBo9EHoLhQTnnK5u45e1Hd4DbSQEO9nqPWtQ89r+XEOWFScKg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", - "@babel/plugin-proposal-optional-chaining": "^7.18.9" - } - }, - "@babel/plugin-proposal-async-generator-functions": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-async-generator-functions/-/plugin-proposal-async-generator-functions-7.20.1.tgz", - "integrity": "sha512-Gh5rchzSwE4kC+o/6T8waD0WHEQIsDmjltY8WnWRXHUdH8axZhuH86Ov9M72YhJfDrZseQwuuWaaIT/TmePp3g==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-remap-async-to-generator": "^7.18.9", - "@babel/plugin-syntax-async-generators": "^7.8.4" - } - }, - "@babel/plugin-proposal-class-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-properties/-/plugin-proposal-class-properties-7.18.6.tgz", - "integrity": "sha512-cumfXOF0+nzZrrN8Rf0t7M+tF6sZc7vhQwYQck9q1/5w2OExlD+b4v4RpMJFaV1Z7WcDRgO6FqvxqxGlwo+RHQ==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-proposal-class-static-block": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-class-static-block/-/plugin-proposal-class-static-block-7.18.6.tgz", - "integrity": "sha512-+I3oIiNxrCpup3Gi8n5IGMwj0gOCAjcJUSQEcotNnCCPMEnixawOQ+KeJPlgfjzx+FKQ1QSyZOWe7wmoJp7vhw==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-class-static-block": "^7.14.5" - } - }, - "@babel/plugin-proposal-decorators": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-decorators/-/plugin-proposal-decorators-7.20.0.tgz", - "integrity": "sha512-vnuRRS20ygSxclEYikHzVrP9nZDFXaSzvJxGLQNAiBX041TmhS4hOUHWNIpq/q4muENuEP9XPJFXTNFejhemkg==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.19.0", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-replace-supers": "^7.19.1", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/plugin-syntax-decorators": "^7.19.0" - } - }, - "@babel/plugin-proposal-do-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-do-expressions/-/plugin-proposal-do-expressions-7.18.6.tgz", - "integrity": "sha512-ddToGCONJhCuL+l4FhtGnKl5ZYCj9fDVFiqiCdQDpeIbVn/NvMeSib+7T1/rk08jRafae4qNiP8OnJyuqlsuYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-do-expressions": "^7.18.6" - } - }, - "@babel/plugin-proposal-dynamic-import": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-dynamic-import/-/plugin-proposal-dynamic-import-7.18.6.tgz", - "integrity": "sha512-1auuwmK+Rz13SJj36R+jqFPMJWyKEDd7lLSdOj4oJK0UTgGueSAtkrCvz9ewmgyU/P941Rv2fQwZJN8s6QruXw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-dynamic-import": "^7.8.3" - } - }, - "@babel/plugin-proposal-export-default-from": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-default-from/-/plugin-proposal-export-default-from-7.18.10.tgz", - "integrity": "sha512-5H2N3R2aQFxkV4PIBUR/i7PUSwgTZjouJKzI8eKswfIjT0PhvzkPn0t0wIS5zn6maQuvtT0t1oHtMUz61LOuow==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-export-default-from": "^7.18.6" - } - }, - "@babel/plugin-proposal-export-namespace-from": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-export-namespace-from/-/plugin-proposal-export-namespace-from-7.18.9.tgz", - "integrity": "sha512-k1NtHyOMvlDDFeb9G5PhUXuGj8m/wiwojgQVEhJ/fsVsMCpLyOP4h0uGEjYJKrRI+EVPlb5Jk+Gt9P97lOGwtA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3" - } - }, - "@babel/plugin-proposal-function-bind": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-bind/-/plugin-proposal-function-bind-7.18.9.tgz", - "integrity": "sha512-9RfxqKkRBCCT0xoBl9AqieCMscJmSAL9HYixGMWH549jUpT9csWWK/HEYZEx9t9iW/PRSXgX95x9bDlgtAJGFA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-function-bind": "^7.18.6" - } - }, - "@babel/plugin-proposal-function-sent": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-function-sent/-/plugin-proposal-function-sent-7.18.6.tgz", - "integrity": "sha512-UdaOKPOLPt0O+Xu26tnw6oAZMLXhk+yMrXOzn6kAzTHBnWHJsoN1hlrgxFAQ+FRLS0ql1oYIQ2phvoFzmN3GMw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-wrap-function": "^7.18.6", - "@babel/plugin-syntax-function-sent": "^7.18.6" - } - }, - "@babel/plugin-proposal-json-strings": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-json-strings/-/plugin-proposal-json-strings-7.18.6.tgz", - "integrity": "sha512-lr1peyn9kOdbYc0xr0OdHTZ5FMqS6Di+H0Fz2I/JwMzGmzJETNeOFq2pBySw6X/KFL5EWDjlJuMsUGRFb8fQgQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-json-strings": "^7.8.3" - } - }, - "@babel/plugin-proposal-logical-assignment-operators": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-logical-assignment-operators/-/plugin-proposal-logical-assignment-operators-7.18.9.tgz", - "integrity": "sha512-128YbMpjCrP35IOExw2Fq+x55LMP42DzhOhX2aNNIdI9avSWl2PI0yuBWarr3RYpZBSPtabfadkH2yeRiMD61Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4" - } - }, - "@babel/plugin-proposal-nullish-coalescing-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-nullish-coalescing-operator/-/plugin-proposal-nullish-coalescing-operator-7.18.6.tgz", - "integrity": "sha512-wQxQzxYeJqHcfppzBDnm1yAY0jSRkUXR2z8RePZYrKwMKgMlE8+Z6LUno+bd6LvbGh8Gltvy74+9pIYkr+XkKA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3" - } - }, - "@babel/plugin-proposal-numeric-separator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-numeric-separator/-/plugin-proposal-numeric-separator-7.18.6.tgz", - "integrity": "sha512-ozlZFogPqoLm8WBr5Z8UckIoE4YQ5KESVcNudyXOR8uqIkliTEgJ3RoketfG6pmzLdeZF0H/wjE9/cCEitBl7Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-numeric-separator": "^7.10.4" - } - }, - "@babel/plugin-proposal-object-rest-spread": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-object-rest-spread/-/plugin-proposal-object-rest-spread-7.19.4.tgz", - "integrity": "sha512-wHmj6LDxVDnL+3WhXteUBaoM1aVILZODAUjg11kHqG4cOlfgMQGxw6aCgvrXrmaJR3Bn14oZhImyCPZzRpC93Q==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.19.4", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-transform-parameters": "^7.18.8" - } - }, - "@babel/plugin-proposal-optional-catch-binding": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-catch-binding/-/plugin-proposal-optional-catch-binding-7.18.6.tgz", - "integrity": "sha512-Q40HEhs9DJQyaZfUjjn6vE8Cv4GmMHCYuMGIWUnlxH6400VGxOuwWsPt4FxXxJkC/5eOzgn0z21M9gMT4MOhbw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3" - } - }, - "@babel/plugin-proposal-optional-chaining": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-optional-chaining/-/plugin-proposal-optional-chaining-7.18.9.tgz", - "integrity": "sha512-v5nwt4IqBXihxGsW2QmCWMDS3B3bzGIk/EQVZz2ei7f3NJl8NzAJVvUmpDW5q1CRNY+Beb/k58UAH1Km1N411w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9", - "@babel/plugin-syntax-optional-chaining": "^7.8.3" - } - }, - "@babel/plugin-proposal-pipeline-operator": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-pipeline-operator/-/plugin-proposal-pipeline-operator-7.18.9.tgz", - "integrity": "sha512-Pc33e6m8f4MJhRXVCUwiKZNtEm+W2CUPHIL0lyJNtkp+w6d75CLw3gsBKQ81VAMUgT9jVPIEU8gwJ5nJgmJ1Ag==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9", - "@babel/plugin-syntax-pipeline-operator": "^7.18.6" - } - }, - "@babel/plugin-proposal-private-methods": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-methods/-/plugin-proposal-private-methods-7.18.6.tgz", - "integrity": "sha512-nutsvktDItsNn4rpGItSNV2sz1XwS+nfU0Rg8aCx3W3NOKVzdMjJRu0O5OkgDp3ZGICSTbgRpxZoWsxoKRvbeA==", - "dev": true, - "requires": { - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-proposal-private-property-in-object": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.18.6.tgz", - "integrity": "sha512-9Rysx7FOctvT5ouj5JODjAFAkgGoudQuLPamZb0v1TGLpapdNaftzifU8NTWQm0IRjqoYypdrSmyWgkocDQ8Dw==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-create-class-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5" - } - }, - "@babel/plugin-proposal-throw-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-throw-expressions/-/plugin-proposal-throw-expressions-7.18.6.tgz", - "integrity": "sha512-WHOrJyhGoGrdtW480L79cF7Iq/gZDZ/z6OqK7mVyFR5I37dTpog/wNgb6hmaM3HYZtULEJl++7VaMWkNZsOcHg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/plugin-syntax-throw-expressions": "^7.18.6" - } - }, - "@babel/plugin-proposal-unicode-property-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-unicode-property-regex/-/plugin-proposal-unicode-property-regex-7.18.6.tgz", - "integrity": "sha512-2BShG/d5yoZyXZfVePH91urL5wTG6ASZU9M4o03lKK8u8UW1y08OMttBSOADTcJrnPMpvDXRG3G8fyLh4ovs8w==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-async-generators": { - "version": "7.8.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", - "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-class-properties": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", - "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.12.13" - } - }, - "@babel/plugin-syntax-class-static-block": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", - "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-decorators": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-decorators/-/plugin-syntax-decorators-7.19.0.tgz", - "integrity": "sha512-xaBZUEDntt4faL1yN8oIFlhfXeQAWJW7CLKYsHTUqriCUbj8xOra8bfxxKGi/UwExPFBuPdH4XfHc9rGQhrVkQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-syntax-do-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-do-expressions/-/plugin-syntax-do-expressions-7.18.6.tgz", - "integrity": "sha512-kTogvOsjBTVOSZtkkziiXB5hwGXqwhq2gBXDaiWVruRLDT7C2GqfbsMnicHJ7ePq2GE8UJeWS34YbNP6yDhwUA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-dynamic-import": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz", - "integrity": "sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-export-default-from": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-default-from/-/plugin-syntax-export-default-from-7.18.6.tgz", - "integrity": "sha512-Kr//z3ujSVNx6E9z9ih5xXXMqK07VVTuqPmqGe6Mss/zW5XPeLZeSDZoP9ab/hT4wPKqAgjl2PnhPrcpk8Seew==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-export-namespace-from": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz", - "integrity": "sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.3" - } - }, - "@babel/plugin-syntax-function-bind": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-bind/-/plugin-syntax-function-bind-7.18.6.tgz", - "integrity": "sha512-wZN0Aq/AScknI9mKGcR3TpHdASMufFGaeJgc1rhPmLtZ/PniwjePSh8cfh8tXMB3U4kh/3cRKrLjDtedejg8jQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-function-sent": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-function-sent/-/plugin-syntax-function-sent-7.18.6.tgz", - "integrity": "sha512-f3OJHIlFIkg+cP1Hfo2SInLhsg0pz2Ikmgo7jMdIIKC+3jVXQlHB0bgSapOWxeWI0SU28qIWmfn5ZKu1yPJHkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-import-assertions": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.20.0.tgz", - "integrity": "sha512-IUh1vakzNoWalR8ch/areW7qFopR2AEw03JlG7BbrDqmQ4X3q9uuipQwSGrUn7oGiemKjtSLDhNtQHzMHr1JdQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-syntax-import-meta": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", - "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-json-strings": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", - "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-logical-assignment-operators": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", - "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-nullish-coalescing-operator": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", - "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-numeric-separator": { - "version": "7.10.4", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", - "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.10.4" - } - }, - "@babel/plugin-syntax-object-rest-spread": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", - "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-catch-binding": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", - "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-optional-chaining": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", - "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.8.0" - } - }, - "@babel/plugin-syntax-pipeline-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-pipeline-operator/-/plugin-syntax-pipeline-operator-7.18.6.tgz", - "integrity": "sha512-pFtIdQomJtkTHWcNsGXhjJ5YUkL+AxJnP4G+Ol85UO6uT2fpHTPYLLE5bBeRA9cxf25qa/VKsJ3Fi67Gyqe3rA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-private-property-in-object": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", - "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-syntax-throw-expressions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-throw-expressions/-/plugin-syntax-throw-expressions-7.18.6.tgz", - "integrity": "sha512-rp1CqEZXGv1z1YZ3qYffBH3rhnOxrTwQG8fh2yqulTurwv9zu3Gthfd+niZBLSOi1rY6146TgF+JmVeDXaX4TQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-syntax-top-level-await": { - "version": "7.14.5", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", - "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.14.5" - } - }, - "@babel/plugin-transform-arrow-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.18.6.tgz", - "integrity": "sha512-9S9X9RUefzrsHZmKMbDXxweEH+YlE8JJEuat9FdvW9Qh1cw7W64jELCtWNkPBPX5En45uy28KGvA/AySqUh8CQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-async-to-generator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.18.6.tgz", - "integrity": "sha512-ARE5wZLKnTgPW7/1ftQmSi1CmkqqHo2DNmtztFhvgtOWSDfq0Cq9/9L+KnZNYSNrydBekhW3rwShduf59RoXag==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-remap-async-to-generator": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoped-functions": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.18.6.tgz", - "integrity": "sha512-ExUcOqpPWnliRcPqves5HJcJOvHvIIWfuS4sroBUenPuMdmW+SMHDakmtS7qOo13sVppmUijqeTv7qqGsvURpQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-block-scoping": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.20.0.tgz", - "integrity": "sha512-sXOohbpHZSk7GjxK9b3dKB7CfqUD5DwOH+DggKzOQ7TXYP+RCSbRykfjQmn/zq+rBjycVRtLf9pYhAaEJA786w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-classes": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.19.0.tgz", - "integrity": "sha512-YfeEE9kCjqTS9IitkgfJuxjcEtLUHMqa8yUJ6zdz8vR7hKuo6mOy2C05P0F1tdMmDCeuyidKnlrw/iTppHcr2A==", - "dev": true, - "requires": { - "@babel/helper-annotate-as-pure": "^7.18.6", - "@babel/helper-compilation-targets": "^7.19.0", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-optimise-call-expression": "^7.18.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-replace-supers": "^7.18.9", - "@babel/helper-split-export-declaration": "^7.18.6", - "globals": "^11.1.0" - } - }, - "@babel/plugin-transform-computed-properties": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.18.9.tgz", - "integrity": "sha512-+i0ZU1bCDymKakLxn5srGHrsAPRELC2WIbzwjLhHW9SIE1cPYkLCL0NlnXMZaM1vhfgA2+M7hySk42VBvrkBRw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-destructuring": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.20.0.tgz", - "integrity": "sha512-1dIhvZfkDVx/zn2S1aFwlruspTt4189j7fEkH0Y0VyuDM6bQt7bD6kLcz3l4IlLG+e5OReaBz9ROAbttRtUHqA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-dotall-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.18.6.tgz", - "integrity": "sha512-6S3jpun1eEbAxq7TdjLotAsl4WpQI9DxfkycRcKrjhQYzU87qpXdknpBg/e+TdcMehqGnLFi7tnFUBR02Vq6wg==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-duplicate-keys": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.18.9.tgz", - "integrity": "sha512-d2bmXCtZXYc59/0SanQKbiWINadaJXqtvIQIzd4+hNwkWBgyCd5F/2t1kXoUdvPMrxzPvhK6EMQRROxsue+mfw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-exponentiation-operator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.18.6.tgz", - "integrity": "sha512-wzEtc0+2c88FVR34aQmiz56dxEkxr2g8DQb/KfaFa1JYXOFVsbhvAonFN6PwVWj++fKmku8NP80plJ5Et4wqHw==", - "dev": true, - "requires": { - "@babel/helper-builder-binary-assignment-operator-visitor": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-for-of": { - "version": "7.18.8", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.18.8.tgz", - "integrity": "sha512-yEfTRnjuskWYo0k1mHUqrVWaZwrdq8AYbfrpqULOJOaucGSp4mNMVps+YtA8byoevxS/urwU75vyhQIxcCgiBQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-function-name": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.18.9.tgz", - "integrity": "sha512-WvIBoRPaJQ5yVHzcnJFor7oS5Ls0PYixlTYE63lCj2RtdQEl15M68FXQlxnG6wdraJIXRdR7KI+hQ7q/9QjrCQ==", - "dev": true, - "requires": { - "@babel/helper-compilation-targets": "^7.18.9", - "@babel/helper-function-name": "^7.18.9", - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.18.9.tgz", - "integrity": "sha512-IFQDSRoTPnrAIrI5zoZv73IFeZu2dhu6irxQjY9rNjTT53VmKg9fenjvoiOWOkJ6mm4jKVPtdMzBY98Fp4Z4cg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-member-expression-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.18.6.tgz", - "integrity": "sha512-qSF1ihLGO3q+/g48k85tUjD033C29TNTVB2paCwZPVmOsjn9pClvYYrM2VeJpBY2bcNkuny0YUyTNRyRxJ54KA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-modules-amd": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.19.6.tgz", - "integrity": "sha512-uG3od2mXvAtIFQIh0xrpLH6r5fpSQN04gIVovl+ODLdUMANokxQLZnPBHcjmv3GxRjnqwLuHvppjjcelqUFZvg==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-modules-commonjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.19.6.tgz", - "integrity": "sha512-8PIa1ym4XRTKuSsOUXqDG0YaOlEuTVvHMe5JCfgBMOtHvJKw/4NGovEGN33viISshG/rZNVrACiBmPQLvWN8xQ==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-simple-access": "^7.19.4" - } - }, - "@babel/plugin-transform-modules-systemjs": { - "version": "7.19.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.19.6.tgz", - "integrity": "sha512-fqGLBepcc3kErfR9R3DnVpURmckXP7gj7bAlrTQyBxrigFqszZCkFkcoxzCp2v32XmwXLvbw+8Yq9/b+QqksjQ==", - "dev": true, - "requires": { - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-module-transforms": "^7.19.6", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-validator-identifier": "^7.19.1" - } - }, - "@babel/plugin-transform-modules-umd": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.18.6.tgz", - "integrity": "sha512-dcegErExVeXcRqNtkRU/z8WlBLnvD4MRnHgNs3MytRO1Mn1sHRyhbcpYbVMGclAqOjdW+9cfkdZno9dFdfKLfQ==", - "dev": true, - "requires": { - "@babel/helper-module-transforms": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-named-capturing-groups-regex": { - "version": "7.19.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.19.1.tgz", - "integrity": "sha512-oWk9l9WItWBQYS4FgXD4Uyy5kq898lvkXpXQxoJEY1RnvPk4R/Dvu2ebXU9q8lP+rlMwUQTFf2Ok6d78ODa0kw==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.19.0", - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-new-target": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.18.6.tgz", - "integrity": "sha512-DjwFA/9Iu3Z+vrAn+8pBUGcjhxKguSMlsFqeCKbhb9BAV756v0krzVK04CRDi/4aqmk8BsHb4a/gFcaA5joXRw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-object-super": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.18.6.tgz", - "integrity": "sha512-uvGz6zk+pZoS1aTZrOvrbj6Pp/kK2mp45t2B+bTDre2UgsZZ8EZLSJtUg7m/no0zOJUWgFONpB7Zv9W2tSaFlA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "@babel/helper-replace-supers": "^7.18.6" - } - }, - "@babel/plugin-transform-parameters": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.20.1.tgz", - "integrity": "sha512-nDvKLrAvl+kf6BOy1UJ3MGwzzfTMgppxwiD2Jb4LO3xjYyZq30oQzDNJbCQpMdG9+j2IXHoiMrw5Cm/L6ZoxXQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0" - } - }, - "@babel/plugin-transform-property-literals": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.18.6.tgz", - "integrity": "sha512-cYcs6qlgafTud3PAzrrRNbQtfpQ8+y/+M5tKmksS9+M1ckbH6kzY8MrexEM9mcA6JDsukE19iIRvAyYl463sMg==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-regenerator": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.18.6.tgz", - "integrity": "sha512-poqRI2+qiSdeldcz4wTSTXBRryoq3Gc70ye7m7UD5Ww0nE29IXqMl6r7Nd15WBgRd74vloEMlShtH6CKxVzfmQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6", - "regenerator-transform": "^0.15.0" - } - }, - "@babel/plugin-transform-reserved-words": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.18.6.tgz", - "integrity": "sha512-oX/4MyMoypzHjFrT1CdivfKZ+XvIPMFXwwxHp/r0Ddy2Vuomt4HDFGmft1TAY2yiTKiNSsh3kjBAzcM8kSdsjA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-shorthand-properties": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.18.6.tgz", - "integrity": "sha512-eCLXXJqv8okzg86ywZJbRn19YJHU4XUa55oz2wbHhaQVn/MM+XhukiT7SYqp/7o00dg52Rj51Ny+Ecw4oyoygw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-spread": { - "version": "7.19.0", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.19.0.tgz", - "integrity": "sha512-RsuMk7j6n+r752EtzyScnWkQyuJdli6LdO5Klv8Yx0OfPVTcQkIUfS8clx5e9yHXzlnhOZF3CbQ8C2uP5j074w==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-skip-transparent-expression-wrappers": "^7.18.9" - } - }, - "@babel/plugin-transform-sticky-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.18.6.tgz", - "integrity": "sha512-kfiDrDQ+PBsQDO85yj1icueWMfGfJFKN1KCkndygtu/C9+XUfydLC8Iv5UYJqRwy4zk8EcplRxEOeLyjq1gm6Q==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/plugin-transform-template-literals": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.18.9.tgz", - "integrity": "sha512-S8cOWfT82gTezpYOiVaGHrCbhlHgKhQt8XH5ES46P2XWmX92yisoZywf5km75wv5sYcXDUCLMmMxOLCtthDgMA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-typeof-symbol": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.18.9.tgz", - "integrity": "sha512-SRfwTtF11G2aemAZWivL7PD+C9z52v9EvMqH9BuYbabyPuKUvSWks3oCg6041pT925L4zVFqaVBeECwsmlguEw==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-unicode-escapes": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.18.10.tgz", - "integrity": "sha512-kKAdAI+YzPgGY/ftStBFXTI1LZFju38rYThnfMykS+IXy8BVx+res7s2fxf1l8I35DV2T97ezo6+SGrXz6B3iQ==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.18.9" - } - }, - "@babel/plugin-transform-unicode-regex": { - "version": "7.18.6", - "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.18.6.tgz", - "integrity": "sha512-gE7A6Lt7YLnNOL3Pb9BNeZvi+d8l7tcRrG4+pwJjK9hD2xX4mEvjlQW60G9EEmfXVYRPv9VRQcyegIVHCql/AA==", - "dev": true, - "requires": { - "@babel/helper-create-regexp-features-plugin": "^7.18.6", - "@babel/helper-plugin-utils": "^7.18.6" - } - }, - "@babel/preset-env": { - "version": "7.19.4", - "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.19.4.tgz", - "integrity": "sha512-5QVOTXUdqTCjQuh2GGtdd7YEhoRXBMVGROAtsBeLGIbIz3obCBIfRMT1I3ZKkMgNzwkyCkftDXSSkHxnfVf4qg==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.19.4", - "@babel/helper-compilation-targets": "^7.19.3", - "@babel/helper-plugin-utils": "^7.19.0", - "@babel/helper-validator-option": "^7.18.6", - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.18.6", - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-async-generator-functions": "^7.19.1", - "@babel/plugin-proposal-class-properties": "^7.18.6", - "@babel/plugin-proposal-class-static-block": "^7.18.6", - "@babel/plugin-proposal-dynamic-import": "^7.18.6", - "@babel/plugin-proposal-export-namespace-from": "^7.18.9", - "@babel/plugin-proposal-json-strings": "^7.18.6", - "@babel/plugin-proposal-logical-assignment-operators": "^7.18.9", - "@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6", - "@babel/plugin-proposal-numeric-separator": "^7.18.6", - "@babel/plugin-proposal-object-rest-spread": "^7.19.4", - "@babel/plugin-proposal-optional-catch-binding": "^7.18.6", - "@babel/plugin-proposal-optional-chaining": "^7.18.9", - "@babel/plugin-proposal-private-methods": "^7.18.6", - "@babel/plugin-proposal-private-property-in-object": "^7.18.6", - "@babel/plugin-proposal-unicode-property-regex": "^7.18.6", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-syntax-class-properties": "^7.12.13", - "@babel/plugin-syntax-class-static-block": "^7.14.5", - "@babel/plugin-syntax-dynamic-import": "^7.8.3", - "@babel/plugin-syntax-export-namespace-from": "^7.8.3", - "@babel/plugin-syntax-import-assertions": "^7.18.6", - "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", - "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.10.4", - "@babel/plugin-syntax-object-rest-spread": "^7.8.3", - "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", - "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-private-property-in-object": "^7.14.5", - "@babel/plugin-syntax-top-level-await": "^7.14.5", - "@babel/plugin-transform-arrow-functions": "^7.18.6", - "@babel/plugin-transform-async-to-generator": "^7.18.6", - "@babel/plugin-transform-block-scoped-functions": "^7.18.6", - "@babel/plugin-transform-block-scoping": "^7.19.4", - "@babel/plugin-transform-classes": "^7.19.0", - "@babel/plugin-transform-computed-properties": "^7.18.9", - "@babel/plugin-transform-destructuring": "^7.19.4", - "@babel/plugin-transform-dotall-regex": "^7.18.6", - "@babel/plugin-transform-duplicate-keys": "^7.18.9", - "@babel/plugin-transform-exponentiation-operator": "^7.18.6", - "@babel/plugin-transform-for-of": "^7.18.8", - "@babel/plugin-transform-function-name": "^7.18.9", - "@babel/plugin-transform-literals": "^7.18.9", - "@babel/plugin-transform-member-expression-literals": "^7.18.6", - "@babel/plugin-transform-modules-amd": "^7.18.6", - "@babel/plugin-transform-modules-commonjs": "^7.18.6", - "@babel/plugin-transform-modules-systemjs": "^7.19.0", - "@babel/plugin-transform-modules-umd": "^7.18.6", - "@babel/plugin-transform-named-capturing-groups-regex": "^7.19.1", - "@babel/plugin-transform-new-target": "^7.18.6", - "@babel/plugin-transform-object-super": "^7.18.6", - "@babel/plugin-transform-parameters": "^7.18.8", - "@babel/plugin-transform-property-literals": "^7.18.6", - "@babel/plugin-transform-regenerator": "^7.18.6", - "@babel/plugin-transform-reserved-words": "^7.18.6", - "@babel/plugin-transform-shorthand-properties": "^7.18.6", - "@babel/plugin-transform-spread": "^7.19.0", - "@babel/plugin-transform-sticky-regex": "^7.18.6", - "@babel/plugin-transform-template-literals": "^7.18.9", - "@babel/plugin-transform-typeof-symbol": "^7.18.9", - "@babel/plugin-transform-unicode-escapes": "^7.18.10", - "@babel/plugin-transform-unicode-regex": "^7.18.6", - "@babel/preset-modules": "^0.1.5", - "@babel/types": "^7.19.4", - "babel-plugin-polyfill-corejs2": "^0.3.3", - "babel-plugin-polyfill-corejs3": "^0.6.0", - "babel-plugin-polyfill-regenerator": "^0.4.1", - "core-js-compat": "^3.25.1", - "semver": "^6.3.0" - } - }, - "@babel/preset-modules": { - "version": "0.1.5", - "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.5.tgz", - "integrity": "sha512-A57th6YRG7oR3cq/yt/Y84MvGgE0eJG2F1JLhKuyG+jFxEgrd/HAMJatiFtmOiZurz+0DkrvbheCLaV5f2JfjA==", - "dev": true, - "requires": { - "@babel/helper-plugin-utils": "^7.0.0", - "@babel/plugin-proposal-unicode-property-regex": "^7.4.4", - "@babel/plugin-transform-dotall-regex": "^7.4.4", - "@babel/types": "^7.4.4", - "esutils": "^2.0.2" - } - }, - "@babel/register": { - "version": "7.18.9", - "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.18.9.tgz", - "integrity": "sha512-ZlbnXDcNYHMR25ITwwNKT88JiaukkdVj/nG7r3wnuXkOTHc60Uy05PwMCPre0hSkY68E6zK3xz+vUJSP2jWmcw==", - "dev": true, - "requires": { - "clone-deep": "^4.0.1", - "find-cache-dir": "^2.0.0", - "make-dir": "^2.1.0", - "pirates": "^4.0.5", - "source-map-support": "^0.5.16" - } - }, - "@babel/runtime": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.20.1.tgz", - "integrity": "sha512-mrzLkl6U9YLF8qpqI7TB82PESyEGjm/0Ly91jG575eVxMMlb8fYfOXFZIJ8XfLrJZQbm7dlKry2bJmXBUEkdFg==", - "dev": true, - "requires": { - "regenerator-runtime": "^0.13.10" - } - }, - "@babel/template": { - "version": "7.18.10", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.18.10.tgz", - "integrity": "sha512-TI+rCtooWHr3QJ27kJxfjutghu44DLnasDMwpDqCXVTal9RLp3RSYNh4NdBrRP2cQAoG9A8juOQl6P6oZG4JxA==", - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/parser": "^7.18.10", - "@babel/types": "^7.18.10" - } - }, - "@babel/traverse": { - "version": "7.20.1", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.20.1.tgz", - "integrity": "sha512-d3tN8fkVJwFLkHkBN479SOsw4DMZnz8cdbL/gvuDuzy3TS6Nfw80HuQqhw1pITbIruHyh7d1fMA47kWzmcUEGA==", - "requires": { - "@babel/code-frame": "^7.18.6", - "@babel/generator": "^7.20.1", - "@babel/helper-environment-visitor": "^7.18.9", - "@babel/helper-function-name": "^7.19.0", - "@babel/helper-hoist-variables": "^7.18.6", - "@babel/helper-split-export-declaration": "^7.18.6", - "@babel/parser": "^7.20.1", - "@babel/types": "^7.20.0", - "debug": "^4.1.0", - "globals": "^11.1.0" - } - }, - "@babel/types": { - "version": "7.20.0", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.20.0.tgz", - "integrity": "sha512-Jlgt3H0TajCW164wkTOTzHkZb075tMQMULzrLUoUeKmO7eFL96GgDxf7/Axhc5CAuKE3KFyVW1p6ysKsi2oXAg==", - "requires": { - "@babel/helper-string-parser": "^7.19.4", - "@babel/helper-validator-identifier": "^7.19.1", - "to-fast-properties": "^2.0.0" - } - }, - "@jridgewell/gen-mapping": { - "version": "0.1.1", - "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.1.1.tgz", - "integrity": "sha512-sQXCasFk+U8lWYEe66WxRDOE9PjVz4vSM51fTu3Hw+ClTpUSQb718772vH3pyS5pShp6lvQM7SxgIDXXXmOX7w==", - "requires": { - "@jridgewell/set-array": "^1.0.0", - "@jridgewell/sourcemap-codec": "^1.4.10" - } - }, - "@jridgewell/resolve-uri": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz", - "integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==" - }, - "@jridgewell/set-array": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz", - "integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==" - }, - "@jridgewell/sourcemap-codec": { - "version": "1.4.14", - "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz", - "integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==" - }, - "@jridgewell/trace-mapping": { - "version": "0.3.17", - "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.17.tgz", - "integrity": "sha512-MCNzAp77qzKca9+W/+I0+sEpaUnZoeasnghNeVc41VZCEKaCH73Vq3BZZ/SzWIgrqE4H4ceI+p+b6C0mHf9T4g==", - "requires": { - "@jridgewell/resolve-uri": "3.1.0", - "@jridgewell/sourcemap-codec": "1.4.14" - } - }, - "@nicolo-ribaudo/chokidar-2": { - "version": "2.1.8-no-fsevents.3", - "resolved": "https://registry.npmjs.org/@nicolo-ribaudo/chokidar-2/-/chokidar-2-2.1.8-no-fsevents.3.tgz", - "integrity": "sha512-s88O1aVtXftvp5bCPB7WnmXc5IwOZZ7YPuwNPt+GtOOXpPvad1LfbmjYv+qII7zP6RU2QGnqve27dnLycEnyEQ==", - "optional": true - }, - "@sinonjs/commons": { - "version": "1.8.4", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.4.tgz", - "integrity": "sha512-RpmQdHVo8hCEHDVpO39zToS9jOhR6nw+/lQAzRNq9ErrGV9IeHM71XCn68svVl/euFeVW6BWX4p35gkhbOcSIQ==", - "dev": true, - "requires": { - "type-detect": "4.0.8" - } - }, - "@sinonjs/formatio": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@sinonjs/formatio/-/formatio-3.2.2.tgz", - "integrity": "sha512-B8SEsgd8gArBLMD6zpRw3juQ2FVSsmdd7qlevyDqzS9WTCtvF55/gAL+h6gue8ZvPYcdiPdvueM/qm//9XzyTQ==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1", - "@sinonjs/samsam": "^3.1.0" - } - }, - "@sinonjs/samsam": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-3.3.3.tgz", - "integrity": "sha512-bKCMKZvWIjYD0BLGnNrxVuw4dkWCYsLqFOUWw8VgKF/+5Y+mE7LfHWPIYoDXowH+3a9LsWDMo0uAP8YDosPvHQ==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1.3.0", - "array-from": "^2.1.1", - "lodash": "^4.17.15" - } - }, - "@sinonjs/text-encoding": { - "version": "0.7.2", - "resolved": "https://registry.npmjs.org/@sinonjs/text-encoding/-/text-encoding-0.7.2.tgz", - "integrity": "sha512-sXXKG+uL9IrKqViTtao2Ws6dy0znu9sOaP1di/jKGW1M6VssO8vlpXCQcpZ+jisQ1tTFAC5Jo/EOzFbggBagFQ==", - "dev": true - }, - "@ungap/promise-all-settled": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@ungap/promise-all-settled/-/promise-all-settled-1.1.2.tgz", - "integrity": "sha512-sL/cEvJWAnClXw0wHk85/2L0G6Sj8UB0Ctc1TEMbKSsmpRosqhwj9gWgFRZSrBr2f9tiXISwNhCPmlfqUqyb9Q==", - "dev": true - }, - "ansi-colors": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.1.tgz", - "integrity": "sha512-JoX0apGbHaUJBNl6yF+p6JAFYZ666/hhCGKN5t9QFjbJQKUU/g8MNbFDbvfrgKXvI1QpZplPOnwIo99lX/AAmA==", - "dev": true - }, - "ansi-regex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz", - "integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==", - "dev": true - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "requires": { - "color-convert": "^1.9.0" - } - }, - "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", - "devOptional": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "dev": true - }, - "array-from": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/array-from/-/array-from-2.1.1.tgz", - "integrity": "sha512-GQTc6Uupx1FCavi5mPzBvVT7nEOeWMmUA9P95wpfpW1XwMSKs+KaymD5C2Up7KAUKg/mYwbsUYzdZWcoajlNZg==", - "dev": true - }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" - }, - "babel-plugin-polyfill-corejs2": { - "version": "0.3.3", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.3.3.tgz", - "integrity": "sha512-8hOdmFYFSZhqg2C/JgLUQ+t52o5nirNwaWM2B9LWteozwIvM14VSwdsCAUET10qT+kmySAlseadmfeeSWFCy+Q==", - "dev": true, - "requires": { - "@babel/compat-data": "^7.17.7", - "@babel/helper-define-polyfill-provider": "^0.3.3", - "semver": "^6.1.1" - } - }, - "babel-plugin-polyfill-corejs3": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.6.0.tgz", - "integrity": "sha512-+eHqR6OPcBhJOGgsIar7xoAB1GcSwVUA3XjAd7HJNzOXT4wv6/H7KIdA/Nc60cvUlDbKApmqNvD1B1bzOt4nyA==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.3.3", - "core-js-compat": "^3.25.1" - } - }, - "babel-plugin-polyfill-regenerator": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.4.1.tgz", - "integrity": "sha512-NtQGmyQDXjQqQ+IzRkBVwEOz9lQ4zxAQZgoAYEtU9dJjnl1Oc98qnN7jcp+bE7O7aYzVpavXE3/VKXNzUbh7aw==", - "dev": true, - "requires": { - "@babel/helper-define-polyfill-provider": "^0.3.3" - } - }, - "balanced-match": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", - "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "devOptional": true - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "devOptional": true, - "requires": { - "fill-range": "^7.0.1" - } - }, - "browser-stdout": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/browser-stdout/-/browser-stdout-1.3.1.tgz", - "integrity": "sha512-qhAVI1+Av2X7qelOfAIYwXONood6XlZE/fXaBSmW/T5SzLAmCgzi+eiWE7fUvbHaeNBQH13UftjpXxsfLkMpgw==", - "dev": true - }, - "browserslist": { - "version": "4.21.4", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.4.tgz", - "integrity": "sha512-CBHJJdDmgjl3daYjN5Cp5kbTf1mUhZoS+beLklHIvkOWscs83YAhLlF3Wsh/lciQYAcbBJgTOD44VtG31ZM4Hw==", - "requires": { - "caniuse-lite": "^1.0.30001400", - "electron-to-chromium": "^1.4.251", - "node-releases": "^2.0.6", - "update-browserslist-db": "^1.0.9" - } - }, - "buffer-from": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", - "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", - "dev": true - }, - "call-bind": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", - "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", - "requires": { - "function-bind": "^1.1.1", - "get-intrinsic": "^1.0.2" - } - }, - "camelcase": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", - "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", - "dev": true - }, - "caniuse-lite": { - "version": "1.0.30001429", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001429.tgz", - "integrity": "sha512-511ThLu1hF+5RRRt0zYCf2U2yRr9GPF6m5y90SBCWsvSoYoW7yAGlv/elyPaNfvGCkp6kj/KFZWU0BMA69Prsg==" - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "chokidar": { - "version": "3.5.3", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz", - "integrity": "sha512-Dr3sfKRP6oTcjf2JmUmFJfeVMvXBdegxB0iVQ5eb2V10uFJUCAS8OByZdVAyVb8xXNz3GjjTgj9kLWsZTqE6kw==", - "optional": true, - "requires": { - "anymatch": "~3.1.2", - "braces": "~3.0.2", - "fsevents": "~2.3.2", - "glob-parent": "~5.1.2", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.6.0" - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "clone-deep": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", - "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", - "dev": true, - "requires": { - "is-plain-object": "^2.0.4", - "kind-of": "^6.0.2", - "shallow-clone": "^3.0.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw==" - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "requires": { - "delayed-stream": "~1.0.0" - } - }, - "commander": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz", - "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==" - }, - "commondir": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", - "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", - "dev": true - }, - "component-emitter": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/component-emitter/-/component-emitter-1.3.0.tgz", - "integrity": "sha512-Rd3se6QB+sO1TwqZjscQrurpEPIfO0/yYnSin6Q/rD3mOutHvUrCAhJub3r90uNb+SESBuE0QYoB90YdfatsRg==" - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==" - }, - "convert-source-map": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.9.0.tgz", - "integrity": "sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A==" - }, - "cookiejar": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/cookiejar/-/cookiejar-2.1.3.tgz", - "integrity": "sha512-JxbCBUdrfr6AQjOXrxoTvAMJO4HBTUIlBzslcJPAz+/KT8yk53fXun51u+RenNYvad/+Vc2DIz5o9UxlCDymFQ==" - }, - "core-js-compat": { - "version": "3.26.0", - "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.26.0.tgz", - "integrity": "sha512-piOX9Go+Z4f9ZiBFLnZ5VrOpBl0h7IGCkiFUN11QTe6LjAvOT3ifL/5TdoizMh99hcGy5SoLyWbapIY/PIb/3A==", - "dev": true, - "requires": { - "browserslist": "^4.21.4" - } - }, - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decamelize": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-4.0.0.tgz", - "integrity": "sha512-9iE1PgSik9HeIIw2JO94IidnE3eBoQrFJ3w7sFuzSX4DpmZ3v5sZpUiV5Swcf6mQEF+Y0ru8Neo+p+nyh2J+hQ==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" - }, - "diff": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-5.0.0.tgz", - "integrity": "sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w==", - "dev": true - }, - "electron-to-chromium": { - "version": "1.4.284", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.284.tgz", - "integrity": "sha512-M8WEXFuKXMYMVr45fo8mq0wUrrJHheiKZf6BArTKk9ZBYCKJEOU5H8cdWgDT+qCVZf7Na4lVUaZsA+h6uA9+PA==" - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==" - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "expect.js": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/expect.js/-/expect.js-0.3.1.tgz", - "integrity": "sha512-okDF/FAPEul1ZFLae4hrgpIqAeapoo5TRdcg/lD0iN9S3GWrBFIJwNezGH1DMtIz+RxU4RrFmMq7WUUvDg3J6A==", - "dev": true - }, - "fast-safe-stringify": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", - "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==" - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "devOptional": true, - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-cache-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", - "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", - "dev": true, - "requires": { - "commondir": "^1.0.1", - "make-dir": "^2.0.0", - "pkg-dir": "^3.0.0" - } - }, - "find-up": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz", - "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==", - "dev": true, - "requires": { - "locate-path": "^6.0.0", - "path-exists": "^4.0.0" - } - }, - "flat": { - "version": "5.0.2", - "resolved": "https://registry.npmjs.org/flat/-/flat-5.0.2.tgz", - "integrity": "sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==", - "dev": true - }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "formidable": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/formidable/-/formidable-1.2.6.tgz", - "integrity": "sha512-KcpbcpuLNOwrEjnbpMC0gS+X8ciDoZE1kkqzat4a8vrprf+s9pKNQ/QIwWfbfs4ltgmFl3MD177SNTkve3BwGQ==" - }, - "fs-readdir-recursive": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/fs-readdir-recursive/-/fs-readdir-recursive-1.1.0.tgz", - "integrity": "sha512-GNanXlVr2pf02+sPN40XN8HG+ePaNcvM0q5mZBd668Obwb0yD5GiUbZOFgwn8kGMY6I3mdyDJzieUy3PTYyTRA==" - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==" - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" - }, - "gensync": { - "version": "1.0.0-beta.2", - "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", - "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==" - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-intrinsic": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz", - "integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==", - "requires": { - "function-bind": "^1.1.1", - "has": "^1.0.3", - "has-symbols": "^1.0.3" - } - }, - "glob": { - "version": "7.2.3", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", - "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.1.1", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "devOptional": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==" - }, - "growl": { - "version": "1.10.5", - "resolved": "https://registry.npmjs.org/growl/-/growl-1.10.5.tgz", - "integrity": "sha512-qBr4OuELkhPenW6goKVXiv47US3clb3/IbuWF9KNKEijAy9oeHxU9IgzjvJhHkUzhaj7rOUD7+YGWqUjLp5oSA==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw==" - }, - "has-symbols": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", - "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" - }, - "he": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/he/-/he-1.2.0.tgz", - "integrity": "sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "devOptional": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-core-module": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", - "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==", - "devOptional": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w==", - "dev": true - }, - "is-glob": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz", - "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==", - "devOptional": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "devOptional": true - }, - "is-plain-obj": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-2.1.0.tgz", - "integrity": "sha512-YWnfyRwxL/+SsrWYfOpUtz5b3YD+nyfkHvjbcanzk8zgyO4ASD67uVMRt8k5bM4lLMDnXfriRhOpemw+NfT1eA==", - "dev": true - }, - "is-plain-object": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", - "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", - "dev": true, - "requires": { - "isobject": "^3.0.1" - } - }, - "isarray": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", - "integrity": "sha512-D2S+3GLxWH+uhrNEcoh/fnmYeP8E8/zHl644d/jdA0g2uyXvy3sb0qxotE+ne0LtccHknQzWwZEzhak7oJ0COQ==", - "dev": true - }, - "isexe": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", - "dev": true - }, - "isobject": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", - "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" - }, - "js-yaml": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.0.0.tgz", - "integrity": "sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==", - "dev": true, - "requires": { - "argparse": "^2.0.1" - } - }, - "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==" - }, - "json5": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz", - "integrity": "sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA==" - }, - "just-extend": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/just-extend/-/just-extend-4.2.1.tgz", - "integrity": "sha512-g3UB796vUFIY90VIv/WX3L2c8CS2MdWUww3CNrYmqza1Fg0DURc2K/O4YrnklBdQarSJ/y8JnJYDGc+1iumQjg==", - "dev": true - }, - "kind-of": { - "version": "6.0.3", - "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", - "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", - "dev": true - }, - "locate-path": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz", - "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==", - "dev": true, - "requires": { - "p-locate": "^5.0.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "lodash.debounce": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", - "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==", - "dev": true - }, - "log-symbols": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.0.0.tgz", - "integrity": "sha512-FN8JBzLx6CzeMrB0tg6pqlGU1wCrXW+ZXGH481kfsBqer0hToTIiHdjH4Mq8xJUbvATujKCvaREGWpGUionraA==", - "dev": true, - "requires": { - "chalk": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "chalk": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", - "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "lolex": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-4.2.0.tgz", - "integrity": "sha512-gKO5uExCXvSm6zbF562EvM+rd1kQDnB9AZBbiQVzf1ZmdDpxUSvpnAaVOP83N/31mRK8Ml8/VE8DMvsAZQ+7wg==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", - "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", - "requires": { - "pify": "^4.0.1", - "semver": "^5.6.0" - }, - "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==" - } - } - }, - "methods": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/methods/-/methods-1.1.2.tgz", - "integrity": "sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w==" - }, - "mime": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/mime/-/mime-2.6.0.tgz", - "integrity": "sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg==" - }, - "mime-db": { - "version": "1.52.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", - "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" - }, - "mime-types": { - "version": "2.1.35", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", - "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", - "requires": { - "mime-db": "1.52.0" - } - }, - "minimatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", - "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "mocha": { - "version": "8.4.0", - "resolved": "https://registry.npmjs.org/mocha/-/mocha-8.4.0.tgz", - "integrity": "sha512-hJaO0mwDXmZS4ghXsvPVriOhsxQ7ofcpQdm8dE+jISUOKopitvnXFQmpRR7jd2K6VBG6E26gU3IAbXXGIbu4sQ==", - "dev": true, - "requires": { - "@ungap/promise-all-settled": "1.1.2", - "ansi-colors": "4.1.1", - "browser-stdout": "1.3.1", - "chokidar": "3.5.1", - "debug": "4.3.1", - "diff": "5.0.0", - "escape-string-regexp": "4.0.0", - "find-up": "5.0.0", - "glob": "7.1.6", - "growl": "1.10.5", - "he": "1.2.0", - "js-yaml": "4.0.0", - "log-symbols": "4.0.0", - "minimatch": "3.0.4", - "ms": "2.1.3", - "nanoid": "3.1.20", - "serialize-javascript": "5.0.1", - "strip-json-comments": "3.1.1", - "supports-color": "8.1.1", - "which": "2.0.2", - "wide-align": "1.1.3", - "workerpool": "6.1.0", - "yargs": "16.2.0", - "yargs-parser": "20.2.4", - "yargs-unparser": "2.0.0" - }, - "dependencies": { - "chokidar": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", - "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", - "dev": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.3.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.5.0" - } - }, - "debug": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", - "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", - "dev": true, - "requires": { - "ms": "2.1.2" - }, - "dependencies": { - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true - } - } - }, - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - }, - "readdirp": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", - "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "supports-color": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", - "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" - } - } - } - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "nanoid": { - "version": "3.1.20", - "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.1.20.tgz", - "integrity": "sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==", - "dev": true - }, - "nise": { - "version": "1.5.3", - "resolved": "https://registry.npmjs.org/nise/-/nise-1.5.3.tgz", - "integrity": "sha512-Ymbac/94xeIrMf59REBPOv0thr+CJVFMhrlAkW/gjCIE58BGQdCj0x7KRCb3yz+Ga2Rz3E9XXSvUyyxqqhjQAQ==", - "dev": true, - "requires": { - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/text-encoding": "^0.7.1", - "just-extend": "^4.0.2", - "lolex": "^5.0.1", - "path-to-regexp": "^1.7.0" - }, - "dependencies": { - "lolex": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/lolex/-/lolex-5.1.2.tgz", - "integrity": "sha512-h4hmjAvHTmd+25JSwrtTIuwbKdwg5NzZVRMLn9saij4SZaepCrTCxPr35H/3bjwfMJtN+t3CX8672UIkglz28A==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1.7.0" - } - } - } - }, - "node-releases": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.6.tgz", - "integrity": "sha512-PiVXnNuFm5+iYkLBNeq5211hvO38y63T0i2KKh2KnUs3RpzJ+JtODFjkD8yjLwnDkTYF1eKXheUwdssR+NRZdg==" - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "devOptional": true - }, - "object-inspect": { - "version": "1.12.2", - "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.2.tgz", - "integrity": "sha512-z+cPxW0QGUp0mcqcsgQyLVRDoXFQbXOwBaqyF7VIgI4TWNQsDHrBpUQslRmIfAoYWdYzs6UlKJtB2XJpTaNSpQ==" - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", - "requires": { - "wrappy": "1" - } - }, - "p-limit": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", - "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", - "dev": true, - "requires": { - "yocto-queue": "^0.1.0" - } - }, - "p-locate": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz", - "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==", - "dev": true, - "requires": { - "p-limit": "^3.0.2" - } - }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==" - }, - "path-parse": { - "version": "1.0.7", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", - "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true - }, - "path-to-regexp": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/path-to-regexp/-/path-to-regexp-1.8.0.tgz", - "integrity": "sha512-n43JRhlUKUAlibEJhPeir1ncUID16QnEjNpwzNdO3Lm4ywrBpBZ5oLD0I6br9evr1Y9JTqwRtAh7JLoOzAQdVA==", - "dev": true, - "requires": { - "isarray": "0.0.1" - } - }, - "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==" - }, - "picomatch": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", - "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", - "devOptional": true - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==" - }, - "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", - "dev": true - }, - "pkg-dir": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", - "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", - "dev": true, - "requires": { - "find-up": "^3.0.0" - }, - "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", - "dev": true - } - } - }, - "qs": { - "version": "6.11.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", - "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", - "requires": { - "side-channel": "^1.0.4" - } - }, - "randombytes": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", - "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", - "dev": true, - "requires": { - "safe-buffer": "^5.1.0" - } - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdirp": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz", - "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==", - "optional": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "regenerate": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz", - "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==", - "dev": true - }, - "regenerate-unicode-properties": { - "version": "10.1.0", - "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.0.tgz", - "integrity": "sha512-d1VudCLoIGitcU/hEg2QqvyGZQmdC0Lf8BqdOMXGFSvJP4bNV1+XqbPQeHHLD51Jh4QJJ225dlIFvY4Ly6MXmQ==", - "dev": true, - "requires": { - "regenerate": "^1.4.2" - } - }, - "regenerator-runtime": { - "version": "0.13.10", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz", - "integrity": "sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw==", - "dev": true - }, - "regenerator-transform": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/regenerator-transform/-/regenerator-transform-0.15.0.tgz", - "integrity": "sha512-LsrGtPmbYg19bcPHwdtmXwbW+TqNvtY4riE3P83foeHRroMbH6/2ddFBfab3t7kbzc7v7p4wbkIecHImqt0QNg==", - "dev": true, - "requires": { - "@babel/runtime": "^7.8.4" - } - }, - "regexpu-core": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-5.2.1.tgz", - "integrity": "sha512-HrnlNtpvqP1Xkb28tMhBUO2EbyUHdQlsnlAhzWcwHy8WJR53UWr7/MAvqrsQKMbV4qdpv03oTMG8iIhfsPFktQ==", - "dev": true, - "requires": { - "regenerate": "^1.4.2", - "regenerate-unicode-properties": "^10.1.0", - "regjsgen": "^0.7.1", - "regjsparser": "^0.9.1", - "unicode-match-property-ecmascript": "^2.0.0", - "unicode-match-property-value-ecmascript": "^2.0.0" - } - }, - "regjsgen": { - "version": "0.7.1", - "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.7.1.tgz", - "integrity": "sha512-RAt+8H2ZEzHeYWxZ3H2z6tF18zyyOnlcdaafLrm21Bguj7uZy6ULibiAFdXEtKQY4Sy7wDTwDiOazasMLc4KPA==", - "dev": true - }, - "regjsparser": { - "version": "0.9.1", - "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.9.1.tgz", - "integrity": "sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ==", - "dev": true, - "requires": { - "jsesc": "~0.5.0" - }, - "dependencies": { - "jsesc": { - "version": "0.5.0", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-0.5.0.tgz", - "integrity": "sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==", - "dev": true - } - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", - "dev": true - }, - "resolve": { - "version": "1.22.1", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", - "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", - "dev": true, - "requires": { - "is-core-module": "^2.9.0", - "path-parse": "^1.0.7", - "supports-preserve-symlinks-flag": "^1.0.0" - } - }, - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==" - }, - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==" - }, - "serialize-javascript": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-5.0.1.tgz", - "integrity": "sha512-SaaNal9imEO737H2c05Og0/8LUXG7EnsZyMa8MzkmuHoELfT6txuj0cMqRj6zfPKnmQ1yasR4PCJc8x+M4JSPA==", - "dev": true, - "requires": { - "randombytes": "^2.1.0" - } - }, - "shallow-clone": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", - "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", - "dev": true, - "requires": { - "kind-of": "^6.0.2" - } - }, - "side-channel": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", - "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", - "requires": { - "call-bind": "^1.0.0", - "get-intrinsic": "^1.0.2", - "object-inspect": "^1.9.0" - } - }, - "sinon": { - "version": "7.5.0", - "resolved": "https://registry.npmjs.org/sinon/-/sinon-7.5.0.tgz", - "integrity": "sha512-AoD0oJWerp0/rY9czP/D6hDTTUYGpObhZjMpd7Cl/A6+j0xBE+ayL/ldfggkBXUs0IkvIiM1ljM8+WkOc5k78Q==", - "dev": true, - "requires": { - "@sinonjs/commons": "^1.4.0", - "@sinonjs/formatio": "^3.2.1", - "@sinonjs/samsam": "^3.3.3", - "diff": "^3.5.0", - "lolex": "^4.2.0", - "nise": "^1.5.2", - "supports-color": "^5.5.0" - }, - "dependencies": { - "diff": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/diff/-/diff-3.5.0.tgz", - "integrity": "sha512-A46qtFgd+g7pDZinpnwiRJtxbC1hpgf0uzP3iG89scHk0AUC7A1TGxf5OiiOUv/JMZR8GOt8hL900hV0bOy5xA==", - "dev": true - } - } - }, - "slash": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-2.0.0.tgz", - "integrity": "sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A==" - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "requires": { - "safe-buffer": "~5.2.0" - } - }, - "string-width": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz", - "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", - "dev": true, - "requires": { - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^4.0.0" - } - }, - "strip-ansi": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz", - "integrity": "sha512-4XaJ2zQdCzROZDivEVIDPkcQn8LMFSa8kj8Gxb/Lnwzv9A8VctNZ+lfivC/sV3ivW8ElJTERXZoPBRrZKkNKow==", - "dev": true, - "requires": { - "ansi-regex": "^3.0.0" - } - }, - "strip-json-comments": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", - "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", - "dev": true - }, - "superagent": { - "version": "5.3.1", - "resolved": "https://registry.npmjs.org/superagent/-/superagent-5.3.1.tgz", - "integrity": "sha512-wjJ/MoTid2/RuGCOFtlacyGNxN9QLMgcpYLDQlWFIhhdJ93kNscFonGvrpAHSCVjRVj++DGCglocF7Aej1KHvQ==", - "requires": { - "component-emitter": "^1.3.0", - "cookiejar": "^2.1.2", - "debug": "^4.1.1", - "fast-safe-stringify": "^2.0.7", - "form-data": "^3.0.0", - "formidable": "^1.2.2", - "methods": "^1.1.2", - "mime": "^2.4.6", - "qs": "^6.9.4", - "readable-stream": "^3.6.0", - "semver": "^7.3.2" - }, - "dependencies": { - "semver": { - "version": "7.3.8", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.8.tgz", - "integrity": "sha512-NB1ctGL5rlHrPJtFDVIVzTyQylMLu9N9VICA6HSFJo8MCGVTMW6gfpicwKmmK/dAjTOrqu5l63JJOpDSrAis3A==", - "requires": { - "lru-cache": "^6.0.0" - } - } - } - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "requires": { - "has-flag": "^3.0.0" - } - }, - "supports-preserve-symlinks-flag": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", - "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog==" - }, - "to-regex-range": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", - "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "devOptional": true, - "requires": { - "is-number": "^7.0.0" - } - }, - "type-detect": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", - "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", - "dev": true - }, - "unicode-canonical-property-names-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz", - "integrity": "sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ==", - "dev": true - }, - "unicode-match-property-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz", - "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==", - "dev": true, - "requires": { - "unicode-canonical-property-names-ecmascript": "^2.0.0", - "unicode-property-aliases-ecmascript": "^2.0.0" - } - }, - "unicode-match-property-value-ecmascript": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.0.0.tgz", - "integrity": "sha512-7Yhkc0Ye+t4PNYzOGKedDhXbYIBe1XEQYQxOPyhcXNMJ0WCABqqj6ckydd6pWRZTHV4GuCPKdBAUiMc60tsKVw==", - "dev": true - }, - "unicode-property-aliases-ecmascript": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz", - "integrity": "sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w==", - "dev": true - }, - "update-browserslist-db": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.0.10.tgz", - "integrity": "sha512-OztqDenkfFkbSG+tRxBeAnCVPckDBcvibKd35yDONx6OU8N7sqgwc7rCbkJ/WcYtVRZ4ba68d6byhC21GFh7sQ==", - "requires": { - "escalade": "^3.1.1", - "picocolors": "^1.0.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" - }, - "which": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", - "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", - "dev": true, - "requires": { - "isexe": "^2.0.0" - } - }, - "wide-align": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.3.tgz", - "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2" - } - }, - "workerpool": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/workerpool/-/workerpool-6.1.0.tgz", - "integrity": "sha512-toV7q9rWNYha963Pl/qyeZ6wG+3nnsyvolaNUS8+R5Wtw6qJPTxIlOP1ZSvcGhEJw+l3HMMmtiNo9Gl61G4GVg==", - "dev": true - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" - }, - "y18n": { - "version": "5.0.8", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", - "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" - }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", - "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" - }, - "dependencies": { - "ansi-regex": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", - "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "string-width": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", - "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.1" - } - }, - "strip-ansi": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", - "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.1" - } - } - } - }, - "yargs-parser": { - "version": "20.2.4", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.4.tgz", - "integrity": "sha512-WOkpgNhPTlE73h4VFAFsOnomJVaovO8VqLDzy5saChRBFQFBoMYirowyW+Q9HB4HFF4Z7VZTiG3iSzJJA29yRA==", - "dev": true - }, - "yargs-unparser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/yargs-unparser/-/yargs-unparser-2.0.0.tgz", - "integrity": "sha512-7pRTIA9Qc1caZ0bZ6RYRGbHJthJWuakf+WmHK0rVeLkNrrGhfoabBNdue6kdINI6r4if7ocq9aD/n7xwKOdzOA==", - "dev": true, - "requires": { - "camelcase": "^6.0.0", - "decamelize": "^4.0.0", - "flat": "^5.0.2", - "is-plain-obj": "^2.1.0" - } - }, - "yocto-queue": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", - "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", - "dev": true - } } } diff --git a/package.json b/package.json index 5a66a34..a882be3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sendbird-platform-sdk", - "version": "0.0.16", + "version": "2.0.0", "description": "Server side JavaScript SDK for Sendbirds Platform API", "license": "MIT", "main": "dist/index.js", diff --git a/src/ApiClient.js b/src/ApiClient.js index 3e81f4c..3885800 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module ApiClient -* @version 0.0.16 +* @version 2.0.0 */ /** @@ -54,7 +54,7 @@ class ApiClient { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI-Generator/0.0.16/Javascript' + 'User-Agent': 'OpenAPI-Generator/2.0.0/Javascript' }; /** diff --git a/src/api/AnnouncementApi.js b/src/api/AnnouncementApi.js index fb354fc..2c329d0 100644 --- a/src/api/AnnouncementApi.js +++ b/src/api/AnnouncementApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,21 +13,13 @@ import ApiClient from "../ApiClient"; -import GetDetailedOpenRateOfAnnouncementGroupResponse from '../model/GetDetailedOpenRateOfAnnouncementGroupResponse'; -import GetStatisticsDailyResponse from '../model/GetStatisticsDailyResponse'; -import GetStatisticsMonthlyResponse from '../model/GetStatisticsMonthlyResponse'; -import GetStatisticsResponse from '../model/GetStatisticsResponse'; -import ListAnnouncementGroupsResponse from '../model/ListAnnouncementGroupsResponse'; -import ScheduleAnnouncementData from '../model/ScheduleAnnouncementData'; -import ScheduleAnnouncementResponse from '../model/ScheduleAnnouncementResponse'; -import UpdateAnnouncementByIdData from '../model/UpdateAnnouncementByIdData'; -import UpdateAnnouncementByIdResponse from '../model/UpdateAnnouncementByIdResponse'; -import ViewAnnouncementByIdResponse from '../model/ViewAnnouncementByIdResponse'; +import ScheduleAnAnnouncementRequest from '../model/ScheduleAnAnnouncementRequest'; +import ScheduleAnAnnouncementResponse from '../model/ScheduleAnAnnouncementResponse'; /** * Announcement service. * @module api/AnnouncementApi -* @version 0.0.16 +* @version 2.0.0 */ export default class AnnouncementApi { @@ -44,332 +36,24 @@ export default class AnnouncementApi { - /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param {String} apiToken - * @param {String} announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} and HTTP response - */ - getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementGroup"); - } - // verify the required parameter 'announcementGroup' is set - if (announcementGroup === undefined || announcementGroup === null) { - throw new Error("Missing the required parameter 'announcementGroup' when calling getDetailedOpenRateOfAnnouncementGroup"); - } - - let pathParams = { - 'announcement_group': announcementGroup - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetDetailedOpenRateOfAnnouncementGroupResponse; - return this.apiClient.callApi( - '/v3/announcement_open_rate_by_group/{announcement_group}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get detailed open rate of an announcement group - * ## Get detailed open rate of an announcement group Retrieves the detailed open rate information of an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement-group ---------------------------- - * @param {String} apiToken - * @param {String} announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} - */ - getDetailedOpenRateOfAnnouncementGroup(apiToken, announcementGroup) { - return this.getDetailedOpenRateOfAnnouncementGroupWithHttpInfo(apiToken, announcementGroup) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsResponse} and HTTP response - */ - getStatisticsWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatistics"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetStatisticsResponse; - return this.apiClient.callApi( - '/v3/announcement_stats/weekly', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get statistics - weekly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsResponse} - */ - getStatistics(apiToken) { - return this.getStatisticsWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get statistics - daily - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @param {String} startDate - * @param {String} endDate - * @param {String} startWeek - * @param {String} endWeek - * @param {String} startMonth - * @param {String} endMonth - * @param {Object} opts Optional parameters - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsDailyResponse} and HTTP response - */ - getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatisticsDaily"); - } - // verify the required parameter 'startDate' is set - if (startDate === undefined || startDate === null) { - throw new Error("Missing the required parameter 'startDate' when calling getStatisticsDaily"); - } - // verify the required parameter 'endDate' is set - if (endDate === undefined || endDate === null) { - throw new Error("Missing the required parameter 'endDate' when calling getStatisticsDaily"); - } - // verify the required parameter 'startWeek' is set - if (startWeek === undefined || startWeek === null) { - throw new Error("Missing the required parameter 'startWeek' when calling getStatisticsDaily"); - } - // verify the required parameter 'endWeek' is set - if (endWeek === undefined || endWeek === null) { - throw new Error("Missing the required parameter 'endWeek' when calling getStatisticsDaily"); - } - // verify the required parameter 'startMonth' is set - if (startMonth === undefined || startMonth === null) { - throw new Error("Missing the required parameter 'startMonth' when calling getStatisticsDaily"); - } - // verify the required parameter 'endMonth' is set - if (endMonth === undefined || endMonth === null) { - throw new Error("Missing the required parameter 'endMonth' when calling getStatisticsDaily"); - } - - let pathParams = { - }; - let queryParams = { - 'start_date': startDate, - 'end_date': endDate, - 'start_week': startWeek, - 'end_week': endWeek, - 'start_month': startMonth, - 'end_month': endMonth, - 'announcement_group': opts['announcementGroup'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetStatisticsDailyResponse; - return this.apiClient.callApi( - '/v3/announcement_stats/daily', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get statistics - daily - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @param {String} startDate - * @param {String} endDate - * @param {String} startWeek - * @param {String} endWeek - * @param {String} startMonth - * @param {String} endMonth - * @param {Object} opts Optional parameters - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsDailyResponse} - */ - getStatisticsDaily(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) { - return this.getStatisticsDailyWithHttpInfo(apiToken, startDate, endDate, startWeek, endWeek, startMonth, endMonth, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get statistics - monthly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStatisticsMonthlyResponse} and HTTP response - */ - getStatisticsMonthlyWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getStatisticsMonthly"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetStatisticsMonthlyResponse; - return this.apiClient.callApi( - '/v3/announcement_stats/monthly', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get statistics - monthly - * ## Get statistics Retrieves the daily, weekly or monthly statistics of an announcement or an announcement group. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-statistics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStatisticsMonthlyResponse} - */ - getStatisticsMonthly(apiToken) { - return this.getStatisticsMonthlyWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAnnouncementGroupsResponse} and HTTP response - */ - listAnnouncementGroupsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAnnouncementGroups"); - } - - let pathParams = { - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListAnnouncementGroupsResponse; - return this.apiClient.callApi( - '/v3/announcement_group', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List announcement groups - * ## List announcement groups Retrieves a list of announcement groups. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcement-groups ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAnnouncementGroupsResponse} - */ - listAnnouncementGroups(apiToken, opts) { - return this.listAnnouncementGroupsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - /** * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param {String} apiToken + * ## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement) * @param {Object} opts Optional parameters - * @param {module:model/ScheduleAnnouncementData} opts.scheduleAnnouncementData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ScheduleAnnouncementResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/ScheduleAnAnnouncementRequest} opts.scheduleAnAnnouncementRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ScheduleAnAnnouncementResponse} and HTTP response */ - scheduleAnnouncementWithHttpInfo(apiToken, opts) { + scheduleAnAnnouncementWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['scheduleAnnouncementData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling scheduleAnnouncement"); - } + let postBody = opts['scheduleAnAnnouncementRequest']; let pathParams = { }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -377,7 +61,7 @@ export default class AnnouncementApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = ScheduleAnnouncementResponse; + let returnType = ScheduleAnAnnouncementResponse; return this.apiClient.callApi( '/v3/announcements', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -387,129 +71,14 @@ export default class AnnouncementApi { /** * Schedule an announcement - * ## Schedule an announcement Schedules a new announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-schedule-an-announcement - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ScheduleAnnouncementData} opts.scheduleAnnouncementData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ScheduleAnnouncementResponse} - */ - scheduleAnnouncement(apiToken, opts) { - return this.scheduleAnnouncementWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId + * ## Schedule an announcement Creates an announcement. You can also schedule an announcement in the [Sendbird Dashboard](https://dashboard.sendbird.com). [https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement](https://sendbird.com/docs/chat/platform-api/v3/message/announcements/create-an-announcement#1-create-an-announcement) * @param {Object} opts Optional parameters - * @param {module:model/UpdateAnnouncementByIdData} opts.updateAnnouncementByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateAnnouncementByIdResponse} and HTTP response - */ - updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) { - opts = opts || {}; - let postBody = opts['updateAnnouncementByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling updateAnnouncementById"); - } - - let pathParams = { - 'unique_id': uniqueId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateAnnouncementByIdResponse; - return this.apiClient.callApi( - '/v3/announcements/{unique_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an announcement - * ## Update an announcement Updates information of a specific announcement before it starts or changes the status of a specific announcement after it starts. For the 2 different applications, refer to the request body below. >__Note__: Updating information of an announcement is possible only when the announcement status is scheduled, indicating it hasn't started yet. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-update-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateAnnouncementByIdData} opts.updateAnnouncementByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateAnnouncementByIdResponse} - */ - updateAnnouncementById(apiToken, uniqueId, opts) { - return this.updateAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewAnnouncementByIdResponse} and HTTP response - */ - viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling viewAnnouncementById"); - } - - let pathParams = { - 'unique_id': uniqueId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewAnnouncementByIdResponse; - return this.apiClient.callApi( - '/v3/announcements/{unique_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View an announcement - * ## View an announcement Retrieves information on a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-view-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewAnnouncementByIdResponse} + * @param {String} opts.apiToken + * @param {module:model/ScheduleAnAnnouncementRequest} opts.scheduleAnAnnouncementRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ScheduleAnAnnouncementResponse} */ - viewAnnouncementById(apiToken, uniqueId) { - return this.viewAnnouncementByIdWithHttpInfo(apiToken, uniqueId) + scheduleAnAnnouncement(opts) { + return this.scheduleAnAnnouncementWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ApplicationApi.js b/src/api/ApplicationApi.js deleted file mode 100644 index 55cf2b8..0000000 --- a/src/api/ApplicationApi.js +++ /dev/null @@ -1,1814 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import AddApnsPushConfigurationData from '../model/AddApnsPushConfigurationData'; -import AddApnsPushConfigurationResponse from '../model/AddApnsPushConfigurationResponse'; -import AddFcmPushConfigurationData from '../model/AddFcmPushConfigurationData'; -import AddFcmPushConfigurationResponse from '../model/AddFcmPushConfigurationResponse'; -import AddHmsPushConfigurationData from '../model/AddHmsPushConfigurationData'; -import AddHmsPushConfigurationResponse from '../model/AddHmsPushConfigurationResponse'; -import AddIpToWhitelistData from '../model/AddIpToWhitelistData'; -import AddIpToWhitelistResponse from '../model/AddIpToWhitelistResponse'; -import BanUsersInChannelsWithCustomChannelTypeData from '../model/BanUsersInChannelsWithCustomChannelTypeData'; -import ConfigureAutoEventData from '../model/ConfigureAutoEventData'; -import CustomTypeListBannedUsersResponse from '../model/CustomTypeListBannedUsersResponse'; -import DeleteAllowedIpsFromWhitelistResponse from '../model/DeleteAllowedIpsFromWhitelistResponse'; -import DeleteApnsCertificateByIdResponse from '../model/DeleteApnsCertificateByIdResponse'; -import GenerateSecondaryApiTokenData from '../model/GenerateSecondaryApiTokenData'; -import GenerateSecondaryApiTokenResponse from '../model/GenerateSecondaryApiTokenResponse'; -import ListMutedUsersInChannelsWithCustomChannelType200Response from '../model/ListMutedUsersInChannelsWithCustomChannelType200Response'; -import ListPushConfigurationsResponse from '../model/ListPushConfigurationsResponse'; -import ListPushNotificationContentTemplatesResponse from '../model/ListPushNotificationContentTemplatesResponse'; -import ListSecondaryApiTokensResponse from '../model/ListSecondaryApiTokensResponse'; -import MuteUsersInChannelsWithCustomChannelTypeData from '../model/MuteUsersInChannelsWithCustomChannelTypeData'; -import RemovePushConfigurationByIdResponse from '../model/RemovePushConfigurationByIdResponse'; -import RetrieveIpWhitelistResponse from '../model/RetrieveIpWhitelistResponse'; -import RevokeSecondaryApiTokenByTokenResponse from '../model/RevokeSecondaryApiTokenByTokenResponse'; -import SendBirdAutoEventMessageSettings from '../model/SendBirdAutoEventMessageSettings'; -import SendBirdChannelResponse from '../model/SendBirdChannelResponse'; -import SetDomainFilterData from '../model/SetDomainFilterData'; -import UpdateApnsPushConfigurationByIdData from '../model/UpdateApnsPushConfigurationByIdData'; -import UpdateApnsPushConfigurationByIdResponse from '../model/UpdateApnsPushConfigurationByIdResponse'; -import UpdateDefaultChannelInvitationPreferenceData from '../model/UpdateDefaultChannelInvitationPreferenceData'; -import UpdateDefaultChannelInvitationPreferenceResponse from '../model/UpdateDefaultChannelInvitationPreferenceResponse'; -import UpdateFcmPushConfigurationByIdData from '../model/UpdateFcmPushConfigurationByIdData'; -import UpdateFcmPushConfigurationByIdResponse from '../model/UpdateFcmPushConfigurationByIdResponse'; -import UpdateHmsPushConfigurationByIdData from '../model/UpdateHmsPushConfigurationByIdData'; -import UpdateHmsPushConfigurationByIdResponse from '../model/UpdateHmsPushConfigurationByIdResponse'; -import UpdatePushNotificationContentTemplateData from '../model/UpdatePushNotificationContentTemplateData'; -import UpdatePushNotificationContentTemplateResponse from '../model/UpdatePushNotificationContentTemplateResponse'; -import ViewDefaultChannelInvitationPreferenceResponse from '../model/ViewDefaultChannelInvitationPreferenceResponse'; -import ViewPushConfigurationByIdResponse from '../model/ViewPushConfigurationByIdResponse'; -import ViewPushNotificationContentTemplateResponse from '../model/ViewPushNotificationContentTemplateResponse'; -import ViewSecondaryApiTokenByTokenResponse from '../model/ViewSecondaryApiTokenByTokenResponse'; - -/** -* Application service. -* @module api/ApplicationApi -* @version 0.0.16 -*/ -export default class ApplicationApi { - - /** - * Constructs a new ApplicationApi. - * @alias module:api/ApplicationApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddApnsPushConfigurationData} opts.addApnsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddApnsPushConfigurationResponse} and HTTP response - */ - addApnsPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['addApnsPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addApnsPushConfiguration"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddApnsPushConfigurationResponse; - return this.apiClient.callApi( - '/v3/applications/push/apns', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an APNs push configuration - * ## Add an APNs push configuration Registers an APNs (Apple Push Notification service) push configuration for your client app. To send push notifications to iOS devices, your should first register the APNs push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: To upload a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-apns-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddApnsPushConfigurationData} opts.addApnsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddApnsPushConfigurationResponse} - */ - addApnsPushConfiguration(apiToken, opts) { - return this.addApnsPushConfigurationWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddFcmPushConfigurationData} opts.addFcmPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddFcmPushConfigurationResponse} and HTTP response - */ - addFcmPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['addFcmPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addFcmPushConfiguration"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddFcmPushConfigurationResponse; - return this.apiClient.callApi( - '/v3/applications/push/fcm', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a FCM push configuration - * ## Add a FCM push configuration Registers a FCM (Firebase Cloud Messaging) push configuration for your client app. To send push notifications to Android devices, you should first register the FCM push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-a-fcm-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddFcmPushConfigurationData} opts.addFcmPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddFcmPushConfigurationResponse} - */ - addFcmPushConfiguration(apiToken, opts) { - return this.addFcmPushConfigurationWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddHmsPushConfigurationData} opts.addHmsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddHmsPushConfigurationResponse} and HTTP response - */ - addHmsPushConfigurationWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['addHmsPushConfigurationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addHmsPushConfiguration"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddHmsPushConfigurationResponse; - return this.apiClient.callApi( - '/v3/applications/push/hms', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an HMS push configuration - * ## Add an HMS push configuration Registers an HMS (Huawei Mobile Services) push configuration for your client app. To send push notifications to Android devices for HMS, you should first register the HMS push configuration. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-hms-push-configuration - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddHmsPushConfigurationData} opts.addHmsPushConfigurationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddHmsPushConfigurationResponse} - */ - addHmsPushConfiguration(apiToken, opts) { - return this.addHmsPushConfigurationWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddIpToWhitelistData} opts.addIpToWhitelistData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddIpToWhitelistResponse} and HTTP response - */ - addIpToWhitelistWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['addIpToWhitelistData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addIpToWhitelist"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddIpToWhitelistResponse; - return this.apiClient.callApi( - '/v3/applications/settings/ip_whitelist', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add an IP to a whitelist - * ## Add an IP to a whitelist Adds IP addresses and ranges to your Sendbird application settings. Both currently added and any previously added IPs are granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-add-an-ip-to-a-whitelist - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddIpToWhitelistData} opts.addIpToWhitelistData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddIpToWhitelistResponse} - */ - addIpToWhitelist(apiToken, opts) { - return this.addIpToWhitelistWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} opts.banUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - let postBody = opts['banUsersInChannelsWithCustomChannelTypeData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling banUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling banUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Ban users in channels with a custom channel type - * ## Ban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} opts.banUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - banUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.banUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ConfigureAutoEventData} opts.configureAutoEventData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdAutoEventMessageSettings} and HTTP response - */ - configureAutoEventMessagesWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['configureAutoEventData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling configureAutoEventMessages"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdAutoEventMessageSettings; - return this.apiClient.callApi( - '/v3/applications/settings/auto_event_message', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Configure auto event message settings - * ## Configure auto event message settings Determines whether to automatically send event messages to group channels when events take place in an application. You can choose which auto event message to receive on the Sendbird Dashboard https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/configure-auto-event-message-settings ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ConfigureAutoEventData} opts.configureAutoEventData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdAutoEventMessageSettings} - */ - configureAutoEventMessages(apiToken, opts) { - return this.configureAutoEventMessagesWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param {String} apiToken - * @param {Array.} ipWhitelistAddresses - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteAllowedIpsFromWhitelistResponse} and HTTP response - */ - deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteAllowedIpsFromWhitelist"); - } - // verify the required parameter 'ipWhitelistAddresses' is set - if (ipWhitelistAddresses === undefined || ipWhitelistAddresses === null) { - throw new Error("Missing the required parameter 'ipWhitelistAddresses' when calling deleteAllowedIpsFromWhitelist"); - } - - let pathParams = { - }; - let queryParams = { - 'ip_whitelist_addresses': this.apiClient.buildCollectionParam(ipWhitelistAddresses, 'multi') - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = DeleteAllowedIpsFromWhitelistResponse; - return this.apiClient.callApi( - '/v3/applications/settings/ip_whitelist', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete allowed IPs from a whitelist - * ## Delete allowed IPs from a whitelist Deletes allowed IPs from the whitelist by specifying their IP addresses or ranges. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-allowed-ips-from-a-whitelist - * @param {String} apiToken - * @param {Array.} ipWhitelistAddresses - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteAllowedIpsFromWhitelistResponse} - */ - deleteAllowedIpsFromWhitelist(apiToken, ipWhitelistAddresses) { - return this.deleteAllowedIpsFromWhitelistWithHttpInfo(apiToken, ipWhitelistAddresses) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/DeleteApnsCertificateByIdResponse} and HTTP response - */ - deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteApnsCertificateById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling deleteApnsCertificateById"); - } - - let pathParams = { - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = DeleteApnsCertificateByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/apns/cert/{provider_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an APNs certificate - * ## Delete an APNs certificate Deletes a specific APNs certificate. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-delete-an-apns-certificate ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/DeleteApnsCertificateByIdResponse} - */ - deleteApnsCertificateById(apiToken, providerId) { - return this.deleteApnsCertificateByIdWithHttpInfo(apiToken, providerId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/GenerateSecondaryApiTokenData} opts.generateSecondaryApiTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GenerateSecondaryApiTokenResponse} and HTTP response - */ - generateSecondaryApiTokenWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['generateSecondaryApiTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling generateSecondaryApiToken"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = GenerateSecondaryApiTokenResponse; - return this.apiClient.callApi( - '/v3/applications/api_tokens', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Generate a secondary API token - * ## Generate a secondary API token Generates a new secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-generate-a-secondary-api-token - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/GenerateSecondaryApiTokenData} opts.generateSecondaryApiTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GenerateSecondaryApiTokenResponse} - */ - generateSecondaryApiToken(apiToken, opts) { - return this.generateSecondaryApiTokenWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdAutoEventMessageSettings} and HTTP response - */ - listAutoEventMessagesWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAutoEventMessages"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = SendBirdAutoEventMessageSettings; - return this.apiClient.callApi( - '/v3/applications/settings/auto_event_message', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List auto event messages - * ## List auto event messages Retrieves a list of auto event messages that are sent in a specified application and indicates which ones are in use. Auto event messages are Admin messages that are automatically generated when a specific event occurs. https://sendbird.com/docs/chat/v3/platform-api/application/managing-auto-event-messages/list-auto-event-messages ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdAutoEventMessageSettings} - */ - listAutoEventMessages(apiToken) { - return this.listAutoEventMessagesWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CustomTypeListBannedUsersResponse} and HTTP response - */ - listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBannedUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling listBannedUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = CustomTypeListBannedUsersResponse; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List banned users in channels with a custom channel type - * ## Retrieves a list of users banned from channels with the specified custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CustomTypeListBannedUsersResponse} - */ - listBannedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.listBannedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} and HTTP response - */ - listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMutedUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling listMutedUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListMutedUsersInChannelsWithCustomChannelType200Response; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List muted users in channels with a custom channel type - * ## Retrieves a list of the muted users in channels with a custom channel type. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} - */ - listMutedUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.listMutedUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPushConfigurationsResponse} and HTTP response - */ - listPushConfigurationsWithHttpInfo(apiToken, pushType) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listPushConfigurations"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling listPushConfigurations"); - } - - let pathParams = { - 'push_type': pushType - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListPushConfigurationsResponse; - return this.apiClient.callApi( - '/v3/applications/push/{push_type}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List push configurations - * ## List push configurations Retrieves a list of an application's registered push configurations. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-configurations ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPushConfigurationsResponse} - */ - listPushConfigurations(apiToken, pushType) { - return this.listPushConfigurationsWithHttpInfo(apiToken, pushType) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListPushNotificationContentTemplatesResponse} and HTTP response - */ - listPushNotificationContentTemplatesWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listPushNotificationContentTemplates"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListPushNotificationContentTemplatesResponse; - return this.apiClient.callApi( - '/v3/applications/push/message_templates', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List push notification content templates - * ## List push notification content templates Retrieves a list of push notification content templates of an application. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-push-notification-content-templates - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListPushNotificationContentTemplatesResponse} - */ - listPushNotificationContentTemplates(apiToken) { - return this.listPushNotificationContentTemplatesWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListSecondaryApiTokensResponse} and HTTP response - */ - listSecondaryApiTokensWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listSecondaryApiTokens"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListSecondaryApiTokensResponse; - return this.apiClient.callApi( - '/v3/applications/api_tokens', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List secondary API tokens - * ## List secondary API tokens Retrieves a list of secondary API tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-list-secondary-api-tokens - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListSecondaryApiTokensResponse} - */ - listSecondaryApiTokens(apiToken) { - return this.listSecondaryApiTokensWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} opts.muteUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - let postBody = opts['muteUsersInChannelsWithCustomChannelTypeData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling muteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling muteUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mute users in channels with a custom channel type - * ## Mutes specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} opts.muteUsersInChannelsWithCustomChannelTypeData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - muteUsersInChannelsWithCustomChannelType(apiToken, customType, opts) { - return this.muteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemovePushConfigurationByIdResponse} and HTTP response - */ - removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removePushConfigurationById"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling removePushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling removePushConfigurationById"); - } - - let pathParams = { - 'push_type': pushType, - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = RemovePushConfigurationByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/{push_type}/{provider_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Remove a push configuration - * ## Remove a push configuration Removes a specific push configuration from an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-remove-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemovePushConfigurationByIdResponse} - */ - removePushConfigurationById(apiToken, pushType, providerId) { - return this.removePushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveIpWhitelistResponse} and HTTP response - */ - retrieveIpWhitelistWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveIpWhitelist"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = RetrieveIpWhitelistResponse; - return this.apiClient.callApi( - '/v3/applications/settings/ip_whitelist', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Retrieve an IP whitelist - * ## Retrieve an IP whitelist Retrieves a list of all the IP ranges and addresses that have access to your Sendbird application. This list is called an IP whitelist and its addresses are granted API access when the IP whitelist API enables [CIDR](https://en.wikipedia.org/wiki/Classless_Inter-Domain_Routing) notations. If you specify which IP addresses or ranges to include in the whitelist, any unlisted foreign IP addresses will be denied access. If you don't specify any IP address or range to include in the whitelist, all IP addresses will be granted API access. You can configure the IP whitelist under Settings > Security > Allowed IPs in the [Sendbird Dashboard](https://dashboard.sendbird.com). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-retrieve-an-ip-whitelist - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveIpWhitelistResponse} - */ - retrieveIpWhitelist(apiToken) { - return this.retrieveIpWhitelistWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RevokeSecondaryApiTokenByTokenResponse} and HTTP response - */ - revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling revokeSecondaryApiTokenByToken"); - } - // verify the required parameter 'apiToken2' is set - if (apiToken2 === undefined || apiToken2 === null) { - throw new Error("Missing the required parameter 'apiToken2' when calling revokeSecondaryApiTokenByToken"); - } - - let pathParams = { - 'api_token': apiToken2 - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = RevokeSecondaryApiTokenByTokenResponse; - return this.apiClient.callApi( - '/v3/applications/api_tokens/{api_token}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Revoke a secondary API token - * ## Revoke a secondary API token Revokes a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-revoke-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RevokeSecondaryApiTokenByTokenResponse} - */ - revokeSecondaryApiTokenByToken(apiToken, apiToken2) { - return this.revokeSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Message moderation - * ## - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/SetDomainFilterData} opts.setDomainFilterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdChannelResponse} and HTTP response - */ - setDomainFilterWithHttpInfo(apiToken, customType, opts) { - opts = opts || {}; - let postBody = opts['setDomainFilterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling setDomainFilter"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling setDomainFilter"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdChannelResponse; - return this.apiClient.callApi( - '/v3/applications/settings_global/{custom_type}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Message moderation - * ## - * @param {String} apiToken - * @param {String} customType - * @param {Object} opts Optional parameters - * @param {module:model/SetDomainFilterData} opts.setDomainFilterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdChannelResponse} - */ - setDomainFilter(apiToken, customType, opts) { - return this.setDomainFilterWithHttpInfo(apiToken, customType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unbanUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling unbanUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'userIds' is set - if (userIds === undefined || userIds === null) { - throw new Error("Missing the required parameter 'userIds' when calling unbanUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - 'user_ids': this.apiClient.buildCollectionParam(userIds, 'multi') - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/ban', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unban users in channels with a custom channel type - * ## Unban specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - unbanUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) { - return this.unbanUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'customType' is set - if (customType === undefined || customType === null) { - throw new Error("Missing the required parameter 'customType' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - // verify the required parameter 'userIds' is set - if (userIds === undefined || userIds === null) { - throw new Error("Missing the required parameter 'userIds' when calling unmuteUsersInChannelsWithCustomChannelType"); - } - - let pathParams = { - 'custom_type': customType - }; - let queryParams = { - 'user_ids': this.apiClient.buildCollectionParam(userIds, 'multi') - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/applications/settings_by_channel_custom_type/{custom_type}/mute', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unmute users in channels with a custom channel type - * ## Unmute specified users in channels with a custom channel type at once. - * @param {String} apiToken - * @param {String} customType - * @param {Array.} userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - unmuteUsersInChannelsWithCustomChannelType(apiToken, customType, userIds) { - return this.unmuteUsersInChannelsWithCustomChannelTypeWithHttpInfo(apiToken, customType, userIds) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateApnsPushConfigurationByIdData} opts.updateApnsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateApnsPushConfigurationByIdResponse} and HTTP response - */ - updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - let postBody = opts['updateApnsPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateApnsPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateApnsPushConfigurationById"); - } - - let pathParams = { - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateApnsPushConfigurationByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/apns/{provider_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an APNs push configuration - * ## Update an APNs push configuration Updates a specific APNs (Apple Push Notification service) push configuration for your client app. You can also register the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. > __Note__: If your HTTP request body contains a [.p12](https://sendbird.com/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) certificate file to upload to Sendbird server, you should send a [Multipart request](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api#2-headers-3-multipart-requests) . https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-apns-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateApnsPushConfigurationByIdData} opts.updateApnsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateApnsPushConfigurationByIdResponse} - */ - updateApnsPushConfigurationById(apiToken, providerId, opts) { - return this.updateApnsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} opts.updateDefaultChannelInvitationPreferenceData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateDefaultChannelInvitationPreferenceResponse} and HTTP response - */ - updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['updateDefaultChannelInvitationPreferenceData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateDefaultChannelInvitationPreference"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateDefaultChannelInvitationPreferenceResponse; - return this.apiClient.callApi( - '/v3/applications/default_channel_invitation_preference', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update default channel invitation preference - * ## Update default channel invitation preference Updates the default channel invitation preference of an application. > __Note__: Using the [update channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can update the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} opts.updateDefaultChannelInvitationPreferenceData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateDefaultChannelInvitationPreferenceResponse} - */ - updateDefaultChannelInvitationPreference(apiToken, opts) { - return this.updateDefaultChannelInvitationPreferenceWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFcmPushConfigurationByIdData} opts.updateFcmPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateFcmPushConfigurationByIdResponse} and HTTP response - */ - updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - let postBody = opts['updateFcmPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateFcmPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateFcmPushConfigurationById"); - } - - let pathParams = { - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateFcmPushConfigurationByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/fcm/{provider_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a FCM push configuration - * ## Update a FCM push configuration Updates a specific FCM (Firebase Cloud Messaging) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-fcm-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateFcmPushConfigurationByIdData} opts.updateFcmPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateFcmPushConfigurationByIdResponse} - */ - updateFcmPushConfigurationById(apiToken, providerId, opts) { - return this.updateFcmPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateHmsPushConfigurationByIdData} opts.updateHmsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateHmsPushConfigurationByIdResponse} and HTTP response - */ - updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) { - opts = opts || {}; - let postBody = opts['updateHmsPushConfigurationByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateHmsPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling updateHmsPushConfigurationById"); - } - - let pathParams = { - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateHmsPushConfigurationByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/hms/{provider_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update an HMS push configuration - * ## Update an HMS push configuration Updates a specific HMS (Huawei Mobile Services) push configuration for your client app. You can also update the configurations in your [dashboard](https://dashboard.sendbird.com) under Settings > Application > Notifications. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-an-hms-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} providerId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateHmsPushConfigurationByIdData} opts.updateHmsPushConfigurationByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateHmsPushConfigurationByIdResponse} - */ - updateHmsPushConfigurationById(apiToken, providerId, opts) { - return this.updateHmsPushConfigurationByIdWithHttpInfo(apiToken, providerId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushNotificationContentTemplateData} opts.updatePushNotificationContentTemplateData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushNotificationContentTemplateResponse} and HTTP response - */ - updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, opts) { - opts = opts || {}; - let postBody = opts['updatePushNotificationContentTemplateData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushNotificationContentTemplate"); - } - // verify the required parameter 'templateName' is set - if (templateName === undefined || templateName === null) { - throw new Error("Missing the required parameter 'templateName' when calling updatePushNotificationContentTemplate"); - } - - let pathParams = { - 'template_name': templateName - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdatePushNotificationContentTemplateResponse; - return this.apiClient.callApi( - '/v3/applications/push/message_templates/{template_name}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a push notification content template - * ## Update a push notification content template Updates a specific push notification content template of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushNotificationContentTemplateData} opts.updatePushNotificationContentTemplateData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushNotificationContentTemplateResponse} - */ - updatePushNotificationContentTemplate(apiToken, templateName, opts) { - return this.updatePushNotificationContentTemplateWithHttpInfo(apiToken, templateName, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewDefaultChannelInvitationPreferenceResponse} and HTTP response - */ - viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewDefaultChannelInvitationPreference"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewDefaultChannelInvitationPreferenceResponse; - return this.apiClient.callApi( - '/v3/applications/default_channel_invitation_preference', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View default channel invitation preference - * ## View default channel invitation preference Retrieves the default channel invitation preference of an application. > __Note__: Using the [view channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference) action, you can retrieve the value of a specific user's channel invitation preference, which can be set individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewDefaultChannelInvitationPreferenceResponse} - */ - viewDefaultChannelInvitationPreference(apiToken) { - return this.viewDefaultChannelInvitationPreferenceWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushConfigurationByIdResponse} and HTTP response - */ - viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushConfigurationById"); - } - // verify the required parameter 'pushType' is set - if (pushType === undefined || pushType === null) { - throw new Error("Missing the required parameter 'pushType' when calling viewPushConfigurationById"); - } - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling viewPushConfigurationById"); - } - - let pathParams = { - 'push_type': pushType, - 'provider_id': providerId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewPushConfigurationByIdResponse; - return this.apiClient.callApi( - '/v3/applications/push/{push_type}/{provider_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a push configuration - * ## View a push configuration Retrieves a specific push configuration of an application. The type of a push configuration is either `fcm`, `huawei`, or `apns`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-configuration ---------------------------- - * @param {String} apiToken - * @param {String} pushType - * @param {String} providerId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushConfigurationByIdResponse} - */ - viewPushConfigurationById(apiToken, pushType, providerId) { - return this.viewPushConfigurationByIdWithHttpInfo(apiToken, pushType, providerId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushNotificationContentTemplateResponse} and HTTP response - */ - viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushNotificationContentTemplate"); - } - // verify the required parameter 'templateName' is set - if (templateName === undefined || templateName === null) { - throw new Error("Missing the required parameter 'templateName' when calling viewPushNotificationContentTemplate"); - } - - let pathParams = { - 'template_name': templateName - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewPushNotificationContentTemplateResponse; - return this.apiClient.callApi( - '/v3/applications/push/message_templates/{template_name}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a push notification content template - * ## View a push notification content template Retrieves information on a specific push notification content templates of an application. The name of a content template is either `default` or `alternative`. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} templateName - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushNotificationContentTemplateResponse} - */ - viewPushNotificationContentTemplate(apiToken, templateName) { - return this.viewPushNotificationContentTemplateWithHttpInfo(apiToken, templateName) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewSecondaryApiTokenByTokenResponse} and HTTP response - */ - viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewSecondaryApiTokenByToken"); - } - // verify the required parameter 'apiToken2' is set - if (apiToken2 === undefined || apiToken2 === null) { - throw new Error("Missing the required parameter 'apiToken2' when calling viewSecondaryApiTokenByToken"); - } - - let pathParams = { - 'api_token': apiToken2 - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewSecondaryApiTokenByTokenResponse; - return this.apiClient.callApi( - '/v3/applications/api_tokens/{api_token}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a secondary API token - * ## View a secondary API token Retrieves the information on a secondary API token. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-a-secondary-api-token - * @param {String} apiToken - * @param {String} apiToken2 - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewSecondaryApiTokenByTokenResponse} - */ - viewSecondaryApiTokenByToken(apiToken, apiToken2) { - return this.viewSecondaryApiTokenByTokenWithHttpInfo(apiToken, apiToken2) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - -} diff --git a/src/api/BotApi.js b/src/api/BotApi.js index ad5c185..0912cdd 100644 --- a/src/api/BotApi.js +++ b/src/api/BotApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,21 +13,18 @@ import ApiClient from "../ApiClient"; -import CreateBotData from '../model/CreateBotData'; -import CreateBotResponse from '../model/CreateBotResponse'; -import JoinChannelsData from '../model/JoinChannelsData'; -import JoinChannelsResponse from '../model/JoinChannelsResponse'; +import CreateABotRequest from '../model/CreateABotRequest'; +import CreateABotResponse from '../model/CreateABotResponse'; +import JoinChannelsRequest from '../model/JoinChannelsRequest'; import ListBotsResponse from '../model/ListBotsResponse'; -import SendBirdMessageResponse from '../model/SendBirdMessageResponse'; -import SendBotSMessageData from '../model/SendBotSMessageData'; -import UpdateBotByIdData from '../model/UpdateBotByIdData'; -import UpdateBotByIdResponse from '../model/UpdateBotByIdResponse'; -import ViewBotByIdResponse from '../model/ViewBotByIdResponse'; +import SendABotMessageRequest from '../model/SendABotMessageRequest'; +import SendbirdGroupChannelDetail from '../model/SendbirdGroupChannelDetail'; +import SendbirdMessageResponse from '../model/SendbirdMessageResponse'; /** * Bot service. * @module api/BotApi -* @version 0.0.16 +* @version 2.0.0 */ export default class BotApi { @@ -46,26 +43,22 @@ export default class BotApi { /** * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param {String} apiToken + * ## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot) * @param {Object} opts Optional parameters - * @param {module:model/CreateBotData} opts.createBotData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateBotResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateABotRequest} opts.createABotRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateABotResponse} and HTTP response */ - createBotWithHttpInfo(apiToken, opts) { + createABotWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['createBotData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createBot"); - } + let postBody = opts['createABotRequest']; let pathParams = { }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -73,7 +66,7 @@ export default class BotApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = CreateBotResponse; + let returnType = CreateABotResponse; return this.apiClient.callApi( '/v3/bots', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -83,69 +76,14 @@ export default class BotApi { /** * Create a bot - * ## Create a bot Creates a new bot within the application. Creating a bot is similar to creating a normal user, except that a callback URL is specified in order for the bot to receive events. > __Note__: The bot must [join](#2-join-channels) a group channel first to interact with users. In group channels, you can invite a bot through the [invite as members](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-create-a-bot - * @param {String} apiToken + * ## Create a bot Creates a new bot within an application. Creating a bot is similar to creating a normal user, except a callback URL should be specified for a bot to receive events. > **Note**: The bot must first [join a group channel](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels) to interact with users. In group channels, you can also invite a bot through the [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) action. [https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot](https://sendbird.com/docs/chat/platform-api/v3/bot/creating-a-bot/create-a-bot#1-create-a-bot) * @param {Object} opts Optional parameters - * @param {module:model/CreateBotData} opts.createBotData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateBotResponse} - */ - createBot(apiToken, opts) { - return this.createBotWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - deleteBotByIdWithHttpInfo(apiToken, botUserid) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling deleteBotById"); - } - - let pathParams = { - 'bot_userid': botUserid - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/bots/{bot_userid}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a bot - * ## Delete a bot Deletes a bot from an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-delete-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {String} opts.apiToken + * @param {module:model/CreateABotRequest} opts.createABotRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateABotResponse} */ - deleteBotById(apiToken, botUserid) { - return this.deleteBotByIdWithHttpInfo(apiToken, botUserid) + createABot(opts) { + return this.createABotWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -154,20 +92,16 @@ export default class BotApi { /** * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * ## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels) + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/JoinChannelsData} opts.joinChannelsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/JoinChannelsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/JoinChannelsRequest} opts.joinChannelsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - joinChannelsWithHttpInfo(apiToken, botUserid, opts) { + joinChannelsWithHttpInfo(botUserid, opts) { opts = opts || {}; - let postBody = opts['joinChannelsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling joinChannels"); - } + let postBody = opts['joinChannelsRequest']; // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { throw new Error("Missing the required parameter 'botUserid' when calling joinChannels"); @@ -179,7 +113,7 @@ export default class BotApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -187,7 +121,7 @@ export default class BotApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = JoinChannelsResponse; + let returnType = SendbirdGroupChannelDetail; return this.apiClient.callApi( '/v3/bots/{bot_userid}/channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -197,15 +131,15 @@ export default class BotApi { /** * Join channels - * ## Join channels Makes a bot join one or more channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-join-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * ## Join channels Makes a bot join one or more group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/join-channels#1-join-channels) + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/JoinChannelsData} opts.joinChannelsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/JoinChannelsResponse} + * @param {String} opts.apiToken + * @param {module:model/JoinChannelsRequest} opts.joinChannelsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - joinChannels(apiToken, botUserid, opts) { - return this.joinChannelsWithHttpInfo(apiToken, botUserid, opts) + joinChannels(botUserid, opts) { + return this.joinChannelsWithHttpInfo(botUserid, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -213,60 +147,60 @@ export default class BotApi { /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * Leave channels - When leaving a specific channel + * ## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} channelUrl + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {String} opts.channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - leaveChannelsWithHttpInfo(apiToken, botUserid, opts) { + leaveAGroupChannelWithHttpInfo(channelUrl, botUserid, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveChannels"); + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling leaveAGroupChannel"); } // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling leaveChannels"); + throw new Error("Missing the required parameter 'botUserid' when calling leaveAGroupChannel"); } let pathParams = { + 'channel_url': channelUrl, 'bot_userid': botUserid }; let queryParams = { - 'channel_url': opts['channelUrl'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; let contentTypes = []; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = Object; return this.apiClient.callApi( - '/v3/bots/{bot_userid}/channels', 'DELETE', + '/v3/bots/{bot_userid}/channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Leave channels - When leaving all channels - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * Leave channels - When leaving a specific channel + * ## Leave channels Makes a bot leave a specific channel [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} channelUrl + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {String} opts.channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - leaveChannels(apiToken, botUserid, opts) { - return this.leaveChannelsWithHttpInfo(apiToken, botUserid, opts) + leaveAGroupChannel(channelUrl, botUserid, opts) { + return this.leaveAGroupChannelWithHttpInfo(channelUrl, botUserid, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -274,36 +208,28 @@ export default class BotApi { /** - * Leave channels - When leaving a channel by its channel URL - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {String} channelUrl + * Leave channels - When leaving all channels + * ## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} botUserid (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl) { + leaveGroupChannelsWithHttpInfo(botUserid, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveChannelsByUrl"); - } // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling leaveChannelsByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling leaveChannelsByUrl"); + throw new Error("Missing the required parameter 'botUserid' when calling leaveGroupChannels"); } let pathParams = { - 'bot_userid': botUserid, - 'channel_url': channelUrl + 'bot_userid': botUserid }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -313,22 +239,22 @@ export default class BotApi { let accepts = ['application/json']; let returnType = Object; return this.apiClient.callApi( - '/v3/bots/{bot_userid}/channels/{channel_url}', 'DELETE', + '/v3/bots/{bot_userid}/channels', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Leave channels - When leaving a channel by its channel URL - * ## Leave channels Makes a bot leave one or more group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-leave-channels ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {String} channelUrl + * Leave channels - When leaving all channels + * ## Leave channels Makes a bot leave all group channels. [https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels](https://sendbird.com/docs/chat/platform-api/v3/bot/managing-a-bot/leave-channels#1-leave-channels) + * @param {String} botUserid (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - leaveChannelsByUrl(apiToken, botUserid, channelUrl) { - return this.leaveChannelsByUrlWithHttpInfo(apiToken, botUserid, channelUrl) + leaveGroupChannels(botUserid, opts) { + return this.leaveGroupChannelsWithHttpInfo(botUserid, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -337,20 +263,16 @@ export default class BotApi { /** * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param {String} apiToken + * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBotsResponse} and HTTP response */ - listBotsWithHttpInfo(apiToken, opts) { + listBotsWithHttpInfo(opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBots"); - } let pathParams = { }; @@ -359,7 +281,7 @@ export default class BotApi { 'limit': opts['limit'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -377,15 +299,15 @@ export default class BotApi { /** * List bots - * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots ---------------------------- - * @param {String} apiToken + * ## List bots Retrieves a list of all bots within an application. https://sendbird.com/docs/chat/platform-api/v3/bot/listing-bots/list-bots#1-list-bots * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBotsResponse} */ - listBots(apiToken, opts) { - return this.listBotsWithHttpInfo(apiToken, opts) + listBots(opts) { + return this.listBotsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -394,23 +316,19 @@ export default class BotApi { /** * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param {String} apiToken - * @param {String} botUserid + * ## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendBotSMessageData} opts.sendBotSMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/SendABotMessageRequest} opts.sendABotMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ - sendBotsMessageWithHttpInfo(apiToken, botUserid, opts) { + sendABotMessageWithHttpInfo(botUserid, opts) { opts = opts || {}; - let postBody = opts['sendBotSMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling sendBotsMessage"); - } + let postBody = opts['sendABotMessageRequest']; // verify the required parameter 'botUserid' is set if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling sendBotsMessage"); + throw new Error("Missing the required parameter 'botUserid' when calling sendABotMessage"); } let pathParams = { @@ -419,7 +337,7 @@ export default class BotApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -427,7 +345,7 @@ export default class BotApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdMessageResponse; + let returnType = SendbirdMessageResponse; return this.apiClient.callApi( '/v3/bots/{bot_userid}/send', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -437,130 +355,15 @@ export default class BotApi { /** * Send a bot's message - * ## Send a bot's message Sends a bot's message to a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-send-a-bot-s-message ---------------------------- `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. - * @param {String} apiToken - * @param {String} botUserid - * @param {Object} opts Optional parameters - * @param {module:model/SendBotSMessageData} opts.sendBotSMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} - */ - sendBotsMessage(apiToken, botUserid, opts) { - return this.sendBotsMessageWithHttpInfo(apiToken, botUserid, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @param {Object} opts Optional parameters - * @param {module:model/UpdateBotByIdData} opts.updateBotByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateBotByIdResponse} and HTTP response - */ - updateBotByIdWithHttpInfo(apiToken, botUserid, opts) { - opts = opts || {}; - let postBody = opts['updateBotByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling updateBotById"); - } - - let pathParams = { - 'bot_userid': botUserid - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateBotByIdResponse; - return this.apiClient.callApi( - '/v3/bots/{bot_userid}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a bot - * ## Update a bot Updates information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-update-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid + * ## Send a bot message Sends a bot message to a group channel. [https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message](https://sendbird.com/docs/chat/platform-api/v3/bot/sending-a-bot-message/send-a-bot-message#1-send-a-bot-message) `bot_userid` Type: string Description: Specifies the ID of the bot to send a message. + * @param {String} botUserid (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateBotByIdData} opts.updateBotByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateBotByIdResponse} - */ - updateBotById(apiToken, botUserid, opts) { - return this.updateBotByIdWithHttpInfo(apiToken, botUserid, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewBotByIdResponse} and HTTP response - */ - viewBotByIdWithHttpInfo(apiToken, botUserid) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewBotById"); - } - // verify the required parameter 'botUserid' is set - if (botUserid === undefined || botUserid === null) { - throw new Error("Missing the required parameter 'botUserid' when calling viewBotById"); - } - - let pathParams = { - 'bot_userid': botUserid - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewBotByIdResponse; - return this.apiClient.callApi( - '/v3/bots/{bot_userid}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a bot - * ## View a bot Retrieves information on a bot. https://sendbird.com/docs/chat/v3/platform-api/guides/bot-interface#2-view-a-bot ---------------------------- - * @param {String} apiToken - * @param {String} botUserid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewBotByIdResponse} + * @param {String} opts.apiToken + * @param {module:model/SendABotMessageRequest} opts.sendABotMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ - viewBotById(apiToken, botUserid) { - return this.viewBotByIdWithHttpInfo(apiToken, botUserid) + sendABotMessage(botUserid, opts) { + return this.sendABotMessageWithHttpInfo(botUserid, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/DataExportApi.js b/src/api/DataExportApi.js deleted file mode 100644 index c3d34cb..0000000 --- a/src/api/DataExportApi.js +++ /dev/null @@ -1,227 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ListDataExportsByMessageChannelOrUserResponse from '../model/ListDataExportsByMessageChannelOrUserResponse'; -import RegisterAndScheduleDataExportData from '../model/RegisterAndScheduleDataExportData'; -import RegisterAndScheduleDataExportResponse from '../model/RegisterAndScheduleDataExportResponse'; -import ViewDataExportByIdResponse from '../model/ViewDataExportByIdResponse'; - -/** -* DataExport service. -* @module api/DataExportApi -* @version 0.0.16 -*/ -export default class DataExportApi { - - /** - * Constructs a new DataExportApi. - * @alias module:api/DataExportApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListDataExportsByMessageChannelOrUserResponse} and HTTP response - */ - listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listDataExportsByMessageChannelOrUser"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling listDataExportsByMessageChannelOrUser"); - } - - let pathParams = { - 'data_type': dataType - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListDataExportsByMessageChannelOrUserResponse; - return this.apiClient.callApi( - '/v3/export/{data_type}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List data exports by message, channel, or user - * ## List data exports by message, channel, or user Retrieves a list of message, channel or user data exports https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-list-data-exports-by-message,-channel,-or-user ---------------------------- `data_type` Type: string Description: Specifies the type of a data export to retrieve. Acceptable values are messages, channels, users, and failed_webhooks. - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListDataExportsByMessageChannelOrUserResponse} - */ - listDataExportsByMessageChannelOrUser(apiToken, dataType, opts) { - return this.listDataExportsByMessageChannelOrUserWithHttpInfo(apiToken, dataType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {module:model/RegisterAndScheduleDataExportData} opts.registerAndScheduleDataExportData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegisterAndScheduleDataExportResponse} and HTTP response - */ - registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, opts) { - opts = opts || {}; - let postBody = opts['registerAndScheduleDataExportData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerAndScheduleDataExport"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling registerAndScheduleDataExport"); - } - - let pathParams = { - 'data_type': dataType - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = RegisterAndScheduleDataExportResponse; - return this.apiClient.callApi( - '/v3/export/{data_type}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Register and schedule a data export - * ## Register and schedule a data export Registers and schedules a message, channel, or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-register-and-schedule-a-data-export ---------------------------- - * @param {String} apiToken - * @param {String} dataType - * @param {Object} opts Optional parameters - * @param {module:model/RegisterAndScheduleDataExportData} opts.registerAndScheduleDataExportData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegisterAndScheduleDataExportResponse} - */ - registerAndScheduleDataExport(apiToken, dataType, opts) { - return this.registerAndScheduleDataExportWithHttpInfo(apiToken, dataType, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param {String} apiToken - * @param {String} dataType - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewDataExportByIdResponse} and HTTP response - */ - viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewDataExportById"); - } - // verify the required parameter 'dataType' is set - if (dataType === undefined || dataType === null) { - throw new Error("Missing the required parameter 'dataType' when calling viewDataExportById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling viewDataExportById"); - } - - let pathParams = { - 'data_type': dataType, - 'request_id': requestId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewDataExportByIdResponse; - return this.apiClient.callApi( - '/v3/export/{data_type}/{request_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a data export - * ## View a data export Retrieves information on a message, channel or user data export. https://sendbird.com/docs/chat/v3/platform-api/guides/data-export#2-view-a-data-export ---------------------------- `data_type` Type: string Description: Specifies the type of a targeted data export. Acceptable values are messages, channels, users, and failed_webhooks. `request_id` Type: string Description: Specifies the unique ID of a data export to retrieve. - * @param {String} apiToken - * @param {String} dataType - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewDataExportByIdResponse} - */ - viewDataExportById(apiToken, dataType, requestId) { - return this.viewDataExportByIdWithHttpInfo(apiToken, dataType, requestId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - -} diff --git a/src/api/GroupChannelApi.js b/src/api/GroupChannelApi.js index 74b1f09..2fb7552 100644 --- a/src/api/GroupChannelApi.js +++ b/src/api/GroupChannelApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,29 +13,29 @@ import ApiClient from "../ApiClient"; -import GcAcceptInvitationData from '../model/GcAcceptInvitationData'; -import GcCheckIfMemberByIdResponse from '../model/GcCheckIfMemberByIdResponse'; -import GcCreateChannelData from '../model/GcCreateChannelData'; -import GcDeclineInvitationData from '../model/GcDeclineInvitationData'; -import GcHideOrArchiveChannelData from '../model/GcHideOrArchiveChannelData'; -import GcInviteAsMembersData from '../model/GcInviteAsMembersData'; -import GcJoinChannelData from '../model/GcJoinChannelData'; -import GcLeaveChannelData from '../model/GcLeaveChannelData'; -import GcListChannelsResponse from '../model/GcListChannelsResponse'; -import GcListMembersResponse from '../model/GcListMembersResponse'; -import GcListOperatorsResponse from '../model/GcListOperatorsResponse'; -import GcRegisterOperatorsData from '../model/GcRegisterOperatorsData'; -import GcRegisterOperatorsResponse from '../model/GcRegisterOperatorsResponse'; -import GcResetChatHistoryData from '../model/GcResetChatHistoryData'; -import GcResetChatHistoryResponse from '../model/GcResetChatHistoryResponse'; -import GcUpdateChannelByUrlData from '../model/GcUpdateChannelByUrlData'; -import OcDeleteChannelByUrl200Response from '../model/OcDeleteChannelByUrl200Response'; -import SendBirdGroupChannel from '../model/SendBirdGroupChannel'; +import AcceptAnInvitationRequest from '../model/AcceptAnInvitationRequest'; +import CheckIfMemberResponse from '../model/CheckIfMemberResponse'; +import CreateAGroupChannelRequest from '../model/CreateAGroupChannelRequest'; +import GetAGroupChannelResponse from '../model/GetAGroupChannelResponse'; +import GroupChannelListMembersResponse from '../model/GroupChannelListMembersResponse'; +import GroupChatListChannelsResponse from '../model/GroupChatListChannelsResponse'; +import HideAChannelRequest from '../model/HideAChannelRequest'; +import InviteAsMembersRequest from '../model/InviteAsMembersRequest'; +import InviteAsMembersResponse from '../model/InviteAsMembersResponse'; +import JoinAChannelRequest from '../model/JoinAChannelRequest'; +import LeaveAChannelRequest from '../model/LeaveAChannelRequest'; +import ListOperatorsResponse from '../model/ListOperatorsResponse'; +import RegisterOperatorsToAGroupChannelRequest from '../model/RegisterOperatorsToAGroupChannelRequest'; +import ResetChatHistoryRequest from '../model/ResetChatHistoryRequest'; +import ResetChatHistoryResponse from '../model/ResetChatHistoryResponse'; +import SendbirdGroupChannelDetail from '../model/SendbirdGroupChannelDetail'; +import StartTypingIndicatorsRequest from '../model/StartTypingIndicatorsRequest'; +import UpdateAGroupChannelRequest from '../model/UpdateAGroupChannelRequest'; /** * GroupChannel service. * @module api/GroupChannelApi -* @version 0.0.16 +* @version 2.0.0 */ export default class GroupChannelApi { @@ -54,23 +54,19 @@ export default class GroupChannelApi { /** * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcAcceptInvitationData} opts.gcAcceptInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AcceptAnInvitationRequest} opts.acceptAnInvitationRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, opts) { + acceptAnInvitationWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcAcceptInvitationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcAcceptInvitation"); - } + let postBody = opts['acceptAnInvitationRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcAcceptInvitation"); + throw new Error("Missing the required parameter 'channelUrl' when calling acceptAnInvitation"); } let pathParams = { @@ -79,7 +75,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -87,7 +83,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = SendbirdGroupChannelDetail; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/accept', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -97,15 +93,15 @@ export default class GroupChannelApi { /** * Accept an invitation - * ## Accept an invitation Accepts an invitation from a [private](#4-private-vs-public) group channel for a user to join. Since a user is allowed to join up to 2,000 group channels, the invitation to a user who already belongs to a maximum number of group channels will be canceled automatically. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-accept-an-invitation ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Accept an invitation Accepts an invitation from a group channel for a user to join. A single user may join up to 2,000 group channels, and any invitation to a user who is at capacity will be automatically canceled. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: This action is only available when the `auto_accept` property of an application is set to **false**. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) action, or the [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference) action. [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/accept-an-invitation-channel#1-accept-an-invitation) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcAcceptInvitationData} opts.gcAcceptInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/AcceptAnInvitationRequest} opts.acceptAnInvitationRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - gcAcceptInvitation(apiToken, channelUrl, opts) { - return this.gcAcceptInvitationWithHttpInfo(apiToken, channelUrl, opts) + acceptAnInvitation(channelUrl, opts) { + return this.acceptAnInvitationWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -114,39 +110,35 @@ export default class GroupChannelApi { /** * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * ## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) { + cancelTheRegistrationOfOperatorsWithHttpInfo(channelUrl, operatorIds, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCancelTheRegistrationOfOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcCancelTheRegistrationOfOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling cancelTheRegistrationOfOperators"); } // verify the required parameter 'operatorIds' is set if (operatorIds === undefined || operatorIds === null) { - throw new Error("Missing the required parameter 'operatorIds' when calling gcCancelTheRegistrationOfOperators"); + throw new Error("Missing the required parameter 'operatorIds' when calling cancelTheRegistrationOfOperators"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { - 'operator_ids': this.apiClient.buildCollectionParam(operatorIds, 'multi'), + 'operator_ids': operatorIds, 'delete_all': opts['deleteAll'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -154,7 +146,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/operators', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, @@ -164,16 +156,16 @@ export default class GroupChannelApi { /** * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from a group channel but leave them as members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * ## Unregister operators from a group channel You can unregister operators in a group channel but keep them in the channel as members using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-a-group-channel#1-unregister-operators-from-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) { - return this.gcCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) + cancelTheRegistrationOfOperators(channelUrl, operatorIds, opts) { + return this.cancelTheRegistrationOfOperatorsWithHttpInfo(channelUrl, operatorIds, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -182,25 +174,23 @@ export default class GroupChannelApi { /** * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcCheckIfMemberByIdResponse} and HTTP response + * ## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member) + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CheckIfMemberResponse} and HTTP response */ - gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId) { + checkIfMemberWithHttpInfo(channelUrl, userId, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCheckIfMemberById"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcCheckIfMemberById"); + throw new Error("Missing the required parameter 'channelUrl' when calling checkIfMember"); } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling gcCheckIfMemberById"); + throw new Error("Missing the required parameter 'userId' when calling checkIfMember"); } let pathParams = { @@ -210,7 +200,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -218,7 +208,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = GcCheckIfMemberByIdResponse; + let returnType = CheckIfMemberResponse; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/members/{user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -228,14 +218,15 @@ export default class GroupChannelApi { /** * Check if member - * ## Check if member Checks whether the user is a member of the group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-check-if-member ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcCheckIfMemberByIdResponse} + * ## Check if user is a member Checks if a user is a member of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/check-if-user-is-a-member#1-check-if-user-is-a-member) + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CheckIfMemberResponse} */ - gcCheckIfMemberById(apiToken, channelUrl, userId) { - return this.gcCheckIfMemberByIdWithHttpInfo(apiToken, channelUrl, userId) + checkIfMember(channelUrl, userId, opts) { + return this.checkIfMemberWithHttpInfo(channelUrl, userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -243,27 +234,23 @@ export default class GroupChannelApi { /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param {String} apiToken + * Create a group channel + * ## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel * @param {Object} opts Optional parameters - * @param {module:model/GcCreateChannelData} opts.gcCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAGroupChannelRequest} opts.createAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - gcCreateChannelWithHttpInfo(apiToken, opts) { + createAGroupChannelWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['gcCreateChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcCreateChannel"); - } + let postBody = opts['createAGroupChannelRequest']; let pathParams = { }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -271,7 +258,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = SendbirdGroupChannelDetail; return this.apiClient.callApi( '/v3/group_channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -280,15 +267,15 @@ export default class GroupChannelApi { } /** - * Create a channel - * ## Create a channel Creates a new group channel. > If you are creating a 1-on-1 direct messaging channel for a user, it is recommended that you turn on the `distinct` property. If the property is turned off, a user can create a new channel even if they have had the previous chat between them, and therefore can't see previously sent messages or data in the new channel. On the other hand, if the `distinct` property is turned on, every 1-on-1 conversation between the same two users occurs within the same channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel - * @param {String} apiToken + * Create a group channel + * ## Create a group channel You can create a group channel for 1-to-1 and 1-to-N conversations. By default, group channels are used for conversations between up to 100 members. This number can stretch up to tens of thousands in Supergroup channels. Group channels can either be private and invite only, or public. They support typing indicators, unread count and read receipts, allowing for an interactive chat experience. A user can join up to 2000 group channels, and higher numbers would negatively impact the performance for the end user. The Chat history is turned off by default and its settings can be changed on Sendbird Dashboard by going to Settings > Chat > Channels > Group channels > Chat history. To learn more about group channels, see Channel Overview. > If you are seeing the error message Maximum \"channel join\" count reached., then consider deleting channels that are no longer used. For situations where an agent connects with many customers such as support, delivery logistics or sales, we recommend using Sendbird Desk. https://sendbird.com/docs/chat/platform-api/v3/channel/creating-a-channel/create-a-group-channel#1-create-a-group-channel * @param {Object} opts Optional parameters - * @param {module:model/GcCreateChannelData} opts.gcCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/CreateAGroupChannelRequest} opts.createAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - gcCreateChannel(apiToken, opts) { - return this.gcCreateChannelWithHttpInfo(apiToken, opts) + createAGroupChannel(opts) { + return this.createAGroupChannelWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -296,24 +283,19 @@ export default class GroupChannelApi { /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param {String} apiToken + * Delete a group channel + * ## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel) * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcDeclineInvitationData} opts.gcDeclineInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, opts) { + deleteAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcDeclineInvitationData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcDeclineInvitation"); - } + let postBody = null; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcDeclineInvitation"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAGroupChannel"); } let pathParams = { @@ -322,33 +304,32 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/decline', 'PUT', + '/v3/group_channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Decline an invitation - * ## Decline an invitation Declines an invitation for a user to not join a [private](#4-private-vs-public) group channel. > __Note__: This action is effective only when the `auto_accept` property of an application is set to false. You can change the value of the property using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, or [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-decline-an-invitation ---------------------------- - * @param {String} apiToken + * Delete a group channel + * ## Delete a group channel You can delete a group channel or a Supergroup channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-a-group-channel#1-delete-a-group-channel) * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcDeclineInvitationData} opts.gcDeclineInvitationData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcDeclineInvitation(apiToken, channelUrl, opts) { - return this.gcDeclineInvitationWithHttpInfo(apiToken, channelUrl, opts) + deleteAGroupChannel(channelUrl, opts) { + return this.deleteAGroupChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -356,30 +337,38 @@ export default class GroupChannelApi { /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken + * Get a group channel + * ## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {Object} opts Optional parameters + * @param {Boolean} opts.showDeliveryReceipt + * @param {Boolean} opts.showReadReceipt + * @param {Boolean} opts.showMember + * @param {module:model/String} opts.memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAGroupChannelResponse} and HTTP response */ - gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) { + getAGroupChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcDeleteChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcDeleteChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling getAGroupChannel"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { + 'show_delivery_receipt': opts['showDeliveryReceipt'], + 'show_read_receipt': opts['showReadReceipt'], + 'show_member': opts['showMember'], + 'member_active_mode': opts['memberActiveMode'], + 'user_id': opts['userId'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -387,23 +376,29 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = GetAGroupChannelResponse; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}', 'DELETE', + '/v3/group_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Delete a channel - * ## Delete a channel Deletes a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken + * Get a group channel + * ## Get a group channel This action retrieves information about a specific [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use the optional query parameters to determine whether to include delivery receipt, read receipt, or member information in the response. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-a-group-channel#1-get-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {Object} opts Optional parameters + * @param {Boolean} opts.showDeliveryReceipt + * @param {Boolean} opts.showReadReceipt + * @param {Boolean} opts.showMember + * @param {module:model/String} opts.memberActiveMode Restricts the member list to members who are activated or deactivated in the channel. This parameter is only effective if the parameter show_member is true. Acceptable values are all, activated, and deactivated. (default: all) + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAGroupChannelResponse} */ - gcDeleteChannelByUrl(apiToken, channelUrl) { - return this.gcDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) + getAGroupChannel(channelUrl, opts) { + return this.getAGroupChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -411,24 +406,20 @@ export default class GroupChannelApi { /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Hide a channel + * ## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcHideOrArchiveChannelData} opts.gcHideOrArchiveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/HideAChannelRequest} opts.hideAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, opts) { + hideAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcHideOrArchiveChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcHideOrArchiveChannel"); - } + let postBody = opts['hideAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcHideOrArchiveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling hideAChannel"); } let pathParams = { @@ -437,7 +428,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -445,7 +436,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/hide', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -454,16 +445,16 @@ export default class GroupChannelApi { } /** - * Hide or archive a channel - * ## Hide or archive a channel Hides or archives a channel from the channel list of either a specific user or entire channel members. Normally, a hidden channel comes back and shows up in the channel list when a member in the channel sends a new message. This automatically-triggered behavior is intended for users who want to temporarily remove a channel from their list because [leaving the channel](#2-leave-the-channel) would delete all the past messages and stored data. You can also leave out a channel from the list and archive the channel. The channel doesn't appear even when receiving a new message from other member. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-hide-or-archive-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Hide a channel + * ## Hide a channel This action allows you to hide a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) from a user's channel list. Hiding a channel gives users the ability to archive channels so that they can focus on channels that need the most attention. With this API, you can allow users to hide a channel from themselves or from all channel members. You can also determine whether to have the channel remain hidden when a new message is sent to the channel. Note that only group channels can be hidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/hide-a-channel#1-hide-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcHideOrArchiveChannelData} opts.gcHideOrArchiveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/HideAChannelRequest} opts.hideAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcHideOrArchiveChannel(apiToken, channelUrl, opts) { - return this.gcHideOrArchiveChannelWithHttpInfo(apiToken, channelUrl, opts) + hideAChannel(channelUrl, opts) { + return this.hideAChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -472,23 +463,19 @@ export default class GroupChannelApi { /** * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcInviteAsMembersData} opts.gcInviteAsMembersData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/InviteAsMembersRequest} opts.inviteAsMembersRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InviteAsMembersResponse} and HTTP response */ - gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, opts) { + inviteAsMembersWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcInviteAsMembersData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcInviteAsMembers"); - } + let postBody = opts['inviteAsMembersRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcInviteAsMembers"); + throw new Error("Missing the required parameter 'channelUrl' when calling inviteAsMembers"); } let pathParams = { @@ -497,7 +484,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -505,7 +492,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = InviteAsMembersResponse; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/invite', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -515,15 +502,15 @@ export default class GroupChannelApi { /** * Invite as members - * ## Invite as members Invites one or more users as members into the group channel. > __Note__: By default, users in your application automatically join a [private](#4-private-vs-public) group channel promptly from an invitation without having to accept it. If you want to give them the option to decide whether to accept or decline an invitation, you should set the value of channel invitation preference to false through the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action. Or using the [update a user's channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference) action, you can also allow the option individually by user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-invite-as-members ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Invite as members Invites one or more users as members to a group channel. Users can join a group channel immediately after receiving an invitation, without having to accept it. To give users an option to accept or decline an invitation, see [update default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) or [update channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference). See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. > **Note**: By default, [blocked users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users) are included when sending invitations. If you wish to exclude blocked users, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). [https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel#1-invite-as-members) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcInviteAsMembersData} opts.gcInviteAsMembersData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/InviteAsMembersRequest} opts.inviteAsMembersRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InviteAsMembersResponse} */ - gcInviteAsMembers(apiToken, channelUrl, opts) { - return this.gcInviteAsMembersWithHttpInfo(apiToken, channelUrl, opts) + inviteAsMembers(channelUrl, opts) { + return this.inviteAsMembersWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -532,23 +519,19 @@ export default class GroupChannelApi { /** * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcJoinChannelData} opts.gcJoinChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @param {module:model/JoinAChannelRequest} opts.joinAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - gcJoinChannelWithHttpInfo(apiToken, channelUrl, opts) { + joinAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcJoinChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcJoinChannel"); - } + let postBody = opts['joinAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcJoinChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling joinAChannel"); } let pathParams = { @@ -557,15 +540,15 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = SendbirdGroupChannelDetail; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/join', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -575,15 +558,15 @@ export default class GroupChannelApi { /** * Join a channel - * ## Join a channel Allows a user to join a [public](#4-private-vs-public) group channel. Since a user is allowed to join up to 2,000 group channels, a user who already belongs to a maximum number of group channels can't join a new channel. > __Note__: This action is only permitted for public group channels where the `is_public` property is true. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-join-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Join a channel This API allows a user to join a [public](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-group-channel-types) group channel. Users can only join public group channels where the `is_public` property is set to `true` using this API. A single user can join up to 2,000 group channels, and a user who reaches the capacity can’t join a new channel. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/join-a-channel#1-join-a-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcJoinChannelData} opts.gcJoinChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @param {module:model/JoinAChannelRequest} opts.joinAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - gcJoinChannel(apiToken, channelUrl, opts) { - return this.gcJoinChannelWithHttpInfo(apiToken, channelUrl, opts) + joinAChannel(channelUrl, opts) { + return this.joinAChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -593,22 +576,18 @@ export default class GroupChannelApi { /** * Leave a channel * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param {String} apiToken * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcLeaveChannelData} opts.gcLeaveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/LeaveAChannelRequest} opts.leaveAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcLeaveChannelWithHttpInfo(apiToken, channelUrl, opts) { + leaveAChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcLeaveChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcLeaveChannel"); - } + let postBody = opts['leaveAChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcLeaveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling leaveAChannel"); } let pathParams = { @@ -617,7 +596,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'Api-Token': opts['apiToken'] }; let formParams = { }; @@ -625,7 +604,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/leave', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -636,14 +615,14 @@ export default class GroupChannelApi { /** * Leave a channel * ## Leave a channel Makes one or more members leave a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-leave-a-channel ---------------------------- - * @param {String} apiToken * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {module:model/GcLeaveChannelData} opts.gcLeaveChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/LeaveAChannelRequest} opts.leaveAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcLeaveChannel(apiToken, channelUrl, opts) { - return this.gcLeaveChannelWithHttpInfo(apiToken, channelUrl, opts) + leaveAChannel(channelUrl, opts) { + return this.leaveAChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -652,59 +631,59 @@ export default class GroupChannelApi { /** * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- + * ## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels * @param {String} apiToken * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt * @param {Boolean} opts.showMetadata * @param {Boolean} opts.showFrozen - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {Boolean} opts.includeSortedMetaarrayInLastMessage - * @param {String} opts.customType - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @param {Boolean} opts.isDistinct - * @param {String} opts.membersIn - * @param {String} opts.userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListChannelsResponse} and HTTP response + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId (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. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GroupChatListChannelsResponse} and HTTP response */ - gcListChannelsWithHttpInfo(apiToken, opts) { + listChannelsWithHttpInfo(apiToken, opts) { opts = opts || {}; let postBody = null; // verify the required parameter 'apiToken' is set if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListChannels"); + throw new Error("Missing the required parameter 'apiToken' when calling listChannels"); } let pathParams = { @@ -754,7 +733,7 @@ export default class GroupChannelApi { 'user_id': opts['userId'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': apiToken }; let formParams = { }; @@ -762,7 +741,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = GcListChannelsResponse; + let returnType = GroupChatListChannelsResponse; return this.apiClient.callApi( '/v3/group_channels', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -772,55 +751,55 @@ export default class GroupChannelApi { /** * List channels - * ## List channels Retrieves a list of group channels in the application. > __Note__: If you want to get a list of a specific user's group channels, use the [list my group channels](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels) action instead. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-channels ---------------------------- + * ## List group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you want to retrieve a list of group channels that a specific user has joined, use the [list group channels by user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user) action under the User section. https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels#1-list-group-channels * @param {String} apiToken * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt * @param {Boolean} opts.showMetadata * @param {Boolean} opts.showFrozen - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {Boolean} opts.includeSortedMetaarrayInLastMessage - * @param {String} opts.customType - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @param {Boolean} opts.isDistinct - * @param {String} opts.membersIn - * @param {String} opts.userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListChannelsResponse} + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId (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. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GroupChatListChannelsResponse} */ - gcListChannels(apiToken, opts) { - return this.gcListChannelsWithHttpInfo(apiToken, opts) + listChannels(apiToken, opts) { + return this.listChannelsWithHttpInfo(apiToken, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -829,31 +808,31 @@ export default class GroupChannelApi { /** * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param {String} apiToken - * @param {String} channelUrl + * ## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.userId Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.operatorFilter - * @param {String} opts.memberStateFilter - * @param {String} opts.mutedMemberFilter - * @param {String} opts.nicknameStartswith - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListMembersResponse} and HTTP response + * @param {Boolean} opts.showMemberIsMuted + * @param {module:model/String} opts.order Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. + * @param {module:model/String} opts.operatorFilter Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. + * @param {module:model/String} opts.memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) + * @param {module:model/String} opts.mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) + * @param {module:model/String} opts.memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) + * @param {String} opts.nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. + * @param {Boolean} opts.includePushPreference Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GroupChannelListMembersResponse} and HTTP response */ - gcListMembersWithHttpInfo(apiToken, channelUrl, opts) { + listMembersWithHttpInfo(channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListMembers"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListMembers"); + throw new Error("Missing the required parameter 'channelUrl' when calling listMembers"); } let pathParams = { @@ -862,16 +841,20 @@ export default class GroupChannelApi { let queryParams = { 'token': opts['token'], 'limit': opts['limit'], + 'user_id': opts['userId'], 'show_delivery_receipt': opts['showDeliveryReceipt'], 'show_read_receipt': opts['showReadReceipt'], + 'show_member_is_muted': opts['showMemberIsMuted'], 'order': opts['order'], 'operator_filter': opts['operatorFilter'], 'member_state_filter': opts['memberStateFilter'], 'muted_member_filter': opts['mutedMemberFilter'], - 'nickname_startswith': opts['nicknameStartswith'] + 'member_active_mode_filter': opts['memberActiveModeFilter'], + 'nickname_startswith': opts['nicknameStartswith'], + 'include_push_preference': opts['includePushPreference'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -879,7 +862,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = GcListMembersResponse; + let returnType = GroupChannelListMembersResponse; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/members', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -889,23 +872,27 @@ export default class GroupChannelApi { /** * List members - * ## List members Retrieves a list of members of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-members ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. - * @param {String} apiToken - * @param {String} channelUrl + * ## List members Retrieves a list of members of a group channel. > **Note**: See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-users/list-members-of-a-group-channel#1-list-members-of-a-group-channel) `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of members of. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.userId Specifies the unique ID of a user. If `user_id` is provided, the response will include two additional boolean properties about each user in the members list. - `is_blocking_me`: Indicates whether the listed user is blocking the user specified in the user_id parameter. - `is_blocked_by_me`: Indicates whether the listed user is blocked by the user specified in the user_id parameter. * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.operatorFilter - * @param {String} opts.memberStateFilter - * @param {String} opts.mutedMemberFilter - * @param {String} opts.nicknameStartswith - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListMembersResponse} + * @param {Boolean} opts.showMemberIsMuted + * @param {module:model/String} opts.order Specifies the method to sort a list of results. Acceptable values are the following: - `member_nickname_alphabetical` (default): sorts by the member nicknames in alphabetical order. - `operator_then_member_alphabetical`: sorts by the operational role and member nickname in alphabetical order where channel operators are listed before channel members. + * @param {module:model/String} opts.operatorFilter Restricts the search scope to only retrieve operators or non-operator members of the channel. Acceptable values are the following: - `all` (default): no filter is applied to the list. - `operator`: only channel operators are retrieved. - `nonoperator`: all channel members, except channel operators, are retrieved. + * @param {module:model/String} opts.memberStateFilter Restricts the search scope to retrieve members based on if they have accepted an invitation or if they were invited by a friend. Acceptable values are `invited_only`, `joined_only`, `invited_by_friend`, `invited_by_non_friend`, and `all`. (Default: `all`) + * @param {module:model/String} opts.mutedMemberFilter Restricts the search scope to retrieve members who are muted or unmuted in the channel. Acceptable values are `all`, `muted`, and `unmuted`. (Default: `all`) + * @param {module:model/String} opts.memberActiveModeFilter Restricts the search scope to retrieve members who are activated or deactivated in the channel. Acceptable values are `all`, `activated`, and `deactivated`. (default: `activated`) + * @param {String} opts.nicknameStartswith Searches for members whose nicknames start with the specified value. Urlencoding the value is recommended. + * @param {Boolean} opts.includePushPreference Determines whether to include information about the push preference of each member, such as `push_enabled`, `push_trigger_option`, and `do_not_disturb`. (Default: `false`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GroupChannelListMembersResponse} */ - gcListMembers(apiToken, channelUrl, opts) { - return this.gcListMembersWithHttpInfo(apiToken, channelUrl, opts) + listMembers(channelUrl, opts) { + return this.listMembersWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -914,24 +901,20 @@ export default class GroupChannelApi { /** * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * ## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListOperatorsResponse} and HTTP response + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOperatorsResponse} and HTTP response */ - gcListOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + listOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling listOperators"); } let pathParams = { @@ -942,7 +925,7 @@ export default class GroupChannelApi { 'limit': opts['limit'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -950,7 +933,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = GcListOperatorsResponse; + let returnType = ListOperatorsResponse; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/operators', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -960,16 +943,16 @@ export default class GroupChannelApi { /** * List operators - * ## List operators Retrieves a list of operators of a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * ## List operators You can retrieve a list of operators of a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-a-group-channel#1-list-operators-of-a-group-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListOperatorsResponse} + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOperatorsResponse} */ - gcListOperators(apiToken, channelUrl, opts) { - return this.gcListOperatorsWithHttpInfo(apiToken, channelUrl, opts) + listOperators(channelUrl, opts) { + return this.listOperatorsWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -977,24 +960,20 @@ export default class GroupChannelApi { /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to a group channel + * ## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcRegisterOperatorsData} opts.gcRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcRegisterOperatorsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + registerOperatorsToAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcRegisterOperatorsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcRegisterOperators"); - } + let postBody = opts['registerOperatorsToAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcRegisterOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling registerOperatorsToAGroupChannel"); } let pathParams = { @@ -1003,7 +982,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1011,7 +990,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = GcRegisterOperatorsResponse; + let returnType = Object; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/operators', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -1020,16 +999,16 @@ export default class GroupChannelApi { } /** - * Register operators - * ## Register operators Registers one or more operators to a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to a group channel + * ## Register operators to a group channel You can register one or more operators to a group channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-a-group-channel#1-register-operators-to-a-group-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcRegisterOperatorsData} opts.gcRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcRegisterOperatorsResponse} + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcRegisterOperators(apiToken, channelUrl, opts) { - return this.gcRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) + registerOperatorsToAGroupChannel(channelUrl, opts) { + return this.registerOperatorsToAGroupChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1038,23 +1017,19 @@ export default class GroupChannelApi { /** * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcResetChatHistoryData} opts.gcResetChatHistoryData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcResetChatHistoryResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/ResetChatHistoryRequest} opts.resetChatHistoryRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetChatHistoryResponse} and HTTP response */ - gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, opts) { + resetChatHistoryWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcResetChatHistoryData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcResetChatHistory"); - } + let postBody = opts['resetChatHistoryRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcResetChatHistory"); + throw new Error("Missing the required parameter 'channelUrl' when calling resetChatHistory"); } let pathParams = { @@ -1063,7 +1038,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1071,7 +1046,7 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = GcResetChatHistoryResponse; + let returnType = ResetChatHistoryResponse; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/reset_user_history', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -1081,15 +1056,15 @@ export default class GroupChannelApi { /** * Reset chat history - * ## Reset chat history Resets the properties related to a user's chat history in a group channel, then clears the existing messages in the channel on the user's side only. A user can no longer see the messages in a group channel once this action is called, but those messages are not deleted from the database of the Sendbird system. All other members in the channel can retrieve and see the messages. This action simply clears the messages for the user by updating the `last_message` and `read_receipt` properties of the [channel](#2-types-of-a-channel-3-resource-representation) resource in addition to other internally managed data such as the number of the user's unread message. Using the `reset_all` property, you can also reset the properties related to all users' chat history in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-reset-chat-history ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Reset chat history This action resets the properties related to a specific user's chat history in a [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel), clearing existing messages in a channel from only the specified user's end. Because this action doesn't delete messages from the Sendbird database, other members in the channel can still retrieve and see the messages. This action clears the messages for the specified user by updating the `last_message` and `read_receipt` properties of the [group channel resource](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-list-of-properties-for-group-channels) in addition to other internally managed data such as the count of a user's unread messages. Using the `reset_all` property, you can also reset the properties related to the chat history of all members in a group channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/reset-chat-history#1-reset-chat-history + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcResetChatHistoryData} opts.gcResetChatHistoryData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcResetChatHistoryResponse} + * @param {String} opts.apiToken + * @param {module:model/ResetChatHistoryRequest} opts.resetChatHistoryRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetChatHistoryResponse} */ - gcResetChatHistory(apiToken, channelUrl, opts) { - return this.gcResetChatHistoryWithHttpInfo(apiToken, channelUrl, opts) + resetChatHistory(channelUrl, opts) { + return this.resetChatHistoryWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1097,67 +1072,55 @@ export default class GroupChannelApi { /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId + * Start typing indicators + * ## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.shouldUnhideAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, opts) { + startTypingIndicatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnhideOrUnarchiveChannel"); - } + let postBody = opts['startTypingIndicatorsRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnhideOrUnarchiveChannel"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling gcUnhideOrUnarchiveChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling startTypingIndicators"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { - 'user_id': userId, - 'should_unhide_all': opts['shouldUnhideAll'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/hide', 'DELETE', + '/v3/group_channels/{channel_url}/typing', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Unhide or unarchive a channel - * ## Unhide or unarchive a channel Makes a hidden or archived channel reappear in the channel list of either a specific user or entire channel members. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unhide-or-unarchive-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} userId + * Start typing indicators + * ## Start typing indicators You can start showing a typing indicator using this API. Seeing whether other users are typing can help a more interactive conversation environment by showing real-time engagement of other users. If you're looking for an easy way to show typing indicators on your app, check out Sendbird UIKit for a ready-to-use UI feature that can be customized to fit your needs. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/start-typing-indicators#1-start-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.shouldUnhideAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcUnhideOrUnarchiveChannel(apiToken, channelUrl, userId, opts) { - return this.gcUnhideOrUnarchiveChannelWithHttpInfo(apiToken, channelUrl, userId, opts) + startTypingIndicators(channelUrl, opts) { + return this.startTypingIndicatorsWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1165,24 +1128,20 @@ export default class GroupChannelApi { /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Stop typing indicators + * ## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateChannelByUrlData} opts.gcUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + stopTypingIndicatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcUpdateChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUpdateChannelByUrl"); - } + let postBody = opts['startTypingIndicatorsRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUpdateChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling stopTypingIndicators"); } let pathParams = { @@ -1191,7 +1150,7 @@ export default class GroupChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1199,25 +1158,25 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = Object; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}', 'PUT', + '/v3/group_channels/{channel_url}/typing', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update a channel - * ## Update a channel Updates information on a group channel. > __Note__: You can't change the members of the channel here. To do so, see [invite as members](#2-invite-as-members) action below. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Stop typing indicators + * ## Stop typing indicators You can stop showing a typing indicator using this API. To signal that a user is no longer typing, you can let the indicator disappear when the user sends a message or completely deletes the message text. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-typing-indicators/stop-typing-indicators#1-stop-typing-indicators `channel_url` Type: string Description: Specifies the URL of the channel to set typing indicators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateChannelByUrlData} opts.gcUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/StartTypingIndicatorsRequest} opts.startTypingIndicatorsRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - gcUpdateChannelByUrl(apiToken, channelUrl, opts) { - return this.gcUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) + stopTypingIndicators(channelUrl, opts) { + return this.stopTypingIndicatorsWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1225,42 +1184,36 @@ export default class GroupChannelApi { /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param {String} apiToken - * @param {String} channelUrl + * Unhide a channel + * ## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. + * @param {String} channelUrl (Required) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.showDeliveryReceipt - * @param {Boolean} opts.showReadReceipt - * @param {Boolean} opts.showMember - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {Boolean} opts.shouldUnhideAll + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + unhideAChannelWithHttpInfo(channelUrl, userId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling unhideAChannel"); + } + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling unhideAChannel"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { - 'show_delivery_receipt': opts['showDeliveryReceipt'], - 'show_read_receipt': opts['showReadReceipt'], - 'show_member': opts['showMember'], - 'read_receipt': opts['readReceipt'], - 'member': opts['member'] + 'user_id': userId, + 'should_unhide_all': opts['shouldUnhideAll'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1268,29 +1221,82 @@ export default class GroupChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = Object; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}', 'GET', + '/v3/group_channels/{channel_url}/hide', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View a channel - * ## View a channel Retrieves information on a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-channel ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve. - * @param {String} apiToken + * Unhide a channel + * ## Unhide a channel This action lets a hidden [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) reappear on the channel list of a specific user or every member in the group channel. Hiding or unhiding a channel lets users organize their channel list based on those that require the most attention. Note that only group channels can be hidden or unhidden. [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/unhide-a-channel#1-unhide-a-channel) `channel_url` Type: string Description: Specifies the URL of the channel to unhide or unarchive. + * @param {String} channelUrl (Required) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {Boolean} opts.shouldUnhideAll + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */ + unhideAChannel(channelUrl, userId, opts) { + return this.unhideAChannelWithHttpInfo(channelUrl, userId, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Update a group channel + * ## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel * @param {String} channelUrl * @param {Object} opts Optional parameters - * @param {Boolean} opts.showDeliveryReceipt - * @param {Boolean} opts.showReadReceipt - * @param {Boolean} opts.showMember - * @param {Boolean} opts.readReceipt - * @param {Boolean} opts.member - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/UpdateAGroupChannelRequest} opts.updateAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response + */ + updateAGroupChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; + let postBody = opts['updateAGroupChannelRequest']; + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling updateAGroupChannel"); + } + + let pathParams = { + 'channel_url': channelUrl + }; + let queryParams = { + }; + let headerParams = { + 'api-token': opts['apiToken'] + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = SendbirdGroupChannelDetail; + return this.apiClient.callApi( + '/v3/group_channels/{channel_url}', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update a group channel + * ## Update a group channel You can update information about a group channel or a Supergroup channel using this API. You can't make any changes to the members of a channel with this API. To change members, see [invite as members](https://sendbird.com/docs/chat/platform-api/v3/channel/inviting-a-user/invite-as-members-channel) instead. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-a-group-channel#1-update-a-group-channel + * @param {String} channelUrl + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAGroupChannelRequest} opts.updateAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - gcViewChannelByUrl(apiToken, channelUrl, opts) { - return this.gcViewChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) + updateAGroupChannel(channelUrl, opts) { + return this.updateAGroupChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/MessageApi.js b/src/api/MessageApi.js index 69c6ee9..9d4b7f3 100644 --- a/src/api/MessageApi.js +++ b/src/api/MessageApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,43 +13,21 @@ import ApiClient from "../ApiClient"; -import AddEmojiCategoriesResponse from '../model/AddEmojiCategoriesResponse'; -import AddEmojisData from '../model/AddEmojisData'; -import AddEmojisResponse from '../model/AddEmojisResponse'; -import AddExtraDataToMessageData from '../model/AddExtraDataToMessageData'; -import AddExtraDataToMessageResponse from '../model/AddExtraDataToMessageResponse'; -import AddReactionToAMessageData from '../model/AddReactionToAMessageData'; -import AddReactionToAMessageResponse from '../model/AddReactionToAMessageResponse'; -import EnableReactionsData from '../model/EnableReactionsData'; -import EnableReactionsResponse from '../model/EnableReactionsResponse'; -import GcMarkAllMessagesAsDeliveredData from '../model/GcMarkAllMessagesAsDeliveredData'; -import GcMarkAllMessagesAsDeliveredResponse from '../model/GcMarkAllMessagesAsDeliveredResponse'; -import GcMarkAllMessagesAsReadData from '../model/GcMarkAllMessagesAsReadData'; -import GcViewNumberOfEachMembersUnreadMessagesResponse from '../model/GcViewNumberOfEachMembersUnreadMessagesResponse'; -import ListAllEmojisAndEmojiCategoriesResponse from '../model/ListAllEmojisAndEmojiCategoriesResponse'; -import ListAnnouncementsResponse from '../model/ListAnnouncementsResponse'; -import ListEmojisResponse from '../model/ListEmojisResponse'; +import AddExtraDataToAMessageRequest from '../model/AddExtraDataToAMessageRequest'; +import AddExtraDataToAMessageResponse from '../model/AddExtraDataToAMessageResponse'; +import GetTotalNumberOfMessagesInAChannelResponse from '../model/GetTotalNumberOfMessagesInAChannelResponse'; import ListMessagesResponse from '../model/ListMessagesResponse'; -import ListReactionsOfMessageResponse from '../model/ListReactionsOfMessageResponse'; -import RemoveReactionFromAMessageResponse from '../model/RemoveReactionFromAMessageResponse'; -import SendBirdEmoji from '../model/SendBirdEmoji'; -import SendBirdEmojiCategory from '../model/SendBirdEmojiCategory'; -import SendBirdMessageResponse from '../model/SendBirdMessageResponse'; -import SendMessageData from '../model/SendMessageData'; -import TranslateMessageIntoOtherLanguagesData from '../model/TranslateMessageIntoOtherLanguagesData'; -import UpdateEmojiCategoryUrlByIdData from '../model/UpdateEmojiCategoryUrlByIdData'; -import UpdateEmojiUrlByKeyData from '../model/UpdateEmojiUrlByKeyData'; -import UpdateExtraDataInMessageData from '../model/UpdateExtraDataInMessageData'; -import UpdateExtraDataInMessageResponse from '../model/UpdateExtraDataInMessageResponse'; -import UpdateMessageByIdData from '../model/UpdateMessageByIdData'; -import UseDefaultEmojisData from '../model/UseDefaultEmojisData'; -import UseDefaultEmojisResponse from '../model/UseDefaultEmojisResponse'; -import ViewTotalNumberOfMessagesInChannelResponse from '../model/ViewTotalNumberOfMessagesInChannelResponse'; +import MarkChannelMessagesAsReadRequest from '../model/MarkChannelMessagesAsReadRequest'; +import SendAMessageRequest from '../model/SendAMessageRequest'; +import SendbirdMessageResponse from '../model/SendbirdMessageResponse'; +import UpdateAMessageRequest from '../model/UpdateAMessageRequest'; +import UpdateExtraDataInAMessageRequest from '../model/UpdateExtraDataInAMessageRequest'; +import UpdateExtraDataInAMessageResponse from '../model/UpdateExtraDataInAMessageResponse'; /** * Message service. * @module api/MessageApi -* @version 0.0.16 +* @version 2.0.0 */ export default class MessageApi { @@ -67,1092 +45,30 @@ export default class MessageApi { /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddEmojiCategoriesResponse} and HTTP response - */ - addEmojiCategoriesWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addEmojiCategories"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddEmojiCategoriesResponse; - return this.apiClient.callApi( - '/v3/emoji_categories', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add emoji categories - * ## Add emoji categories Adds a list of one or more new emoji categories to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emoji-categories - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddEmojiCategoriesResponse} - */ - addEmojiCategories(apiToken, opts) { - return this.addEmojiCategoriesWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddEmojisData} opts.addEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddEmojisResponse} and HTTP response - */ - addEmojisWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['addEmojisData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addEmojis"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddEmojisResponse; - return this.apiClient.callApi( - '/v3/emojis', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add emojis - * ## Add emojis Adds a list of one or more new emojis to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-add-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/AddEmojisData} opts.addEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddEmojisResponse} - */ - addEmojis(apiToken, opts) { - return this.addEmojisWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddExtraDataToMessageData} opts.addExtraDataToMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddExtraDataToMessageResponse} and HTTP response - */ - addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - let postBody = opts['addExtraDataToMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addExtraDataToMessage"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling addExtraDataToMessage"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling addExtraDataToMessage"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling addExtraDataToMessage"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddExtraDataToMessageResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add extra data to a message - * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-extra-data-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddExtraDataToMessageData} opts.addExtraDataToMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddExtraDataToMessageResponse} - */ - addExtraDataToMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.addExtraDataToMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddReactionToAMessageData} opts.addReactionToAMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddReactionToAMessageResponse} and HTTP response - */ - addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - let postBody = opts['addReactionToAMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addReactionToAMessage"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling addReactionToAMessage"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling addReactionToAMessage"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling addReactionToAMessage"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = AddReactionToAMessageResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Add a reaction to a message - * ## Add a reaction to a message Adds a specific reaction to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-add-a-reaction-to-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/AddReactionToAMessageData} opts.addReactionToAMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddReactionToAMessageResponse} - */ - addReactionToAMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.addReactionToAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteEmojiByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling deleteEmojiByKey"); - } - - let pathParams = { - 'emoji_key': emojiKey - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/emojis/{emoji_key}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an emoji - * ## Delete an emoji Deletes an emoji from the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteEmojiByKey(apiToken, emojiKey) { - return this.deleteEmojiByKeyWithHttpInfo(apiToken, emojiKey) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteEmojiCategoryById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling deleteEmojiCategoryById"); - } - - let pathParams = { - 'emoji_category_id': emojiCategoryId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/emoji_categories/{emoji_category_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete an emoji category - * ## Delete an emoji category Deletes an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-delete-an-emoji-category ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - deleteEmojiCategoryById(apiToken, emojiCategoryId) { - return this.deleteEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling deleteMessageById"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a message - * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-delete-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - deleteMessageById(apiToken, channelType, channelUrl, messageId) { - return this.deleteMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/EnableReactionsData} opts.enableReactionsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/EnableReactionsResponse} and HTTP response - */ - enableReactionsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['enableReactionsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling enableReactions"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = EnableReactionsResponse; - return this.apiClient.callApi( - '/v3/applications/settings/reactions', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Enable reactions - * ## Enable reactions Turn on or off reactions in a Sendbird application. > __Note__: This action also allows reactions in UIKit. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-enable-reactions - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/EnableReactionsData} opts.enableReactionsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/EnableReactionsResponse} - */ - enableReactions(apiToken, opts) { - return this.enableReactionsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsDeliveredData} opts.gcMarkAllMessagesAsDeliveredData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcMarkAllMessagesAsDeliveredResponse} and HTTP response - */ - gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['gcMarkAllMessagesAsDeliveredData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMarkAllMessagesAsDelivered"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMarkAllMessagesAsDelivered"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = GcMarkAllMessagesAsDeliveredResponse; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/messages/mark_as_delivered', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mark all messages as delivered - * ## Mark all messages as delivered Marks all messages in a group channel as delivered for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-delivered ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsDeliveredData} opts.gcMarkAllMessagesAsDeliveredData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcMarkAllMessagesAsDeliveredResponse} - */ - gcMarkAllMessagesAsDelivered(apiToken, channelUrl, opts) { - return this.gcMarkAllMessagesAsDeliveredWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsReadData} opts.gcMarkAllMessagesAsReadData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['gcMarkAllMessagesAsReadData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMarkAllMessagesAsRead"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMarkAllMessagesAsRead"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/messages/mark_as_read', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mark all messages as read - * ## Mark all messages as read Marks all messages in a group channel as read for a given user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMarkAllMessagesAsReadData} opts.gcMarkAllMessagesAsReadData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - gcMarkAllMessagesAsRead(apiToken, channelUrl, opts) { - return this.gcMarkAllMessagesAsReadWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} and HTTP response - */ - gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewNumberOfEachMembersUnreadMessages"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewNumberOfEachMembersUnreadMessages"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - 'user_ids': opts['userIds'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GcViewNumberOfEachMembersUnreadMessagesResponse; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/messages/unread_count', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View number of each member's unread messages - * ## View number of each member's unread messages Retrieves the total number of each member's unread messages in a group channel. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-number-of-each-member-s-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.userIds - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} - */ - gcViewNumberOfEachMembersUnreadMessages(apiToken, channelUrl, opts) { - return this.gcViewNumberOfEachMembersUnreadMessagesWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmoji} and HTTP response - */ - getEmojiByKeyWithHttpInfo(apiToken, emojiKey) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getEmojiByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling getEmojiByKey"); - } - - let pathParams = { - 'emoji_key': emojiKey - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = SendBirdEmoji; - return this.apiClient.callApi( - '/v3/emojis/{emoji_key}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get an emoji - * ## Get an emoji Retrieves an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmoji} - */ - getEmojiByKey(apiToken, emojiKey) { - return this.getEmojiByKeyWithHttpInfo(apiToken, emojiKey) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmojiCategory} and HTTP response - */ - getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getEmojiCategoryById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling getEmojiCategoryById"); - } - - let pathParams = { - 'emoji_category_id': emojiCategoryId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = SendBirdEmojiCategory; - return this.apiClient.callApi( - '/v3/emoji_categories/{emoji_category_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get an emoji category - * ## Get an emoji category Retrieves an emoji category with the specified ID, including its emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-get-an-emoji-category ---------------------------- `emoji_category_id` Type: int Description: Specifies the unique ID of the emoji category to retrieve. - * @param {String} apiToken - * @param {String} emojiCategoryId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmojiCategory} - */ - getEmojiCategoryById(apiToken, emojiCategoryId) { - return this.getEmojiCategoryByIdWithHttpInfo(apiToken, emojiCategoryId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAllEmojisAndEmojiCategoriesResponse} and HTTP response - */ - listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAllEmojisAndEmojiCategories"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListAllEmojisAndEmojiCategoriesResponse; - return this.apiClient.callApi( - '/v3/emoji_categories', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List all emojis and emoji categories - * ## List all emojis and emoji categories Retrieves a list of all emoji categories registered to the application, including their emojis. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-all-emojis-and-emoji-categories - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAllEmojisAndEmojiCategoriesResponse} - */ - listAllEmojisAndEmojiCategories(apiToken) { - return this.listAllEmojisAndEmojiCategoriesWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.order - * @param {String} opts.status - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListAnnouncementsResponse} and HTTP response - */ - listAnnouncementsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listAnnouncements"); - } - - let pathParams = { - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'order': opts['order'], - 'status': opts['status'], - 'announcement_group': opts['announcementGroup'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListAnnouncementsResponse; - return this.apiClient.callApi( - '/v3/announcements', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List announcements - * ## List announcements Retrieves a list of announcements. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-list-announcements ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.order - * @param {String} opts.status - * @param {String} opts.announcementGroup - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListAnnouncementsResponse} - */ - listAnnouncements(apiToken, opts) { - return this.listAnnouncementsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListEmojisResponse} and HTTP response - */ - listEmojisWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listEmojis"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListEmojisResponse; - return this.apiClient.callApi( - '/v3/emojis', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List emojis - * ## List emojis Retrieves a list of all emojis registered to the application. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-list-emojis - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListEmojisResponse} - */ - listEmojis(apiToken) { - return this.listEmojisWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.messageTs - * @param {Number} opts.messageId - * @param {Number} opts.prevLimit - * @param {Number} opts.nextLimit - * @param {Boolean} opts.include - * @param {Boolean} opts.reverse - * @param {String} opts.senderId - * @param {String} opts.senderIds - * @param {String} opts.operatorFilter - * @param {String} opts.customTypes - * @param {String} opts.messageType - * @param {Boolean} opts.includingRemoved - * @param {Boolean} opts.includeReactions - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.showSubchannelMessagesOnly - * @param {String} opts.userId - * @param {String} opts.customType - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMessagesResponse} and HTTP response - */ - listMessagesWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMessages"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listMessages"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listMessages"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - 'message_ts': opts['messageTs'], - 'message_id': opts['messageId'], - 'prev_limit': opts['prevLimit'], - 'next_limit': opts['nextLimit'], - 'include': opts['include'], - 'reverse': opts['reverse'], - 'sender_id': opts['senderId'], - 'sender_ids': opts['senderIds'], - 'operator_filter': opts['operatorFilter'], - 'custom_types': opts['customTypes'], - 'message_type': opts['messageType'], - 'including_removed': opts['includingRemoved'], - 'include_reactions': opts['includeReactions'], - 'with_sorted_meta_array': opts['withSortedMetaArray'], - 'show_subchannel_messages_only': opts['showSubchannelMessagesOnly'], - 'user_id': opts['userId'], - 'custom_type': opts['customType'], - 'with_meta_array': opts['withMetaArray'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListMessagesResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List messages - * ## List messages Retrieves a list of past messages of a channel. > This message retrieval is one of Sendbird's [premium features](https://sendbird.com/docs/chat/v3/platform-api/guides/application#-3-sendbird-s-premium-features). Contact our [sales team](https://get.sendbird.com/talk-to-sales.html) for further assistance. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-messages ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.messageTs - * @param {Number} opts.messageId - * @param {Number} opts.prevLimit - * @param {Number} opts.nextLimit - * @param {Boolean} opts.include - * @param {Boolean} opts.reverse - * @param {String} opts.senderId - * @param {String} opts.senderIds - * @param {String} opts.operatorFilter - * @param {String} opts.customTypes - * @param {String} opts.messageType - * @param {Boolean} opts.includingRemoved - * @param {Boolean} opts.includeReactions - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.showSubchannelMessagesOnly - * @param {String} opts.userId - * @param {String} opts.customType - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessagesResponse} - */ - listMessages(apiToken, channelType, channelUrl, opts) { - return this.listMessagesWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Add extra data to a message + * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.listUsers - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReactionsOfMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AddExtraDataToAMessageRequest} opts.addExtraDataToAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddExtraDataToAMessageResponse} and HTTP response */ - listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + addExtraDataToAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReactionsOfMessage"); - } + let postBody = opts['addExtraDataToAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'channelType' when calling addExtraDataToAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling addExtraDataToAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling listReactionsOfMessage"); + throw new Error("Missing the required parameter 'messageId' when calling addExtraDataToAMessage"); } let pathParams = { @@ -1160,99 +76,38 @@ export default class MessageApi { 'channel_url': channelUrl, 'message_id': messageId }; - let queryParams = { - 'list_users': opts['listUsers'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListReactionsOfMessageResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List reactions of a message - * ## List reactions of a message Retrieves a list of reactions made to a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-list-reactions-of-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to add a reaction to. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {Boolean} opts.listUsers - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReactionsOfMessageResponse} - */ - listReactionsOfMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.listReactionsOfMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param {String} apiToken - * @param {String} targetChannelUrl - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, opts) { - opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling migrateMessagesByUrl"); - } - // verify the required parameter 'targetChannelUrl' is set - if (targetChannelUrl === undefined || targetChannelUrl === null) { - throw new Error("Missing the required parameter 'targetChannelUrl' when calling migrateMessagesByUrl"); - } - - let pathParams = { - 'target_channel_url': targetChannelUrl - }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = AddExtraDataToAMessageResponse; return this.apiClient.callApi( - '/v3/migration/{target_channel_url}', 'POST', + '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Migrate messages - * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/v3/platform-api/guides/migration#2-migrate-messages ---------------------------- - * @param {String} apiToken - * @param {String} targetChannelUrl + * Add extra data to a message + * ## Add extra data to a message Adds one or more key-values items which store additional information for a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-add-metadata#1-add-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @param {String} opts.apiToken + * @param {module:model/AddExtraDataToAMessageRequest} opts.addExtraDataToAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddExtraDataToAMessageResponse} */ - migrateMessagesByUrl(apiToken, targetChannelUrl, opts) { - return this.migrateMessagesByUrlWithHttpInfo(apiToken, targetChannelUrl, opts) + addExtraDataToAMessage(channelType, channelUrl, messageId, opts) { + return this.addExtraDataToAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1260,34 +115,29 @@ export default class MessageApi { /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Delete a message + * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.keys + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + deleteAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeExtraDataFromMessage"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'channelType' when calling deleteAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling removeExtraDataFromMessage"); + throw new Error("Missing the required parameter 'messageId' when calling deleteAMessage"); } let pathParams = { @@ -1296,10 +146,9 @@ export default class MessageApi { 'message_id': messageId }; let queryParams = { - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1309,25 +158,24 @@ export default class MessageApi { let accepts = ['application/json']; let returnType = Object; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'DELETE', + '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Remove extra data from a message - * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-extra-data-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Delete a message + * ## Delete a message Deletes a message from a channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/delete-a-message#1-delete-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.keys + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - removeExtraDataFromMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.removeExtraDataFromMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) + deleteAMessage(channelType, channelUrl, messageId, opts) { + return this.deleteAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1335,35 +183,34 @@ export default class MessageApi { /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Get a message + * ## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.userId - * @param {String} opts.reaction - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveReactionFromAMessageResponse} and HTTP response + * @param {Boolean} opts.includeReactions + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ - removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + getAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeReactionFromAMessage"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'channelType' when calling getAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling getAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling removeReactionFromAMessage"); + throw new Error("Missing the required parameter 'messageId' when calling getAMessage"); } let pathParams = { @@ -1372,11 +219,14 @@ export default class MessageApi { 'message_id': messageId }; let queryParams = { - 'user_id': opts['userId'], - 'reaction': opts['reaction'] + 'include_reactions': opts['includeReactions'], + 'include_thread_info': opts['includeThreadInfo'], + 'include_parent_message_info': opts['includeParentMessageInfo'], + 'include_poll_details': opts['includePollDetails'], + 'with_sorted_meta_array': opts['withSortedMetaArray'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1384,28 +234,31 @@ export default class MessageApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = RemoveReactionFromAMessageResponse; + let returnType = SendbirdMessageResponse; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/reactions', 'DELETE', + '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Remove a reaction from a message - * ## Remove a reaction from a message Removes a specific reaction from a message. > __Note__: Currently, this action is only available in group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-remove-a-reaction-from-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Get a message + * ## Get a message Retrieves information on a specific message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-a-message#1-get-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.userId - * @param {String} opts.reaction - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveReactionFromAMessageResponse} + * @param {Boolean} opts.includeReactions + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ - removeReactionFromAMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.removeReactionFromAMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) + getAMessage(channelType, channelUrl, messageId, opts) { + return this.getAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1413,29 +266,24 @@ export default class MessageApi { /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Get total number of messages in a channel + * ## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendMessageData} opts.sendMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetTotalNumberOfMessagesInAChannelResponse} and HTTP response */ - sendMessageWithHttpInfo(apiToken, channelType, channelUrl, opts) { + getTotalNumberOfMessagesInAChannelWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - let postBody = opts['sendMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling sendMessage"); - } + let postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling sendMessage"); + throw new Error("Missing the required parameter 'channelType' when calling getTotalNumberOfMessagesInAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling sendMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling getTotalNumberOfMessagesInAChannel"); } let pathParams = { @@ -1445,34 +293,33 @@ export default class MessageApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = SendBirdMessageResponse; + let returnType = GetTotalNumberOfMessagesInAChannelResponse; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages', 'POST', + '/v3/{channel_type}/{channel_url}/messages/total_count', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Send a message - * ## Send a message Sends a message to a channel. You can send a text message, a file message, and an admin message. >__Note__: With Sendbird Chat SDKs and the platform API, any type of files in messages can be uploaded to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-send-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Get total number of messages in a channel + * ## Get total number of messages in a channel Retrieves the total number of messages in a specific channel. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/get-total-number-of-messages-in-a-channel#1-get-total-number-of-messages-in-a-channel ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/SendMessageData} opts.sendMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetTotalNumberOfMessagesInAChannelResponse} */ - sendMessage(apiToken, channelType, channelUrl, opts) { - return this.sendMessageWithHttpInfo(apiToken, channelType, channelUrl, opts) + getTotalNumberOfMessagesInAChannel(channelType, channelUrl, opts) { + return this.getTotalNumberOfMessagesInAChannelWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1480,73 +327,128 @@ export default class MessageApi { /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/TranslateMessageIntoOtherLanguagesData} opts.translateMessageIntoOtherLanguagesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * List messages + * ## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Number} messageTs Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. + * @param {Number} messageId Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. + * @param {Object} opts Optional parameters + * @param {Number} opts.prevLimit Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Number} opts.nextLimit Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Boolean} opts.include Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) + * @param {Boolean} opts.reverse Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) + * @param {String} opts.senderId Restricts the search scope to only retrieve messages sent by the user with the specified ID. + * @param {String} opts.senderIds Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. + * @param {module:model/String} opts.operatorFilter + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. + * @param {module:model/String} opts.messageType + * @param {Boolean} opts.includingRemoved + * @param {Boolean} opts.includeReactions + * @param {module:model/String} opts.includeReplyType One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray Determines whether to include the sorted_metaarray property in the response. (Default: false) + * @param {Boolean} opts.showSubchannelMessagesOnly + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMessagesResponse} and HTTP response */ - translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + listMessagesWithHttpInfo(channelType, channelUrl, messageTs, messageId, opts) { opts = opts || {}; - let postBody = opts['translateMessageIntoOtherLanguagesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling translateMessageIntoOtherLanguages"); - } + let postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'channelType' when calling listMessages"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'channelUrl' when calling listMessages"); + } + // verify the required parameter 'messageTs' is set + if (messageTs === undefined || messageTs === null) { + throw new Error("Missing the required parameter 'messageTs' when calling listMessages"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling translateMessageIntoOtherLanguages"); + throw new Error("Missing the required parameter 'messageId' when calling listMessages"); } let pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId + 'channel_url': channelUrl }; let queryParams = { + 'message_ts': messageTs, + 'message_id': messageId, + 'prev_limit': opts['prevLimit'], + 'next_limit': opts['nextLimit'], + 'include': opts['include'], + 'reverse': opts['reverse'], + 'sender_id': opts['senderId'], + 'sender_ids': opts['senderIds'], + 'operator_filter': opts['operatorFilter'], + 'custom_types': opts['customTypes'], + 'message_type': opts['messageType'], + 'including_removed': opts['includingRemoved'], + 'include_reactions': opts['includeReactions'], + 'include_reply_type': opts['includeReplyType'], + 'include_parent_message_info': opts['includeParentMessageInfo'], + 'include_thread_info': opts['includeThreadInfo'], + 'include_poll_details': opts['includePollDetails'], + 'with_sorted_meta_array': opts['withSortedMetaArray'], + 'show_subchannel_messages_only': opts['showSubchannelMessagesOnly'], + 'user_id': opts['userId'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = SendBirdMessageResponse; + let returnType = ListMessagesResponse; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/translation', 'POST', + '/v3/{channel_type}/{channel_url}/messages', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Translate a message into other languages - * ## Translate a message into other languages Translates a message into specific languages. Only text messages of which type is MESG can be translated into other languages. > __Note__: Message translation is powered by [Google Cloud Translation API recognition engine](https://cloud.google.com/translate/). Find language codes supported by the engine in the [Miscellaneous](https://sendbird.com/docs/chat/v3/platform-api/guides/Miscellaneous) page or visit the [Language Support](https://cloud.google.com/translate/docs/languages) for Google Cloud Translation. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-translate-a-message-into-other-languages ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/TranslateMessageIntoOtherLanguagesData} opts.translateMessageIntoOtherLanguagesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * List messages + * ## List messages You can retrieve a list of past messages of a specific channel with this API. By default, this action returns a list of messages in the order they were created. Replies in threaded messages are also listed in the chronological order of their creation like other messages, not grouped with their parent messages. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/list-messages#1-list-messages `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of past messages. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Number} messageTs Specifies the timestamp to be the reference point of the query in Unix milliseconds. Either this or the message_id parameter below should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_ts and the default value for both prev_limit and next_limit is 15. + * @param {Number} messageId Specifies the unique ID of the message to be the reference point of the query. Either this or the message_ts parameter above should be specified in your query URL to retrieve a list. It fetches messages that were sent prior to and after the specified message_id and the default value for both prev_limit and next_limit is 15. + * @param {Object} opts Optional parameters + * @param {Number} opts.prevLimit Specifies the number of previously sent messages to retrieve before message_ts. For example, if message_ts=1484202848298, then prev_limit=50 returns 50 messages sent by 1484202848297 (message_ts - 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Number} opts.nextLimit Specifies the number of sent messages to retrieve after message_ts. For example, if message_ts=1484202848298, then next_limit=50 returns 50 messages sent from 1484202848299 (message_ts + 1). Acceptable values range from 0 to 200. (Default: 15) + * @param {Boolean} opts.include Determines whether to include messages sent exactly on the specified message_ts in the results. (Default: true) + * @param {Boolean} opts.reverse Determines whether to sort the results in reverse chronological order. If set to true, messages appear in reverse chronological order where the newest comes first and the oldest last. (Default: false) + * @param {String} opts.senderId Restricts the search scope to only retrieve messages sent by the user with the specified ID. + * @param {String} opts.senderIds Restricts the search scope to only retrieve messages sent by one or more users with the specified IDs listed in a comma-separated string. + * @param {module:model/String} opts.operatorFilter + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom message types to retrieve. The value set to this parameter can serve as a filter as follows: - A string of specific custom types: Messages with the corresponding custom types are returned. - Empty like &custom_types=&...: Messages whose custom_type property is empty or has a value of null are returned. - An asterisk (\\*) (default): All messages are returned regardless of their custom_type. + * @param {module:model/String} opts.messageType + * @param {Boolean} opts.includingRemoved + * @param {Boolean} opts.includeReactions + * @param {module:model/String} opts.includeReplyType One of following values: NONE, ALL, ONLY_REPLY_TO_CHANNEL + * @param {Boolean} opts.includeParentMessageInfo + * @param {Boolean} opts.includeThreadInfo + * @param {Boolean} opts.includePollDetails Determines whether to include all properties of a poll resource with a full list of options in the results. If set to false, a selection of poll resource properties consisting of id, title, close_at, created_at, updated_at, status, and message_id are returned. (Default: false) * To use this property, the polls feature should be turned on in Settings > Chat > Features on Sendbird Dashboard. + * @param {Boolean} opts.withSortedMetaArray Determines whether to include the sorted_metaarray property in the response. (Default: false) + * @param {Boolean} opts.showSubchannelMessagesOnly + * @param {String} opts.userId + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMessagesResponse} */ - translateMessageIntoOtherLanguages(apiToken, channelType, channelUrl, messageId, opts) { - return this.translateMessageIntoOtherLanguagesWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) + listMessages(channelType, channelUrl, messageTs, messageId, opts) { + return this.listMessagesWithHttpInfo(channelType, channelUrl, messageTs, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1554,33 +456,29 @@ export default class MessageApi { /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId + * Mark all messages as read + * ## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiCategoryUrlByIdData} opts.updateEmojiCategoryUrlByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmojiCategory} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/MarkChannelMessagesAsReadRequest} opts.markChannelMessagesAsReadRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, opts) { + markChannelMessagesAsReadWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['updateEmojiCategoryUrlByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateEmojiCategoryUrlById"); - } - // verify the required parameter 'emojiCategoryId' is set - if (emojiCategoryId === undefined || emojiCategoryId === null) { - throw new Error("Missing the required parameter 'emojiCategoryId' when calling updateEmojiCategoryUrlById"); + let postBody = opts['markChannelMessagesAsReadRequest']; + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling markChannelMessagesAsRead"); } let pathParams = { - 'emoji_category_id': emojiCategoryId + 'channel_url': channelUrl }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1588,25 +486,25 @@ export default class MessageApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdEmojiCategory; + let returnType = Object; return this.apiClient.callApi( - '/v3/emoji_categories/{emoji_category_id}', 'PUT', + '/v3/group_channels/{channel_url}/messages/mark_as_read', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update an emoji category URL - * ## Update an emoji category URL Updates the URL of an emoji category with the specified ID. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-category-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiCategoryId + * Mark all messages as read + * ## Mark all messages as read Marks all messages in a group channel as read for a specific user. This action is only applicable for users in a group channel. https://sendbird.com/docs/chat/platform-api/v3/message/read-receipts/mark-all-messages-as-read-message#1-mark-all-messages-as-read + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiCategoryUrlByIdData} opts.updateEmojiCategoryUrlByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmojiCategory} + * @param {String} opts.apiToken + * @param {module:model/MarkChannelMessagesAsReadRequest} opts.markChannelMessagesAsReadRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - updateEmojiCategoryUrlById(apiToken, emojiCategoryId, opts) { - return this.updateEmojiCategoryUrlByIdWithHttpInfo(apiToken, emojiCategoryId, opts) + markChannelMessagesAsRead(channelUrl, opts) { + return this.markChannelMessagesAsReadWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1614,33 +512,29 @@ export default class MessageApi { /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey + * Migrate messages + * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages + * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiUrlByKeyData} opts.updateEmojiUrlByKeyData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdEmoji} and HTTP response + * @param {String} opts.apiToken + * @param {Object.} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, opts) { + migrateMessagesWithHttpInfo(targetChannelUrl, opts) { opts = opts || {}; - let postBody = opts['updateEmojiUrlByKeyData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateEmojiUrlByKey"); - } - // verify the required parameter 'emojiKey' is set - if (emojiKey === undefined || emojiKey === null) { - throw new Error("Missing the required parameter 'emojiKey' when calling updateEmojiUrlByKey"); + let postBody = opts['body']; + // verify the required parameter 'targetChannelUrl' is set + if (targetChannelUrl === undefined || targetChannelUrl === null) { + throw new Error("Missing the required parameter 'targetChannelUrl' when calling migrateMessages"); } let pathParams = { - 'emoji_key': emojiKey + 'target_channel_url': targetChannelUrl }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1648,25 +542,25 @@ export default class MessageApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdEmoji; + let returnType = Object; return this.apiClient.callApi( - '/v3/emojis/{emoji_key}', 'PUT', + '/v3/migration/{target_channel_url}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update an emoji URL - * ## Update an emoji URL Updates the image URL of an emoji with the specified key. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-update-an-emoji-url ---------------------------- - * @param {String} apiToken - * @param {String} emojiKey + * Migrate messages + * ## Migrate messages Using our migration API, you can migrate the messages from another system into a Sendbird system's [channel](https://sendbird.com/docs/chat/v3/platform-api/guides/channel-types) which consists of users, messages, and other chat-related data. > To turn on this feature, [contact our support team](https://dashboard.sendbird.com/settings/contact_us). There are three things to do in advance before the migration. Follow the instructions below: 1. Register the users of your current chat solution to your Sendbird application. You can migrate the users into the Sendbird system using the [user creation API](https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user). 2. Create either an [open](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) or a [group](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-create-a-channel) channel to migrate the messages of your chat solution. The Sendbird system doesn't create a channel for your migration automatically. 3. The maximum number of migrated messages per call is 100. To avoid the failure during your migration, you must adjust the number of messages to process at once via the API. https://sendbird.com/docs/chat/platform-api/v3/message/migration/migrate-messages#1-migrate-messages + * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateEmojiUrlByKeyData} opts.updateEmojiUrlByKeyData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdEmoji} + * @param {String} opts.apiToken + * @param {Object.} opts.body + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - updateEmojiUrlByKey(apiToken, emojiKey, opts) { - return this.updateEmojiUrlByKeyWithHttpInfo(apiToken, emojiKey, opts) + migrateMessages(targetChannelUrl, opts) { + return this.migrateMessagesWithHttpInfo(targetChannelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1674,34 +568,30 @@ export default class MessageApi { /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Remove extra data from a message + * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateExtraDataInMessageData} opts.updateExtraDataInMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateExtraDataInMessageResponse} and HTTP response + * @param {String} opts.keys + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + removeExtraDataFromAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - let postBody = opts['updateExtraDataInMessageData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateExtraDataInMessage"); - } + let postBody = null; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'channelType' when calling removeExtraDataFromAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'channelUrl' when calling removeExtraDataFromAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling updateExtraDataInMessage"); + throw new Error("Missing the required parameter 'messageId' when calling removeExtraDataFromAMessage"); } let pathParams = { @@ -1710,37 +600,38 @@ export default class MessageApi { 'message_id': messageId }; let queryParams = { + 'keys': opts['keys'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = UpdateExtraDataInMessageResponse; + let returnType = Object; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'PUT', + '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update extra data in a message - * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-extra-data-in-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Remove extra data from a message + * ## Remove extra data from a message Removes specific items from a message by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-remove-metadata#1-remove-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateExtraDataInMessageData} opts.updateExtraDataInMessageData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateExtraDataInMessageResponse} + * @param {String} opts.keys + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - updateExtraDataInMessage(apiToken, channelType, channelUrl, messageId, opts) { - return this.updateExtraDataInMessageWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) + removeExtraDataFromAMessage(channelType, channelUrl, messageId, opts) { + return this.removeExtraDataFromAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1748,101 +639,35 @@ export default class MessageApi { /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Send a message + * ## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateMessageByIdData} opts.updateMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/SendAMessageRequest} opts.sendAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ - updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + sendAMessageWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - let postBody = opts['updateMessageByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateMessageById"); - } + let postBody = opts['sendAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateMessageById"); + throw new Error("Missing the required parameter 'channelType' when calling sendAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling updateMessageById"); + throw new Error("Missing the required parameter 'channelUrl' when calling sendAMessage"); } let pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdMessageResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a message - * ## Update a message Updates information on a message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-update-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateMessageByIdData} opts.updateMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} - */ - updateMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.updateMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/UseDefaultEmojisData} opts.useDefaultEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UseDefaultEmojisResponse} and HTTP response - */ - useDefaultEmojisWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['useDefaultEmojisData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling useDefaultEmojis"); - } - - let pathParams = { + 'channel_url': channelUrl }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1850,24 +675,26 @@ export default class MessageApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = UseDefaultEmojisResponse; + let returnType = SendbirdMessageResponse; return this.apiClient.callApi( - '/v3/applications/settings/use_default_emoji', 'PUT', + '/v3/{channel_type}/{channel_url}/messages', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Use default emojis - * ## Use default emojis Determines whether to use the 7 default emojis initially provided. https://sendbird.com/docs/chat/v3/platform-api/guides/emojis#2-use-default-emojis - * @param {String} apiToken + * Send a message + * ## Send a message You can use this action to send a text message, a file message, or an admin message to a specific channel. Sendbird Chat SDKs and the platform API allows you to upload any type of files in messages to the Sendbird server. See [Message Overview](https://sendbird.com/docs/chat/platform-api/v3/message/message-overview) for more information on each message type. Messages are sent between client devices running the Sendbird Chat SDK or UIKit as well as programmatically from businesses to their customers. For instance, a delivery app can automatically send a message like \"Arriving in one minute!\" on behalf of a delivery driver. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message#1-send-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UseDefaultEmojisData} opts.useDefaultEmojisData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UseDefaultEmojisResponse} + * @param {String} opts.apiToken + * @param {module:model/SendAMessageRequest} opts.sendAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ - useDefaultEmojis(apiToken, opts) { - return this.useDefaultEmojisWithHttpInfo(apiToken, opts) + sendAMessage(channelType, channelUrl, opts) { + return this.sendAMessageWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1875,35 +702,30 @@ export default class MessageApi { /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Update a message + * ## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdMessageResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/UpdateAMessageRequest} opts.updateAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdMessageResponse} and HTTP response */ - viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { + updateAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewMessageById"); - } + let postBody = opts['updateAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewMessageById"); + throw new Error("Missing the required parameter 'channelType' when calling updateAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewMessageById"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAMessage"); } // verify the required parameter 'messageId' is set if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling viewMessageById"); + throw new Error("Missing the required parameter 'messageId' when calling updateAMessage"); } let pathParams = { @@ -1912,40 +734,37 @@ export default class MessageApi { 'message_id': messageId }; let queryParams = { - 'with_sorted_meta_array': opts['withSortedMetaArray'], - 'with_meta_array': opts['withMetaArray'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdMessageResponse; + let returnType = SendbirdMessageResponse; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'GET', + '/v3/{channel_type}/{channel_url}/messages/{message_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View a message - * ## View a message Retrieves information on a message. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. `message_id` Type: long Description: Specifies the unique ID of the message to retrieve. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId + * Update a message + * ## Update a message Updates specific information on a message. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/update-a-message#1-update-a-message ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.withSortedMetaArray - * @param {Boolean} opts.withMetaArray - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdMessageResponse} + * @param {String} opts.apiToken + * @param {module:model/UpdateAMessageRequest} opts.updateAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdMessageResponse} */ - viewMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.viewMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) + updateAMessage(channelType, channelUrl, messageId, opts) { + return this.updateAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1953,61 +772,69 @@ export default class MessageApi { /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewTotalNumberOfMessagesInChannelResponse} and HTTP response + * Update extra data in a message + * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateExtraDataInAMessageRequest} opts.updateExtraDataInAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateExtraDataInAMessageResponse} and HTTP response */ - viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewTotalNumberOfMessagesInChannel"); - } + updateExtraDataInAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) { + opts = opts || {}; + let postBody = opts['updateExtraDataInAMessageRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewTotalNumberOfMessagesInChannel"); + throw new Error("Missing the required parameter 'channelType' when calling updateExtraDataInAMessage"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewTotalNumberOfMessagesInChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateExtraDataInAMessage"); + } + // verify the required parameter 'messageId' is set + if (messageId === undefined || messageId === null) { + throw new Error("Missing the required parameter 'messageId' when calling updateExtraDataInAMessage"); } let pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl + 'channel_url': channelUrl, + 'message_id': messageId }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = ViewTotalNumberOfMessagesInChannelResponse; + let returnType = UpdateExtraDataInAMessageResponse; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/messages/total_count', 'GET', + '/v3/{channel_type}/{channel_url}/messages/{message_id}/sorted_metaarray', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View total number of messages in a channel - * ## View total number of messages in a channel Retrieves the total number of messages in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/messages#2-view-total-number-of-messages-in-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewTotalNumberOfMessagesInChannelResponse} + * Update extra data in a message + * ## Update extra data in a message Updates the values of specific items by their keys. https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/message-update-metadata#1-update-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {String} messageId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateExtraDataInAMessageRequest} opts.updateExtraDataInAMessageRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateExtraDataInAMessageResponse} */ - viewTotalNumberOfMessagesInChannel(apiToken, channelType, channelUrl) { - return this.viewTotalNumberOfMessagesInChannelWithHttpInfo(apiToken, channelType, channelUrl) + updateExtraDataInAMessage(channelType, channelUrl, messageId, opts) { + return this.updateExtraDataInAMessageWithHttpInfo(channelType, channelUrl, messageId, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/MetadataApi.js b/src/api/MetadataApi.js index ff41284..0a6531c 100644 --- a/src/api/MetadataApi.js +++ b/src/api/MetadataApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,21 +13,14 @@ import ApiClient from "../ApiClient"; -import CreateChannelMetacounterData from '../model/CreateChannelMetacounterData'; -import CreateChannelMetadataData from '../model/CreateChannelMetadataData'; -import CreateChannelMetadataResponse from '../model/CreateChannelMetadataResponse'; -import CreateUserMetadataData from '../model/CreateUserMetadataData'; -import CreateUserMetadataResponse from '../model/CreateUserMetadataResponse'; -import UpdateChannelMetacounterData from '../model/UpdateChannelMetacounterData'; -import UpdateChannelMetadataData from '../model/UpdateChannelMetadataData'; -import UpdateUserMetadataData from '../model/UpdateUserMetadataData'; -import UpdateUserMetadataResponse from '../model/UpdateUserMetadataResponse'; -import ViewUserMetadataResponse from '../model/ViewUserMetadataResponse'; +import CreateAChannelMetadataRequest from '../model/CreateAChannelMetadataRequest'; +import CreateAChannelMetadataResponse from '../model/CreateAChannelMetadataResponse'; +import UpdateAChannelMetadataRequest from '../model/UpdateAChannelMetadataRequest'; /** * Metadata service. * @module api/MetadataApi -* @version 0.0.16 +* @version 2.0.0 */ export default class MetadataApi { @@ -45,755 +38,25 @@ export default class MetadataApi { /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetacounterData} opts.createChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['createChannelMetacounterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling createChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling createChannelMetacounter"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create a channel metacounter - * ## Create a channel metacounter Creates a channel metacounter's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metacounter ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetacounterData} opts.createChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - createChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.createChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetadataData} opts.createChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateChannelMetadataResponse} and HTTP response - */ - createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['createChannelMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createChannelMetadata"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling createChannelMetadata"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling createChannelMetadata"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = CreateChannelMetadataResponse; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create a channel metadata - * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-channel-metadata ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/CreateChannelMetadataData} opts.createChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateChannelMetadataResponse} - */ - createChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.createChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/CreateUserMetadataData} opts.createUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUserMetadataResponse} and HTTP response - */ - createUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = opts['createUserMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling createUserMetadata"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = CreateUserMetadataResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Create a user metadata - * ## Create a user metadata Creates a user metadata's items to store in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-create-a-user-metadata ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/CreateUserMetadataData} opts.createUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUserMetadataResponse} - */ - createUserMetadata(apiToken, userId, opts) { - return this.createUserMetadataWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetacounter"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a channel metacounter - When deleting all items of a channel metacounter - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteChannelMetacounter(apiToken, channelType, channelUrl) { - return this.deleteChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteChannelMetacounterByKey"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter/{key}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a channel metacounter - When deleting a specific item of a channel metacounter by its key - * ## Delete a channel metacounter Deletes a channel metacounter's item that is stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metacounter to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteChannelMetacounterByKey(apiToken, channelType, channelUrl, key) { - return this.deleteChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetadata"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetadata"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetadata"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - 'key': opts['key'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a channel metadata - When deleting all items of a channel metadata - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.deleteChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling deleteChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteChannelMetadataByKey"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata/{key}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a channel metadata - When deleting a specific item of a channel metadata by its key - * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteChannelMetadataByKey(apiToken, channelType, channelUrl, key) { - return this.deleteChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserMetadata"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'key': opts['key'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a user metadata - When deleting all items of a user metadata - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteUserMetadata(apiToken, userId, opts) { - return this.deleteUserMetadataWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling deleteUserMetadataByKey"); - } - - let pathParams = { - 'user_id': userId, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata/{key}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Delete a user metadata - When deleting a specific item of a user metadata by its key - * ## Delete a user metadata Deletes a user metadata's one or all items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-delete-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user who has the metadata to delete. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - deleteUserMetadataByKey(apiToken, userId, key) { - return this.deleteUserMetadataByKeyWithHttpInfo(apiToken, userId, key) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetacounterData} opts.updateChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['updateChannelMetacounterData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetacounter"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetacounter"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetacounter"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a channel metacounter - When updating existing items of a channel metacounter by their keys or adding new items to the metacounter - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetacounterData} opts.updateChannelMetacounterData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - updateChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.updateChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) { - opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateChannelMetacounterByKey"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter/{key}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a channel metacounter - When updating a specific item of a channel metacounter by its key - * ## Update a channel metacounter Updates existing items of a channel metacounter by their keys, or adds new items to the metacounter. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - updateChannelMetacounterByKey(apiToken, channelType, channelUrl, key, opts) { - return this.updateChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Create a channel metadata + * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetadataData} opts.updateChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAChannelMetadataRequest} opts.createAChannelMetadataRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateAChannelMetadataResponse} and HTTP response */ - updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { + createAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; - let postBody = opts['updateChannelMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetadata"); - } + let postBody = opts['createAChannelMetadataRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetadata"); + throw new Error("Missing the required parameter 'channelType' when calling createAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetadata"); + throw new Error("Missing the required parameter 'channelUrl' when calling createAChannelMetadata"); } let pathParams = { @@ -803,208 +66,7 @@ export default class MetadataApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelMetadataData} opts.updateChannelMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - updateChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.updateChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) { - opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateChannelMetadataByKey"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata/{key}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a channel metadata - When updating a specific item of a channel metadata by its key - * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - updateChannelMetadataByKey(apiToken, channelType, channelUrl, key, opts) { - return this.updateChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserMetadataData} opts.updateUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateUserMetadataResponse} and HTTP response - */ - updateUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = opts['updateUserMetadataData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserMetadata"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = UpdateUserMetadataResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a user metadata - When updating existing items of a user metadata by their keys or adding new items to the metadata - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserMetadataData} opts.updateUserMetadataData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateUserMetadataResponse} - */ - updateUserMetadata(apiToken, userId, opts) { - return this.updateUserMetadataWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a user metadata - When updating a specific item of a user metadata by its key - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, opts) { - opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling updateUserMetadataByKey"); - } - - let pathParams = { - 'user_id': userId, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1012,26 +74,26 @@ export default class MetadataApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = {'String': 'String'}; + let returnType = CreateAChannelMetadataResponse; return this.apiClient.callApi( - '/v3/users/{user_id}/metadata/{key}', 'PUT', + '/v3/{channel_type}/{channel_url}/metadata', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update a user metadata - When updating a specific item of a user metadata by its key - * ## Update a user metadata Updates existing items of a user metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-update-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to update the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key + * Create a channel metadata + * ## Create a channel metadata Creates a channel metadata's items to store in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-create-metadata#1-create-metadata ---------------------------- + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.apiToken + * @param {module:model/CreateAChannelMetadataRequest} opts.createAChannelMetadataRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateAChannelMetadataResponse} */ - updateUserMetadataByKey(apiToken, userId, key, opts) { - return this.updateUserMetadataByKeyWithHttpInfo(apiToken, userId, key, opts) + createAChannelMetadata(channelType, channelUrl, opts) { + return this.createAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1039,30 +101,25 @@ export default class MetadataApi { /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Delete a channel metadata - When deleting all items of a channel metadata + * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) { + deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetacounter"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetacounter"); + throw new Error("Missing the required parameter 'channelType' when calling deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetacounter"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata"); } let pathParams = { @@ -1070,11 +127,10 @@ export default class MetadataApi { 'channel_url': channelUrl }; let queryParams = { - 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') + 'key': opts['key'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1082,27 +138,26 @@ export default class MetadataApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = {'String': 'String'}; + let returnType = Object; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter', 'GET', + '/v3/{channel_type}/{channel_url}/metadata', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View a channel metacounter - When retrieving all items of a channel metacounter - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * Delete a channel metadata - When deleting all items of a channel metadata + * ## Delete a channel metadata Deletes a channel metadata's one or all items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-delete-metadata#1-delete-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which has the metadata to delete. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - viewChannelMetacounter(apiToken, channelType, channelUrl, opts) { - return this.viewChannelMetacounterWithHttpInfo(apiToken, channelType, channelUrl, opts) + deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) { + return this.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1110,68 +165,62 @@ export default class MetadataApi { /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key + * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata + * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAChannelMetadataRequest} opts.updateAChannelMetadataRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetacounterByKey"); - } + updateAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { + opts = opts || {}; + let postBody = opts['updateAChannelMetadataRequest']; // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetacounterByKey"); + throw new Error("Missing the required parameter 'channelType' when calling updateAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetacounterByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewChannelMetacounterByKey"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAChannelMetadata"); } let pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key + 'channel_url': channelUrl }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; let returnType = Object; return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metacounter/{key}', 'GET', + '/v3/{channel_type}/{channel_url}/metadata', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View a channel metacounter - When retrieving a specific item of a channel metacounter by its key - * ## View a channel metacounter Retrieves channel metacounter's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metacounter ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key + * Update a channel metadata - When updating existing items of a channel metadata by their keys or adding new items to the metadata + * ## Update a channel metadata Updates existing items of a channel metadata by their keys, or adds new items to the metadata. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-update-metadata#1-update-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAChannelMetadataRequest} opts.updateAChannelMetadataRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - viewChannelMetacounterByKey(apiToken, channelType, channelUrl, key) { - return this.viewChannelMetacounterByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) + updateAChannelMetadata(channelType, channelUrl, opts) { + return this.updateAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1180,29 +229,25 @@ export default class MetadataApi { /** * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl + * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response + * @param {String} opts.keys In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) { + viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetadata"); - } // verify the required parameter 'channelType' is set if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetadata"); + throw new Error("Missing the required parameter 'channelType' when calling viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetadata"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata"); } let pathParams = { @@ -1211,10 +256,10 @@ export default class MetadataApi { }; let queryParams = { 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') + 'keys': opts['keys'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1222,7 +267,7 @@ export default class MetadataApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = {'String': 'String'}; + let returnType = Object; return this.apiClient.callApi( '/v3/{channel_type}/{channel_url}/metadata', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -1232,212 +277,17 @@ export default class MetadataApi { /** * View a channel metadata - When retrieving all items of a channel metadata - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - viewChannelMetadata(apiToken, channelType, channelUrl, opts) { - return this.viewChannelMetadataWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewChannelMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewChannelMetadataByKey"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/v3/{channel_type}/{channel_url}/metadata/{key}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a channel metadata - When retrieving a specific item of a channel metadata by its key - * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} - */ - viewChannelMetadataByKey(apiToken, channelType, channelUrl, key) { - return this.viewChannelMetadataByKeyWithHttpInfo(apiToken, channelType, channelUrl, key) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewUserMetadataResponse} and HTTP response - */ - viewUserMetadataWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserMetadata"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserMetadata"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'key': opts['key'], - 'keys': this.apiClient.buildCollectionParam(opts['keys'], 'multi') - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewUserMetadataResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a user metadata - When retrieving all items of a user metadata - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId + * ## View a channel metadata Retrieves a channel metadata's one or more items that are stored in a channel. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-metadata/channel-get-metadata#1-get-metadata ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the target channel. + * @param {module:model/String} channelType (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.key - * @param {Array.} opts.keys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewUserMetadataResponse} - */ - viewUserMetadata(apiToken, userId, opts) { - return this.viewUserMetadataWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a user metadata - When retrieving a specific item of a user metadata by its key - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object.} and HTTP response - */ - viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserMetadataByKey"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserMetadataByKey"); - } - // verify the required parameter 'key' is set - if (key === undefined || key === null) { - throw new Error("Missing the required parameter 'key' when calling viewUserMetadataByKey"); - } - - let pathParams = { - 'user_id': userId, - 'key': key - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = {'String': 'String'}; - return this.apiClient.callApi( - '/v3/users/{user_id}/metadata/{key}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a user metadata - When retrieving a specific item of a user metadata by its key - * ## View a user metadata Retrieves a user metadata's one or more items that are stored in a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-user-metadata ---------------------------- `user_id` Type: string Description: Specifies the ID of the user to retrieve the metadata in. - * @param {String} apiToken - * @param {String} userId - * @param {String} key - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object.} + * @param {String} opts.keys In a query string, specifies an array of one or more keys of the metadata items. If not specified, all items of the metadata are returned. If specified, only the items that match the parameter values are returned. URL encoding each key is recommended. + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - viewUserMetadataByKey(apiToken, userId, key) { - return this.viewUserMetadataByKeyWithHttpInfo(apiToken, userId, key) + viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(channelType, channelUrl, opts) { + return this.viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadataWithHttpInfo(channelType, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/ModerationApi.js b/src/api/ModerationApi.js index b3dd6cb..5677e2a 100644 --- a/src/api/ModerationApi.js +++ b/src/api/ModerationApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,41 +13,18 @@ import ApiClient from "../ApiClient"; -import BanFromChannelsWithCustomChannelTypesData from '../model/BanFromChannelsWithCustomChannelTypesData'; -import BlockUserData from '../model/BlockUserData'; -import BlockUserResponse from '../model/BlockUserResponse'; -import GcBanUserData from '../model/GcBanUserData'; -import GcBanUserResponse from '../model/GcBanUserResponse'; -import GcFreezeChannelData from '../model/GcFreezeChannelData'; -import GcListBannedUsersResponse from '../model/GcListBannedUsersResponse'; -import GcListMutedUsersResponse from '../model/GcListMutedUsersResponse'; -import GcMuteUserData from '../model/GcMuteUserData'; -import GcUpdateBanByIdData from '../model/GcUpdateBanByIdData'; -import GcUpdateBanByIdResponse from '../model/GcUpdateBanByIdResponse'; -import GcViewBanByIdResponse from '../model/GcViewBanByIdResponse'; -import GcViewMuteByIdResponse from '../model/GcViewMuteByIdResponse'; -import ListBannedChannelsResponse from '../model/ListBannedChannelsResponse'; +import BlockAUserRequest from '../model/BlockAUserRequest'; +import BlockAUserResponse from '../model/BlockAUserResponse'; +import FreezeAGroupChannelRequest from '../model/FreezeAGroupChannelRequest'; +import FreezeAnOpenChannelRequest from '../model/FreezeAnOpenChannelRequest'; import ListBlockedUsersResponse from '../model/ListBlockedUsersResponse'; -import ListMutedChannelsResponse from '../model/ListMutedChannelsResponse'; -import MuteInChannelsWithCustomChannelTypesData from '../model/MuteInChannelsWithCustomChannelTypesData'; -import OcBanUserData from '../model/OcBanUserData'; -import OcBanUserResponse from '../model/OcBanUserResponse'; -import OcDeleteChannelByUrl200Response from '../model/OcDeleteChannelByUrl200Response'; -import OcFreezeChannelData from '../model/OcFreezeChannelData'; -import OcListBannedUsersResponse from '../model/OcListBannedUsersResponse'; -import OcListMutedUsersResponse from '../model/OcListMutedUsersResponse'; -import OcMuteUserData from '../model/OcMuteUserData'; -import OcUpdateBanByIdData from '../model/OcUpdateBanByIdData'; -import OcUpdateBanByIdResponse from '../model/OcUpdateBanByIdResponse'; -import OcViewBanByIdResponse from '../model/OcViewBanByIdResponse'; -import OcViewMuteByIdResponse from '../model/OcViewMuteByIdResponse'; -import SendBirdGroupChannel from '../model/SendBirdGroupChannel'; -import SendBirdOpenChannel from '../model/SendBirdOpenChannel'; +import SendbirdGroupChannelDetail from '../model/SendbirdGroupChannelDetail'; +import SendbirdOpenChannel from '../model/SendbirdOpenChannel'; /** * Moderation service. * @module api/ModerationApi -* @version 0.0.16 +* @version 2.0.0 */ export default class ModerationApi { @@ -64,85 +41,21 @@ export default class ModerationApi { - /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} opts.banFromChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = opts['banFromChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling banFromChannelsWithCustomChannelTypes"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling banFromChannelsWithCustomChannelTypes"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/users/{user_id}/banned_channel_custom_types', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Ban from channels with custom channel types - * ## Ban from channels with custom channel types Bans a user from channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-ban-from-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} opts.banFromChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - banFromChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.banFromChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - /** * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/BlockUserData} opts.blockUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BlockUserResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/BlockAUserRequest} opts.blockAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/BlockAUserResponse} and HTTP response */ - blockUserWithHttpInfo(apiToken, userId, opts) { + blockAUserWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['blockUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling blockUser"); - } + let postBody = opts['blockAUserRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling blockUser"); + throw new Error("Missing the required parameter 'userId' when calling blockAUser"); } let pathParams = { @@ -151,7 +64,7 @@ export default class ModerationApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -159,7 +72,7 @@ export default class ModerationApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = BlockUserResponse; + let returnType = BlockAUserResponse; return this.apiClient.callApi( '/v3/users/{user_id}/block', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -169,75 +82,15 @@ export default class ModerationApi { /** * Block a user - * ## Block a user Allows a user to block another user. A user doesn't receive messages from someone they have blocked anymore. Also, blocking someone doesn't alert them that they have been blocked. Blocked users still can send messages as normal in the channel: however, they can't receive any messages from the users who have blocked them. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-block-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/BlockUserData} opts.blockUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BlockUserResponse} - */ - blockUser(apiToken, userId, opts) { - return this.blockUserWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcBanUserData} opts.gcBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcBanUserResponse} and HTTP response - */ - gcBanUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['gcBanUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcBanUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcBanUser"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = GcBanUserResponse; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/ban', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Ban a user - * ## Ban a user Bans a user from a group channel. A banned user is immediately expelled from a channel and allowed to join the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * ## Block a user A user can block another user if the user doesn't wish to receive any messages or notifications from the blocked user in a 1-to-1 group channel. In a 1-to-N group channel, the user can still receive messages from the blocked user, but this depends on the UI settings of the chat view. In any case, notifications from the blocked user won't be delivered to the 1-to-N group channel. You can choose whether or not the user can view [which users are blocked](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users) in the channel UI. Sendbird application provides two blocking options: include or exclude blocked users when sending invitations, and turn on or off notifications from blocked users. [Explicit and classic block modes](https://sendbird.com/docs/chat/platform-api/v3/deprecated#2-explicit-and-classic-block-modes) have been deprecated and are only supported for customers who started using them before they were deprecated. - **Include or exclude blocked users when sending invitations**: Determines whether or not to automatically filter out blocked users when a user invites a group of users to a new group channel. By default, blocked users are included when sending invitations. The value of this option can be changed by Sendbird if your Sendbird application isn't integrated to the client app. If you want to change the value, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). - **Turn on or off notifications from blocked users**: Determines whether or not to receive message notifications from the blocked user in a specific 1-to-N group channel where they are both members. By default, a user doesn't receive notifications from blocked users. The value of this option can be set individually per channel. If you want to use this option, [contact our sales team](https://get.sendbird.com/talk-to-sales.html). > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). The following tables explain what happens to a user's chat experience when the user blocks another user in a 1-to-1 or 1-to-N group channel. In the case of a 1-to-1 group channel, the block mode is only maintained with the original members. If other than the original members are added, the rules for 1-to-N group channel begin to apply. [https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/block-users#1-block-users) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcBanUserData} opts.gcBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcBanUserResponse} + * @param {String} opts.apiToken + * @param {module:model/BlockAUserRequest} opts.blockAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/BlockAUserResponse} */ - gcBanUser(apiToken, channelUrl, opts) { - return this.gcBanUserWithHttpInfo(apiToken, channelUrl, opts) + blockAUser(userId, opts) { + return this.blockAUserWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -245,24 +98,20 @@ export default class ModerationApi { /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Freeze a group channel + * ## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcFreezeChannelData} opts.gcFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/FreezeAGroupChannelRequest} opts.freezeAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdGroupChannelDetail} and HTTP response */ - gcFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) { + freezeAGroupChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['gcFreezeChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcFreezeChannel"); - } + let postBody = opts['freezeAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcFreezeChannel"); + throw new Error("Missing the required parameter 'channelUrl' when calling freezeAGroupChannel"); } let pathParams = { @@ -271,7 +120,7 @@ export default class ModerationApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -279,7 +128,7 @@ export default class ModerationApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; + let returnType = SendbirdGroupChannelDetail; return this.apiClient.callApi( '/v3/group_channels/{channel_url}/freeze', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -288,16 +137,16 @@ export default class ModerationApi { } /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes a group channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Freeze a group channel + * ## Freeze a group channel Freezes or unfreezes a group channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-a-group-channel#1-freeze-a-group-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcFreezeChannelData} opts.gcFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} + * @param {String} opts.apiToken + * @param {module:model/FreezeAGroupChannelRequest} opts.freezeAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdGroupChannelDetail} */ - gcFreezeChannel(apiToken, channelUrl, opts) { - return this.gcFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) + freezeAGroupChannel(channelUrl, opts) { + return this.freezeAGroupChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -305,63 +154,55 @@ export default class ModerationApi { /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl + * Freeze an open channel + * ## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListBannedUsersResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/FreezeAnOpenChannelRequest} opts.freezeAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ - gcListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) { + freezeAnOpenChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListBannedUsers"); - } + let postBody = opts['freezeAnOpenChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListBannedUsers"); + throw new Error("Missing the required parameter 'channelUrl' when calling freezeAnOpenChannel"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = GcListBannedUsersResponse; + let returnType = SendbirdOpenChannel; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/ban', 'GET', + '/v3/open_channels/{channel_url}/freeze', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * List banned users - * ## List banned users Retrieves a list of the banned users from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl + * Freeze an open channel + * ## Freeze an open channel Freezes or unfreezes an open channel. > **Note**: To learn more about other available moderation tools, see [Moderation Overview](https://sendbird.com/docs/chat/platform-api/v3/moderation/moderation-overview#2-actions). [https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/moderation/freezing-a-channel/freeze-an-open-channel#1-freeze-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListBannedUsersResponse} + * @param {String} opts.apiToken + * @param {module:model/FreezeAnOpenChannelRequest} opts.freezeAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ - gcListBannedUsers(apiToken, channelUrl, opts) { - return this.gcListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) + freezeAnOpenChannel(channelUrl, opts) { + return this.freezeAnOpenChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -369,36 +210,40 @@ export default class ModerationApi { /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl + * List blocked users + * ## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters + * @param {module:model/String} opts.list Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcListMutedUsersResponse} and HTTP response + * @param {String} opts.userIds Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. + * @param {String} opts.metadatakey + * @param {String} opts.metadatavaluesIn + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBlockedUsersResponse} and HTTP response */ - gcListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) { + listBlockedUsersWithHttpInfo(userId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcListMutedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcListMutedUsers"); + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling listBlockedUsers"); } let pathParams = { - 'channel_url': channelUrl + 'user_id': userId }; let queryParams = { + 'list': opts['list'], 'token': opts['token'], - 'limit': opts['limit'] + 'limit': opts['limit'], + 'user_ids': opts['userIds'], + 'metadatakey': opts['metadatakey'], + 'metadatavalues_in': opts['metadatavaluesIn'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -406,26 +251,30 @@ export default class ModerationApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = GcListMutedUsersResponse; + let returnType = ListBlockedUsersResponse; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/mute', 'GET', + '/v3/users/{user_id}/block', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * List muted users - * ## List muted users Retrieves a list of the muted users in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl + * List blocked users + * ## List blocked by and blocking users This action retrieves a list of users who are either blocked by a specific user or a list of users who are blocking a specific user. [https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users](https://sendbird.com/docs/chat/platform-api/v3/moderation/listing-blocked-and-blocking-users/list-blocked-and-blocking-users#1-list-blocked-by-and-blocking-users) `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters + * @param {module:model/String} opts.list Specifies whether to retrieve a list of users who are blocked by the specified user or a list of users who are blocking the specified user. Acceptable values are blocked_by_me and blocking_me. The `me` in the values refers to the user specified in the parameter. (Default: blocked_by_me) * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcListMutedUsersResponse} + * @param {String} opts.userIds Specifies the user IDs of the blocked or blocking users to search for. The value should be a comma-separated string that consists of multiple URL encoded user IDs. + * @param {String} opts.metadatakey + * @param {String} opts.metadatavaluesIn + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBlockedUsersResponse} */ - gcListMutedUsers(apiToken, channelUrl, opts) { - return this.gcListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) + listBlockedUsers(userId, opts) { + return this.listBlockedUsersWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -433,158 +282,34 @@ export default class ModerationApi { /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Unblock a user + * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user + * @param {String} userId (Required) + * @param {String} targetId (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcMuteUserData} opts.gcMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdGroupChannel} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - gcMuteUserWithHttpInfo(apiToken, channelUrl, opts) { + unblockAUserWithHttpInfo(userId, targetId, opts) { opts = opts || {}; - let postBody = opts['gcMuteUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcMuteUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcMuteUser"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdGroupChannel; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/mute', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in a group channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-mute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/GcMuteUserData} opts.gcMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdGroupChannel} - */ - gcMuteUser(apiToken, channelUrl, opts) { - return this.gcMuteUserWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnbanUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnbanUserById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcUnbanUserById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - gcUnbanUserById(apiToken, channelUrl, bannedUserId) { - return this.gcUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUnmuteUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUnmuteUserById"); + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling unblockAUser"); } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling gcUnmuteUserById"); + // verify the required parameter 'targetId' is set + if (targetId === undefined || targetId === null) { + throw new Error("Missing the required parameter 'targetId' when calling unblockAUser"); } let pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId + 'user_id': userId, + 'target_id': targetId }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -592,1161 +317,25 @@ export default class ModerationApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/mute/{muted_user_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user within a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - gcUnmuteUserById(apiToken, channelUrl, mutedUserId) { - return this.gcUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateBanByIdData} opts.gcUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcUpdateBanByIdResponse} and HTTP response - */ - gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) { - opts = opts || {}; - let postBody = opts['gcUpdateBanByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcUpdateBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcUpdateBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcUpdateBanById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = GcUpdateBanByIdResponse; + let returnType = Object; return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'PUT', + '/v3/users/{user_id}/block/{target_id}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of the ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId + * Unblock a user + * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/platform-api/v3/moderation/blocking-users/unblock-a-user#1-unblock-a-user + * @param {String} userId (Required) + * @param {String} targetId (Required) * @param {Object} opts Optional parameters - * @param {module:model/GcUpdateBanByIdData} opts.gcUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcUpdateBanByIdResponse} - */ - gcUpdateBanById(apiToken, channelUrl, bannedUserId, opts) { - return this.gcUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewBanByIdResponse} and HTTP response - */ - gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling gcViewBanById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GcViewBanByIdResponse; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/ban/{banned_user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewBanByIdResponse} - */ - gcViewBanById(apiToken, channelUrl, bannedUserId) { - return this.gcViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GcViewMuteByIdResponse} and HTTP response - */ - gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling gcViewMuteById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling gcViewMuteById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling gcViewMuteById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GcViewMuteByIdResponse; - return this.apiClient.callApi( - '/v3/group_channels/{channel_url}/mute/{muted_user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in a group channel. https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GcViewMuteByIdResponse} - */ - gcViewMuteById(apiToken, channelUrl, mutedUserId) { - return this.gcViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBannedChannelsResponse} and HTTP response - */ - listBannedChannelsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBannedChannels"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listBannedChannels"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListBannedChannelsResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/ban', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List banned channels - * ## List banned channels Retrieves a list of open and group channels with additional information where a user is banned. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-banned-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBannedChannelsResponse} - */ - listBannedChannels(apiToken, userId, opts) { - return this.listBannedChannelsWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.userIds - * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListBlockedUsersResponse} and HTTP response - */ - listBlockedUsersWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listBlockedUsers"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listBlockedUsers"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'user_ids': opts['userIds'], - 'metadatakey': opts['metadatakey'], - 'metadatavalues_in': opts['metadatavaluesIn'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListBlockedUsersResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/block', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List blocked users - * ## List blocked users Retrieves a list of other users that a user has blocked. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-blocked-users ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.userIds - * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListBlockedUsersResponse} - */ - listBlockedUsers(apiToken, userId, opts) { - return this.listBlockedUsersWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMutedChannelsResponse} and HTTP response - */ - listMutedChannelsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMutedChannels"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling listMutedChannels"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListMutedChannelsResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/mute', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List muted channels - * ## List muted channels Retrieves a list of open and group channels with additional information where a user is muted. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-muted-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMutedChannelsResponse} - */ - listMutedChannels(apiToken, userId, opts) { - return this.listMutedChannelsWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} opts.muteInChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = opts['muteInChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling muteInChannelsWithCustomChannelTypes"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling muteInChannelsWithCustomChannelTypes"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/users/{user_id}/muted_channel_custom_types', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mute in channels with custom channel types - * ## Mute in channels with custom channel types Mutes a user in channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mute-in-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} opts.muteInChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - muteInChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.muteInChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcBanUserData} opts.ocBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcBanUserResponse} and HTTP response - */ - ocBanUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['ocBanUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocBanUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocBanUser"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = OcBanUserResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/ban', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Ban a user - * ## Ban a user Bans a user from an open channel. A banned user is immediately expelled from a channel and allowed to participate in the channel again after a set time period. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-ban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcBanUserData} opts.ocBanUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcBanUserResponse} - */ - ocBanUser(apiToken, channelUrl, opts) { - return this.ocBanUserWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcFreezeChannelData} opts.ocFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response - */ - ocFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['ocFreezeChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocFreezeChannel"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocFreezeChannel"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdOpenChannel; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/freeze', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Freeze a channel - * ## Freeze a channel Freezes or unfreezes an open channel. > __Note__: Only users designated as channel operators are allowed to talk when a channel is frozen. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-freeze-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcFreezeChannelData} opts.ocFreezeChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} - */ - ocFreezeChannel(apiToken, channelUrl, opts) { - return this.ocFreezeChannelWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListBannedUsersResponse} and HTTP response - */ - ocListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListBannedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListBannedUsers"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcListBannedUsersResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/ban', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List banned users - * ## List banned users Retrieves a list of banned users from a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-banned-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel where to retrieve a list of banned users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListBannedUsersResponse} - */ - ocListBannedUsers(apiToken, channelUrl, opts) { - return this.ocListBannedUsersWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListMutedUsersResponse} and HTTP response - */ - ocListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListMutedUsers"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListMutedUsers"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcListMutedUsersResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/mute', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List muted users - * ## List muted users Retrieves a list of muted users in the channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-muted-users ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of muted users. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListMutedUsersResponse} - */ - ocListMutedUsers(apiToken, channelUrl, opts) { - return this.ocListMutedUsersWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcMuteUserData} opts.ocMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response - */ - ocMuteUserWithHttpInfo(apiToken, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['ocMuteUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocMuteUser"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocMuteUser"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdOpenChannel; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/mute', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Mute a user - * ## Mute a user Mutes a user in the channel. A muted user remains in the channel and is allowed to view the messages, but can't send any messages until unmuted. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-mute-a-user - * @param {String} apiToken - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/OcMuteUserData} opts.ocMuteUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} - */ - ocMuteUser(apiToken, channelUrl, opts) { - return this.ocMuteUserWithHttpInfo(apiToken, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUnbanUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUnbanUserById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocUnbanUserById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unban a user - * ## Unban a user Unbans a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unban-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - ocUnbanUserById(apiToken, channelUrl, bannedUserId) { - return this.ocUnbanUserByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response - */ - ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUnmuteUserById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUnmuteUserById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling ocUnmuteUserById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/mute/{muted_user_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unmute a user - * ## Unmute a user Unmutes a user from an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-unmute-a-user ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} - */ - ocUnmuteUserById(apiToken, channelUrl, mutedUserId) { - return this.ocUnmuteUserByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateBanByIdData} opts.ocUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcUpdateBanByIdResponse} and HTTP response - */ - ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) { - opts = opts || {}; - let postBody = opts['ocUpdateBanByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUpdateBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUpdateBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocUpdateBanById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = OcUpdateBanByIdResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a ban - * ## Update a ban Updates details of a ban imposed on a user. You can change the length of a ban with this action, and also provide an updated description. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateBanByIdData} opts.ocUpdateBanByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcUpdateBanByIdResponse} - */ - ocUpdateBanById(apiToken, channelUrl, bannedUserId, opts) { - return this.ocUpdateBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcViewBanByIdResponse} and HTTP response - */ - ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewBanById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewBanById"); - } - // verify the required parameter 'bannedUserId' is set - if (bannedUserId === undefined || bannedUserId === null) { - throw new Error("Missing the required parameter 'bannedUserId' when calling ocViewBanById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'banned_user_id': bannedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcViewBanByIdResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/ban/{banned_user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a ban - * ## View a ban Retrieves details of a ban imposed on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-ban ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} bannedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcViewBanByIdResponse} - */ - ocViewBanById(apiToken, channelUrl, bannedUserId) { - return this.ocViewBanByIdWithHttpInfo(apiToken, channelUrl, bannedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcViewMuteByIdResponse} and HTTP response - */ - ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewMuteById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewMuteById"); - } - // verify the required parameter 'mutedUserId' is set - if (mutedUserId === undefined || mutedUserId === null) { - throw new Error("Missing the required parameter 'mutedUserId' when calling ocViewMuteById"); - } - - let pathParams = { - 'channel_url': channelUrl, - 'muted_user_id': mutedUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = OcViewMuteByIdResponse; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/mute/{muted_user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a mute - * ## View a mute Checks if a user is muted in an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-mute ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @param {String} mutedUserId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcViewMuteByIdResponse} - */ - ocViewMuteById(apiToken, channelUrl, mutedUserId) { - return this.ocViewMuteByIdWithHttpInfo(apiToken, channelUrl, mutedUserId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} targetId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - unblockUserByIdWithHttpInfo(apiToken, userId, targetId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling unblockUserById"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling unblockUserById"); - } - // verify the required parameter 'targetId' is set - if (targetId === undefined || targetId === null) { - throw new Error("Missing the required parameter 'targetId' when calling unblockUserById"); - } - - let pathParams = { - 'user_id': userId, - 'target_id': targetId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/users/{user_id}/block/{target_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Unblock a user - * ## Unblock a user Unblocks the user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-unblock-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} targetId + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - unblockUserById(apiToken, userId, targetId) { - return this.unblockUserByIdWithHttpInfo(apiToken, userId, targetId) + unblockAUser(userId, targetId, opts) { + return this.unblockAUserWithHttpInfo(userId, targetId, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/OpenChannelApi.js b/src/api/OpenChannelApi.js index 2e91c7d..8dff194 100644 --- a/src/api/OpenChannelApi.js +++ b/src/api/OpenChannelApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,19 +13,17 @@ import ApiClient from "../ApiClient"; -import OcCreateChannelData from '../model/OcCreateChannelData'; -import OcDeleteChannelByUrl200Response from '../model/OcDeleteChannelByUrl200Response'; -import OcListChannelsResponse from '../model/OcListChannelsResponse'; -import OcListOperatorsResponse from '../model/OcListOperatorsResponse'; -import OcListParticipantsResponse from '../model/OcListParticipantsResponse'; -import OcRegisterOperatorsData from '../model/OcRegisterOperatorsData'; -import OcUpdateChannelByUrlData from '../model/OcUpdateChannelByUrlData'; -import SendBirdOpenChannel from '../model/SendBirdOpenChannel'; +import CreateAnOpenChannelRequest from '../model/CreateAnOpenChannelRequest'; +import ListOpenChannelsResponse from '../model/ListOpenChannelsResponse'; +import ListOperatorsResponse from '../model/ListOperatorsResponse'; +import RegisterOperatorsToAGroupChannelRequest from '../model/RegisterOperatorsToAGroupChannelRequest'; +import SendbirdOpenChannel from '../model/SendbirdOpenChannel'; +import UpdateAnOpenChannelRequest from '../model/UpdateAnOpenChannelRequest'; /** * OpenChannel service. * @module api/OpenChannelApi -* @version 0.0.16 +* @version 2.0.0 */ export default class OpenChannelApi { @@ -43,95 +41,23 @@ export default class OpenChannelApi { /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds + * Create an open channel + * ## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) * @param {Object} opts Optional parameters - * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAnOpenChannelRequest} opts.createAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ - ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) { + createAnOpenChannelWithHttpInfo(opts) { opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocCancelTheRegistrationOfOperators"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocCancelTheRegistrationOfOperators"); - } - // verify the required parameter 'operatorIds' is set - if (operatorIds === undefined || operatorIds === null) { - throw new Error("Missing the required parameter 'operatorIds' when calling ocCancelTheRegistrationOfOperators"); - } - - let pathParams = { - 'channel_url': channelUrl - }; - let queryParams = { - 'operator_ids': this.apiClient.buildCollectionParam(operatorIds, 'multi'), - 'delete_all': opts['deleteAll'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/operators', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Cancel the registration of operators - * ## Cancel the registration of operators Cancels the registration of operators from an open channel but leave them as participants. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-cancel-the-registration-of-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. - * @param {String} apiToken - * @param {String} channelUrl - * @param {Array.} operatorIds - * @param {Object} opts Optional parameters - * @param {Boolean} opts.deleteAll - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - ocCancelTheRegistrationOfOperators(apiToken, channelUrl, operatorIds, opts) { - return this.ocCancelTheRegistrationOfOperatorsWithHttpInfo(apiToken, channelUrl, operatorIds, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/OcCreateChannelData} opts.ocCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response - */ - ocCreateChannelWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['ocCreateChannelData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocCreateChannel"); - } + let postBody = opts['createAnOpenChannelRequest']; let pathParams = { }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -139,7 +65,7 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdOpenChannel; + let returnType = SendbirdOpenChannel; return this.apiClient.callApi( '/v3/open_channels', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -148,15 +74,15 @@ export default class OpenChannelApi { } /** - * Create a channel - * ## Create a channel Creates an open channel. >__Note__: Classic open channels created before the deprecation date of March 2021 will maintain their original form and functions. However, new applications created after December 15, 2020, will be able to create dynamic partitioning open channels only. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel - * @param {String} apiToken + * Create an open channel + * ## Create an open channel You can create an [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel) that facilitates conversations for millions of users. Open channels allow a seamless chat experience possible for all participants by using [dynamic partitioning](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#4-how-dynamic-partitioning-works) which creates subchannels that each handle up to tens of thousands of participants. Because users don't need invitations to join open channels, short-lived live events like concerts or live streams that don't require a sustained membership are good use cases for open channels. [https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel](https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-create-a-channel) * @param {Object} opts Optional parameters - * @param {module:model/OcCreateChannelData} opts.ocCreateChannelData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * @param {String} opts.apiToken + * @param {module:model/CreateAnOpenChannelRequest} opts.createAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ - ocCreateChannel(apiToken, opts) { - return this.ocCreateChannelWithHttpInfo(apiToken, opts) + createAnOpenChannel(opts) { + return this.createAnOpenChannelWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -164,21 +90,19 @@ export default class OpenChannelApi { /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * Delete an open channel + * ## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) { + deleteAnOpenChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocDeleteChannelByUrl"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocDeleteChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling deleteAnOpenChannel"); } let pathParams = { @@ -187,7 +111,7 @@ export default class OpenChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -195,7 +119,7 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( '/v3/open_channels/{channel_url}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, @@ -204,14 +128,15 @@ export default class OpenChannelApi { } /** - * Delete a channel - * ## Delete a channel Deletes an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-delete-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * Delete an open channel + * ## Delete an open channel You can delete an open channel using this API. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/delete-an-open-channel#1-delete-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - ocDeleteChannelByUrl(apiToken, channelUrl) { - return this.ocDeleteChannelByUrlWithHttpInfo(apiToken, channelUrl) + deleteAnOpenChannel(channelUrl, opts) { + return this.deleteAnOpenChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -219,42 +144,30 @@ export default class OpenChannelApi { /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param {String} apiToken + * Get an open channel + * ## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.customTypes - * @param {String} opts.nameContains - * @param {String} opts.urlContains - * @param {Boolean} opts.showFrozen - * @param {Boolean} opts.showMetadata - * @param {String} opts.customType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListChannelsResponse} and HTTP response + * @param {String} opts.apiToken + * @param {Boolean} opts.includeOperators Determines whether to include a list of operators in the response. (Default: false) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ - ocListChannelsWithHttpInfo(apiToken, opts) { + getAnOpenChannelWithHttpInfo(channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListChannels"); + // verify the required parameter 'channelUrl' is set + if (channelUrl === undefined || channelUrl === null) { + throw new Error("Missing the required parameter 'channelUrl' when calling getAnOpenChannel"); } let pathParams = { + 'channel_url': channelUrl }; let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'custom_types': opts['customTypes'], - 'name_contains': opts['nameContains'], - 'url_contains': opts['urlContains'], - 'show_frozen': opts['showFrozen'], - 'show_metadata': opts['showMetadata'], - 'custom_type': opts['customType'] + 'include_operators': opts['includeOperators'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -262,31 +175,25 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcListChannelsResponse; + let returnType = SendbirdOpenChannel; return this.apiClient.callApi( - '/v3/open_channels', 'GET', + '/v3/open_channels/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * List channels - * ## List channels Retrieves a list of open channels. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-channels ---------------------------- - * @param {String} apiToken + * Get an open channel + * ## Get an open channel This action retrieves information about a specific [open channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/get-an-open-channel#1-get-an-open-channel) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.customTypes - * @param {String} opts.nameContains - * @param {String} opts.urlContains - * @param {Boolean} opts.showFrozen - * @param {Boolean} opts.showMetadata - * @param {String} opts.customType - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListChannelsResponse} + * @param {String} opts.apiToken + * @param {Boolean} opts.includeOperators Determines whether to include a list of operators in the response. (Default: false) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ - ocListChannels(apiToken, opts) { - return this.ocListChannelsWithHttpInfo(apiToken, opts) + getAnOpenChannel(channelUrl, opts) { + return this.getAnOpenChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -294,25 +201,21 @@ export default class OpenChannelApi { /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * List operators of an open channel + * ## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListOperatorsResponse} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOperatorsResponse} and HTTP response */ - ocListOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + listChannelOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListOperators"); - } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling listChannelOperators"); } let pathParams = { @@ -323,7 +226,7 @@ export default class OpenChannelApi { 'limit': opts['limit'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -331,7 +234,7 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcListOperatorsResponse; + let returnType = ListOperatorsResponse; return this.apiClient.callApi( '/v3/open_channels/{channel_url}/operators', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -340,17 +243,17 @@ export default class OpenChannelApi { } /** - * List operators - * ## List operators Retrieves a list of operators of an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-operators ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. - * @param {String} apiToken - * @param {String} channelUrl + * List operators of an open channel + * ## List operators of an open channel You can retrieve a list of operators of an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/list-operators-of-an-open-channel#1-list-operators-of-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of operators. + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListOperatorsResponse} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOperatorsResponse} */ - ocListOperators(apiToken, channelUrl, opts) { - return this.ocListOperatorsWithHttpInfo(apiToken, channelUrl, opts) + listChannelOperators(channelUrl, opts) { + return this.listChannelOperatorsWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -358,36 +261,38 @@ export default class OpenChannelApi { /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param {String} apiToken - * @param {String} channelUrl + * List open channels + * ## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels) * @param {Object} opts Optional parameters * @param {String} opts.token + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcListParticipantsResponse} and HTTP response + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.nameContains + * @param {String} opts.urlContains + * @param {Boolean} opts.showFrozen Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) + * @param {Boolean} opts.showMetadata Determines whether to include channel metadata in the response. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListOpenChannelsResponse} and HTTP response */ - ocListParticipantsWithHttpInfo(apiToken, channelUrl, opts) { + listOpenChannelsWithHttpInfo(opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocListParticipants"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocListParticipants"); - } let pathParams = { - 'channel_url': channelUrl }; let queryParams = { 'token': opts['token'], - 'limit': opts['limit'] + 'channel_urls': opts['channelUrls'], + 'limit': opts['limit'], + 'custom_types': opts['customTypes'], + 'name_contains': opts['nameContains'], + 'url_contains': opts['urlContains'], + 'show_frozen': opts['showFrozen'], + 'show_metadata': opts['showMetadata'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -395,26 +300,31 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = OcListParticipantsResponse; + let returnType = ListOpenChannelsResponse; return this.apiClient.callApi( - '/v3/open_channels/{channel_url}/participants', 'GET', + '/v3/open_channels', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * List participants - * ## List participants Retrieves a list of the participants of an open channel. A participant refers to a user who has entered the open channel and is currently online. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-list-participants ---------------------------- `channel_url` Type: string Description: Specifies the URL of the channel to retrieve a list of participants in. - * @param {String} apiToken - * @param {String} channelUrl + * List open channels + * ## List open channels This action retrieves a list of [open channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel). You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. [https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-open-channels#1-list-open-channels) * @param {Object} opts Optional parameters * @param {String} opts.token + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more open channel URLs to restrict the search scope. URL encoding each channel URL is recommended. * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcListParticipantsResponse} + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter open channels. Urlencoding each type is recommended (for example, ?custom_types=urlencoded_type_1,urlencoded_type_2). If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.nameContains + * @param {String} opts.urlContains + * @param {Boolean} opts.showFrozen Determines whether to include frozen channels in the response. Frozen channels are channels where only channel operators are allowed to send messages. (Default: true) + * @param {Boolean} opts.showMetadata Determines whether to include channel metadata in the response. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListOpenChannelsResponse} */ - ocListParticipants(apiToken, channelUrl, opts) { - return this.ocListParticipantsWithHttpInfo(apiToken, channelUrl, opts) + listOpenChannels(opts) { + return this.listOpenChannelsWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -422,24 +332,20 @@ export default class OpenChannelApi { /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to an open channel + * ## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcRegisterOperatorsData} opts.ocRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OcDeleteChannelByUrl200Response} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) { + registerOperatorsWithHttpInfo(channelUrl, opts) { opts = opts || {}; - let postBody = opts['ocRegisterOperatorsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocRegisterOperators"); - } + let postBody = opts['registerOperatorsToAGroupChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocRegisterOperators"); + throw new Error("Missing the required parameter 'channelUrl' when calling registerOperators"); } let pathParams = { @@ -448,7 +354,7 @@ export default class OpenChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -456,7 +362,7 @@ export default class OpenChannelApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = OcDeleteChannelByUrl200Response; + let returnType = Object; return this.apiClient.callApi( '/v3/open_channels/{channel_url}/operators', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -465,16 +371,16 @@ export default class OpenChannelApi { } /** - * Register operators - * ## Register operators Registers one or more operators to an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-register-operators ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Register operators to an open channel + * ## Register operators to an open channel You can register one or more operators to an open channel using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/register-operators-to-an-open-channel#1-register-operators-to-an-open-channel + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/OcRegisterOperatorsData} opts.ocRegisterOperatorsData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OcDeleteChannelByUrl200Response} + * @param {String} opts.apiToken + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} opts.registerOperatorsToAGroupChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - ocRegisterOperators(apiToken, channelUrl, opts) { - return this.ocRegisterOperatorsWithHttpInfo(apiToken, channelUrl, opts) + registerOperators(channelUrl, opts) { + return this.registerOperatorsWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -482,59 +388,63 @@ export default class OpenChannelApi { /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Unregister operators from an open channel + * ## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateChannelByUrlData} opts.ocUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response + * @param {Boolean} opts.deleteAll Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) { + unregisterOperatorsWithHttpInfo(channelUrl, operatorIds, opts) { opts = opts || {}; - let postBody = opts['ocUpdateChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocUpdateChannelByUrl"); - } + let postBody = null; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocUpdateChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling unregisterOperators"); + } + // verify the required parameter 'operatorIds' is set + if (operatorIds === undefined || operatorIds === null) { + throw new Error("Missing the required parameter 'operatorIds' when calling unregisterOperators"); } let pathParams = { 'channel_url': channelUrl }; let queryParams = { + 'operator_ids': operatorIds, + 'delete_all': opts['deleteAll'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = SendBirdOpenChannel; + let returnType = Object; return this.apiClient.callApi( - '/v3/open_channels/{channel_url}', 'PUT', + '/v3/open_channels/{channel_url}/operators', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Update a channel - * ## Update a channel Updates information on an open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-update-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl + * Unregister operators from an open channel + * ## Unregister operators from an open channel You can unregister operators in an open channel but keep them in the channel as participants using this API. https://sendbird.com/docs/chat/platform-api/v3/user/assigning-a-user-role/unregister-operators-from-an-open-channel#1-unregister-operators-from-an-open-channel `channel_url` Type: string Description: Specifies the URL of the channel to cancel the registration of operators. + * @param {String} channelUrl (Required) + * @param {String} operatorIds Specifies an array of one or more operator IDs to unregister from the channel. The operators in this array remain as participants of the channel after losing their operational roles. Urlencoding each operator ID is recommended. An example of a Urlencoded array would be ?operator_ids=urlencoded_id_1,urlencoded_id_2. * @param {Object} opts Optional parameters - * @param {module:model/OcUpdateChannelByUrlData} opts.ocUpdateChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * @param {Boolean} opts.deleteAll Determines whether to unregister all operators and leave them as the participants of the channel. When this is set to true, the operator_ids property isn't effective and doesn't need to be specified in the request. (Default: false) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - ocUpdateChannelByUrl(apiToken, channelUrl, opts) { - return this.ocUpdateChannelByUrlWithHttpInfo(apiToken, channelUrl, opts) + unregisterOperators(channelUrl, operatorIds, opts) { + return this.unregisterOperatorsWithHttpInfo(channelUrl, operatorIds, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -542,21 +452,20 @@ export default class OpenChannelApi { /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdOpenChannel} and HTTP response + * Update an open channel + * ## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAnOpenChannelRequest} opts.updateAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdOpenChannel} and HTTP response */ - ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling ocViewChannelByUrl"); - } + updateAnOpenChannelWithHttpInfo(channelUrl, opts) { + opts = opts || {}; + let postBody = opts['updateAnOpenChannelRequest']; // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling ocViewChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateAnOpenChannel"); } let pathParams = { @@ -565,31 +474,33 @@ export default class OpenChannelApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdOpenChannel; + let returnType = SendbirdOpenChannel; return this.apiClient.callApi( - '/v3/open_channels/{channel_url}', 'GET', + '/v3/open_channels/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View a channel - * ## View a channel Retrieves information on a specific open channel. https://sendbird.com/docs/chat/v3/platform-api/guides/open-channel#2-view-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdOpenChannel} + * Update an open channel + * ## Update an open channel You can update information about an open channel using this API. You can add a cover image to a channel to better identify the channel or specify a custom channel type for grouping channels by custom type. See [this page](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-open-channel-vs-group-channel-vs-supergroup-channel) to learn more about channel types. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-an-open-channel#1-update-an-open-channel + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAnOpenChannelRequest} opts.updateAnOpenChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdOpenChannel} */ - ocViewChannelByUrl(apiToken, channelUrl) { - return this.ocViewChannelByUrlWithHttpInfo(apiToken, channelUrl) + updateAnOpenChannel(channelUrl, opts) { + return this.updateAnOpenChannelWithHttpInfo(channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/PrivacyApi.js b/src/api/PrivacyApi.js deleted file mode 100644 index 6694f19..0000000 --- a/src/api/PrivacyApi.js +++ /dev/null @@ -1,261 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ListGdprRequestsResponse from '../model/ListGdprRequestsResponse'; -import RegisterGdprRequestData from '../model/RegisterGdprRequestData'; -import RegisterGdprRequestResponse from '../model/RegisterGdprRequestResponse'; -import ViewGdprRequestByIdResponse from '../model/ViewGdprRequestByIdResponse'; - -/** -* Privacy service. -* @module api/PrivacyApi -* @version 0.0.16 -*/ -export default class PrivacyApi { - - /** - * Constructs a new PrivacyApi. - * @alias module:api/PrivacyApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling cancelTheRegistrationOfGdprRequestById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling cancelTheRegistrationOfGdprRequestById"); - } - - let pathParams = { - 'request_id': requestId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = []; - let returnType = null; - return this.apiClient.callApi( - '/v3/privacy/gdpr/{request_id}', 'DELETE', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Cancel the registration of a GDPR request - * ## Cancel the registration of a GDPR request Cancels the registration of a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-cancel-the-registration-of-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise} - */ - cancelTheRegistrationOfGdprRequestById(apiToken, requestId) { - return this.cancelTheRegistrationOfGdprRequestByIdWithHttpInfo(apiToken, requestId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListGdprRequestsResponse} and HTTP response - */ - listGdprRequestsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listGdprRequests"); - } - - let pathParams = { - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListGdprRequestsResponse; - return this.apiClient.callApi( - '/v3/privacy/gdpr', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List GDPR requests - * ## List GDPR requests Retrieves a list of GDPR requests of all types. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-list-gdpr-requests ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListGdprRequestsResponse} - */ - listGdprRequests(apiToken, opts) { - return this.listGdprRequestsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/RegisterGdprRequestData} opts.registerGdprRequestData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RegisterGdprRequestResponse} and HTTP response - */ - registerGdprRequestWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['registerGdprRequestData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerGdprRequest"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = RegisterGdprRequestResponse; - return this.apiClient.callApi( - '/v3/privacy/gdpr', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Register a GDPR request - * ## Register a GDPR request Registers a specific type of GDPR request to meet the GDPR's requirements. > __Note__: Currently, only delete and access of the user data are supported. The features for the [right to restriction of processing](https://gdpr-info.eu/art-18-gdpr/) and [right to object](https://gdpr-info.eu/art-21-gdpr/) will be available soon. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-register-a-gdpr-request - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/RegisterGdprRequestData} opts.registerGdprRequestData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RegisterGdprRequestResponse} - */ - registerGdprRequest(apiToken, opts) { - return this.registerGdprRequestWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewGdprRequestByIdResponse} and HTTP response - */ - viewGdprRequestByIdWithHttpInfo(apiToken, requestId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewGdprRequestById"); - } - // verify the required parameter 'requestId' is set - if (requestId === undefined || requestId === null) { - throw new Error("Missing the required parameter 'requestId' when calling viewGdprRequestById"); - } - - let pathParams = { - 'request_id': requestId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewGdprRequestByIdResponse; - return this.apiClient.callApi( - '/v3/privacy/gdpr/{request_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a GDPR request - * ## View a GDPR request Retrieves a specific GDPR request. https://sendbird.com/docs/chat/v3/platform-api/guides/data-privacy#2-view-a-gdpr-request ---------------------------- - * @param {String} apiToken - * @param {String} requestId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewGdprRequestByIdResponse} - */ - viewGdprRequestById(apiToken, requestId) { - return this.viewGdprRequestByIdWithHttpInfo(apiToken, requestId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - -} diff --git a/src/api/ReportApi.js b/src/api/ReportApi.js deleted file mode 100644 index d069b8f..0000000 --- a/src/api/ReportApi.js +++ /dev/null @@ -1,593 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ListReportsOnChannelByUrlResponse from '../model/ListReportsOnChannelByUrlResponse'; -import ListReportsOnMessageByIdResponse from '../model/ListReportsOnMessageByIdResponse'; -import ListReportsOnUserByIdResponse from '../model/ListReportsOnUserByIdResponse'; -import ListReportsResponse from '../model/ListReportsResponse'; -import ReportChannelByUrlData from '../model/ReportChannelByUrlData'; -import ReportChannelByUrlResponse from '../model/ReportChannelByUrlResponse'; -import ReportMessageByIdData from '../model/ReportMessageByIdData'; -import ReportMessageByIdResponse from '../model/ReportMessageByIdResponse'; -import ReportUserByIdData from '../model/ReportUserByIdData'; -import ReportUserByIdResponse from '../model/ReportUserByIdResponse'; - -/** -* Report service. -* @module api/ReportApi -* @version 0.0.16 -*/ -export default class ReportApi { - - /** - * Constructs a new ReportApi. - * @alias module:api/ReportApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {Number} opts.startTs - * @param {Number} opts.endTs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsResponse} and HTTP response - */ - listReportsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReports"); - } - - let pathParams = { - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'], - 'start_ts': opts['startTs'], - 'end_ts': opts['endTs'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListReportsResponse; - return this.apiClient.callApi( - '/v3/report', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List reports - * ## List reports Retrieves a list of reports within an application regardless of object types. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {Number} opts.startTs - * @param {Number} opts.endTs - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsResponse} - */ - listReports(apiToken, opts) { - return this.listReportsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnChannelByUrlResponse} and HTTP response - */ - listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnChannelByUrl"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReportsOnChannelByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReportsOnChannelByUrl"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListReportsOnChannelByUrlResponse; - return this.apiClient.callApi( - '/v3/report/{channel_type}/{channel_url}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List reports on a channel - * ## List reports on a channel Retrieves a list of reports on a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-channel ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel which is reported for offensive messages or inappropriate activities. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnChannelByUrlResponse} - */ - listReportsOnChannelByUrl(apiToken, channelType, channelUrl, opts) { - return this.listReportsOnChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnMessageByIdResponse} and HTTP response - */ - listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling listReportsOnMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling listReportsOnMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling listReportsOnMessageById"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListReportsOnMessageByIdResponse; - return this.apiClient.callApi( - '/v3/report/{channel_type}/{channel_url}/messages/{message_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List reports on a message - * ## List reports on a message Retrieves a list of reports on a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-message ---------------------------- `channel_type` Type: string Description: Specifies the type of the channel. Either open_channels or group_channels. `channel_url` Type: string Description: Specifies the URL of the channel where the reported message is in. `message_id` Type: string Description: Specifies the unique ID of the reported message. - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnMessageByIdResponse} - */ - listReportsOnMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.listReportsOnMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListReportsOnUserByIdResponse} and HTTP response - */ - listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listReportsOnUserById"); - } - // verify the required parameter 'offendingUserId' is set - if (offendingUserId === undefined || offendingUserId === null) { - throw new Error("Missing the required parameter 'offendingUserId' when calling listReportsOnUserById"); - } - - let pathParams = { - 'offending_user_id': offendingUserId - }; - let queryParams = { - 'token': opts['token'], - 'limit': opts['limit'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ListReportsOnUserByIdResponse; - return this.apiClient.callApi( - '/v3/report/users/{offending_user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * List reports on a user - * ## List reports on a user Retrieves a list of reports on a user who sends an offensive message. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-list-reports-on-a-user ---------------------------- `offending_user_id` Type: string Description: Specifies the unique ID of the user who has sent the message to report. - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListReportsOnUserByIdResponse} - */ - listReportsOnUserById(apiToken, offendingUserId, opts) { - return this.listReportsOnUserByIdWithHttpInfo(apiToken, offendingUserId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/ReportChannelByUrlData} opts.reportChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportChannelByUrlResponse} and HTTP response - */ - reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) { - opts = opts || {}; - let postBody = opts['reportChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportChannelByUrl"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling reportChannelByUrl"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling reportChannelByUrl"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = ReportChannelByUrlResponse; - return this.apiClient.callApi( - '/v3/report/{channel_type}/{channel_url}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Report a channel - * ## Report a channel Reports a channel that has offensive messages or abusive activities. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {Object} opts Optional parameters - * @param {module:model/ReportChannelByUrlData} opts.reportChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportChannelByUrlResponse} - */ - reportChannelByUrl(apiToken, channelType, channelUrl, opts) { - return this.reportChannelByUrlWithHttpInfo(apiToken, channelType, channelUrl, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/ReportMessageByIdData} opts.reportMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportMessageByIdResponse} and HTTP response - */ - reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) { - opts = opts || {}; - let postBody = opts['reportMessageByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling reportMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling reportMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling reportMessageById"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = ReportMessageByIdResponse; - return this.apiClient.callApi( - '/v3/report/{channel_type}/{channel_url}/messages/{message_id}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Report a message - * ## Report a message Reports a message which contains suspicious, harassing, or inappropriate content. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @param {Object} opts Optional parameters - * @param {module:model/ReportMessageByIdData} opts.reportMessageByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportMessageByIdResponse} - */ - reportMessageById(apiToken, channelType, channelUrl, messageId, opts) { - return this.reportMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {module:model/ReportUserByIdData} opts.reportUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ReportUserByIdResponse} and HTTP response - */ - reportUserByIdWithHttpInfo(apiToken, offendingUserId, opts) { - opts = opts || {}; - let postBody = opts['reportUserByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling reportUserById"); - } - // verify the required parameter 'offendingUserId' is set - if (offendingUserId === undefined || offendingUserId === null) { - throw new Error("Missing the required parameter 'offendingUserId' when calling reportUserById"); - } - - let pathParams = { - 'offending_user_id': offendingUserId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = ReportUserByIdResponse; - return this.apiClient.callApi( - '/v3/report/users/{offending_user_id}', 'POST', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Report a user - * ## Report a user Reports a user who sends an offensive message in a channel. https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-report-a-user ---------------------------- - * @param {String} apiToken - * @param {String} offendingUserId - * @param {Object} opts Optional parameters - * @param {module:model/ReportUserByIdData} opts.reportUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ReportUserByIdResponse} - */ - reportUserById(apiToken, offendingUserId, opts) { - return this.reportUserByIdWithHttpInfo(apiToken, offendingUserId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response - */ - viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewModeratedMessageById"); - } - // verify the required parameter 'channelType' is set - if (channelType === undefined || channelType === null) { - throw new Error("Missing the required parameter 'channelType' when calling viewModeratedMessageById"); - } - // verify the required parameter 'channelUrl' is set - if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewModeratedMessageById"); - } - // verify the required parameter 'messageId' is set - if (messageId === undefined || messageId === null) { - throw new Error("Missing the required parameter 'messageId' when calling viewModeratedMessageById"); - } - - let pathParams = { - 'channel_type': channelType, - 'channel_url': channelUrl, - 'message_id': messageId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = Object; - return this.apiClient.callApi( - '/v3/report/{channel_type}/{channel_url}/profanity_messages/{message_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a moderated message - * ## View a moderated message Retrieves information on a message that has been moderated by the [profanity filter](https://sendbird.com/docs/chat/v3/platform-api/guides/filter-and-moderation#2-profanity-filter). https://sendbird.com/docs/chat/v3/platform-api/guides/report-content-and-subject#2-view-a-moderated-message ---------------------------- - * @param {String} apiToken - * @param {String} channelType - * @param {String} channelUrl - * @param {String} messageId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} - */ - viewModeratedMessageById(apiToken, channelType, channelUrl, messageId) { - return this.viewModeratedMessageByIdWithHttpInfo(apiToken, channelType, channelUrl, messageId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - -} diff --git a/src/api/StatisticsApi.js b/src/api/StatisticsApi.js index e4b8c02..b22824c 100644 --- a/src/api/StatisticsApi.js +++ b/src/api/StatisticsApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,18 +13,13 @@ import ApiClient from "../ApiClient"; -import GetDetailedOpenRateOfAnnouncementByIdResponse from '../model/GetDetailedOpenRateOfAnnouncementByIdResponse'; -import GetDetailedOpenStatusOfAnnouncementByIdResponse from '../model/GetDetailedOpenStatusOfAnnouncementByIdResponse'; -import RetrieveAdvancedAnalyticsMetricsResponse from '../model/RetrieveAdvancedAnalyticsMetricsResponse'; -import ViewNumberOfConcurrentConnectionsResponse from '../model/ViewNumberOfConcurrentConnectionsResponse'; import ViewNumberOfDailyActiveUsersResponse from '../model/ViewNumberOfDailyActiveUsersResponse'; import ViewNumberOfMonthlyActiveUsersResponse from '../model/ViewNumberOfMonthlyActiveUsersResponse'; -import ViewNumberOfPeakConnectionsResponse from '../model/ViewNumberOfPeakConnectionsResponse'; /** * Statistics service. * @module api/StatisticsApi -* @version 0.0.16 +* @version 2.0.0 */ export default class StatisticsApi { @@ -41,245 +36,17 @@ export default class StatisticsApi { - /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} and HTTP response - */ - getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenRateOfAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenRateOfAnnouncementById"); - } - - let pathParams = { - 'unique_id': uniqueId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetDetailedOpenRateOfAnnouncementByIdResponse; - return this.apiClient.callApi( - '/v3/announcement_open_rate/{unique_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get detailed open rate of an announcement - * ## Get detailed open rate of an announcement Retrieves the detailed open rate information of an announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-rate-of-an-announcement ---------------------------- `unique_id` Type: string Description: Specifies the unique ID of the announcement to get its open rate. - * @param {String} apiToken - * @param {String} uniqueId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} - */ - getDetailedOpenRateOfAnnouncementById(apiToken, uniqueId) { - return this.getDetailedOpenRateOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {Number} opts.limit - * @param {String} opts.next - * @param {Array.} opts.uniqueIds - * @param {Array.} opts.channelUrls - * @param {Boolean} opts.hasOpened - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} and HTTP response - */ - getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling getDetailedOpenStatusOfAnnouncementById"); - } - // verify the required parameter 'uniqueId' is set - if (uniqueId === undefined || uniqueId === null) { - throw new Error("Missing the required parameter 'uniqueId' when calling getDetailedOpenStatusOfAnnouncementById"); - } - - let pathParams = { - 'unique_id': uniqueId - }; - let queryParams = { - 'limit': opts['limit'], - 'next': opts['next'], - 'unique_ids': this.apiClient.buildCollectionParam(opts['uniqueIds'], 'multi'), - 'channel_urls': this.apiClient.buildCollectionParam(opts['channelUrls'], 'multi'), - 'has_opened': opts['hasOpened'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = GetDetailedOpenStatusOfAnnouncementByIdResponse; - return this.apiClient.callApi( - '/v3/announcement_open_status/{unique_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Get detailed open status of an announcement - * ## Get detailed open status of an announcement Retrieves the detailed open status information of a specific announcement. https://sendbird.com/docs/chat/v3/platform-api/guides/announcements#2-get-detailed-open-status-of-an-announcement ---------------------------- - * @param {String} apiToken - * @param {String} uniqueId - * @param {Object} opts Optional parameters - * @param {Number} opts.limit - * @param {String} opts.next - * @param {Array.} opts.uniqueIds - * @param {Array.} opts.channelUrls - * @param {Boolean} opts.hasOpened - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} - */ - getDetailedOpenStatusOfAnnouncementById(apiToken, uniqueId, opts) { - return this.getDetailedOpenStatusOfAnnouncementByIdWithHttpInfo(apiToken, uniqueId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveAdvancedAnalyticsMetricsResponse} and HTTP response - */ - retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveAdvancedAnalyticsMetrics"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = RetrieveAdvancedAnalyticsMetricsResponse; - return this.apiClient.callApi( - '/v3/statistics/metric', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Retrieve Advanced analytics metrics - * ## Retrieve Advanced analytics metrics Retrieves Advanced analytics metrics based on the specified parameters. You can retrieve either daily or monthly metrics using the time_dimension parameter. >__Note__: Daily metrics are calculated and updated every three hours, starting at 1 a.m. in UTC. Meanwhile, monthly metrics are calculated after the last day of the month. https://sendbird.com/docs/chat/v3/platform-api/guides/advanced-analytics#2-retrieve-advanced-analytics-metrics ---------------------------- - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveAdvancedAnalyticsMetricsResponse} - */ - retrieveAdvancedAnalyticsMetrics(apiToken) { - return this.retrieveAdvancedAnalyticsMetricsWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfConcurrentConnectionsResponse} and HTTP response - */ - viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfConcurrentConnections"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewNumberOfConcurrentConnectionsResponse; - return this.apiClient.callApi( - '/v3/applications/ccu', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View number of concurrent connections - * ## View number of concurrent connections Retrieves the number of devices and opened browser tabs which are currently connected to Sendbird server. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-concurrent-connections - * @param {String} apiToken - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfConcurrentConnectionsResponse} - */ - viewNumberOfConcurrentConnections(apiToken) { - return this.viewNumberOfConcurrentConnectionsWithHttpInfo(apiToken) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - /** * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param {String} apiToken + * ## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfDailyActiveUsersResponse} and HTTP response */ - viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, opts) { + viewNumberOfDailyActiveUsersWithHttpInfo(opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfDailyActiveUsers"); - } let pathParams = { }; @@ -287,7 +54,7 @@ export default class StatisticsApi { 'date': opts['date'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -305,14 +72,14 @@ export default class StatisticsApi { /** * View number of daily active users - * ## View number of daily active users Retrieves the number of daily active users of the application (DAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-daily-active-users ---------------------------- - * @param {String} apiToken + * ## View number of daily active users Retrieves the number of daily active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-daily-active-users#1-get-number-of-daily-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfDailyActiveUsersResponse} */ - viewNumberOfDailyActiveUsers(apiToken, opts) { - return this.viewNumberOfDailyActiveUsersWithHttpInfo(apiToken, opts) + viewNumberOfDailyActiveUsers(opts) { + return this.viewNumberOfDailyActiveUsersWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -321,19 +88,15 @@ export default class StatisticsApi { /** * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param {String} apiToken + * ## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfMonthlyActiveUsersResponse} and HTTP response */ - viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, opts) { + viewNumberOfMonthlyActiveUsersWithHttpInfo(opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfMonthlyActiveUsers"); - } let pathParams = { }; @@ -341,7 +104,7 @@ export default class StatisticsApi { 'date': opts['date'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -359,106 +122,14 @@ export default class StatisticsApi { /** * View number of monthly active users - * ## View number of monthly active users Retrieves the number of monthly active users of the application (MAU). https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-monthly-active-users ---------------------------- - * @param {String} apiToken + * ## View number of monthly active users Retrieves the number of monthly active users of an application. > **Note**: This metric is scheduled to be calculated every 30 minutes, starting at 00:00 UTC, with the first update at 00:30 UTC. [https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users](https://sendbird.com/docs/chat/platform-api/v3/statistics/daus-and-maus/get-number-of-monthly-active-users#1-get-number-of-monthly-active-users) * @param {Object} opts Optional parameters - * @param {String} opts.date + * @param {String} opts.date YYYY-MM-DD + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfMonthlyActiveUsersResponse} */ - viewNumberOfMonthlyActiveUsers(apiToken, opts) { - return this.viewNumberOfMonthlyActiveUsersWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param {String} apiToken - * @param {String} timeDimension - * @param {Number} startYear - * @param {Number} startMonth - * @param {Number} endYear - * @param {Number} endMonth - * @param {Object} opts Optional parameters - * @param {Number} opts.startDay - * @param {Number} opts.endDay - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfPeakConnectionsResponse} and HTTP response - */ - viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'timeDimension' is set - if (timeDimension === undefined || timeDimension === null) { - throw new Error("Missing the required parameter 'timeDimension' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'startYear' is set - if (startYear === undefined || startYear === null) { - throw new Error("Missing the required parameter 'startYear' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'startMonth' is set - if (startMonth === undefined || startMonth === null) { - throw new Error("Missing the required parameter 'startMonth' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'endYear' is set - if (endYear === undefined || endYear === null) { - throw new Error("Missing the required parameter 'endYear' when calling viewNumberOfPeakConnections"); - } - // verify the required parameter 'endMonth' is set - if (endMonth === undefined || endMonth === null) { - throw new Error("Missing the required parameter 'endMonth' when calling viewNumberOfPeakConnections"); - } - - let pathParams = { - }; - let queryParams = { - 'time_dimension': timeDimension, - 'start_year': startYear, - 'start_month': startMonth, - 'end_year': endYear, - 'end_month': endMonth, - 'start_day': opts['startDay'], - 'end_day': opts['endDay'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewNumberOfPeakConnectionsResponse; - return this.apiClient.callApi( - '/v3/applications/peak_connections', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View number of peak connections - * ## View number of peak connections Retrieves the number of concurrently connected devices to Sendbird server during the requested time period. https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-number-of-peak-connections ---------------------------- - * @param {String} apiToken - * @param {String} timeDimension - * @param {Number} startYear - * @param {Number} startMonth - * @param {Number} endYear - * @param {Number} endMonth - * @param {Object} opts Optional parameters - * @param {Number} opts.startDay - * @param {Number} opts.endDay - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfPeakConnectionsResponse} - */ - viewNumberOfPeakConnections(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) { - return this.viewNumberOfPeakConnectionsWithHttpInfo(apiToken, timeDimension, startYear, startMonth, endYear, endMonth, opts) + viewNumberOfMonthlyActiveUsers(opts) { + return this.viewNumberOfMonthlyActiveUsersWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/UserApi.js b/src/api/UserApi.js index 4500b5b..4ebf65d 100644 --- a/src/api/UserApi.js +++ b/src/api/UserApi.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,46 +13,42 @@ import ApiClient from "../ApiClient"; -import AddRegistrationOrDeviceTokenData from '../model/AddRegistrationOrDeviceTokenData'; -import AddRegistrationOrDeviceTokenResponse from '../model/AddRegistrationOrDeviceTokenResponse'; -import ChoosePushNotificationContentTemplateResponse from '../model/ChoosePushNotificationContentTemplateResponse'; -import CreateUserData from '../model/CreateUserData'; -import CreateUserTokenData from '../model/CreateUserTokenData'; +import AddARegistrationOrDeviceTokenRequest from '../model/AddARegistrationOrDeviceTokenRequest'; +import AddARegistrationOrDeviceTokenResponse from '../model/AddARegistrationOrDeviceTokenResponse'; +import ChooseAPushNotificationContentTemplateRequest from '../model/ChooseAPushNotificationContentTemplateRequest'; +import ChooseAPushNotificationContentTemplateResponse from '../model/ChooseAPushNotificationContentTemplateResponse'; +import CreateAUserRequest from '../model/CreateAUserRequest'; +import CreateUserTokenRequest from '../model/CreateUserTokenRequest'; import CreateUserTokenResponse from '../model/CreateUserTokenResponse'; -import LeaveMyGroupChannelsData from '../model/LeaveMyGroupChannelsData'; +import GetChannelInvitationPreferenceResponse from '../model/GetChannelInvitationPreferenceResponse'; +import LeaveMyGroupChannelsRequest from '../model/LeaveMyGroupChannelsRequest'; import ListMyGroupChannelsResponse from '../model/ListMyGroupChannelsResponse'; import ListRegistrationOrDeviceTokensResponse from '../model/ListRegistrationOrDeviceTokensResponse'; import ListUsersResponse from '../model/ListUsersResponse'; -import MarkAllMessagesAsReadData from '../model/MarkAllMessagesAsReadData'; -import RegisterAsOperatorToChannelsWithCustomChannelTypesData from '../model/RegisterAsOperatorToChannelsWithCustomChannelTypesData'; -import RemoveRegistrationOrDeviceTokenByTokenResponse from '../model/RemoveRegistrationOrDeviceTokenByTokenResponse'; -import RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse from '../model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse'; -import RemoveRegistrationOrDeviceTokenResponse from '../model/RemoveRegistrationOrDeviceTokenResponse'; -import ResetPushPreferencesResponse from '../model/ResetPushPreferencesResponse'; -import SendBirdUser from '../model/SendBirdUser'; -import UpdateChannelInvitationPreferenceData from '../model/UpdateChannelInvitationPreferenceData'; +import MarkAllMessagesAsReadRequest from '../model/MarkAllMessagesAsReadRequest'; +import MarkChannelMessagesAsReadRequest from '../model/MarkChannelMessagesAsReadRequest'; +import RemoveARegistrationOrDeviceTokenResponse from '../model/RemoveARegistrationOrDeviceTokenResponse'; +import RemoveAllRegistrationOrDeviceTokenResponse from '../model/RemoveAllRegistrationOrDeviceTokenResponse'; +import SendbirdUser from '../model/SendbirdUser'; +import UpdateAUserRequest from '../model/UpdateAUserRequest'; +import UpdateChannelInvitationPreferenceRequest from '../model/UpdateChannelInvitationPreferenceRequest'; import UpdateChannelInvitationPreferenceResponse from '../model/UpdateChannelInvitationPreferenceResponse'; -import UpdateCountPreferenceOfChannelByUrlData from '../model/UpdateCountPreferenceOfChannelByUrlData'; +import UpdateCountPreferenceOfAChannelRequest from '../model/UpdateCountPreferenceOfAChannelRequest'; import UpdateCountPreferenceOfChannelByUrlResponse from '../model/UpdateCountPreferenceOfChannelByUrlResponse'; -import UpdatePushPreferencesData from '../model/UpdatePushPreferencesData'; -import UpdatePushPreferencesForChannelByUrlData from '../model/UpdatePushPreferencesForChannelByUrlData'; -import UpdatePushPreferencesForChannelByUrlResponse from '../model/UpdatePushPreferencesForChannelByUrlResponse'; +import UpdatePushPreferencesForAChannelRequest from '../model/UpdatePushPreferencesForAChannelRequest'; +import UpdatePushPreferencesForAChannelResponse from '../model/UpdatePushPreferencesForAChannelResponse'; +import UpdatePushPreferencesRequest from '../model/UpdatePushPreferencesRequest'; import UpdatePushPreferencesResponse from '../model/UpdatePushPreferencesResponse'; -import UpdateUserByIdData from '../model/UpdateUserByIdData'; -import ViewChannelInvitationPreferenceResponse from '../model/ViewChannelInvitationPreferenceResponse'; -import ViewCountPreferenceOfChannelByUrlResponse from '../model/ViewCountPreferenceOfChannelByUrlResponse'; -import ViewNumberOfChannelsByJoinStatusResponse from '../model/ViewNumberOfChannelsByJoinStatusResponse'; +import ViewCountPreferenceOfAChannelResponse from '../model/ViewCountPreferenceOfAChannelResponse'; import ViewNumberOfChannelsWithUnreadMessagesResponse from '../model/ViewNumberOfChannelsWithUnreadMessagesResponse'; -import ViewNumberOfUnreadItemsResponse from '../model/ViewNumberOfUnreadItemsResponse'; import ViewNumberOfUnreadMessagesResponse from '../model/ViewNumberOfUnreadMessagesResponse'; -import ViewPushPreferencesForChannelByUrlResponse from '../model/ViewPushPreferencesForChannelByUrlResponse'; +import ViewPushPreferencesForAChannelResponse from '../model/ViewPushPreferencesForAChannelResponse'; import ViewPushPreferencesResponse from '../model/ViewPushPreferencesResponse'; -import ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner from '../model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner'; /** * User service. * @module api/UserApi -* @version 0.0.16 +* @version 2.0.0 */ export default class UserApi { @@ -72,27 +68,23 @@ export default class UserApi { /** * Add a registration or device token * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) * @param {Object} opts Optional parameters - * @param {module:model/AddRegistrationOrDeviceTokenData} opts.addRegistrationOrDeviceTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddRegistrationOrDeviceTokenResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/AddARegistrationOrDeviceTokenRequest} opts.addARegistrationOrDeviceTokenRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AddARegistrationOrDeviceTokenResponse} and HTTP response */ - addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, opts) { + addARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, opts) { opts = opts || {}; - let postBody = opts['addRegistrationOrDeviceTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling addRegistrationOrDeviceToken"); - } + let postBody = opts['addARegistrationOrDeviceTokenRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling addRegistrationOrDeviceToken"); + throw new Error("Missing the required parameter 'userId' when calling addARegistrationOrDeviceToken"); } // verify the required parameter 'tokenType' is set if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling addRegistrationOrDeviceToken"); + throw new Error("Missing the required parameter 'tokenType' when calling addARegistrationOrDeviceToken"); } let pathParams = { @@ -102,7 +94,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -110,7 +102,7 @@ export default class UserApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = AddRegistrationOrDeviceTokenResponse; + let returnType = AddARegistrationOrDeviceTokenResponse; return this.apiClient.callApi( '/v3/users/{user_id}/push/{token_type}', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -121,15 +113,15 @@ export default class UserApi { /** * Add a registration or device token * ## Add a registration or device token > __Note__: A user can have up to 20 FCM registration tokens, 20 HMS device tokens, and 20 APNs device tokens each. The oldest token will be deleted before a new token is added for a user who already has 20 registration or device tokens. Only the 20 newest tokens will be maintained for users who already have more than 20 of each token type. To send notification requests to push notification services on behalf of your server, adds a specific user's FCM registration token, HMS device token, or APNs device token to Sendbird server. Depending on which push service you are using, you can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`. A FCM registration token and an APNs device token allow identification of each client app instance on each device, and are generated and registered by Android and iOS apps through the corresponding SDKs. Use this method if you need to register a token via your own server. > __Note__: For more information on the registration token and device token, visit the Google's [FCM](https://firebase.google.com/docs/auth/admin/verify-id-tokens) page, Huawei's [Push kit](https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/service-introduction-0000001050040060) and Apple's [APNs](https://developer.apple.com/library/content/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/APNSOverview.html) page. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-add-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) * @param {Object} opts Optional parameters - * @param {module:model/AddRegistrationOrDeviceTokenData} opts.addRegistrationOrDeviceTokenData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddRegistrationOrDeviceTokenResponse} + * @param {String} opts.apiToken + * @param {module:model/AddARegistrationOrDeviceTokenRequest} opts.addARegistrationOrDeviceTokenRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AddARegistrationOrDeviceTokenResponse} */ - addRegistrationOrDeviceToken(apiToken, userId, tokenType, opts) { - return this.addRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId, tokenType, opts) + addARegistrationOrDeviceToken(userId, tokenType, opts) { + return this.addARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -138,23 +130,19 @@ export default class UserApi { /** * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChoosePushNotificationContentTemplateResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} opts.chooseAPushNotificationContentTemplateRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChooseAPushNotificationContentTemplateResponse} and HTTP response */ - choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, opts) { + chooseAPushNotificationContentTemplateWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['body']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling choosePushNotificationContentTemplate"); - } + let postBody = opts['chooseAPushNotificationContentTemplateRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling choosePushNotificationContentTemplate"); + throw new Error("Missing the required parameter 'userId' when calling chooseAPushNotificationContentTemplate"); } let pathParams = { @@ -163,7 +151,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -171,7 +159,7 @@ export default class UserApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = ChoosePushNotificationContentTemplateResponse; + let returnType = ChooseAPushNotificationContentTemplateResponse; return this.apiClient.callApi( '/v3/users/{user_id}/push/template', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -181,15 +169,15 @@ export default class UserApi { /** * Choose a push notification content template - * ## Choose a push notification content template Chooses a push notification content template of a user's own. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-choose-a-push-notification-content-template ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Choose a push notification content template Users can choose a template to determine how push notifications appear to them. Push notification content templates are pre-formatted forms that can be customized to display your own push notification messages on a user's device. Sendbird provides two types: `default` and `alternative`. Go to **Settings** > **Chat** > **Push notifications** > **Push notification content templates** on [Sendbird Dashboard](https://dashboard.sendbird.com/auth/signin) to customize the templates. If the `push_message_template` property is specified when [sending a message](https://sendbird.com/docs/chat/platform-api/v3/message/messaging-basics/send-a-message), the content template customized for the message takes precedence over the user's choice. > **Note**: Push notifications are only available for group channels. https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/choose-a-push-notification-content-template#1-choose-a-push-notification-content-template + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Object.} opts.body - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChoosePushNotificationContentTemplateResponse} + * @param {String} opts.apiToken + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} opts.chooseAPushNotificationContentTemplateRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChooseAPushNotificationContentTemplateResponse} */ - choosePushNotificationContentTemplate(apiToken, userId, opts) { - return this.choosePushNotificationContentTemplateWithHttpInfo(apiToken, userId, opts) + chooseAPushNotificationContentTemplate(userId, opts) { + return this.chooseAPushNotificationContentTemplateWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -198,26 +186,22 @@ export default class UserApi { /** * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param {String} apiToken + * ## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user * @param {Object} opts Optional parameters - * @param {module:model/CreateUserData} opts.createUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/CreateAUserRequest} opts.createAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ - createUserWithHttpInfo(apiToken, opts) { + createAUserWithHttpInfo(opts) { opts = opts || {}; - let postBody = opts['createUserData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUser"); - } + let postBody = opts['createAUserRequest']; let pathParams = { }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -225,7 +209,7 @@ export default class UserApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = SendBirdUser; + let returnType = SendbirdUser; return this.apiClient.callApi( '/v3/users', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -235,14 +219,14 @@ export default class UserApi { /** * Create a user - * ## Create a user Creates a new user in the application. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-create-a-user - * @param {String} apiToken + * ## Create a user You should create a user in your Sendbird application to initiate conversations in channels. A user is identified by its unique user ID, and additionally have a changeable nickname, profile image, and so on. Users are at the core of all conversations. Sendbird applications are made up of users who chat in either Open Channels or Group Channels. Using this API, it is possible to have fine grained control over your users and what those users can do. To learn more about users, see [User overview](https://sendbird.com/docs/chat/platform-api/v3/user/user-overview#2-resource-representation). https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#1-create-a-user * @param {Object} opts Optional parameters - * @param {module:model/CreateUserData} opts.createUserData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} + * @param {String} opts.apiToken + * @param {module:model/CreateAUserRequest} opts.createAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ - createUser(apiToken, opts) { - return this.createUserWithHttpInfo(apiToken, opts) + createAUser(opts) { + return this.createAUserWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -251,20 +235,16 @@ export default class UserApi { /** * Create user token - * ## Create user token - * @param {String} apiToken - * @param {String} userId + * ## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/CreateUserTokenData} opts.createUserTokenData + * @param {String} opts.apiToken + * @param {module:model/CreateUserTokenRequest} opts.createUserTokenRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CreateUserTokenResponse} and HTTP response */ - createUserTokenWithHttpInfo(apiToken, userId, opts) { + createUserTokenWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['createUserTokenData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling createUserToken"); - } + let postBody = opts['createUserTokenRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling createUserToken"); @@ -276,7 +256,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -294,15 +274,15 @@ export default class UserApi { /** * Create user token - * ## Create user token - * @param {String} apiToken - * @param {String} userId + * ## Create user token This action issues a session token for user authentication. Session tokens provide an efficient stateless authentication method by not storing the tokens in the Sendbird database, and thus improving the server's performance. See [access token vs. session token](https://sendbird.com/docs/chat/platform-api/v3/user/creating-users/create-a-user#2-access-token-vs-session-token) to learn more about authenticating users. > **Note**: The endpoint `/users/{user_id}` is deprecated. Use `/users/{user_id}/token` for greater efficiency. https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token#1-issue-a-session-token + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/CreateUserTokenData} opts.createUserTokenData + * @param {String} opts.apiToken + * @param {module:model/CreateUserTokenRequest} opts.createUserTokenRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CreateUserTokenResponse} */ - createUserToken(apiToken, userId, opts) { - return this.createUserTokenWithHttpInfo(apiToken, userId, opts) + createUserToken(userId, opts) { + return this.createUserTokenWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -311,20 +291,18 @@ export default class UserApi { /** * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - deleteUserByIdWithHttpInfo(apiToken, userId) { + deleteAUserWithHttpInfo(userId, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling deleteUserById"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling deleteUserById"); + throw new Error("Missing the required parameter 'userId' when calling deleteAUser"); } let pathParams = { @@ -333,7 +311,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -351,13 +329,68 @@ export default class UserApi { /** * Delete a user - * ## Delete a user Deletes a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-delete-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Delete a user You can delete a user from your Sendbird application using this API. > **Note**: This API deletes user data and metadata, except for their messages. If you wish to delete user data including their messages, use the [GDPR request](https://sendbird.com/docs/chat/platform-api/v3/privacy/privacy-overview). [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/delete-a-user#1-delete-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - deleteUserById(apiToken, userId) { - return this.deleteUserByIdWithHttpInfo(apiToken, userId) + deleteAUser(userId, opts) { + return this.deleteAUserWithHttpInfo(userId, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get channel invitation preference + * ## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetChannelInvitationPreferenceResponse} and HTTP response + */ + getChannelInvitationPreferenceWithHttpInfo(userId, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling getChannelInvitationPreference"); + } + + let pathParams = { + 'user_id': userId + }; + let queryParams = { + }; + let headerParams = { + 'api-token': opts['apiToken'] + }; + let formParams = { + }; + + let authNames = []; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = GetChannelInvitationPreferenceResponse; + return this.apiClient.callApi( + '/v3/users/{user_id}/channel_invitation_preference', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get channel invitation preference + * ## Get channel invitation preference This action retrieves a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Users are subject to both user-specific and application-wide invitation preferences. Of the two, the invitation preference set for a specific user takes precedence over [the default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/get-default-invitation-preference). [https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/get-channel-invitation-preference#1-get-channel-invitation-preference) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetChannelInvitationPreferenceResponse} + */ + getChannelInvitationPreference(userId, opts) { + return this.getChannelInvitationPreferenceWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -366,20 +399,16 @@ export default class UserApi { /** * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param {String} apiToken - * @param {String} userId + * ## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [leave_all_when_deactivated](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/LeaveMyGroupChannelsData} opts.leaveMyGroupChannelsData + * @param {String} opts.apiToken + * @param {module:model/LeaveMyGroupChannelsRequest} opts.leaveMyGroupChannelsRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - leaveMyGroupChannelsWithHttpInfo(apiToken, userId, opts) { + leaveMyGroupChannelsWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['leaveMyGroupChannelsData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling leaveMyGroupChannels"); - } + let postBody = opts['leaveMyGroupChannelsRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling leaveMyGroupChannels"); @@ -391,7 +420,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -409,15 +438,15 @@ export default class UserApi { /** * Leave my group channels - * ## Leave my group channels Makes a user leave all joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-leave-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. - * @param {String} apiToken - * @param {String} userId + * ## Leave my group channels This action allows a user to leave all group channels or channels with a specific custom type. This API is useful if you want to let a user leave a set of channels at once. To let a user leave only one of their group channels, use the [leave a channel API](https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/leave-a-channel) instead. Since this API can't be called for a deactivated user, ensure that the [leave_all_when_deactivated](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#2-request-body) property of the user is set to its default value of `true` to let the user leave all joined group channels upon deactivation. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/leave-group-channels#1-leave-group-channels `user_id` Type: string Description: Specifies the unique ID of the user to leave all joined group channels. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/LeaveMyGroupChannelsData} opts.leaveMyGroupChannelsData + * @param {String} opts.apiToken + * @param {module:model/LeaveMyGroupChannelsRequest} opts.leaveMyGroupChannelsRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - leaveMyGroupChannels(apiToken, userId, opts) { - return this.leaveMyGroupChannelsWithHttpInfo(apiToken, userId, opts) + leaveMyGroupChannels(userId, opts) { + return this.leaveMyGroupChannelsWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -426,63 +455,65 @@ export default class UserApi { /** * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. + * ## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {String} apiToken - * @param {String} userId * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {String} opts.hiddenMode - * @param {String} opts.memberStateFilter - * @param {String} opts.unreadFilter - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty - * @param {Boolean} opts.showFrozen * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.searchQuery - * @param {String} opts.searchFields - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {String} opts.customType + * @param {Boolean} opts.showMetadata + * @param {Boolean} opts.showFrozen + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId2 (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. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMyGroupChannelsResponse} and HTTP response */ - listMyGroupChannelsWithHttpInfo(apiToken, userId, opts) { + listMyGroupChannelsWithHttpInfo(userId, apiToken, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listMyGroupChannels"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling listMyGroupChannels"); } + // verify the required parameter 'apiToken' is set + if (apiToken === undefined || apiToken === null) { + throw new Error("Missing the required parameter 'apiToken' when calling listMyGroupChannels"); + } let pathParams = { 'user_id': userId @@ -493,16 +524,14 @@ export default class UserApi { 'distinct_mode': opts['distinctMode'], 'public_mode': opts['publicMode'], 'super_mode': opts['superMode'], - 'hidden_mode': opts['hiddenMode'], - 'member_state_filter': opts['memberStateFilter'], - 'unread_filter': opts['unreadFilter'], 'created_after': opts['createdAfter'], 'created_before': opts['createdBefore'], 'show_empty': opts['showEmpty'], - 'show_frozen': opts['showFrozen'], 'show_member': opts['showMember'], 'show_delivery_receipt': opts['showDeliveryReceipt'], 'show_read_receipt': opts['showReadReceipt'], + 'show_metadata': opts['showMetadata'], + 'show_frozen': opts['showFrozen'], 'order': opts['order'], 'metadata_order_key': opts['metadataOrderKey'], 'custom_types': opts['customTypes'], @@ -516,8 +545,6 @@ export default class UserApi { 'query_type': opts['queryType'], 'members_nickname': opts['membersNickname'], 'members_nickname_contains': opts['membersNicknameContains'], - 'search_query': opts['searchQuery'], - 'search_fields': opts['searchFields'], 'metadata_key': opts['metadataKey'], 'metadata_values': opts['metadataValues'], 'metadata_value_startswith': opts['metadataValueStartswith'], @@ -527,10 +554,16 @@ export default class UserApi { 'metacounter_value_gte': opts['metacounterValueGte'], 'metacounter_value_lt': opts['metacounterValueLt'], 'metacounter_value_lte': opts['metacounterValueLte'], - 'custom_type': opts['customType'] + 'include_sorted_metaarray_in_last_message': opts['includeSortedMetaarrayInLastMessage'], + 'custom_type': opts['customType'], + 'read_receipt': opts['readReceipt'], + 'member': opts['member'], + 'is_distinct': opts['isDistinct'], + 'members_in': opts['membersIn'], + 'user_id': opts['userId2'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': apiToken }; let formParams = { }; @@ -548,54 +581,56 @@ export default class UserApi { /** * List my group channels - * ## List my group channels Retrieves all group channels that the user has joined. You can create a request based on various query parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-my-group-channels ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the target user. + * ## List my group channels This action retrieves a list of [group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) that a specific user has joined. You can use various query parameters to determine the search scope and select what kind of information you want to receive about the queried channels. If you're looking to retrieve a list of group channels in a specific application, visit the [list group channels](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels) page under the Channel section. https://sendbird.com/docs/chat/platform-api/v3/user/managing-joined-group-channels/list-group-channels-by-user#1-list-group-channels-by-user `user_id` Type: string Description: Specifies the unique ID of the target user. + * @param {String} userId (Required) * @param {String} apiToken - * @param {String} userId * @param {Object} opts Optional parameters - * @param {String} opts.token - * @param {Number} opts.limit - * @param {String} opts.distinctMode - * @param {String} opts.publicMode - * @param {String} opts.superMode - * @param {String} opts.hiddenMode - * @param {String} opts.memberStateFilter - * @param {String} opts.unreadFilter - * @param {Number} opts.createdAfter - * @param {Number} opts.createdBefore + * @param {String} opts.token Specifies a page token that indicates the starting index of a chunk of results. If not specified, the index is set as 0. + * @param {Number} opts.limit Specifies the number of results to return per page. Acceptable values are 1 to 100, inclusive. (Default: 10) + * @param {module:model/String} opts.distinctMode + * @param {module:model/String} opts.publicMode + * @param {module:model/String} opts.superMode + * @param {Number} opts.createdAfter Restricts the search scope to only retrieve group channels which have been created after the specified time, in Unix milliseconds format. + * @param {Number} opts.createdBefore Restricts the search scope to only retrieve group channels which have been created before the specified time, in Unix milliseconds format. * @param {Boolean} opts.showEmpty - * @param {Boolean} opts.showFrozen * @param {Boolean} opts.showMember * @param {Boolean} opts.showDeliveryReceipt * @param {Boolean} opts.showReadReceipt - * @param {String} opts.order - * @param {String} opts.metadataOrderKey - * @param {String} opts.customTypes - * @param {String} opts.customTypeStartswith - * @param {String} opts.channelUrls - * @param {String} opts.name - * @param {String} opts.nameContains - * @param {String} opts.nameStartswith - * @param {String} opts.membersExactlyIn - * @param {String} opts.membersIncludeIn - * @param {String} opts.queryType - * @param {String} opts.membersNickname - * @param {String} opts.membersNicknameContains - * @param {String} opts.searchQuery - * @param {String} opts.searchFields - * @param {String} opts.metadataKey - * @param {String} opts.metadataValues - * @param {String} opts.metadataValueStartswith - * @param {String} opts.metacounterKey - * @param {String} opts.metacounterValues - * @param {String} opts.metacounterValueGt - * @param {String} opts.metacounterValueGte - * @param {String} opts.metacounterValueLt - * @param {String} opts.metacounterValueLte - * @param {String} opts.customType + * @param {Boolean} opts.showMetadata + * @param {Boolean} opts.showFrozen + * @param {module:model/String} opts.order + * @param {String} opts.metadataOrderKey Specifies the key of an item in metadata. When a value of the order parameter is set to metadata_value_alphabetical, the results are alphabetically sorted by the value of the item specified by the key. + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.customTypeStartswith Searches for group channels with the custom type which starts with the specified value. URL encoding the value is recommended. + * @param {String} opts.channelUrls Specifies a comma-separated string of one or more group channel URLs to restrict the search scope. URL encoding each channel URL is recommended. + * @param {String} opts.name Specifies one or more group channel names. + * @param {String} opts.nameContains Searches for group channels whose names contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.nameStartswith Searches for group channels whose names start with the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. + * @param {String} opts.membersExactlyIn Searches for group channels with all the specified users as members. The parameter value should consist of user IDs separated by commas. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.membersIncludeIn Searches for group channels that include one or more users as members among the specified users. The value should consist of user IDs separated by commas or %2C. You can specify up to 60 user IDs. Only user IDs that match those of existing users are used for channel search. URL encoding each ID is recommended. + * @param {String} opts.queryType Specifies a logical condition applied to the members_include_in parameter. Acceptable values are either AND or OR. For example, if you specify three members, A, B, and C, in members_include_in, the value of AND returns all channels that include every one of {A. B, C} as members. The value of OR returns channels that include {A}, plus those that include {B}, plus those that include {C}. (Default: AND) + * @param {String} opts.membersNickname Searches for group channels with members whose nicknames match the specified value. URL encoding the value is recommended. + * @param {String} opts.membersNicknameContains Searches for group channels with members whose nicknames contain the specified value. Note that this parameter is case-insensitive. URL encoding the value is recommended. * We recommend using at least three characters for the parameter value for better search efficiency when you design and implement related features. If you would like to allow one or two characters for searching, use members_nickname instead to prevent performance issues. + * @param {String} opts.metadataKey Searches for group channels with metadata containing an item with the specified value as its key. To use this parameter, either the metadata_values parameter or the metadata_value_startswith parameter should be specified. + * @param {String} opts.metadataValues Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple values separated by commas. URL encoding each value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metadataValueStartswith Searches for group channels with metadata containing an item with the key specified by the metadata_key parameter, and the values of that item that start with the specified value of this parameter. URL encoding the value is recommended. To use this parameter, the metadata_key parameter should be specified. + * @param {String} opts.metacounterKey Searches for group channels with metacounter containing an item with the specified value as its key. To use this parameter, either the metacounter_values parameter or one of the metacounter_value_gt, metacounter_value_gte, metacounter_value_lt, and metacounter_value_lte parameters should be specified. + * @param {String} opts.metacounterValues 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 equal to one or more values specified by this parameter. The string should be specified with multiple values separated by commas. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGt 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 the value specified by this parameter. To use this parameter, the metacounter_key parameter should be specified. + * @param {String} opts.metacounterValueGte 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. + * @param {String} opts.metacounterValueLt 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. + * @param {String} opts.metacounterValueLte 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. + * @param {Boolean} opts.includeSortedMetaarrayInLastMessage Determines whether to include the sorted_metaarray as one of the last_message’s properties in the response. + * @param {String} opts.customType (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. + * @param {Boolean} opts.readReceipt (Deprecated) Superseded by show_read_receipt. + * @param {Boolean} opts.member (Deprecated) Superseded by show_member. + * @param {Boolean} opts.isDistinct (Deprecated) Superseded by distinct_mode. + * @param {String} opts.membersIn (Deprecated) Superseded by members_exactly_in. + * @param {String} opts.userId2 (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. * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMyGroupChannelsResponse} */ - listMyGroupChannels(apiToken, userId, opts) { - return this.listMyGroupChannelsWithHttpInfo(apiToken, userId, opts) + listMyGroupChannels(userId, apiToken, opts) { + return this.listMyGroupChannelsWithHttpInfo(userId, apiToken, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -604,18 +639,16 @@ export default class UserApi { /** * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * ## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListRegistrationOrDeviceTokensResponse} and HTTP response */ - listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType) { + listRegistrationOrDeviceTokensWithHttpInfo(userId, tokenType, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listRegistrationOrDeviceTokens"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling listRegistrationOrDeviceTokens"); @@ -632,7 +665,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -650,14 +683,15 @@ export default class UserApi { /** * List registration or device tokens - * ## List registration or device tokens Retrieves a list of a specific user's FCM registration tokens, HMS device tokens, or APNs device tokens. You can specify either `gcm`, `huawei`, or `apns` in the `token_type` parameter, depending on which push notification service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-registration-or-device-tokens ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType + * ## List registration or device tokens Retrieves a list of a user's registration or device tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/list-registration-or-device-tokens#1-list-registration-or-device-tokens + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListRegistrationOrDeviceTokensResponse} */ - listRegistrationOrDeviceTokens(apiToken, userId, tokenType) { - return this.listRegistrationOrDeviceTokensWithHttpInfo(apiToken, userId, tokenType) + listRegistrationOrDeviceTokens(userId, tokenType, opts) { + return this.listRegistrationOrDeviceTokensWithHttpInfo(userId, tokenType, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -666,27 +700,23 @@ export default class UserApi { /** * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param {String} apiToken + * ## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @param {String} opts.activeMode - * @param {Boolean} opts.showBot - * @param {String} opts.userIds + * @param {module:model/String} opts.activeMode Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) + * @param {Boolean} opts.showBot Determines whether to include bots in the list. (Default: true) + * @param {String} opts.userIds Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. * @param {String} opts.nickname * @param {String} opts.nicknameStartswith * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn + * @param {String} opts.metadatavaluesIn Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListUsersResponse} and HTTP response */ - listUsersWithHttpInfo(apiToken, opts) { + listUsersWithHttpInfo(opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling listUsers"); - } let pathParams = { }; @@ -702,7 +732,7 @@ export default class UserApi { 'metadatavalues_in': opts['metadatavaluesIn'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -720,22 +750,22 @@ export default class UserApi { /** * List users - * ## List users Retrieves a list of users in your application. You can query the list using various parameters. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-list-users ---------------------------- - * @param {String} apiToken + * ## List users You can retrieve a list of users in your Sendbird application using this API. You can generate a customized list using various parameter combinations. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/list-users#1-list-users * @param {Object} opts Optional parameters * @param {String} opts.token * @param {Number} opts.limit - * @param {String} opts.activeMode - * @param {Boolean} opts.showBot - * @param {String} opts.userIds + * @param {module:model/String} opts.activeMode Specifies the activation status of the users in the list. Acceptable values are `activated`, `deactivated`, and `all`. (Default: `activated`) + * @param {Boolean} opts.showBot Determines whether to include bots in the list. (Default: true) + * @param {String} opts.userIds Specifies the user IDs. The value should be a comma-separated string that consists of multiple urlencoded user IDs. An example of a urlencoded string is ?user_ids=urlencoded_id_1,urlencoded_id_2. * The maximum number of user IDs in this parameter is 250. If you exceed the maximum number, your request may receive an HTTP 414 error indicating that the request URL is longer than what Sendbird server can interpret. * @param {String} opts.nickname * @param {String} opts.nicknameStartswith * @param {String} opts.metadatakey - * @param {String} opts.metadatavaluesIn + * @param {String} opts.metadatavaluesIn Searches for blocked users with metadata containing an item with the key specified by the metadatakey parameter above, and the value of that item matches one or more values specified by this parameter. The string should be specified with multiple urlencoded metadata values separated by commas (for example, `?metadatavalues_in=urlencoded_value_1, urlencoded_value_2`). This parameter should be specified in conjunction with the `metadatakey` above. + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListUsersResponse} */ - listUsers(apiToken, opts) { - return this.listUsersWithHttpInfo(apiToken, opts) + listUsers(opts) { + return this.listUsersWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -744,20 +774,16 @@ export default class UserApi { /** * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/MarkAllMessagesAsReadData} opts.markAllMessagesAsReadData + * @param {String} opts.apiToken + * @param {module:model/MarkAllMessagesAsReadRequest} opts.markAllMessagesAsReadRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - markAllMessagesAsReadWithHttpInfo(apiToken, userId, opts) { + markAllMessagesAsReadWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['markAllMessagesAsReadData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling markAllMessagesAsRead"); - } + let postBody = opts['markAllMessagesAsReadRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling markAllMessagesAsRead"); @@ -769,7 +795,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -787,15 +813,15 @@ export default class UserApi { /** * Mark all messages as read - * ## Mark all messages as read Marks all of a user's unread messages as read in the joined group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-mark-all-messages-as-read ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Mark all messages as read This action marks all of a user's unread messages as read in certain group channels. If channels aren't specified, the user's unread messages in all group channels are marked as read. https://sendbird.com/docs/chat/platform-api/v3/user/marking-messages-as-read/mark-all-of-a-users-messages-as-read#1-mark-all-of-a-user-s-messages-as-read + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/MarkAllMessagesAsReadData} opts.markAllMessagesAsReadData + * @param {String} opts.apiToken + * @param {module:model/MarkAllMessagesAsReadRequest} opts.markAllMessagesAsReadRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - markAllMessagesAsRead(apiToken, userId, opts) { - return this.markAllMessagesAsReadWithHttpInfo(apiToken, userId, opts) + markAllMessagesAsRead(userId, opts) { + return this.markAllMessagesAsReadWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -803,59 +829,67 @@ export default class UserApi { /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Remove a registration or device token - When unregistering a specific token + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {String} token (Required) * @param {Object} opts Optional parameters - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} opts.registerAsOperatorToChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveARegistrationOrDeviceTokenResponse} and HTTP response */ - registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) { + removeARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, token, opts) { opts = opts || {}; - let postBody = opts['registerAsOperatorToChannelsWithCustomChannelTypesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling registerAsOperatorToChannelsWithCustomChannelTypes"); - } + let postBody = null; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling registerAsOperatorToChannelsWithCustomChannelTypes"); + throw new Error("Missing the required parameter 'userId' when calling removeARegistrationOrDeviceToken"); + } + // verify the required parameter 'tokenType' is set + if (tokenType === undefined || tokenType === null) { + throw new Error("Missing the required parameter 'tokenType' when calling removeARegistrationOrDeviceToken"); + } + // verify the required parameter 'token' is set + if (token === undefined || token === null) { + throw new Error("Missing the required parameter 'token' when calling removeARegistrationOrDeviceToken"); } let pathParams = { - 'user_id': userId + 'user_id': userId, + 'token_type': tokenType, + 'token': token }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = RemoveARegistrationOrDeviceTokenResponse; return this.apiClient.callApi( - '/v3/users/{user_id}/operating_channel_custom_types', 'POST', + '/v3/users/{user_id}/push/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Register as an operator to channels with custom channel types - * ## Register as an operator to channels with custom channel types Registers a user as an operator to channels with particular custom channel types. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-register-as-an-operator-to-channels-with-custom-channel-types ---------------------------- - * @param {String} apiToken - * @param {String} userId + * Remove a registration or device token - When unregistering a specific token + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {module:model/String} tokenType (Required) + * @param {String} token (Required) * @param {Object} opts Optional parameters - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} opts.registerAsOperatorToChannelsWithCustomChannelTypesData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveARegistrationOrDeviceTokenResponse} */ - registerAsOperatorToChannelsWithCustomChannelTypes(apiToken, userId, opts) { - return this.registerAsOperatorToChannelsWithCustomChannelTypesWithHttpInfo(apiToken, userId, opts) + removeARegistrationOrDeviceToken(userId, tokenType, token, opts) { + return this.removeARegistrationOrDeviceTokenWithHttpInfo(userId, tokenType, token, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -863,30 +897,34 @@ export default class UserApi { /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenResponse} and HTTP response + * Remove a registration or device token from an owner + * ## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ - removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId) { + removeARegistrationOrDeviceTokenFromAnOwnerWithHttpInfo(tokenType, token, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceToken"); + // verify the required parameter 'tokenType' is set + if (tokenType === undefined || tokenType === null) { + throw new Error("Missing the required parameter 'tokenType' when calling removeARegistrationOrDeviceTokenFromAnOwner"); } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling removeRegistrationOrDeviceToken"); + // verify the required parameter 'token' is set + if (token === undefined || token === null) { + throw new Error("Missing the required parameter 'token' when calling removeARegistrationOrDeviceTokenFromAnOwner"); } let pathParams = { - 'user_id': userId + 'token_type': tokenType, + 'token': token }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -894,23 +932,25 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = RemoveRegistrationOrDeviceTokenResponse; + let returnType = [MarkChannelMessagesAsReadRequest]; return this.apiClient.callApi( - '/v3/users/{user_id}/push', 'DELETE', + '/v3/push/device_tokens/{token_type}/{token}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Remove a registration or device token - When unregistering all device tokens - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenResponse} + * Remove a registration or device token from an owner + * ## Remove a registration or device token from an owner Removes a registration or device token from a user who is the owner of the token. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token-from-an-owner#1-remove-a-registration-or-device-token-from-an-owner + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ - removeRegistrationOrDeviceToken(apiToken, userId) { - return this.removeRegistrationOrDeviceTokenWithHttpInfo(apiToken, userId) + removeARegistrationOrDeviceTokenFromAnOwner(tokenType, token, opts) { + return this.removeARegistrationOrDeviceTokenFromAnOwnerWithHttpInfo(tokenType, token, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -918,42 +958,28 @@ export default class UserApi { /** - * Remove a registration or device token - When unregistering a specific token - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} and HTTP response + * Remove a registration or device token - When unregistering all device tokens + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveAllRegistrationOrDeviceTokenResponse} and HTTP response */ - removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token) { + removeAllRegistrationOrDeviceTokenWithHttpInfo(userId, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceTokenByToken"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling removeRegistrationOrDeviceTokenByToken"); - } - // verify the required parameter 'tokenType' is set - if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling removeRegistrationOrDeviceTokenByToken"); - } - // verify the required parameter 'token' is set - if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling removeRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'userId' when calling removeAllRegistrationOrDeviceToken"); } let pathParams = { - 'user_id': userId, - 'token_type': tokenType, - 'token': token + 'user_id': userId }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -961,25 +987,24 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = RemoveRegistrationOrDeviceTokenByTokenResponse; + let returnType = RemoveAllRegistrationOrDeviceTokenResponse; return this.apiClient.callApi( - '/v3/users/{user_id}/push/{token_type}/{token}', 'DELETE', + '/v3/users/{user_id}/push', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Remove a registration or device token - When unregistering a specific token - * ## Remove a registration or device token Removes a specific user's one or more FCM registration tokens, HMS device tokens, or APNs device tokens. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} + * Remove a registration or device token - When unregistering all device tokens + * ## Remove a registration or device token Removes a user's specific registration or device token or all tokens. You can pass `gcm`, `huawei`, or `apns` for FCM registration token, HMS device token, or APNs device token, respectively, in the `token_type` parameter for the push notification service you are using. https://sendbird.com/docs/chat/platform-api/v3/user/managing-device-tokens/remove-a-registration-or-device-token#1-remove-a-registration-or-device-token + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveAllRegistrationOrDeviceTokenResponse} */ - removeRegistrationOrDeviceTokenByToken(apiToken, userId, tokenType, token) { - return this.removeRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, userId, tokenType, token) + removeAllRegistrationOrDeviceToken(userId, opts) { + return this.removeAllRegistrationOrDeviceTokenWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -987,36 +1012,28 @@ export default class UserApi { /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} and HTTP response + * Reset push preferences + * ## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token) { + resetPushPreferencesWithHttpInfo(userId, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); - } - // verify the required parameter 'tokenType' is set - if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); - } - // verify the required parameter 'token' is set - if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling removeRegistrationOrDeviceTokenFromOwnerByToken"); + // verify the required parameter 'userId' is set + if (userId === undefined || userId === null) { + throw new Error("Missing the required parameter 'userId' when calling resetPushPreferences"); } let pathParams = { - 'token_type': tokenType, - 'token': token + 'user_id': userId }; let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1024,24 +1041,24 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse; + let returnType = Object; return this.apiClient.callApi( - '/v3/push/device_tokens/{token_type}/{token}', 'DELETE', + '/v3/users/{user_id}/push_preference', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Remove a registration or device token from an owner - * ## Remove a registration or device token from an owner Removes a registration or device token from a user who owns it. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-remove-a-registration-or-device-token-from-an-owner ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} + * Reset push preferences + * ## Reset push preferences You can reset a user's notifications preferences. The values are reset to the default as the following. - The values for the `do_not_disturb` and `snooze_enabled` properties are set to `false`. - The values of the parameters associated with the time frame are all set to `0`. - The value for the `timezone` property is set to `UTC`. - The value for the `push_sound` property is set to `default`. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/reset-push-notification-preferences#1-reset-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - removeRegistrationOrDeviceTokenFromOwnerByToken(apiToken, tokenType, token) { - return this.removeRegistrationOrDeviceTokenFromOwnerByTokenWithHttpInfo(apiToken, tokenType, token) + resetPushPreferences(userId, opts) { + return this.resetPushPreferencesWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1049,21 +1066,20 @@ export default class UserApi { /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetPushPreferencesResponse} and HTTP response + * Update a user + * ## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it's replaced with [<code>/users/{user_id}/token</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAUserRequest} opts.updateAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ - resetPushPreferencesWithHttpInfo(apiToken, userId) { - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling resetPushPreferences"); - } + updateAUserWithHttpInfo(userId, opts) { + opts = opts || {}; + let postBody = opts['updateAUserRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling resetPushPreferences"); + throw new Error("Missing the required parameter 'userId' when calling updateAUser"); } let pathParams = { @@ -1072,31 +1088,33 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; let authNames = []; - let contentTypes = []; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = ResetPushPreferencesResponse; + let returnType = SendbirdUser; return this.apiClient.callApi( - '/v3/users/{user_id}/push_preference', 'DELETE', + '/v3/users/{user_id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Reset push preferences - * ## Reset push preferences Resets a user's push preferences. After performing this action, `do_not_disturb` and `snooze_enabled` are set to false. The values of the parameters associated with the time frame are all set to 0. `timezone` is reset to `UTC`. `push_sound` is reset to `default`. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-reset-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetPushPreferencesResponse} + * Update a user + * ## Update a user You can update information about a user using this API. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user using this API request. If the `leave_all_when_deactivated` is set to `true`, a user leaves all joined group channels and becomes deactivated. > **Note**: Issuing session tokens through the `/users/{user_id}` endpoint is now deprecated and it's replaced with [<code>/users/{user_id}/token</code>](https://sendbird.com/docs/chat/platform-api/v3/user/managing-session-tokens/issue-a-session-token) endpoint for greater efficiency. For those who are currently using the old endpoint, you can start issuing tokens using the new endpoint. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user](https://sendbird.com/docs/chat/platform-api/v3/user/managing-users/update-a-user#1-update-a-user) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @param {module:model/UpdateAUserRequest} opts.updateAUserRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ - resetPushPreferences(apiToken, userId) { - return this.resetPushPreferencesWithHttpInfo(apiToken, userId) + updateAUser(userId, opts) { + return this.updateAUserWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1105,20 +1123,16 @@ export default class UserApi { /** * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId + * ## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelInvitationPreferenceData} opts.updateChannelInvitationPreferenceData + * @param {String} opts.apiToken + * @param {module:model/UpdateChannelInvitationPreferenceRequest} opts.updateChannelInvitationPreferenceRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateChannelInvitationPreferenceResponse} and HTTP response */ - updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, opts) { + updateChannelInvitationPreferenceWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['updateChannelInvitationPreferenceData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateChannelInvitationPreference"); - } + let postBody = opts['updateChannelInvitationPreferenceRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling updateChannelInvitationPreference"); @@ -1130,7 +1144,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1148,15 +1162,15 @@ export default class UserApi { /** * Update channel invitation preference - * ## Update channel invitation preference Updates the channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [update default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-update-default-channel-invitation-preference) action, you can update the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId + * ## Update channel invitation preference This action updates a user's [group channel](https://sendbird.com/docs/chat/platform-api/v3/channel/channel-overview#2-channel-types-3-group-channel) invitation preference. Updating the [application's default channel invitation preference](https://sendbird.com/docs/chat/platform-api/v3/channel/setting-up-channels/update-default-invitation-preference) won't override existing users' individual channel invitation preferences. The changed preference only affects the users created after the update. https://sendbird.com/docs/chat/platform-api/v3/channel/managing-a-channel/update-channel-invitation-preference#1-update-channel-invitation-preference + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateChannelInvitationPreferenceData} opts.updateChannelInvitationPreferenceData + * @param {String} opts.apiToken + * @param {module:model/UpdateChannelInvitationPreferenceRequest} opts.updateChannelInvitationPreferenceRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateChannelInvitationPreferenceResponse} */ - updateChannelInvitationPreference(apiToken, userId, opts) { - return this.updateChannelInvitationPreferenceWithHttpInfo(apiToken, userId, opts) + updateChannelInvitationPreference(userId, opts) { + return this.updateChannelInvitationPreferenceWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1165,28 +1179,24 @@ export default class UserApi { /** * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} opts.updateCountPreferenceOfChannelByUrlData + * @param {String} opts.apiToken + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} opts.updateCountPreferenceOfAChannelRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdateCountPreferenceOfChannelByUrlResponse} and HTTP response */ - updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) { + updateCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) { opts = opts || {}; - let postBody = opts['updateCountPreferenceOfChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateCountPreferenceOfChannelByUrl"); - } + let postBody = opts['updateCountPreferenceOfAChannelRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling updateCountPreferenceOfAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updateCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updateCountPreferenceOfAChannel"); } let pathParams = { @@ -1196,7 +1206,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1214,16 +1224,16 @@ export default class UserApi { /** * Update count preference of a channel - * ## Update count preference of a channel Updates count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update count preference of a channel This action updates a user's count preference of a specific group channel. The count preference allows a user to either update the number of unread messages or the number of unread mentioned messages, or both in a specific group channel. If you want to retrieve the total number count of a specific group channel, go to the [get count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel) page. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel#1-update-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} opts.updateCountPreferenceOfChannelByUrlData + * @param {String} opts.apiToken + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} opts.updateCountPreferenceOfAChannelRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdateCountPreferenceOfChannelByUrlResponse} */ - updateCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl, opts) { - return this.updateCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) + updateCountPreferenceOfAChannel(userId, channelUrl, opts) { + return this.updateCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1232,20 +1242,16 @@ export default class UserApi { /** * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesData} opts.updatePushPreferencesData + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesRequest} opts.updatePushPreferencesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesResponse} and HTTP response */ - updatePushPreferencesWithHttpInfo(apiToken, userId, opts) { + updatePushPreferencesWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['updatePushPreferencesData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushPreferences"); - } + let postBody = opts['updatePushPreferencesRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling updatePushPreferences"); @@ -1257,7 +1263,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1275,15 +1281,15 @@ export default class UserApi { /** * Update push preferences - * ## Update push preferences Updates a user's push preferences. Through this action, you can set `do_not_disturb` for a user, and update the time frame in which the setting applies. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## Update push preferences You can update a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences#1-update-push-notification-preferences) + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesData} opts.updatePushPreferencesData + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesRequest} opts.updatePushPreferencesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesResponse} */ - updatePushPreferences(apiToken, userId, opts) { - return this.updatePushPreferencesWithHttpInfo(apiToken, userId, opts) + updatePushPreferences(userId, opts) { + return this.updatePushPreferencesWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1292,28 +1298,24 @@ export default class UserApi { /** * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} opts.updatePushPreferencesForChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesForChannelByUrlResponse} and HTTP response + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesForAChannelRequest} opts.updatePushPreferencesForAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UpdatePushPreferencesForAChannelResponse} and HTTP response */ - updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) { + updatePushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) { opts = opts || {}; - let postBody = opts['updatePushPreferencesForChannelByUrlData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updatePushPreferencesForChannelByUrl"); - } + let postBody = opts['updatePushPreferencesForAChannelRequest']; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updatePushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling updatePushPreferencesForAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling updatePushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling updatePushPreferencesForAChannel"); } let pathParams = { @@ -1323,7 +1325,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1331,7 +1333,7 @@ export default class UserApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = UpdatePushPreferencesForChannelByUrlResponse; + let returnType = UpdatePushPreferencesForAChannelResponse; return this.apiClient.callApi( '/v3/users/{user_id}/push_preference/{channel_url}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -1341,16 +1343,16 @@ export default class UserApi { /** * Update push preferences for a channel - * ## Update push preferences for a channel Updates push preferences for a user's specific group channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl + * ## Update push preferences for a channel You can update a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/update-push-notification-preferences-for-a-channel#1-update-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} opts.updatePushPreferencesForChannelByUrlData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesForChannelByUrlResponse} + * @param {String} opts.apiToken + * @param {module:model/UpdatePushPreferencesForAChannelRequest} opts.updatePushPreferencesForAChannelRequest + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UpdatePushPreferencesForAChannelResponse} */ - updatePushPreferencesForChannelByUrl(apiToken, userId, channelUrl, opts) { - return this.updatePushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl, opts) + updatePushPreferencesForAChannel(userId, channelUrl, opts) { + return this.updatePushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1358,90 +1360,34 @@ export default class UserApi { /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId + * View a user + * ## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserByIdData} opts.updateUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response + * @param {Boolean} opts.includeUnreadCount + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendbirdUser} and HTTP response */ - updateUserByIdWithHttpInfo(apiToken, userId, opts) { + viewAUserWithHttpInfo(userId, opts) { opts = opts || {}; - let postBody = opts['updateUserByIdData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling updateUserById"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling updateUserById"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = SendBirdUser; - return this.apiClient.callApi( - '/v3/users/{user_id}', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Update a user - * ## Update a user Updates information on a user. In addition to changing a user's nickname or profile image, you can issue a new access token for the user. The new access token replaces the previous one as the necessary token for authentication. You can also deactivate or reactivate a user. If the `leave_all_when_deactivated` is true (which it is by default), a user leaves all joined group channels when deactivated. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-update-a-user ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {module:model/UpdateUserByIdData} opts.updateUserByIdData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} - */ - updateUserById(apiToken, userId, opts) { - return this.updateUserByIdWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewChannelInvitationPreferenceResponse} and HTTP response - */ - viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId) { let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewChannelInvitationPreference"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewChannelInvitationPreference"); + throw new Error("Missing the required parameter 'userId' when calling viewAUser"); } let pathParams = { 'user_id': userId }; let queryParams = { + 'include_unread_count': opts['includeUnreadCount'], + 'custom_types': opts['customTypes'], + 'super_mode': opts['superMode'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1449,23 +1395,27 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = ViewChannelInvitationPreferenceResponse; + let returnType = SendbirdUser; return this.apiClient.callApi( - '/v3/users/{user_id}/channel_invitation_preference', 'GET', + '/v3/users/{user_id}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * View channel invitation preference - * ## View channel invitation preference Retrieves channel invitation preference for a user's [private](https://sendbird.com/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channels. > __Note__: Using the [view default channel invitation preference](https://sendbird.com/docs/chat/v3/platform-api/guides/application#2-view-default-channel-invitation-preference) action, you can retrieve the value of channel invitation preference which is globally applied to all users within the application. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-channel-invitation-preference - * @param {String} apiToken - * @param {String} userId - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewChannelInvitationPreferenceResponse} + * View a user + * ## View a user You can retrieve information about a user using this API. https://sendbird.com/docs/chat/platform-api/v3/user/listing-users/get-a-user#1-get-a-user `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {Boolean} opts.includeUnreadCount + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to retrieve only Supergroup or non-Supergroup channels. Acceptable values are `all`, `super`, and `nonsuper`. This parameter should be specified in conjunction with `include_unread_count` above. (Default: `all`) + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendbirdUser} */ - viewChannelInvitationPreference(apiToken, userId) { - return this.viewChannelInvitationPreferenceWithHttpInfo(apiToken, userId) + viewAUser(userId, opts) { + return this.viewAUserWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1474,25 +1424,23 @@ export default class UserApi { /** * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewCountPreferenceOfChannelByUrlResponse} and HTTP response + * ## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewCountPreferenceOfAChannelResponse} and HTTP response */ - viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) { + viewCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewCountPreferenceOfChannelByUrl"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling viewCountPreferenceOfAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewCountPreferenceOfChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewCountPreferenceOfAChannel"); } let pathParams = { @@ -1502,7 +1450,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1510,7 +1458,7 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = ViewCountPreferenceOfChannelByUrlResponse; + let returnType = ViewCountPreferenceOfAChannelResponse; return this.apiClient.callApi( '/v3/users/{user_id}/count_preference/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -1520,75 +1468,15 @@ export default class UserApi { /** * View count preference of a channel - * ## View count preference of a channel Retrieves count preference of a specific group channel of a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-count-preference-of-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewCountPreferenceOfChannelByUrlResponse} - */ - viewCountPreferenceOfChannelByUrl(apiToken, userId, channelUrl) { - return this.viewCountPreferenceOfChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfChannelsByJoinStatusResponse} and HTTP response - */ - viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfChannelsByJoinStatus"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewNumberOfChannelsByJoinStatus"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'state': opts['state'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewNumberOfChannelsByJoinStatusResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/group_channel_count', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View number of channels by join status - * ## View number of channels by join status Retrieves the number of a user's group channels by their join status. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-by-join-status ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View count preference of a channel This action retrieves a user's count preference of a specific group channel. The count preference allows a user to either retrieve the number of unread messages or unread mentioned messages, or both in a specific group channel. If you want to update the total number count of a specific group channel, visit the [update count preference of a channel](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/update-count-preference-of-a-channel). https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-count-preference-of-a-channel#1-get-count-preference-of-a-channel + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {String} opts.state - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfChannelsByJoinStatusResponse} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewCountPreferenceOfAChannelResponse} */ - viewNumberOfChannelsByJoinStatus(apiToken, userId, opts) { - return this.viewNumberOfChannelsByJoinStatusWithHttpInfo(apiToken, userId, opts) + viewCountPreferenceOfAChannel(userId, channelUrl, opts) { + return this.viewCountPreferenceOfAChannelWithHttpInfo(userId, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1597,21 +1485,17 @@ export default class UserApi { /** * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfChannelsWithUnreadMessagesResponse} and HTTP response */ - viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, opts) { + viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(userId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfChannelsWithUnreadMessages"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewNumberOfChannelsWithUnreadMessages"); @@ -1621,11 +1505,11 @@ export default class UserApi { 'user_id': userId }; let queryParams = { - 'custom_types': this.apiClient.buildCollectionParam(opts['customTypes'], 'multi'), + 'custom_types': opts['customTypes'], 'super_mode': opts['superMode'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1643,80 +1527,16 @@ export default class UserApi { /** * View number of channels with unread messages - * ## View number of channels with unread messages Retrieves the total number of a user's group channels with unread messages. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-channels-with-unread-messages ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View number of channels with unread messages This action retrieves the total number of group channels in which a user has unread messages. You can use various query parameters to determine the search scope of group channels. https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-channels-with-unread-messages#1-get-number-of-channels-with-unread-messages + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {Array.} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes + * @param {module:model/String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are all, super, and nonsuper. (Default: all) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfChannelsWithUnreadMessagesResponse} */ - viewNumberOfChannelsWithUnreadMessages(apiToken, userId, opts) { - return this.viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(apiToken, userId, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.customType - * @param {String} opts.itemKeys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfUnreadItemsResponse} and HTTP response - */ - viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfUnreadItems"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewNumberOfUnreadItems"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'custom_type': opts['customType'], - 'item_keys': opts['itemKeys'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = ViewNumberOfUnreadItemsResponse; - return this.apiClient.callApi( - '/v3/users/{user_id}/unread_item_count', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View number of unread items - * ## View number of unread items Retrieves a set of total numbers of a user's unread messages, unread mentioned messages, or received invitations in either super or non-super group channels. This action is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-items ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {String} opts.customType - * @param {String} opts.itemKeys - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfUnreadItemsResponse} - */ - viewNumberOfUnreadItems(apiToken, userId, opts) { - return this.viewNumberOfUnreadItemsWithHttpInfo(apiToken, userId, opts) + viewNumberOfChannelsWithUnreadMessages(userId, opts) { + return this.viewNumberOfChannelsWithUnreadMessagesWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1725,21 +1545,17 @@ export default class UserApi { /** * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewNumberOfUnreadMessagesResponse} and HTTP response */ - viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, opts) { + viewNumberOfUnreadMessagesWithHttpInfo(userId, opts) { opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewNumberOfUnreadMessages"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewNumberOfUnreadMessages"); @@ -1753,7 +1569,7 @@ export default class UserApi { 'super_mode': opts['superMode'] }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1771,16 +1587,16 @@ export default class UserApi { /** * View number of unread messages - * ## View number of unread messages Retrieves the total number of a user's currently unread messages in the group channels. The unread counts feature is only available for the group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-number-of-unread-messages ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve the number. - * @param {String} apiToken - * @param {String} userId + * ## View number of unread messages This action retrieves a user's total number of unread messages in group channels. > **Note**: The unread count feature is only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages](https://sendbird.com/docs/chat/platform-api/v3/user/managing-unread-count/get-number-of-unread-messages#1-get-number-of-unread-messages) `user_id` Type: string Description: Specifies the unique ID of a user. + * @param {String} userId (Required) * @param {Object} opts Optional parameters - * @param {String} opts.customTypes - * @param {String} opts.superMode + * @param {String} opts.customTypes Specifies a comma-separated string of one or more custom types to filter group channels. URL encoding each type is recommended. If not specified, all channels are returned, regardless of their custom type. + * @param {String} opts.superMode Restricts the search scope to either Supergroup channels or non-Supergroup channels or both. Acceptable values are `all`, `super`, and `nonsuper`. (Default: `all`) + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewNumberOfUnreadMessagesResponse} */ - viewNumberOfUnreadMessages(apiToken, userId, opts) { - return this.viewNumberOfUnreadMessagesWithHttpInfo(apiToken, userId, opts) + viewNumberOfUnreadMessages(userId, opts) { + return this.viewNumberOfUnreadMessagesWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1789,17 +1605,15 @@ export default class UserApi { /** * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesResponse} and HTTP response */ - viewPushPreferencesWithHttpInfo(apiToken, userId) { + viewPushPreferencesWithHttpInfo(userId, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushPreferences"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling viewPushPreferences"); @@ -1811,7 +1625,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1829,13 +1643,14 @@ export default class UserApi { /** * View push preferences - * ## View push preferences Retrieves a user's push preferences about whether the user has set `do_not_disturb` to pause notifications for a certain period of time, and the time frame in which the user has applied the setting. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences ---------------------------- - * @param {String} apiToken - * @param {String} userId + * ## View push preferences You can retrieves a user's notifications preferences. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences#1-get-push-notification-preferences) + * @param {String} userId (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesResponse} */ - viewPushPreferences(apiToken, userId) { - return this.viewPushPreferencesWithHttpInfo(apiToken, userId) + viewPushPreferences(userId, opts) { + return this.viewPushPreferencesWithHttpInfo(userId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1844,25 +1659,23 @@ export default class UserApi { /** * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesForChannelByUrlResponse} and HTTP response + * ## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ViewPushPreferencesForAChannelResponse} and HTTP response */ - viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) { + viewPushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewPushPreferencesForChannelByUrl"); - } // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewPushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'userId' when calling viewPushPreferencesForAChannel"); } // verify the required parameter 'channelUrl' is set if (channelUrl === undefined || channelUrl === null) { - throw new Error("Missing the required parameter 'channelUrl' when calling viewPushPreferencesForChannelByUrl"); + throw new Error("Missing the required parameter 'channelUrl' when calling viewPushPreferencesForAChannel"); } let pathParams = { @@ -1872,7 +1685,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -1880,7 +1693,7 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = ViewPushPreferencesForChannelByUrlResponse; + let returnType = ViewPushPreferencesForAChannelResponse; return this.apiClient.callApi( '/v3/users/{user_id}/push_preference/{channel_url}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -1890,81 +1703,15 @@ export default class UserApi { /** * View push preferences for a channel - * ## View push preferences for a channel Retrieves whether a user has turned on notification messages for a specific channel. The push notifications feature is only available for group channels. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-push-preferences-for-a-channel ---------------------------- - * @param {String} apiToken - * @param {String} userId - * @param {String} channelUrl - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesForChannelByUrlResponse} - */ - viewPushPreferencesForChannelByUrl(apiToken, userId, channelUrl) { - return this.viewPushPreferencesForChannelByUrlWithHttpInfo(apiToken, userId, channelUrl) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param {String} apiToken - * @param {String} userId - * @param {Object} opts Optional parameters - * @param {Boolean} opts.includeUnreadCount - * @param {String} opts.customTypes - * @param {String} opts.superMode - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SendBirdUser} and HTTP response - */ - viewUserByIdWithHttpInfo(apiToken, userId, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewUserById"); - } - // verify the required parameter 'userId' is set - if (userId === undefined || userId === null) { - throw new Error("Missing the required parameter 'userId' when calling viewUserById"); - } - - let pathParams = { - 'user_id': userId - }; - let queryParams = { - 'include_unread_count': opts['includeUnreadCount'], - 'custom_types': opts['customTypes'], - 'super_mode': opts['superMode'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = SendBirdUser; - return this.apiClient.callApi( - '/v3/users/{user_id}', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * View a user - * ## View a user Retrieves information on a user. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-a-user ---------------------------- `user_id` Type: string Description: Specifies the unique ID of the user to retrieve. - * @param {String} apiToken - * @param {String} userId + * ## View push preferences for a channel You can retrieve a user's notifications preferences for a specific channel. A push notification is a message that is immediately delivered to a user's device when the device is either idle or running the client app in the background. These notifications preferences can be configured. > **Note**: Push notifications are only available for group channels. [https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel](https://sendbird.com/docs/chat/platform-api/v3/user/configuring-notification-preferences/get-push-notification-preferences-for-a-channel#1-get-push-notification-preferences-for-a-channel) + * @param {String} userId (Required) + * @param {String} channelUrl (Required) * @param {Object} opts Optional parameters - * @param {Boolean} opts.includeUnreadCount - * @param {String} opts.customTypes - * @param {String} opts.superMode - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SendBirdUser} + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ViewPushPreferencesForAChannelResponse} */ - viewUserById(apiToken, userId, opts) { - return this.viewUserByIdWithHttpInfo(apiToken, userId, opts) + viewPushPreferencesForAChannel(userId, channelUrl, opts) { + return this.viewPushPreferencesForAChannelWithHttpInfo(userId, channelUrl, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -1974,24 +1721,22 @@ export default class UserApi { /** * View who owns a registration or device token * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ - viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token) { + viewWhoOwnsARegistrationOrDeviceTokenWithHttpInfo(tokenType, token, opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); - } // verify the required parameter 'tokenType' is set if (tokenType === undefined || tokenType === null) { - throw new Error("Missing the required parameter 'tokenType' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'tokenType' when calling viewWhoOwnsARegistrationOrDeviceToken"); } // verify the required parameter 'token' is set if (token === undefined || token === null) { - throw new Error("Missing the required parameter 'token' when calling viewWhoOwnsRegistrationOrDeviceTokenByToken"); + throw new Error("Missing the required parameter 'token' when calling viewWhoOwnsARegistrationOrDeviceToken"); } let pathParams = { @@ -2001,7 +1746,7 @@ export default class UserApi { let queryParams = { }; let headerParams = { - 'Api-Token': apiToken + 'api-token': opts['apiToken'] }; let formParams = { }; @@ -2009,7 +1754,7 @@ export default class UserApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = [ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner]; + let returnType = [MarkChannelMessagesAsReadRequest]; return this.apiClient.callApi( '/v3/push/device_tokens/{token_type}/{token}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -2020,13 +1765,14 @@ export default class UserApi { /** * View who owns a registration or device token * ## View who owns a registration or device token Retrieves a user who owns a FCM registration token, HMS device token, or APNs device token. You can pass one of two values in `token_type`: `gcm`, `huawei`, or `apns`, depending on which push service you are using. https://sendbird.com/docs/chat/v3/platform-api/guides/user#2-view-who-owns-a-registration-or-device-token ---------------------------- - * @param {String} apiToken - * @param {String} tokenType - * @param {String} token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + * @param {String} tokenType (Required) + * @param {String} token (Required) + * @param {Object} opts Optional parameters + * @param {String} opts.apiToken + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ - viewWhoOwnsRegistrationOrDeviceTokenByToken(apiToken, tokenType, token) { - return this.viewWhoOwnsRegistrationOrDeviceTokenByTokenWithHttpInfo(apiToken, tokenType, token) + viewWhoOwnsARegistrationOrDeviceToken(tokenType, token, opts) { + return this.viewWhoOwnsARegistrationOrDeviceTokenWithHttpInfo(tokenType, token, opts) .then(function(response_and_data) { return response_and_data.data; }); diff --git a/src/api/WebhookApi.js b/src/api/WebhookApi.js deleted file mode 100644 index 44fa22e..0000000 --- a/src/api/WebhookApi.js +++ /dev/null @@ -1,147 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - - -import ApiClient from "../ApiClient"; -import ChooseWhichEventsToSubscribeToData from '../model/ChooseWhichEventsToSubscribeToData'; -import ChooseWhichEventsToSubscribeToResponse from '../model/ChooseWhichEventsToSubscribeToResponse'; -import RetrieveListOfSubscribedEventsResponse from '../model/RetrieveListOfSubscribedEventsResponse'; - -/** -* Webhook service. -* @module api/WebhookApi -* @version 0.0.16 -*/ -export default class WebhookApi { - - /** - * Constructs a new WebhookApi. - * @alias module:api/WebhookApi - * @class - * @param {module:ApiClient} [apiClient] Optional API client implementation to use, - * default to {@link module:ApiClient#instance} if unspecified. - */ - constructor(apiClient) { - this.apiClient = apiClient || ApiClient.instance; - } - - - - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ChooseWhichEventsToSubscribeToData} opts.chooseWhichEventsToSubscribeToData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ChooseWhichEventsToSubscribeToResponse} and HTTP response - */ - chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = opts['chooseWhichEventsToSubscribeToData']; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling chooseWhichEventsToSubscribeTo"); - } - - let pathParams = { - }; - let queryParams = { - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = ['application/json']; - let accepts = ['application/json']; - let returnType = ChooseWhichEventsToSubscribeToResponse; - return this.apiClient.callApi( - '/v3/applications/settings/webhook', 'PUT', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Choose which events to subscribe to - * ## Choose which events to subscribe to Chooses which events for your webhook server to receive payloads for. By subscribing to specific events based on your own needs, you can control the number of HTTP requests to your webhook server. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-choose-which-events-to-subscribe-to - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {module:model/ChooseWhichEventsToSubscribeToData} opts.chooseWhichEventsToSubscribeToData - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ChooseWhichEventsToSubscribeToResponse} - */ - chooseWhichEventsToSubscribeTo(apiToken, opts) { - return this.chooseWhichEventsToSubscribeToWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - - /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Boolean} opts.displayAllWebhookCategories - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/RetrieveListOfSubscribedEventsResponse} and HTTP response - */ - retrieveListOfSubscribedEventsWithHttpInfo(apiToken, opts) { - opts = opts || {}; - let postBody = null; - // verify the required parameter 'apiToken' is set - if (apiToken === undefined || apiToken === null) { - throw new Error("Missing the required parameter 'apiToken' when calling retrieveListOfSubscribedEvents"); - } - - let pathParams = { - }; - let queryParams = { - 'display_all_webhook_categories': opts['displayAllWebhookCategories'] - }; - let headerParams = { - 'Api-Token': apiToken - }; - let formParams = { - }; - - let authNames = []; - let contentTypes = []; - let accepts = ['application/json']; - let returnType = RetrieveListOfSubscribedEventsResponse; - return this.apiClient.callApi( - '/v3/applications/settings/webhook', 'GET', - pathParams, queryParams, headerParams, formParams, postBody, - authNames, contentTypes, accepts, returnType, null - ); - } - - /** - * Retrieve a list of subscribed events - * ## Retrieve a list of subscribed events Retrieves a list of events for your webhook server to receive payloads for. https://sendbird.com/docs/chat/v3/platform-api/guides/webhooks#2-retrieve-a-list-of-subscribed-events ---------------------------- - * @param {String} apiToken - * @param {Object} opts Optional parameters - * @param {Boolean} opts.displayAllWebhookCategories - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/RetrieveListOfSubscribedEventsResponse} - */ - retrieveListOfSubscribedEvents(apiToken, opts) { - return this.retrieveListOfSubscribedEventsWithHttpInfo(apiToken, opts) - .then(function(response_and_data) { - return response_and_data.data; - }); - } - - -} diff --git a/src/index.js b/src/index.js index a736a63..dcbc269 100644 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -13,313 +13,128 @@ import ApiClient from './ApiClient'; -import AddApnsPushConfigurationData from './model/AddApnsPushConfigurationData'; -import AddApnsPushConfigurationResponse from './model/AddApnsPushConfigurationResponse'; -import AddApnsPushConfigurationResponsePushConfigurationsInner from './model/AddApnsPushConfigurationResponsePushConfigurationsInner'; -import AddEmojiCategoriesResponse from './model/AddEmojiCategoriesResponse'; -import AddEmojiCategoriesResponseEmojiCategoriesInner from './model/AddEmojiCategoriesResponseEmojiCategoriesInner'; -import AddEmojisData from './model/AddEmojisData'; -import AddEmojisResponse from './model/AddEmojisResponse'; -import AddExtraDataToMessageData from './model/AddExtraDataToMessageData'; -import AddExtraDataToMessageResponse from './model/AddExtraDataToMessageResponse'; -import AddFcmPushConfigurationData from './model/AddFcmPushConfigurationData'; -import AddFcmPushConfigurationResponse from './model/AddFcmPushConfigurationResponse'; -import AddFcmPushConfigurationResponsePushConfigurationsInner from './model/AddFcmPushConfigurationResponsePushConfigurationsInner'; -import AddHmsPushConfigurationData from './model/AddHmsPushConfigurationData'; -import AddHmsPushConfigurationResponse from './model/AddHmsPushConfigurationResponse'; -import AddHmsPushConfigurationResponsePushConfigurationsInner from './model/AddHmsPushConfigurationResponsePushConfigurationsInner'; -import AddIpToWhitelistData from './model/AddIpToWhitelistData'; -import AddIpToWhitelistResponse from './model/AddIpToWhitelistResponse'; -import AddReactionToAMessageData from './model/AddReactionToAMessageData'; -import AddReactionToAMessageResponse from './model/AddReactionToAMessageResponse'; -import AddRegistrationOrDeviceTokenData from './model/AddRegistrationOrDeviceTokenData'; -import AddRegistrationOrDeviceTokenResponse from './model/AddRegistrationOrDeviceTokenResponse'; -import BanFromChannelsWithCustomChannelTypesData from './model/BanFromChannelsWithCustomChannelTypesData'; -import BanUsersInChannelsWithCustomChannelTypeData from './model/BanUsersInChannelsWithCustomChannelTypeData'; -import BanUsersInChannelsWithCustomChannelTypeDataBannedListInner from './model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner'; -import Blob from './model/Blob'; -import BlockUserData from './model/BlockUserData'; -import BlockUserResponse from './model/BlockUserResponse'; -import ChoosePushNotificationContentTemplateResponse from './model/ChoosePushNotificationContentTemplateResponse'; -import ChooseWhichEventsToSubscribeToData from './model/ChooseWhichEventsToSubscribeToData'; -import ChooseWhichEventsToSubscribeToResponse from './model/ChooseWhichEventsToSubscribeToResponse'; -import ChooseWhichEventsToSubscribeToResponseWebhook from './model/ChooseWhichEventsToSubscribeToResponseWebhook'; -import ConfigureAutoEventData from './model/ConfigureAutoEventData'; -import ConfigureAutoEventDataAutoEventMessage from './model/ConfigureAutoEventDataAutoEventMessage'; -import CreateBotData from './model/CreateBotData'; -import CreateBotResponse from './model/CreateBotResponse'; -import CreateBotResponseBot from './model/CreateBotResponseBot'; -import CreateChannelMetacounterData from './model/CreateChannelMetacounterData'; -import CreateChannelMetadataData from './model/CreateChannelMetadataData'; -import CreateChannelMetadataResponse from './model/CreateChannelMetadataResponse'; -import CreateUserData from './model/CreateUserData'; -import CreateUserMetadataData from './model/CreateUserMetadataData'; -import CreateUserMetadataResponse from './model/CreateUserMetadataResponse'; -import CreateUserTokenData from './model/CreateUserTokenData'; +import AcceptAnInvitationRequest from './model/AcceptAnInvitationRequest'; +import AddARegistrationOrDeviceTokenRequest from './model/AddARegistrationOrDeviceTokenRequest'; +import AddARegistrationOrDeviceTokenResponse from './model/AddARegistrationOrDeviceTokenResponse'; +import AddExtraDataToAMessageRequest from './model/AddExtraDataToAMessageRequest'; +import AddExtraDataToAMessageResponse from './model/AddExtraDataToAMessageResponse'; +import BlockAUserRequest from './model/BlockAUserRequest'; +import BlockAUserResponse from './model/BlockAUserResponse'; +import CheckIfMemberResponse from './model/CheckIfMemberResponse'; +import ChooseAPushNotificationContentTemplateRequest from './model/ChooseAPushNotificationContentTemplateRequest'; +import ChooseAPushNotificationContentTemplateResponse from './model/ChooseAPushNotificationContentTemplateResponse'; +import CreateABotRequest from './model/CreateABotRequest'; +import CreateABotResponse from './model/CreateABotResponse'; +import CreateABotResponseBot from './model/CreateABotResponseBot'; +import CreateABotResponseBotStyle from './model/CreateABotResponseBotStyle'; +import CreateAChannelMetadataRequest from './model/CreateAChannelMetadataRequest'; +import CreateAChannelMetadataResponse from './model/CreateAChannelMetadataResponse'; +import CreateAGroupChannelRequest from './model/CreateAGroupChannelRequest'; +import CreateAUserRequest from './model/CreateAUserRequest'; +import CreateAnOpenChannelRequest from './model/CreateAnOpenChannelRequest'; +import CreateUserTokenRequest from './model/CreateUserTokenRequest'; import CreateUserTokenResponse from './model/CreateUserTokenResponse'; -import CustomTypeListBannedUsersResponse from './model/CustomTypeListBannedUsersResponse'; -import DeleteAllowedIpsFromWhitelistResponse from './model/DeleteAllowedIpsFromWhitelistResponse'; -import DeleteApnsCertificateByIdResponse from './model/DeleteApnsCertificateByIdResponse'; -import EnableReactionsData from './model/EnableReactionsData'; -import EnableReactionsResponse from './model/EnableReactionsResponse'; -import File from './model/File'; -import Function from './model/Function'; -import GcAcceptInvitationData from './model/GcAcceptInvitationData'; -import GcBanUserData from './model/GcBanUserData'; -import GcBanUserResponse from './model/GcBanUserResponse'; -import GcCheckIfMemberByIdResponse from './model/GcCheckIfMemberByIdResponse'; -import GcCreateChannelData from './model/GcCreateChannelData'; -import GcDeclineInvitationData from './model/GcDeclineInvitationData'; -import GcFreezeChannelData from './model/GcFreezeChannelData'; -import GcHideOrArchiveChannelData from './model/GcHideOrArchiveChannelData'; -import GcInviteAsMembersData from './model/GcInviteAsMembersData'; -import GcJoinChannelData from './model/GcJoinChannelData'; -import GcLeaveChannelData from './model/GcLeaveChannelData'; -import GcListBannedUsersResponse from './model/GcListBannedUsersResponse'; -import GcListChannelsResponse from './model/GcListChannelsResponse'; -import GcListMembersResponse from './model/GcListMembersResponse'; -import GcListMutedUsersResponse from './model/GcListMutedUsersResponse'; -import GcListOperatorsResponse from './model/GcListOperatorsResponse'; -import GcMarkAllMessagesAsDeliveredData from './model/GcMarkAllMessagesAsDeliveredData'; -import GcMarkAllMessagesAsDeliveredResponse from './model/GcMarkAllMessagesAsDeliveredResponse'; -import GcMarkAllMessagesAsReadData from './model/GcMarkAllMessagesAsReadData'; -import GcMuteUserData from './model/GcMuteUserData'; -import GcRegisterOperatorsData from './model/GcRegisterOperatorsData'; -import GcRegisterOperatorsResponse from './model/GcRegisterOperatorsResponse'; -import GcResetChatHistoryData from './model/GcResetChatHistoryData'; -import GcResetChatHistoryResponse from './model/GcResetChatHistoryResponse'; -import GcUpdateBanByIdData from './model/GcUpdateBanByIdData'; -import GcUpdateBanByIdResponse from './model/GcUpdateBanByIdResponse'; -import GcUpdateChannelByUrlData from './model/GcUpdateChannelByUrlData'; -import GcViewBanByIdResponse from './model/GcViewBanByIdResponse'; -import GcViewMuteByIdResponse from './model/GcViewMuteByIdResponse'; -import GcViewNumberOfEachMembersUnreadMessagesResponse from './model/GcViewNumberOfEachMembersUnreadMessagesResponse'; -import GenerateSecondaryApiTokenData from './model/GenerateSecondaryApiTokenData'; -import GenerateSecondaryApiTokenResponse from './model/GenerateSecondaryApiTokenResponse'; -import GetDetailedOpenRateOfAnnouncementByIdResponse from './model/GetDetailedOpenRateOfAnnouncementByIdResponse'; -import GetDetailedOpenRateOfAnnouncementGroupResponse from './model/GetDetailedOpenRateOfAnnouncementGroupResponse'; -import GetDetailedOpenStatusOfAnnouncementByIdResponse from './model/GetDetailedOpenStatusOfAnnouncementByIdResponse'; -import GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner from './model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner'; -import GetStatisticsDailyResponse from './model/GetStatisticsDailyResponse'; -import GetStatisticsDailyResponseStatisticsInner from './model/GetStatisticsDailyResponseStatisticsInner'; -import GetStatisticsMonthlyResponse from './model/GetStatisticsMonthlyResponse'; -import GetStatisticsResponse from './model/GetStatisticsResponse'; -import JoinChannelsData from './model/JoinChannelsData'; -import JoinChannelsResponse from './model/JoinChannelsResponse'; -import LeaveMyGroupChannelsData from './model/LeaveMyGroupChannelsData'; -import ListAllEmojisAndEmojiCategoriesResponse from './model/ListAllEmojisAndEmojiCategoriesResponse'; -import ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner from './model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner'; -import ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner from './model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner'; -import ListAnnouncementGroupsResponse from './model/ListAnnouncementGroupsResponse'; -import ListAnnouncementsResponse from './model/ListAnnouncementsResponse'; -import ListAnnouncementsResponseAnnouncementsInner from './model/ListAnnouncementsResponseAnnouncementsInner'; -import ListBannedChannelsResponse from './model/ListBannedChannelsResponse'; -import ListBannedChannelsResponseBannedChannelsInner from './model/ListBannedChannelsResponseBannedChannelsInner'; +import FreezeAGroupChannelRequest from './model/FreezeAGroupChannelRequest'; +import FreezeAnOpenChannelRequest from './model/FreezeAnOpenChannelRequest'; +import GetAGroupChannelResponse from './model/GetAGroupChannelResponse'; +import GetAGroupChannelResponseAllOf from './model/GetAGroupChannelResponseAllOf'; +import GetChannelInvitationPreferenceResponse from './model/GetChannelInvitationPreferenceResponse'; +import GetTotalNumberOfMessagesInAChannelResponse from './model/GetTotalNumberOfMessagesInAChannelResponse'; +import GroupChannelListMembersResponse from './model/GroupChannelListMembersResponse'; +import GroupChatListChannelsResponse from './model/GroupChatListChannelsResponse'; +import HideAChannelRequest from './model/HideAChannelRequest'; +import InviteAsMembersRequest from './model/InviteAsMembersRequest'; +import InviteAsMembersResponse from './model/InviteAsMembersResponse'; +import InviteAsMembersResponseAllOf from './model/InviteAsMembersResponseAllOf'; +import JoinAChannelRequest from './model/JoinAChannelRequest'; +import JoinChannelsRequest from './model/JoinChannelsRequest'; +import LeaveAChannelRequest from './model/LeaveAChannelRequest'; +import LeaveMyGroupChannelsRequest from './model/LeaveMyGroupChannelsRequest'; import ListBlockedUsersResponse from './model/ListBlockedUsersResponse'; import ListBotsResponse from './model/ListBotsResponse'; import ListBotsResponseBotsInner from './model/ListBotsResponseBotsInner'; -import ListDataExportsByMessageChannelOrUserResponse from './model/ListDataExportsByMessageChannelOrUserResponse'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInner from './model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; -import ListEmojisResponse from './model/ListEmojisResponse'; -import ListGdprRequestsResponse from './model/ListGdprRequestsResponse'; -import ListGdprRequestsResponseRequestsInner from './model/ListGdprRequestsResponseRequestsInner'; +import ListBotsResponseBotsInnerAi from './model/ListBotsResponseBotsInnerAi'; +import ListBotsResponseBotsInnerBot from './model/ListBotsResponseBotsInnerBot'; +import ListBotsResponseBotsInnerBotStyle from './model/ListBotsResponseBotsInnerBotStyle'; +import ListBotsResponseBotsInnerBotStyleColor from './model/ListBotsResponseBotsInnerBotStyleColor'; +import ListBotsResponseBotsInnerFirstMessagesInner from './model/ListBotsResponseBotsInnerFirstMessagesInner'; +import ListBotsResponseBotsInnerFirstMessagesInnerData from './model/ListBotsResponseBotsInnerFirstMessagesInnerData'; +import ListBotsResponseBotsInnerSafeguard from './model/ListBotsResponseBotsInnerSafeguard'; import ListMessagesResponse from './model/ListMessagesResponse'; -import ListMessagesResponseMessagesInner from './model/ListMessagesResponseMessagesInner'; -import ListMessagesResponseMessagesInnerOgTag from './model/ListMessagesResponseMessagesInnerOgTag'; -import ListMessagesResponseMessagesInnerOgTagOgImage from './model/ListMessagesResponseMessagesInnerOgTagOgImage'; -import ListMessagesResponseMessagesInnerSortedMetaarrayInner from './model/ListMessagesResponseMessagesInnerSortedMetaarrayInner'; -import ListMutedChannelsResponse from './model/ListMutedChannelsResponse'; -import ListMutedUsersInChannelsWithCustomChannelType200Response from './model/ListMutedUsersInChannelsWithCustomChannelType200Response'; import ListMyGroupChannelsResponse from './model/ListMyGroupChannelsResponse'; -import ListPushConfigurationsResponse from './model/ListPushConfigurationsResponse'; -import ListPushConfigurationsResponsePushConfigurationsInner from './model/ListPushConfigurationsResponsePushConfigurationsInner'; -import ListPushNotificationContentTemplatesResponse from './model/ListPushNotificationContentTemplatesResponse'; -import ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner from './model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner'; -import ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate from './model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate'; -import ListReactionsOfMessageResponse from './model/ListReactionsOfMessageResponse'; +import ListOpenChannelsResponse from './model/ListOpenChannelsResponse'; +import ListOperatorsResponse from './model/ListOperatorsResponse'; import ListRegistrationOrDeviceTokensResponse from './model/ListRegistrationOrDeviceTokensResponse'; -import ListReportsOnChannelByUrlResponse from './model/ListReportsOnChannelByUrlResponse'; -import ListReportsOnMessageByIdResponse from './model/ListReportsOnMessageByIdResponse'; -import ListReportsOnMessageByIdResponseReportLogsInner from './model/ListReportsOnMessageByIdResponseReportLogsInner'; -import ListReportsOnUserByIdResponse from './model/ListReportsOnUserByIdResponse'; -import ListReportsResponse from './model/ListReportsResponse'; -import ListReportsResponseReportLogsInner from './model/ListReportsResponseReportLogsInner'; -import ListSecondaryApiTokensResponse from './model/ListSecondaryApiTokensResponse'; -import ListSecondaryApiTokensResponseApiTokensInner from './model/ListSecondaryApiTokensResponseApiTokensInner'; import ListUsersResponse from './model/ListUsersResponse'; -import MarkAllMessagesAsReadData from './model/MarkAllMessagesAsReadData'; -import MuteInChannelsWithCustomChannelTypesData from './model/MuteInChannelsWithCustomChannelTypesData'; -import MuteUsersInChannelsWithCustomChannelTypeData from './model/MuteUsersInChannelsWithCustomChannelTypeData'; -import OcBanUserData from './model/OcBanUserData'; -import OcBanUserResponse from './model/OcBanUserResponse'; -import OcCreateChannelData from './model/OcCreateChannelData'; -import OcDeleteChannelByUrl200Response from './model/OcDeleteChannelByUrl200Response'; -import OcFreezeChannelData from './model/OcFreezeChannelData'; -import OcListBannedUsersResponse from './model/OcListBannedUsersResponse'; -import OcListBannedUsersResponseBannedListInner from './model/OcListBannedUsersResponseBannedListInner'; -import OcListChannelsResponse from './model/OcListChannelsResponse'; -import OcListMutedUsersResponse from './model/OcListMutedUsersResponse'; -import OcListOperatorsResponse from './model/OcListOperatorsResponse'; -import OcListParticipantsResponse from './model/OcListParticipantsResponse'; -import OcMuteUserData from './model/OcMuteUserData'; -import OcRegisterOperatorsData from './model/OcRegisterOperatorsData'; -import OcUpdateBanByIdData from './model/OcUpdateBanByIdData'; -import OcUpdateBanByIdResponse from './model/OcUpdateBanByIdResponse'; -import OcUpdateChannelByUrlData from './model/OcUpdateChannelByUrlData'; -import OcViewBanByIdResponse from './model/OcViewBanByIdResponse'; -import OcViewMuteByIdResponse from './model/OcViewMuteByIdResponse'; -import RegisterAndScheduleDataExportData from './model/RegisterAndScheduleDataExportData'; -import RegisterAndScheduleDataExportResponse from './model/RegisterAndScheduleDataExportResponse'; -import RegisterAsOperatorToChannelsWithCustomChannelTypesData from './model/RegisterAsOperatorToChannelsWithCustomChannelTypesData'; -import RegisterGdprRequestData from './model/RegisterGdprRequestData'; -import RegisterGdprRequestResponse from './model/RegisterGdprRequestResponse'; -import RemovePushConfigurationByIdResponse from './model/RemovePushConfigurationByIdResponse'; -import RemoveReactionFromAMessageResponse from './model/RemoveReactionFromAMessageResponse'; -import RemoveRegistrationOrDeviceTokenByTokenResponse from './model/RemoveRegistrationOrDeviceTokenByTokenResponse'; -import RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse from './model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse'; -import RemoveRegistrationOrDeviceTokenResponse from './model/RemoveRegistrationOrDeviceTokenResponse'; -import ReportChannelByUrlData from './model/ReportChannelByUrlData'; -import ReportChannelByUrlResponse from './model/ReportChannelByUrlResponse'; -import ReportMessageByIdData from './model/ReportMessageByIdData'; -import ReportMessageByIdResponse from './model/ReportMessageByIdResponse'; -import ReportUserByIdData from './model/ReportUserByIdData'; -import ReportUserByIdResponse from './model/ReportUserByIdResponse'; -import ResetPushPreferencesResponse from './model/ResetPushPreferencesResponse'; -import RetrieveAdvancedAnalyticsMetricsResponse from './model/RetrieveAdvancedAnalyticsMetricsResponse'; -import RetrieveIpWhitelistResponse from './model/RetrieveIpWhitelistResponse'; -import RetrieveListOfSubscribedEventsResponse from './model/RetrieveListOfSubscribedEventsResponse'; -import RetrieveListOfSubscribedEventsResponseWebhook from './model/RetrieveListOfSubscribedEventsResponseWebhook'; -import RevokeSecondaryApiTokenByTokenResponse from './model/RevokeSecondaryApiTokenByTokenResponse'; -import SBObject from './model/SBObject'; -import ScheduleAnnouncementData from './model/ScheduleAnnouncementData'; -import ScheduleAnnouncementDataMessage from './model/ScheduleAnnouncementDataMessage'; -import ScheduleAnnouncementResponse from './model/ScheduleAnnouncementResponse'; -import ScheduleAnnouncementResponseCreateChannelOptions from './model/ScheduleAnnouncementResponseCreateChannelOptions'; -import ScheduleAnnouncementResponseMessage from './model/ScheduleAnnouncementResponseMessage'; -import SendBirdAdminMessage from './model/SendBirdAdminMessage'; -import SendBirdAppleCriticalAlertOptions from './model/SendBirdAppleCriticalAlertOptions'; -import SendBirdAutoEventMessageSettings from './model/SendBirdAutoEventMessageSettings'; -import SendBirdBaseChannel from './model/SendBirdBaseChannel'; -import SendBirdBaseMessageInstance from './model/SendBirdBaseMessageInstance'; -import SendBirdChannelResponse from './model/SendBirdChannelResponse'; -import SendBirdEmoji from './model/SendBirdEmoji'; -import SendBirdEmojiCategory from './model/SendBirdEmojiCategory'; -import SendBirdFileMessageParams from './model/SendBirdFileMessageParams'; -import SendBirdGroupChannel from './model/SendBirdGroupChannel'; -import SendBirdGroupChannelChannel from './model/SendBirdGroupChannelChannel'; -import SendBirdGroupChannelCollection from './model/SendBirdGroupChannelCollection'; -import SendBirdGroupChannelCreatedBy from './model/SendBirdGroupChannelCreatedBy'; -import SendBirdGroupChannelDisappearingMessage from './model/SendBirdGroupChannelDisappearingMessage'; -import SendBirdGroupChannelInviter from './model/SendBirdGroupChannelInviter'; -import SendBirdGroupChannelLastMessage from './model/SendBirdGroupChannelLastMessage'; -import SendBirdGroupChannelSmsFallback from './model/SendBirdGroupChannelSmsFallback'; -import SendBirdMember from './model/SendBirdMember'; -import SendBirdMessageMetaArray from './model/SendBirdMessageMetaArray'; -import SendBirdMessageResponse from './model/SendBirdMessageResponse'; -import SendBirdMessageResponseMentionedUsersInner from './model/SendBirdMessageResponseMentionedUsersInner'; -import SendBirdMessageResponseUser from './model/SendBirdMessageResponseUser'; -import SendBirdOGImage from './model/SendBirdOGImage'; -import SendBirdOGMetaData from './model/SendBirdOGMetaData'; -import SendBirdOpenChannel from './model/SendBirdOpenChannel'; -import SendBirdPlugin from './model/SendBirdPlugin'; -import SendBirdPoll from './model/SendBirdPoll'; -import SendBirdPollDetails from './model/SendBirdPollDetails'; -import SendBirdPollOption from './model/SendBirdPollOption'; -import SendBirdPollUpdatedVoteCount from './model/SendBirdPollUpdatedVoteCount'; -import SendBirdReaction from './model/SendBirdReaction'; -import SendBirdRestrictionInfo from './model/SendBirdRestrictionInfo'; -import SendBirdSender from './model/SendBirdSender'; -import SendBirdThreadInfo from './model/SendBirdThreadInfo'; -import SendBirdThumbnailSBObject from './model/SendBirdThumbnailSBObject'; -import SendBirdThumbnailSize from './model/SendBirdThumbnailSize'; -import SendBirdUser from './model/SendBirdUser'; -import SendBirdUserMessageParams from './model/SendBirdUserMessageParams'; -import SendBotSMessageData from './model/SendBotSMessageData'; -import SendMessageData from './model/SendMessageData'; -import SetDomainFilterData from './model/SetDomainFilterData'; -import SetDomainFilterDataDomainFilter from './model/SetDomainFilterDataDomainFilter'; -import SetDomainFilterDataImageModeration from './model/SetDomainFilterDataImageModeration'; -import SetDomainFilterDataImageModerationLimits from './model/SetDomainFilterDataImageModerationLimits'; -import SetDomainFilterDataProfanityFilter from './model/SetDomainFilterDataProfanityFilter'; -import SetDomainFilterDataProfanityFilterRegexFiltersInner from './model/SetDomainFilterDataProfanityFilterRegexFiltersInner'; -import SetDomainFilterDataProfanityTriggeredModeration from './model/SetDomainFilterDataProfanityTriggeredModeration'; -import TranslateMessageIntoOtherLanguagesData from './model/TranslateMessageIntoOtherLanguagesData'; -import UpdateAnnouncementByIdData from './model/UpdateAnnouncementByIdData'; -import UpdateAnnouncementByIdResponse from './model/UpdateAnnouncementByIdResponse'; -import UpdateAnnouncementByIdResponseMessage from './model/UpdateAnnouncementByIdResponseMessage'; -import UpdateApnsPushConfigurationByIdData from './model/UpdateApnsPushConfigurationByIdData'; -import UpdateApnsPushConfigurationByIdResponse from './model/UpdateApnsPushConfigurationByIdResponse'; -import UpdateBotByIdData from './model/UpdateBotByIdData'; -import UpdateBotByIdResponse from './model/UpdateBotByIdResponse'; -import UpdateChannelInvitationPreferenceData from './model/UpdateChannelInvitationPreferenceData'; +import MarkAllMessagesAsReadRequest from './model/MarkAllMessagesAsReadRequest'; +import MarkChannelMessagesAsReadRequest from './model/MarkChannelMessagesAsReadRequest'; +import RegisterOperatorsToAGroupChannelRequest from './model/RegisterOperatorsToAGroupChannelRequest'; +import RemoveARegistrationOrDeviceTokenResponse from './model/RemoveARegistrationOrDeviceTokenResponse'; +import RemoveAllRegistrationOrDeviceTokenResponse from './model/RemoveAllRegistrationOrDeviceTokenResponse'; +import ResetChatHistoryRequest from './model/ResetChatHistoryRequest'; +import ResetChatHistoryResponse from './model/ResetChatHistoryResponse'; +import ScheduleAnAnnouncementRequest from './model/ScheduleAnAnnouncementRequest'; +import ScheduleAnAnnouncementRequestCreateChannelOptions from './model/ScheduleAnAnnouncementRequestCreateChannelOptions'; +import ScheduleAnAnnouncementRequestMessage from './model/ScheduleAnAnnouncementRequestMessage'; +import ScheduleAnAnnouncementResponse from './model/ScheduleAnAnnouncementResponse'; +import ScheduleAnAnnouncementResponseMessage from './model/ScheduleAnAnnouncementResponseMessage'; +import SendABotMessageRequest from './model/SendABotMessageRequest'; +import SendAMessageRequest from './model/SendAMessageRequest'; +import SendAdminMessageRequestBody from './model/SendAdminMessageRequestBody'; +import SendFileMessageRequestBody from './model/SendFileMessageRequestBody'; +import SendTextMessageRequestBody from './model/SendTextMessageRequestBody'; +import SendTextMessageRequestBodyPushMessageTemplate from './model/SendTextMessageRequestBodyPushMessageTemplate'; +import SendTextMessageRequestBodyPushMessageTemplateOneOf from './model/SendTextMessageRequestBodyPushMessageTemplateOneOf'; +import SendbirdBasicUserInfo from './model/SendbirdBasicUserInfo'; +import SendbirdDisappearingMessage from './model/SendbirdDisappearingMessage'; +import SendbirdExtendedMessagePayload from './model/SendbirdExtendedMessagePayload'; +import SendbirdFile from './model/SendbirdFile'; +import SendbirdGroupChannel from './model/SendbirdGroupChannel'; +import SendbirdGroupChannelDetail from './model/SendbirdGroupChannelDetail'; +import SendbirdGroupChannelDetailChannel from './model/SendbirdGroupChannelDetailChannel'; +import SendbirdMember from './model/SendbirdMember'; +import SendbirdMessageResponse from './model/SendbirdMessageResponse'; +import SendbirdMessageResponseMessageEvents from './model/SendbirdMessageResponseMessageEvents'; +import SendbirdOpenChannel from './model/SendbirdOpenChannel'; +import SendbirdParentMessageInfo from './model/SendbirdParentMessageInfo'; +import SendbirdPushTriggerOption from './model/SendbirdPushTriggerOption'; +import SendbirdReaction from './model/SendbirdReaction'; +import SendbirdSmsFallback from './model/SendbirdSmsFallback'; +import SendbirdSortedMetaarrayInner from './model/SendbirdSortedMetaarrayInner'; +import SendbirdThumbnail from './model/SendbirdThumbnail'; +import SendbirdUser from './model/SendbirdUser'; +import StartTypingIndicatorsRequest from './model/StartTypingIndicatorsRequest'; +import UpdateAChannelMetadataRequest from './model/UpdateAChannelMetadataRequest'; +import UpdateAGroupChannelRequest from './model/UpdateAGroupChannelRequest'; +import UpdateAMessageRequest from './model/UpdateAMessageRequest'; +import UpdateAUserRequest from './model/UpdateAUserRequest'; +import UpdateAnOpenChannelRequest from './model/UpdateAnOpenChannelRequest'; +import UpdateChannelInvitationPreferenceRequest from './model/UpdateChannelInvitationPreferenceRequest'; import UpdateChannelInvitationPreferenceResponse from './model/UpdateChannelInvitationPreferenceResponse'; -import UpdateChannelMetacounterData from './model/UpdateChannelMetacounterData'; -import UpdateChannelMetadataData from './model/UpdateChannelMetadataData'; -import UpdateCountPreferenceOfChannelByUrlData from './model/UpdateCountPreferenceOfChannelByUrlData'; +import UpdateCountPreferenceOfAChannelRequest from './model/UpdateCountPreferenceOfAChannelRequest'; import UpdateCountPreferenceOfChannelByUrlResponse from './model/UpdateCountPreferenceOfChannelByUrlResponse'; -import UpdateDefaultChannelInvitationPreferenceData from './model/UpdateDefaultChannelInvitationPreferenceData'; -import UpdateDefaultChannelInvitationPreferenceResponse from './model/UpdateDefaultChannelInvitationPreferenceResponse'; -import UpdateEmojiCategoryUrlByIdData from './model/UpdateEmojiCategoryUrlByIdData'; -import UpdateEmojiUrlByKeyData from './model/UpdateEmojiUrlByKeyData'; -import UpdateExtraDataInMessageData from './model/UpdateExtraDataInMessageData'; -import UpdateExtraDataInMessageResponse from './model/UpdateExtraDataInMessageResponse'; -import UpdateExtraDataInMessageResponseSortedMetaarrayInner from './model/UpdateExtraDataInMessageResponseSortedMetaarrayInner'; -import UpdateFcmPushConfigurationByIdData from './model/UpdateFcmPushConfigurationByIdData'; -import UpdateFcmPushConfigurationByIdResponse from './model/UpdateFcmPushConfigurationByIdResponse'; -import UpdateHmsPushConfigurationByIdData from './model/UpdateHmsPushConfigurationByIdData'; -import UpdateHmsPushConfigurationByIdResponse from './model/UpdateHmsPushConfigurationByIdResponse'; -import UpdateMessageByIdData from './model/UpdateMessageByIdData'; -import UpdatePushNotificationContentTemplateData from './model/UpdatePushNotificationContentTemplateData'; -import UpdatePushNotificationContentTemplateResponse from './model/UpdatePushNotificationContentTemplateResponse'; -import UpdatePushPreferencesData from './model/UpdatePushPreferencesData'; -import UpdatePushPreferencesForChannelByUrlData from './model/UpdatePushPreferencesForChannelByUrlData'; -import UpdatePushPreferencesForChannelByUrlResponse from './model/UpdatePushPreferencesForChannelByUrlResponse'; +import UpdateExtraDataInAMessageRequest from './model/UpdateExtraDataInAMessageRequest'; +import UpdateExtraDataInAMessageResponse from './model/UpdateExtraDataInAMessageResponse'; +import UpdatePushPreferencesForAChannelRequest from './model/UpdatePushPreferencesForAChannelRequest'; +import UpdatePushPreferencesForAChannelResponse from './model/UpdatePushPreferencesForAChannelResponse'; +import UpdatePushPreferencesRequest from './model/UpdatePushPreferencesRequest'; import UpdatePushPreferencesResponse from './model/UpdatePushPreferencesResponse'; -import UpdateUserByIdData from './model/UpdateUserByIdData'; -import UpdateUserMetadataData from './model/UpdateUserMetadataData'; -import UpdateUserMetadataResponse from './model/UpdateUserMetadataResponse'; -import UseDefaultEmojisData from './model/UseDefaultEmojisData'; -import UseDefaultEmojisResponse from './model/UseDefaultEmojisResponse'; -import ViewAnnouncementByIdResponse from './model/ViewAnnouncementByIdResponse'; -import ViewBotByIdResponse from './model/ViewBotByIdResponse'; -import ViewChannelInvitationPreferenceResponse from './model/ViewChannelInvitationPreferenceResponse'; -import ViewCountPreferenceOfChannelByUrlResponse from './model/ViewCountPreferenceOfChannelByUrlResponse'; -import ViewDataExportByIdResponse from './model/ViewDataExportByIdResponse'; -import ViewDefaultChannelInvitationPreferenceResponse from './model/ViewDefaultChannelInvitationPreferenceResponse'; -import ViewGdprRequestByIdResponse from './model/ViewGdprRequestByIdResponse'; -import ViewNumberOfChannelsByJoinStatusResponse from './model/ViewNumberOfChannelsByJoinStatusResponse'; +import ViewCountPreferenceOfAChannelResponse from './model/ViewCountPreferenceOfAChannelResponse'; import ViewNumberOfChannelsWithUnreadMessagesResponse from './model/ViewNumberOfChannelsWithUnreadMessagesResponse'; -import ViewNumberOfConcurrentConnectionsResponse from './model/ViewNumberOfConcurrentConnectionsResponse'; import ViewNumberOfDailyActiveUsersResponse from './model/ViewNumberOfDailyActiveUsersResponse'; import ViewNumberOfMonthlyActiveUsersResponse from './model/ViewNumberOfMonthlyActiveUsersResponse'; -import ViewNumberOfPeakConnectionsResponse from './model/ViewNumberOfPeakConnectionsResponse'; -import ViewNumberOfPeakConnectionsResponsePeakConnectionsInner from './model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner'; -import ViewNumberOfUnreadItemsResponse from './model/ViewNumberOfUnreadItemsResponse'; import ViewNumberOfUnreadMessagesResponse from './model/ViewNumberOfUnreadMessagesResponse'; -import ViewPushConfigurationByIdResponse from './model/ViewPushConfigurationByIdResponse'; -import ViewPushNotificationContentTemplateResponse from './model/ViewPushNotificationContentTemplateResponse'; -import ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner from './model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner'; -import ViewPushPreferencesForChannelByUrlResponse from './model/ViewPushPreferencesForChannelByUrlResponse'; +import ViewPushPreferencesForAChannelResponse from './model/ViewPushPreferencesForAChannelResponse'; import ViewPushPreferencesResponse from './model/ViewPushPreferencesResponse'; -import ViewSecondaryApiTokenByTokenResponse from './model/ViewSecondaryApiTokenByTokenResponse'; -import ViewTotalNumberOfMessagesInChannelResponse from './model/ViewTotalNumberOfMessagesInChannelResponse'; -import ViewUserMetadataResponse from './model/ViewUserMetadataResponse'; -import ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner from './model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner'; import AnnouncementApi from './api/AnnouncementApi'; -import ApplicationApi from './api/ApplicationApi'; import BotApi from './api/BotApi'; -import DataExportApi from './api/DataExportApi'; import GroupChannelApi from './api/GroupChannelApi'; import MessageApi from './api/MessageApi'; import MetadataApi from './api/MetadataApi'; import ModerationApi from './api/ModerationApi'; import OpenChannelApi from './api/OpenChannelApi'; -import PrivacyApi from './api/PrivacyApi'; -import ReportApi from './api/ReportApi'; import StatisticsApi from './api/StatisticsApi'; import UserApi from './api/UserApi'; -import WebhookApi from './api/WebhookApi'; /** @@ -351,7 +166,7 @@ import WebhookApi from './api/WebhookApi'; * *

* @module index -* @version 0.0.16 +* @version 2.0.0 */ export { /** @@ -361,1444 +176,586 @@ export { ApiClient, /** - * The AddApnsPushConfigurationData model constructor. - * @property {module:model/AddApnsPushConfigurationData} + * The AcceptAnInvitationRequest model constructor. + * @property {module:model/AcceptAnInvitationRequest} */ - AddApnsPushConfigurationData, + AcceptAnInvitationRequest, /** - * The AddApnsPushConfigurationResponse model constructor. - * @property {module:model/AddApnsPushConfigurationResponse} + * The AddARegistrationOrDeviceTokenRequest model constructor. + * @property {module:model/AddARegistrationOrDeviceTokenRequest} */ - AddApnsPushConfigurationResponse, + AddARegistrationOrDeviceTokenRequest, /** - * The AddApnsPushConfigurationResponsePushConfigurationsInner model constructor. - * @property {module:model/AddApnsPushConfigurationResponsePushConfigurationsInner} + * The AddARegistrationOrDeviceTokenResponse model constructor. + * @property {module:model/AddARegistrationOrDeviceTokenResponse} */ - AddApnsPushConfigurationResponsePushConfigurationsInner, + AddARegistrationOrDeviceTokenResponse, /** - * The AddEmojiCategoriesResponse model constructor. - * @property {module:model/AddEmojiCategoriesResponse} + * The AddExtraDataToAMessageRequest model constructor. + * @property {module:model/AddExtraDataToAMessageRequest} */ - AddEmojiCategoriesResponse, + AddExtraDataToAMessageRequest, /** - * The AddEmojiCategoriesResponseEmojiCategoriesInner model constructor. - * @property {module:model/AddEmojiCategoriesResponseEmojiCategoriesInner} + * The AddExtraDataToAMessageResponse model constructor. + * @property {module:model/AddExtraDataToAMessageResponse} */ - AddEmojiCategoriesResponseEmojiCategoriesInner, + AddExtraDataToAMessageResponse, /** - * The AddEmojisData model constructor. - * @property {module:model/AddEmojisData} + * The BlockAUserRequest model constructor. + * @property {module:model/BlockAUserRequest} */ - AddEmojisData, + BlockAUserRequest, /** - * The AddEmojisResponse model constructor. - * @property {module:model/AddEmojisResponse} + * The BlockAUserResponse model constructor. + * @property {module:model/BlockAUserResponse} */ - AddEmojisResponse, + BlockAUserResponse, /** - * The AddExtraDataToMessageData model constructor. - * @property {module:model/AddExtraDataToMessageData} + * The CheckIfMemberResponse model constructor. + * @property {module:model/CheckIfMemberResponse} */ - AddExtraDataToMessageData, + CheckIfMemberResponse, /** - * The AddExtraDataToMessageResponse model constructor. - * @property {module:model/AddExtraDataToMessageResponse} + * The ChooseAPushNotificationContentTemplateRequest model constructor. + * @property {module:model/ChooseAPushNotificationContentTemplateRequest} */ - AddExtraDataToMessageResponse, + ChooseAPushNotificationContentTemplateRequest, /** - * The AddFcmPushConfigurationData model constructor. - * @property {module:model/AddFcmPushConfigurationData} + * The ChooseAPushNotificationContentTemplateResponse model constructor. + * @property {module:model/ChooseAPushNotificationContentTemplateResponse} */ - AddFcmPushConfigurationData, + ChooseAPushNotificationContentTemplateResponse, /** - * The AddFcmPushConfigurationResponse model constructor. - * @property {module:model/AddFcmPushConfigurationResponse} + * The CreateABotRequest model constructor. + * @property {module:model/CreateABotRequest} */ - AddFcmPushConfigurationResponse, + CreateABotRequest, /** - * The AddFcmPushConfigurationResponsePushConfigurationsInner model constructor. - * @property {module:model/AddFcmPushConfigurationResponsePushConfigurationsInner} + * The CreateABotResponse model constructor. + * @property {module:model/CreateABotResponse} */ - AddFcmPushConfigurationResponsePushConfigurationsInner, + CreateABotResponse, /** - * The AddHmsPushConfigurationData model constructor. - * @property {module:model/AddHmsPushConfigurationData} + * The CreateABotResponseBot model constructor. + * @property {module:model/CreateABotResponseBot} */ - AddHmsPushConfigurationData, + CreateABotResponseBot, /** - * The AddHmsPushConfigurationResponse model constructor. - * @property {module:model/AddHmsPushConfigurationResponse} + * The CreateABotResponseBotStyle model constructor. + * @property {module:model/CreateABotResponseBotStyle} */ - AddHmsPushConfigurationResponse, + CreateABotResponseBotStyle, /** - * The AddHmsPushConfigurationResponsePushConfigurationsInner model constructor. - * @property {module:model/AddHmsPushConfigurationResponsePushConfigurationsInner} + * The CreateAChannelMetadataRequest model constructor. + * @property {module:model/CreateAChannelMetadataRequest} */ - AddHmsPushConfigurationResponsePushConfigurationsInner, + CreateAChannelMetadataRequest, /** - * The AddIpToWhitelistData model constructor. - * @property {module:model/AddIpToWhitelistData} + * The CreateAChannelMetadataResponse model constructor. + * @property {module:model/CreateAChannelMetadataResponse} */ - AddIpToWhitelistData, + CreateAChannelMetadataResponse, /** - * The AddIpToWhitelistResponse model constructor. - * @property {module:model/AddIpToWhitelistResponse} + * The CreateAGroupChannelRequest model constructor. + * @property {module:model/CreateAGroupChannelRequest} */ - AddIpToWhitelistResponse, + CreateAGroupChannelRequest, /** - * The AddReactionToAMessageData model constructor. - * @property {module:model/AddReactionToAMessageData} + * The CreateAUserRequest model constructor. + * @property {module:model/CreateAUserRequest} */ - AddReactionToAMessageData, + CreateAUserRequest, /** - * The AddReactionToAMessageResponse model constructor. - * @property {module:model/AddReactionToAMessageResponse} + * The CreateAnOpenChannelRequest model constructor. + * @property {module:model/CreateAnOpenChannelRequest} */ - AddReactionToAMessageResponse, + CreateAnOpenChannelRequest, /** - * The AddRegistrationOrDeviceTokenData model constructor. - * @property {module:model/AddRegistrationOrDeviceTokenData} + * The CreateUserTokenRequest model constructor. + * @property {module:model/CreateUserTokenRequest} */ - AddRegistrationOrDeviceTokenData, + CreateUserTokenRequest, /** - * The AddRegistrationOrDeviceTokenResponse model constructor. - * @property {module:model/AddRegistrationOrDeviceTokenResponse} - */ - AddRegistrationOrDeviceTokenResponse, - - /** - * The BanFromChannelsWithCustomChannelTypesData model constructor. - * @property {module:model/BanFromChannelsWithCustomChannelTypesData} - */ - BanFromChannelsWithCustomChannelTypesData, - - /** - * The BanUsersInChannelsWithCustomChannelTypeData model constructor. - * @property {module:model/BanUsersInChannelsWithCustomChannelTypeData} - */ - BanUsersInChannelsWithCustomChannelTypeData, - - /** - * The BanUsersInChannelsWithCustomChannelTypeDataBannedListInner model constructor. - * @property {module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner} - */ - BanUsersInChannelsWithCustomChannelTypeDataBannedListInner, - - /** - * The Blob model constructor. - * @property {module:model/Blob} - */ - Blob, - - /** - * The BlockUserData model constructor. - * @property {module:model/BlockUserData} - */ - BlockUserData, - - /** - * The BlockUserResponse model constructor. - * @property {module:model/BlockUserResponse} - */ - BlockUserResponse, - - /** - * The ChoosePushNotificationContentTemplateResponse model constructor. - * @property {module:model/ChoosePushNotificationContentTemplateResponse} - */ - ChoosePushNotificationContentTemplateResponse, - - /** - * The ChooseWhichEventsToSubscribeToData model constructor. - * @property {module:model/ChooseWhichEventsToSubscribeToData} - */ - ChooseWhichEventsToSubscribeToData, - - /** - * The ChooseWhichEventsToSubscribeToResponse model constructor. - * @property {module:model/ChooseWhichEventsToSubscribeToResponse} - */ - ChooseWhichEventsToSubscribeToResponse, - - /** - * The ChooseWhichEventsToSubscribeToResponseWebhook model constructor. - * @property {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} - */ - ChooseWhichEventsToSubscribeToResponseWebhook, - - /** - * The ConfigureAutoEventData model constructor. - * @property {module:model/ConfigureAutoEventData} - */ - ConfigureAutoEventData, - - /** - * The ConfigureAutoEventDataAutoEventMessage model constructor. - * @property {module:model/ConfigureAutoEventDataAutoEventMessage} - */ - ConfigureAutoEventDataAutoEventMessage, - - /** - * The CreateBotData model constructor. - * @property {module:model/CreateBotData} - */ - CreateBotData, - - /** - * The CreateBotResponse model constructor. - * @property {module:model/CreateBotResponse} - */ - CreateBotResponse, - - /** - * The CreateBotResponseBot model constructor. - * @property {module:model/CreateBotResponseBot} - */ - CreateBotResponseBot, - - /** - * The CreateChannelMetacounterData model constructor. - * @property {module:model/CreateChannelMetacounterData} - */ - CreateChannelMetacounterData, - - /** - * The CreateChannelMetadataData model constructor. - * @property {module:model/CreateChannelMetadataData} - */ - CreateChannelMetadataData, - - /** - * The CreateChannelMetadataResponse model constructor. - * @property {module:model/CreateChannelMetadataResponse} - */ - CreateChannelMetadataResponse, - - /** - * The CreateUserData model constructor. - * @property {module:model/CreateUserData} - */ - CreateUserData, - - /** - * The CreateUserMetadataData model constructor. - * @property {module:model/CreateUserMetadataData} - */ - CreateUserMetadataData, - - /** - * The CreateUserMetadataResponse model constructor. - * @property {module:model/CreateUserMetadataResponse} - */ - CreateUserMetadataResponse, - - /** - * The CreateUserTokenData model constructor. - * @property {module:model/CreateUserTokenData} - */ - CreateUserTokenData, - - /** - * The CreateUserTokenResponse model constructor. - * @property {module:model/CreateUserTokenResponse} - */ - CreateUserTokenResponse, - - /** - * The CustomTypeListBannedUsersResponse model constructor. - * @property {module:model/CustomTypeListBannedUsersResponse} - */ - CustomTypeListBannedUsersResponse, - - /** - * The DeleteAllowedIpsFromWhitelistResponse model constructor. - * @property {module:model/DeleteAllowedIpsFromWhitelistResponse} - */ - DeleteAllowedIpsFromWhitelistResponse, - - /** - * The DeleteApnsCertificateByIdResponse model constructor. - * @property {module:model/DeleteApnsCertificateByIdResponse} - */ - DeleteApnsCertificateByIdResponse, - - /** - * The EnableReactionsData model constructor. - * @property {module:model/EnableReactionsData} - */ - EnableReactionsData, - - /** - * The EnableReactionsResponse model constructor. - * @property {module:model/EnableReactionsResponse} - */ - EnableReactionsResponse, - - /** - * The File model constructor. - * @property {module:model/File} - */ - File, - - /** - * The Function model constructor. - * @property {module:model/Function} - */ - Function, - - /** - * The GcAcceptInvitationData model constructor. - * @property {module:model/GcAcceptInvitationData} - */ - GcAcceptInvitationData, - - /** - * The GcBanUserData model constructor. - * @property {module:model/GcBanUserData} - */ - GcBanUserData, - - /** - * The GcBanUserResponse model constructor. - * @property {module:model/GcBanUserResponse} - */ - GcBanUserResponse, - - /** - * The GcCheckIfMemberByIdResponse model constructor. - * @property {module:model/GcCheckIfMemberByIdResponse} - */ - GcCheckIfMemberByIdResponse, - - /** - * The GcCreateChannelData model constructor. - * @property {module:model/GcCreateChannelData} - */ - GcCreateChannelData, - - /** - * The GcDeclineInvitationData model constructor. - * @property {module:model/GcDeclineInvitationData} - */ - GcDeclineInvitationData, - - /** - * The GcFreezeChannelData model constructor. - * @property {module:model/GcFreezeChannelData} - */ - GcFreezeChannelData, - - /** - * The GcHideOrArchiveChannelData model constructor. - * @property {module:model/GcHideOrArchiveChannelData} - */ - GcHideOrArchiveChannelData, - - /** - * The GcInviteAsMembersData model constructor. - * @property {module:model/GcInviteAsMembersData} - */ - GcInviteAsMembersData, - - /** - * The GcJoinChannelData model constructor. - * @property {module:model/GcJoinChannelData} - */ - GcJoinChannelData, - - /** - * The GcLeaveChannelData model constructor. - * @property {module:model/GcLeaveChannelData} - */ - GcLeaveChannelData, - - /** - * The GcListBannedUsersResponse model constructor. - * @property {module:model/GcListBannedUsersResponse} - */ - GcListBannedUsersResponse, - - /** - * The GcListChannelsResponse model constructor. - * @property {module:model/GcListChannelsResponse} - */ - GcListChannelsResponse, - - /** - * The GcListMembersResponse model constructor. - * @property {module:model/GcListMembersResponse} - */ - GcListMembersResponse, - - /** - * The GcListMutedUsersResponse model constructor. - * @property {module:model/GcListMutedUsersResponse} - */ - GcListMutedUsersResponse, - - /** - * The GcListOperatorsResponse model constructor. - * @property {module:model/GcListOperatorsResponse} - */ - GcListOperatorsResponse, - - /** - * The GcMarkAllMessagesAsDeliveredData model constructor. - * @property {module:model/GcMarkAllMessagesAsDeliveredData} - */ - GcMarkAllMessagesAsDeliveredData, - - /** - * The GcMarkAllMessagesAsDeliveredResponse model constructor. - * @property {module:model/GcMarkAllMessagesAsDeliveredResponse} - */ - GcMarkAllMessagesAsDeliveredResponse, - - /** - * The GcMarkAllMessagesAsReadData model constructor. - * @property {module:model/GcMarkAllMessagesAsReadData} - */ - GcMarkAllMessagesAsReadData, - - /** - * The GcMuteUserData model constructor. - * @property {module:model/GcMuteUserData} - */ - GcMuteUserData, - - /** - * The GcRegisterOperatorsData model constructor. - * @property {module:model/GcRegisterOperatorsData} - */ - GcRegisterOperatorsData, - - /** - * The GcRegisterOperatorsResponse model constructor. - * @property {module:model/GcRegisterOperatorsResponse} - */ - GcRegisterOperatorsResponse, - - /** - * The GcResetChatHistoryData model constructor. - * @property {module:model/GcResetChatHistoryData} - */ - GcResetChatHistoryData, - - /** - * The GcResetChatHistoryResponse model constructor. - * @property {module:model/GcResetChatHistoryResponse} - */ - GcResetChatHistoryResponse, - - /** - * The GcUpdateBanByIdData model constructor. - * @property {module:model/GcUpdateBanByIdData} - */ - GcUpdateBanByIdData, - - /** - * The GcUpdateBanByIdResponse model constructor. - * @property {module:model/GcUpdateBanByIdResponse} - */ - GcUpdateBanByIdResponse, - - /** - * The GcUpdateChannelByUrlData model constructor. - * @property {module:model/GcUpdateChannelByUrlData} - */ - GcUpdateChannelByUrlData, - - /** - * The GcViewBanByIdResponse model constructor. - * @property {module:model/GcViewBanByIdResponse} - */ - GcViewBanByIdResponse, - - /** - * The GcViewMuteByIdResponse model constructor. - * @property {module:model/GcViewMuteByIdResponse} - */ - GcViewMuteByIdResponse, - - /** - * The GcViewNumberOfEachMembersUnreadMessagesResponse model constructor. - * @property {module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} - */ - GcViewNumberOfEachMembersUnreadMessagesResponse, - - /** - * The GenerateSecondaryApiTokenData model constructor. - * @property {module:model/GenerateSecondaryApiTokenData} - */ - GenerateSecondaryApiTokenData, - - /** - * The GenerateSecondaryApiTokenResponse model constructor. - * @property {module:model/GenerateSecondaryApiTokenResponse} - */ - GenerateSecondaryApiTokenResponse, - - /** - * The GetDetailedOpenRateOfAnnouncementByIdResponse model constructor. - * @property {module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} - */ - GetDetailedOpenRateOfAnnouncementByIdResponse, - - /** - * The GetDetailedOpenRateOfAnnouncementGroupResponse model constructor. - * @property {module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} - */ - GetDetailedOpenRateOfAnnouncementGroupResponse, - - /** - * The GetDetailedOpenStatusOfAnnouncementByIdResponse model constructor. - * @property {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} - */ - GetDetailedOpenStatusOfAnnouncementByIdResponse, - - /** - * The GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner model constructor. - * @property {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner} - */ - GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner, - - /** - * The GetStatisticsDailyResponse model constructor. - * @property {module:model/GetStatisticsDailyResponse} - */ - GetStatisticsDailyResponse, - - /** - * The GetStatisticsDailyResponseStatisticsInner model constructor. - * @property {module:model/GetStatisticsDailyResponseStatisticsInner} - */ - GetStatisticsDailyResponseStatisticsInner, - - /** - * The GetStatisticsMonthlyResponse model constructor. - * @property {module:model/GetStatisticsMonthlyResponse} - */ - GetStatisticsMonthlyResponse, - - /** - * The GetStatisticsResponse model constructor. - * @property {module:model/GetStatisticsResponse} - */ - GetStatisticsResponse, - - /** - * The JoinChannelsData model constructor. - * @property {module:model/JoinChannelsData} - */ - JoinChannelsData, - - /** - * The JoinChannelsResponse model constructor. - * @property {module:model/JoinChannelsResponse} - */ - JoinChannelsResponse, - - /** - * The LeaveMyGroupChannelsData model constructor. - * @property {module:model/LeaveMyGroupChannelsData} - */ - LeaveMyGroupChannelsData, - - /** - * The ListAllEmojisAndEmojiCategoriesResponse model constructor. - * @property {module:model/ListAllEmojisAndEmojiCategoriesResponse} - */ - ListAllEmojisAndEmojiCategoriesResponse, - - /** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner model constructor. - * @property {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner} - */ - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner, - - /** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner model constructor. - * @property {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner} - */ - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner, - - /** - * The ListAnnouncementGroupsResponse model constructor. - * @property {module:model/ListAnnouncementGroupsResponse} - */ - ListAnnouncementGroupsResponse, - - /** - * The ListAnnouncementsResponse model constructor. - * @property {module:model/ListAnnouncementsResponse} - */ - ListAnnouncementsResponse, - - /** - * The ListAnnouncementsResponseAnnouncementsInner model constructor. - * @property {module:model/ListAnnouncementsResponseAnnouncementsInner} - */ - ListAnnouncementsResponseAnnouncementsInner, - - /** - * The ListBannedChannelsResponse model constructor. - * @property {module:model/ListBannedChannelsResponse} - */ - ListBannedChannelsResponse, - - /** - * The ListBannedChannelsResponseBannedChannelsInner model constructor. - * @property {module:model/ListBannedChannelsResponseBannedChannelsInner} - */ - ListBannedChannelsResponseBannedChannelsInner, - - /** - * The ListBlockedUsersResponse model constructor. - * @property {module:model/ListBlockedUsersResponse} - */ - ListBlockedUsersResponse, - - /** - * The ListBotsResponse model constructor. - * @property {module:model/ListBotsResponse} - */ - ListBotsResponse, - - /** - * The ListBotsResponseBotsInner model constructor. - * @property {module:model/ListBotsResponseBotsInner} - */ - ListBotsResponseBotsInner, - - /** - * The ListDataExportsByMessageChannelOrUserResponse model constructor. - * @property {module:model/ListDataExportsByMessageChannelOrUserResponse} - */ - ListDataExportsByMessageChannelOrUserResponse, - - /** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInner model constructor. - * @property {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner} - */ - ListDataExportsByMessageChannelOrUserResponseExportedDataInner, - - /** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile model constructor. - * @property {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} - */ - ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile, - - /** - * The ListEmojisResponse model constructor. - * @property {module:model/ListEmojisResponse} - */ - ListEmojisResponse, - - /** - * The ListGdprRequestsResponse model constructor. - * @property {module:model/ListGdprRequestsResponse} - */ - ListGdprRequestsResponse, - - /** - * The ListGdprRequestsResponseRequestsInner model constructor. - * @property {module:model/ListGdprRequestsResponseRequestsInner} - */ - ListGdprRequestsResponseRequestsInner, - - /** - * The ListMessagesResponse model constructor. - * @property {module:model/ListMessagesResponse} - */ - ListMessagesResponse, - - /** - * The ListMessagesResponseMessagesInner model constructor. - * @property {module:model/ListMessagesResponseMessagesInner} - */ - ListMessagesResponseMessagesInner, - - /** - * The ListMessagesResponseMessagesInnerOgTag model constructor. - * @property {module:model/ListMessagesResponseMessagesInnerOgTag} - */ - ListMessagesResponseMessagesInnerOgTag, - - /** - * The ListMessagesResponseMessagesInnerOgTagOgImage model constructor. - * @property {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} - */ - ListMessagesResponseMessagesInnerOgTagOgImage, - - /** - * The ListMessagesResponseMessagesInnerSortedMetaarrayInner model constructor. - * @property {module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner} - */ - ListMessagesResponseMessagesInnerSortedMetaarrayInner, - - /** - * The ListMutedChannelsResponse model constructor. - * @property {module:model/ListMutedChannelsResponse} - */ - ListMutedChannelsResponse, - - /** - * The ListMutedUsersInChannelsWithCustomChannelType200Response model constructor. - * @property {module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} - */ - ListMutedUsersInChannelsWithCustomChannelType200Response, - - /** - * The ListMyGroupChannelsResponse model constructor. - * @property {module:model/ListMyGroupChannelsResponse} - */ - ListMyGroupChannelsResponse, - - /** - * The ListPushConfigurationsResponse model constructor. - * @property {module:model/ListPushConfigurationsResponse} - */ - ListPushConfigurationsResponse, - - /** - * The ListPushConfigurationsResponsePushConfigurationsInner model constructor. - * @property {module:model/ListPushConfigurationsResponsePushConfigurationsInner} - */ - ListPushConfigurationsResponsePushConfigurationsInner, - - /** - * The ListPushNotificationContentTemplatesResponse model constructor. - * @property {module:model/ListPushNotificationContentTemplatesResponse} - */ - ListPushNotificationContentTemplatesResponse, - - /** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner model constructor. - * @property {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner} - */ - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner, - - /** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate model constructor. - * @property {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} - */ - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate, - - /** - * The ListReactionsOfMessageResponse model constructor. - * @property {module:model/ListReactionsOfMessageResponse} - */ - ListReactionsOfMessageResponse, - - /** - * The ListRegistrationOrDeviceTokensResponse model constructor. - * @property {module:model/ListRegistrationOrDeviceTokensResponse} - */ - ListRegistrationOrDeviceTokensResponse, - - /** - * The ListReportsOnChannelByUrlResponse model constructor. - * @property {module:model/ListReportsOnChannelByUrlResponse} - */ - ListReportsOnChannelByUrlResponse, - - /** - * The ListReportsOnMessageByIdResponse model constructor. - * @property {module:model/ListReportsOnMessageByIdResponse} - */ - ListReportsOnMessageByIdResponse, - - /** - * The ListReportsOnMessageByIdResponseReportLogsInner model constructor. - * @property {module:model/ListReportsOnMessageByIdResponseReportLogsInner} - */ - ListReportsOnMessageByIdResponseReportLogsInner, - - /** - * The ListReportsOnUserByIdResponse model constructor. - * @property {module:model/ListReportsOnUserByIdResponse} - */ - ListReportsOnUserByIdResponse, - - /** - * The ListReportsResponse model constructor. - * @property {module:model/ListReportsResponse} - */ - ListReportsResponse, - - /** - * The ListReportsResponseReportLogsInner model constructor. - * @property {module:model/ListReportsResponseReportLogsInner} - */ - ListReportsResponseReportLogsInner, - - /** - * The ListSecondaryApiTokensResponse model constructor. - * @property {module:model/ListSecondaryApiTokensResponse} - */ - ListSecondaryApiTokensResponse, - - /** - * The ListSecondaryApiTokensResponseApiTokensInner model constructor. - * @property {module:model/ListSecondaryApiTokensResponseApiTokensInner} - */ - ListSecondaryApiTokensResponseApiTokensInner, - - /** - * The ListUsersResponse model constructor. - * @property {module:model/ListUsersResponse} - */ - ListUsersResponse, - - /** - * The MarkAllMessagesAsReadData model constructor. - * @property {module:model/MarkAllMessagesAsReadData} - */ - MarkAllMessagesAsReadData, - - /** - * The MuteInChannelsWithCustomChannelTypesData model constructor. - * @property {module:model/MuteInChannelsWithCustomChannelTypesData} - */ - MuteInChannelsWithCustomChannelTypesData, - - /** - * The MuteUsersInChannelsWithCustomChannelTypeData model constructor. - * @property {module:model/MuteUsersInChannelsWithCustomChannelTypeData} - */ - MuteUsersInChannelsWithCustomChannelTypeData, - - /** - * The OcBanUserData model constructor. - * @property {module:model/OcBanUserData} - */ - OcBanUserData, - - /** - * The OcBanUserResponse model constructor. - * @property {module:model/OcBanUserResponse} - */ - OcBanUserResponse, - - /** - * The OcCreateChannelData model constructor. - * @property {module:model/OcCreateChannelData} - */ - OcCreateChannelData, - - /** - * The OcDeleteChannelByUrl200Response model constructor. - * @property {module:model/OcDeleteChannelByUrl200Response} - */ - OcDeleteChannelByUrl200Response, - - /** - * The OcFreezeChannelData model constructor. - * @property {module:model/OcFreezeChannelData} - */ - OcFreezeChannelData, - - /** - * The OcListBannedUsersResponse model constructor. - * @property {module:model/OcListBannedUsersResponse} - */ - OcListBannedUsersResponse, - - /** - * The OcListBannedUsersResponseBannedListInner model constructor. - * @property {module:model/OcListBannedUsersResponseBannedListInner} - */ - OcListBannedUsersResponseBannedListInner, - - /** - * The OcListChannelsResponse model constructor. - * @property {module:model/OcListChannelsResponse} - */ - OcListChannelsResponse, - - /** - * The OcListMutedUsersResponse model constructor. - * @property {module:model/OcListMutedUsersResponse} - */ - OcListMutedUsersResponse, - - /** - * The OcListOperatorsResponse model constructor. - * @property {module:model/OcListOperatorsResponse} - */ - OcListOperatorsResponse, - - /** - * The OcListParticipantsResponse model constructor. - * @property {module:model/OcListParticipantsResponse} - */ - OcListParticipantsResponse, - - /** - * The OcMuteUserData model constructor. - * @property {module:model/OcMuteUserData} - */ - OcMuteUserData, - - /** - * The OcRegisterOperatorsData model constructor. - * @property {module:model/OcRegisterOperatorsData} - */ - OcRegisterOperatorsData, - - /** - * The OcUpdateBanByIdData model constructor. - * @property {module:model/OcUpdateBanByIdData} - */ - OcUpdateBanByIdData, - - /** - * The OcUpdateBanByIdResponse model constructor. - * @property {module:model/OcUpdateBanByIdResponse} - */ - OcUpdateBanByIdResponse, - - /** - * The OcUpdateChannelByUrlData model constructor. - * @property {module:model/OcUpdateChannelByUrlData} - */ - OcUpdateChannelByUrlData, - - /** - * The OcViewBanByIdResponse model constructor. - * @property {module:model/OcViewBanByIdResponse} - */ - OcViewBanByIdResponse, - - /** - * The OcViewMuteByIdResponse model constructor. - * @property {module:model/OcViewMuteByIdResponse} - */ - OcViewMuteByIdResponse, - - /** - * The RegisterAndScheduleDataExportData model constructor. - * @property {module:model/RegisterAndScheduleDataExportData} - */ - RegisterAndScheduleDataExportData, - - /** - * The RegisterAndScheduleDataExportResponse model constructor. - * @property {module:model/RegisterAndScheduleDataExportResponse} - */ - RegisterAndScheduleDataExportResponse, - - /** - * The RegisterAsOperatorToChannelsWithCustomChannelTypesData model constructor. - * @property {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} - */ - RegisterAsOperatorToChannelsWithCustomChannelTypesData, - - /** - * The RegisterGdprRequestData model constructor. - * @property {module:model/RegisterGdprRequestData} - */ - RegisterGdprRequestData, - - /** - * The RegisterGdprRequestResponse model constructor. - * @property {module:model/RegisterGdprRequestResponse} - */ - RegisterGdprRequestResponse, - - /** - * The RemovePushConfigurationByIdResponse model constructor. - * @property {module:model/RemovePushConfigurationByIdResponse} - */ - RemovePushConfigurationByIdResponse, - - /** - * The RemoveReactionFromAMessageResponse model constructor. - * @property {module:model/RemoveReactionFromAMessageResponse} - */ - RemoveReactionFromAMessageResponse, - - /** - * The RemoveRegistrationOrDeviceTokenByTokenResponse model constructor. - * @property {module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} + * The CreateUserTokenResponse model constructor. + * @property {module:model/CreateUserTokenResponse} */ - RemoveRegistrationOrDeviceTokenByTokenResponse, + CreateUserTokenResponse, /** - * The RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse model constructor. - * @property {module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} + * The FreezeAGroupChannelRequest model constructor. + * @property {module:model/FreezeAGroupChannelRequest} */ - RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse, + FreezeAGroupChannelRequest, /** - * The RemoveRegistrationOrDeviceTokenResponse model constructor. - * @property {module:model/RemoveRegistrationOrDeviceTokenResponse} + * The FreezeAnOpenChannelRequest model constructor. + * @property {module:model/FreezeAnOpenChannelRequest} */ - RemoveRegistrationOrDeviceTokenResponse, + FreezeAnOpenChannelRequest, /** - * The ReportChannelByUrlData model constructor. - * @property {module:model/ReportChannelByUrlData} + * The GetAGroupChannelResponse model constructor. + * @property {module:model/GetAGroupChannelResponse} */ - ReportChannelByUrlData, + GetAGroupChannelResponse, /** - * The ReportChannelByUrlResponse model constructor. - * @property {module:model/ReportChannelByUrlResponse} + * The GetAGroupChannelResponseAllOf model constructor. + * @property {module:model/GetAGroupChannelResponseAllOf} */ - ReportChannelByUrlResponse, + GetAGroupChannelResponseAllOf, /** - * The ReportMessageByIdData model constructor. - * @property {module:model/ReportMessageByIdData} + * The GetChannelInvitationPreferenceResponse model constructor. + * @property {module:model/GetChannelInvitationPreferenceResponse} */ - ReportMessageByIdData, + GetChannelInvitationPreferenceResponse, /** - * The ReportMessageByIdResponse model constructor. - * @property {module:model/ReportMessageByIdResponse} + * The GetTotalNumberOfMessagesInAChannelResponse model constructor. + * @property {module:model/GetTotalNumberOfMessagesInAChannelResponse} */ - ReportMessageByIdResponse, + GetTotalNumberOfMessagesInAChannelResponse, /** - * The ReportUserByIdData model constructor. - * @property {module:model/ReportUserByIdData} + * The GroupChannelListMembersResponse model constructor. + * @property {module:model/GroupChannelListMembersResponse} */ - ReportUserByIdData, + GroupChannelListMembersResponse, /** - * The ReportUserByIdResponse model constructor. - * @property {module:model/ReportUserByIdResponse} + * The GroupChatListChannelsResponse model constructor. + * @property {module:model/GroupChatListChannelsResponse} */ - ReportUserByIdResponse, + GroupChatListChannelsResponse, /** - * The ResetPushPreferencesResponse model constructor. - * @property {module:model/ResetPushPreferencesResponse} + * The HideAChannelRequest model constructor. + * @property {module:model/HideAChannelRequest} */ - ResetPushPreferencesResponse, + HideAChannelRequest, /** - * The RetrieveAdvancedAnalyticsMetricsResponse model constructor. - * @property {module:model/RetrieveAdvancedAnalyticsMetricsResponse} + * The InviteAsMembersRequest model constructor. + * @property {module:model/InviteAsMembersRequest} */ - RetrieveAdvancedAnalyticsMetricsResponse, + InviteAsMembersRequest, /** - * The RetrieveIpWhitelistResponse model constructor. - * @property {module:model/RetrieveIpWhitelistResponse} + * The InviteAsMembersResponse model constructor. + * @property {module:model/InviteAsMembersResponse} */ - RetrieveIpWhitelistResponse, + InviteAsMembersResponse, /** - * The RetrieveListOfSubscribedEventsResponse model constructor. - * @property {module:model/RetrieveListOfSubscribedEventsResponse} + * The InviteAsMembersResponseAllOf model constructor. + * @property {module:model/InviteAsMembersResponseAllOf} */ - RetrieveListOfSubscribedEventsResponse, + InviteAsMembersResponseAllOf, /** - * The RetrieveListOfSubscribedEventsResponseWebhook model constructor. - * @property {module:model/RetrieveListOfSubscribedEventsResponseWebhook} + * The JoinAChannelRequest model constructor. + * @property {module:model/JoinAChannelRequest} */ - RetrieveListOfSubscribedEventsResponseWebhook, + JoinAChannelRequest, /** - * The RevokeSecondaryApiTokenByTokenResponse model constructor. - * @property {module:model/RevokeSecondaryApiTokenByTokenResponse} + * The JoinChannelsRequest model constructor. + * @property {module:model/JoinChannelsRequest} */ - RevokeSecondaryApiTokenByTokenResponse, + JoinChannelsRequest, /** - * The SBObject model constructor. - * @property {module:model/SBObject} + * The LeaveAChannelRequest model constructor. + * @property {module:model/LeaveAChannelRequest} */ - SBObject, + LeaveAChannelRequest, /** - * The ScheduleAnnouncementData model constructor. - * @property {module:model/ScheduleAnnouncementData} + * The LeaveMyGroupChannelsRequest model constructor. + * @property {module:model/LeaveMyGroupChannelsRequest} */ - ScheduleAnnouncementData, + LeaveMyGroupChannelsRequest, /** - * The ScheduleAnnouncementDataMessage model constructor. - * @property {module:model/ScheduleAnnouncementDataMessage} + * The ListBlockedUsersResponse model constructor. + * @property {module:model/ListBlockedUsersResponse} */ - ScheduleAnnouncementDataMessage, + ListBlockedUsersResponse, /** - * The ScheduleAnnouncementResponse model constructor. - * @property {module:model/ScheduleAnnouncementResponse} + * The ListBotsResponse model constructor. + * @property {module:model/ListBotsResponse} */ - ScheduleAnnouncementResponse, + ListBotsResponse, /** - * The ScheduleAnnouncementResponseCreateChannelOptions model constructor. - * @property {module:model/ScheduleAnnouncementResponseCreateChannelOptions} + * The ListBotsResponseBotsInner model constructor. + * @property {module:model/ListBotsResponseBotsInner} */ - ScheduleAnnouncementResponseCreateChannelOptions, + ListBotsResponseBotsInner, /** - * The ScheduleAnnouncementResponseMessage model constructor. - * @property {module:model/ScheduleAnnouncementResponseMessage} + * The ListBotsResponseBotsInnerAi model constructor. + * @property {module:model/ListBotsResponseBotsInnerAi} */ - ScheduleAnnouncementResponseMessage, + ListBotsResponseBotsInnerAi, /** - * The SendBirdAdminMessage model constructor. - * @property {module:model/SendBirdAdminMessage} + * The ListBotsResponseBotsInnerBot model constructor. + * @property {module:model/ListBotsResponseBotsInnerBot} */ - SendBirdAdminMessage, + ListBotsResponseBotsInnerBot, /** - * The SendBirdAppleCriticalAlertOptions model constructor. - * @property {module:model/SendBirdAppleCriticalAlertOptions} + * The ListBotsResponseBotsInnerBotStyle model constructor. + * @property {module:model/ListBotsResponseBotsInnerBotStyle} */ - SendBirdAppleCriticalAlertOptions, + ListBotsResponseBotsInnerBotStyle, /** - * The SendBirdAutoEventMessageSettings model constructor. - * @property {module:model/SendBirdAutoEventMessageSettings} + * The ListBotsResponseBotsInnerBotStyleColor model constructor. + * @property {module:model/ListBotsResponseBotsInnerBotStyleColor} */ - SendBirdAutoEventMessageSettings, + ListBotsResponseBotsInnerBotStyleColor, /** - * The SendBirdBaseChannel model constructor. - * @property {module:model/SendBirdBaseChannel} + * The ListBotsResponseBotsInnerFirstMessagesInner model constructor. + * @property {module:model/ListBotsResponseBotsInnerFirstMessagesInner} */ - SendBirdBaseChannel, + ListBotsResponseBotsInnerFirstMessagesInner, /** - * The SendBirdBaseMessageInstance model constructor. - * @property {module:model/SendBirdBaseMessageInstance} + * The ListBotsResponseBotsInnerFirstMessagesInnerData model constructor. + * @property {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} */ - SendBirdBaseMessageInstance, + ListBotsResponseBotsInnerFirstMessagesInnerData, /** - * The SendBirdChannelResponse model constructor. - * @property {module:model/SendBirdChannelResponse} + * The ListBotsResponseBotsInnerSafeguard model constructor. + * @property {module:model/ListBotsResponseBotsInnerSafeguard} */ - SendBirdChannelResponse, + ListBotsResponseBotsInnerSafeguard, /** - * The SendBirdEmoji model constructor. - * @property {module:model/SendBirdEmoji} + * The ListMessagesResponse model constructor. + * @property {module:model/ListMessagesResponse} */ - SendBirdEmoji, + ListMessagesResponse, /** - * The SendBirdEmojiCategory model constructor. - * @property {module:model/SendBirdEmojiCategory} + * The ListMyGroupChannelsResponse model constructor. + * @property {module:model/ListMyGroupChannelsResponse} */ - SendBirdEmojiCategory, + ListMyGroupChannelsResponse, /** - * The SendBirdFileMessageParams model constructor. - * @property {module:model/SendBirdFileMessageParams} + * The ListOpenChannelsResponse model constructor. + * @property {module:model/ListOpenChannelsResponse} */ - SendBirdFileMessageParams, + ListOpenChannelsResponse, /** - * The SendBirdGroupChannel model constructor. - * @property {module:model/SendBirdGroupChannel} + * The ListOperatorsResponse model constructor. + * @property {module:model/ListOperatorsResponse} */ - SendBirdGroupChannel, + ListOperatorsResponse, /** - * The SendBirdGroupChannelChannel model constructor. - * @property {module:model/SendBirdGroupChannelChannel} + * The ListRegistrationOrDeviceTokensResponse model constructor. + * @property {module:model/ListRegistrationOrDeviceTokensResponse} */ - SendBirdGroupChannelChannel, + ListRegistrationOrDeviceTokensResponse, /** - * The SendBirdGroupChannelCollection model constructor. - * @property {module:model/SendBirdGroupChannelCollection} + * The ListUsersResponse model constructor. + * @property {module:model/ListUsersResponse} */ - SendBirdGroupChannelCollection, + ListUsersResponse, /** - * The SendBirdGroupChannelCreatedBy model constructor. - * @property {module:model/SendBirdGroupChannelCreatedBy} + * The MarkAllMessagesAsReadRequest model constructor. + * @property {module:model/MarkAllMessagesAsReadRequest} */ - SendBirdGroupChannelCreatedBy, + MarkAllMessagesAsReadRequest, /** - * The SendBirdGroupChannelDisappearingMessage model constructor. - * @property {module:model/SendBirdGroupChannelDisappearingMessage} + * The MarkChannelMessagesAsReadRequest model constructor. + * @property {module:model/MarkChannelMessagesAsReadRequest} */ - SendBirdGroupChannelDisappearingMessage, + MarkChannelMessagesAsReadRequest, /** - * The SendBirdGroupChannelInviter model constructor. - * @property {module:model/SendBirdGroupChannelInviter} + * The RegisterOperatorsToAGroupChannelRequest model constructor. + * @property {module:model/RegisterOperatorsToAGroupChannelRequest} */ - SendBirdGroupChannelInviter, + RegisterOperatorsToAGroupChannelRequest, /** - * The SendBirdGroupChannelLastMessage model constructor. - * @property {module:model/SendBirdGroupChannelLastMessage} + * The RemoveARegistrationOrDeviceTokenResponse model constructor. + * @property {module:model/RemoveARegistrationOrDeviceTokenResponse} */ - SendBirdGroupChannelLastMessage, + RemoveARegistrationOrDeviceTokenResponse, /** - * The SendBirdGroupChannelSmsFallback model constructor. - * @property {module:model/SendBirdGroupChannelSmsFallback} + * The RemoveAllRegistrationOrDeviceTokenResponse model constructor. + * @property {module:model/RemoveAllRegistrationOrDeviceTokenResponse} */ - SendBirdGroupChannelSmsFallback, + RemoveAllRegistrationOrDeviceTokenResponse, /** - * The SendBirdMember model constructor. - * @property {module:model/SendBirdMember} + * The ResetChatHistoryRequest model constructor. + * @property {module:model/ResetChatHistoryRequest} */ - SendBirdMember, + ResetChatHistoryRequest, /** - * The SendBirdMessageMetaArray model constructor. - * @property {module:model/SendBirdMessageMetaArray} + * The ResetChatHistoryResponse model constructor. + * @property {module:model/ResetChatHistoryResponse} */ - SendBirdMessageMetaArray, + ResetChatHistoryResponse, /** - * The SendBirdMessageResponse model constructor. - * @property {module:model/SendBirdMessageResponse} + * The ScheduleAnAnnouncementRequest model constructor. + * @property {module:model/ScheduleAnAnnouncementRequest} */ - SendBirdMessageResponse, + ScheduleAnAnnouncementRequest, /** - * The SendBirdMessageResponseMentionedUsersInner model constructor. - * @property {module:model/SendBirdMessageResponseMentionedUsersInner} + * The ScheduleAnAnnouncementRequestCreateChannelOptions model constructor. + * @property {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} */ - SendBirdMessageResponseMentionedUsersInner, + ScheduleAnAnnouncementRequestCreateChannelOptions, /** - * The SendBirdMessageResponseUser model constructor. - * @property {module:model/SendBirdMessageResponseUser} + * The ScheduleAnAnnouncementRequestMessage model constructor. + * @property {module:model/ScheduleAnAnnouncementRequestMessage} */ - SendBirdMessageResponseUser, + ScheduleAnAnnouncementRequestMessage, /** - * The SendBirdOGImage model constructor. - * @property {module:model/SendBirdOGImage} + * The ScheduleAnAnnouncementResponse model constructor. + * @property {module:model/ScheduleAnAnnouncementResponse} */ - SendBirdOGImage, + ScheduleAnAnnouncementResponse, /** - * The SendBirdOGMetaData model constructor. - * @property {module:model/SendBirdOGMetaData} + * The ScheduleAnAnnouncementResponseMessage model constructor. + * @property {module:model/ScheduleAnAnnouncementResponseMessage} */ - SendBirdOGMetaData, + ScheduleAnAnnouncementResponseMessage, /** - * The SendBirdOpenChannel model constructor. - * @property {module:model/SendBirdOpenChannel} + * The SendABotMessageRequest model constructor. + * @property {module:model/SendABotMessageRequest} */ - SendBirdOpenChannel, + SendABotMessageRequest, /** - * The SendBirdPlugin model constructor. - * @property {module:model/SendBirdPlugin} + * The SendAMessageRequest model constructor. + * @property {module:model/SendAMessageRequest} */ - SendBirdPlugin, + SendAMessageRequest, /** - * The SendBirdPoll model constructor. - * @property {module:model/SendBirdPoll} + * The SendAdminMessageRequestBody model constructor. + * @property {module:model/SendAdminMessageRequestBody} */ - SendBirdPoll, + SendAdminMessageRequestBody, /** - * The SendBirdPollDetails model constructor. - * @property {module:model/SendBirdPollDetails} + * The SendFileMessageRequestBody model constructor. + * @property {module:model/SendFileMessageRequestBody} */ - SendBirdPollDetails, + SendFileMessageRequestBody, /** - * The SendBirdPollOption model constructor. - * @property {module:model/SendBirdPollOption} + * The SendTextMessageRequestBody model constructor. + * @property {module:model/SendTextMessageRequestBody} */ - SendBirdPollOption, + SendTextMessageRequestBody, /** - * The SendBirdPollUpdatedVoteCount model constructor. - * @property {module:model/SendBirdPollUpdatedVoteCount} + * The SendTextMessageRequestBodyPushMessageTemplate model constructor. + * @property {module:model/SendTextMessageRequestBodyPushMessageTemplate} */ - SendBirdPollUpdatedVoteCount, + SendTextMessageRequestBodyPushMessageTemplate, /** - * The SendBirdReaction model constructor. - * @property {module:model/SendBirdReaction} + * The SendTextMessageRequestBodyPushMessageTemplateOneOf model constructor. + * @property {module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf} */ - SendBirdReaction, + SendTextMessageRequestBodyPushMessageTemplateOneOf, /** - * The SendBirdRestrictionInfo model constructor. - * @property {module:model/SendBirdRestrictionInfo} + * The SendbirdBasicUserInfo model constructor. + * @property {module:model/SendbirdBasicUserInfo} */ - SendBirdRestrictionInfo, + SendbirdBasicUserInfo, /** - * The SendBirdSender model constructor. - * @property {module:model/SendBirdSender} + * The SendbirdDisappearingMessage model constructor. + * @property {module:model/SendbirdDisappearingMessage} */ - SendBirdSender, + SendbirdDisappearingMessage, /** - * The SendBirdThreadInfo model constructor. - * @property {module:model/SendBirdThreadInfo} + * The SendbirdExtendedMessagePayload model constructor. + * @property {module:model/SendbirdExtendedMessagePayload} */ - SendBirdThreadInfo, + SendbirdExtendedMessagePayload, /** - * The SendBirdThumbnailSBObject model constructor. - * @property {module:model/SendBirdThumbnailSBObject} + * The SendbirdFile model constructor. + * @property {module:model/SendbirdFile} */ - SendBirdThumbnailSBObject, + SendbirdFile, /** - * The SendBirdThumbnailSize model constructor. - * @property {module:model/SendBirdThumbnailSize} + * The SendbirdGroupChannel model constructor. + * @property {module:model/SendbirdGroupChannel} */ - SendBirdThumbnailSize, + SendbirdGroupChannel, /** - * The SendBirdUser model constructor. - * @property {module:model/SendBirdUser} + * The SendbirdGroupChannelDetail model constructor. + * @property {module:model/SendbirdGroupChannelDetail} */ - SendBirdUser, + SendbirdGroupChannelDetail, /** - * The SendBirdUserMessageParams model constructor. - * @property {module:model/SendBirdUserMessageParams} + * The SendbirdGroupChannelDetailChannel model constructor. + * @property {module:model/SendbirdGroupChannelDetailChannel} */ - SendBirdUserMessageParams, + SendbirdGroupChannelDetailChannel, /** - * The SendBotSMessageData model constructor. - * @property {module:model/SendBotSMessageData} + * The SendbirdMember model constructor. + * @property {module:model/SendbirdMember} */ - SendBotSMessageData, + SendbirdMember, /** - * The SendMessageData model constructor. - * @property {module:model/SendMessageData} + * The SendbirdMessageResponse model constructor. + * @property {module:model/SendbirdMessageResponse} */ - SendMessageData, + SendbirdMessageResponse, /** - * The SetDomainFilterData model constructor. - * @property {module:model/SetDomainFilterData} + * The SendbirdMessageResponseMessageEvents model constructor. + * @property {module:model/SendbirdMessageResponseMessageEvents} */ - SetDomainFilterData, + SendbirdMessageResponseMessageEvents, /** - * The SetDomainFilterDataDomainFilter model constructor. - * @property {module:model/SetDomainFilterDataDomainFilter} + * The SendbirdOpenChannel model constructor. + * @property {module:model/SendbirdOpenChannel} */ - SetDomainFilterDataDomainFilter, + SendbirdOpenChannel, /** - * The SetDomainFilterDataImageModeration model constructor. - * @property {module:model/SetDomainFilterDataImageModeration} + * The SendbirdParentMessageInfo model constructor. + * @property {module:model/SendbirdParentMessageInfo} */ - SetDomainFilterDataImageModeration, + SendbirdParentMessageInfo, /** - * The SetDomainFilterDataImageModerationLimits model constructor. - * @property {module:model/SetDomainFilterDataImageModerationLimits} + * The SendbirdPushTriggerOption model constructor. + * @property {module:model/SendbirdPushTriggerOption} */ - SetDomainFilterDataImageModerationLimits, + SendbirdPushTriggerOption, /** - * The SetDomainFilterDataProfanityFilter model constructor. - * @property {module:model/SetDomainFilterDataProfanityFilter} + * The SendbirdReaction model constructor. + * @property {module:model/SendbirdReaction} */ - SetDomainFilterDataProfanityFilter, + SendbirdReaction, /** - * The SetDomainFilterDataProfanityFilterRegexFiltersInner model constructor. - * @property {module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner} + * The SendbirdSmsFallback model constructor. + * @property {module:model/SendbirdSmsFallback} */ - SetDomainFilterDataProfanityFilterRegexFiltersInner, + SendbirdSmsFallback, /** - * The SetDomainFilterDataProfanityTriggeredModeration model constructor. - * @property {module:model/SetDomainFilterDataProfanityTriggeredModeration} + * The SendbirdSortedMetaarrayInner model constructor. + * @property {module:model/SendbirdSortedMetaarrayInner} */ - SetDomainFilterDataProfanityTriggeredModeration, + SendbirdSortedMetaarrayInner, /** - * The TranslateMessageIntoOtherLanguagesData model constructor. - * @property {module:model/TranslateMessageIntoOtherLanguagesData} + * The SendbirdThumbnail model constructor. + * @property {module:model/SendbirdThumbnail} */ - TranslateMessageIntoOtherLanguagesData, + SendbirdThumbnail, /** - * The UpdateAnnouncementByIdData model constructor. - * @property {module:model/UpdateAnnouncementByIdData} + * The SendbirdUser model constructor. + * @property {module:model/SendbirdUser} */ - UpdateAnnouncementByIdData, + SendbirdUser, /** - * The UpdateAnnouncementByIdResponse model constructor. - * @property {module:model/UpdateAnnouncementByIdResponse} + * The StartTypingIndicatorsRequest model constructor. + * @property {module:model/StartTypingIndicatorsRequest} */ - UpdateAnnouncementByIdResponse, + StartTypingIndicatorsRequest, /** - * The UpdateAnnouncementByIdResponseMessage model constructor. - * @property {module:model/UpdateAnnouncementByIdResponseMessage} + * The UpdateAChannelMetadataRequest model constructor. + * @property {module:model/UpdateAChannelMetadataRequest} */ - UpdateAnnouncementByIdResponseMessage, + UpdateAChannelMetadataRequest, /** - * The UpdateApnsPushConfigurationByIdData model constructor. - * @property {module:model/UpdateApnsPushConfigurationByIdData} + * The UpdateAGroupChannelRequest model constructor. + * @property {module:model/UpdateAGroupChannelRequest} */ - UpdateApnsPushConfigurationByIdData, + UpdateAGroupChannelRequest, /** - * The UpdateApnsPushConfigurationByIdResponse model constructor. - * @property {module:model/UpdateApnsPushConfigurationByIdResponse} + * The UpdateAMessageRequest model constructor. + * @property {module:model/UpdateAMessageRequest} */ - UpdateApnsPushConfigurationByIdResponse, + UpdateAMessageRequest, /** - * The UpdateBotByIdData model constructor. - * @property {module:model/UpdateBotByIdData} + * The UpdateAUserRequest model constructor. + * @property {module:model/UpdateAUserRequest} */ - UpdateBotByIdData, + UpdateAUserRequest, /** - * The UpdateBotByIdResponse model constructor. - * @property {module:model/UpdateBotByIdResponse} + * The UpdateAnOpenChannelRequest model constructor. + * @property {module:model/UpdateAnOpenChannelRequest} */ - UpdateBotByIdResponse, + UpdateAnOpenChannelRequest, /** - * The UpdateChannelInvitationPreferenceData model constructor. - * @property {module:model/UpdateChannelInvitationPreferenceData} + * The UpdateChannelInvitationPreferenceRequest model constructor. + * @property {module:model/UpdateChannelInvitationPreferenceRequest} */ - UpdateChannelInvitationPreferenceData, + UpdateChannelInvitationPreferenceRequest, /** * The UpdateChannelInvitationPreferenceResponse model constructor. @@ -1807,22 +764,10 @@ export { UpdateChannelInvitationPreferenceResponse, /** - * The UpdateChannelMetacounterData model constructor. - * @property {module:model/UpdateChannelMetacounterData} - */ - UpdateChannelMetacounterData, - - /** - * The UpdateChannelMetadataData model constructor. - * @property {module:model/UpdateChannelMetadataData} - */ - UpdateChannelMetadataData, - - /** - * The UpdateCountPreferenceOfChannelByUrlData model constructor. - * @property {module:model/UpdateCountPreferenceOfChannelByUrlData} + * The UpdateCountPreferenceOfAChannelRequest model constructor. + * @property {module:model/UpdateCountPreferenceOfAChannelRequest} */ - UpdateCountPreferenceOfChannelByUrlData, + UpdateCountPreferenceOfAChannelRequest, /** * The UpdateCountPreferenceOfChannelByUrlResponse model constructor. @@ -1831,106 +776,34 @@ export { UpdateCountPreferenceOfChannelByUrlResponse, /** - * The UpdateDefaultChannelInvitationPreferenceData model constructor. - * @property {module:model/UpdateDefaultChannelInvitationPreferenceData} - */ - UpdateDefaultChannelInvitationPreferenceData, - - /** - * The UpdateDefaultChannelInvitationPreferenceResponse model constructor. - * @property {module:model/UpdateDefaultChannelInvitationPreferenceResponse} - */ - UpdateDefaultChannelInvitationPreferenceResponse, - - /** - * The UpdateEmojiCategoryUrlByIdData model constructor. - * @property {module:model/UpdateEmojiCategoryUrlByIdData} - */ - UpdateEmojiCategoryUrlByIdData, - - /** - * The UpdateEmojiUrlByKeyData model constructor. - * @property {module:model/UpdateEmojiUrlByKeyData} - */ - UpdateEmojiUrlByKeyData, - - /** - * The UpdateExtraDataInMessageData model constructor. - * @property {module:model/UpdateExtraDataInMessageData} - */ - UpdateExtraDataInMessageData, - - /** - * The UpdateExtraDataInMessageResponse model constructor. - * @property {module:model/UpdateExtraDataInMessageResponse} - */ - UpdateExtraDataInMessageResponse, - - /** - * The UpdateExtraDataInMessageResponseSortedMetaarrayInner model constructor. - * @property {module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner} - */ - UpdateExtraDataInMessageResponseSortedMetaarrayInner, - - /** - * The UpdateFcmPushConfigurationByIdData model constructor. - * @property {module:model/UpdateFcmPushConfigurationByIdData} - */ - UpdateFcmPushConfigurationByIdData, - - /** - * The UpdateFcmPushConfigurationByIdResponse model constructor. - * @property {module:model/UpdateFcmPushConfigurationByIdResponse} + * The UpdateExtraDataInAMessageRequest model constructor. + * @property {module:model/UpdateExtraDataInAMessageRequest} */ - UpdateFcmPushConfigurationByIdResponse, + UpdateExtraDataInAMessageRequest, /** - * The UpdateHmsPushConfigurationByIdData model constructor. - * @property {module:model/UpdateHmsPushConfigurationByIdData} + * The UpdateExtraDataInAMessageResponse model constructor. + * @property {module:model/UpdateExtraDataInAMessageResponse} */ - UpdateHmsPushConfigurationByIdData, + UpdateExtraDataInAMessageResponse, /** - * The UpdateHmsPushConfigurationByIdResponse model constructor. - * @property {module:model/UpdateHmsPushConfigurationByIdResponse} + * The UpdatePushPreferencesForAChannelRequest model constructor. + * @property {module:model/UpdatePushPreferencesForAChannelRequest} */ - UpdateHmsPushConfigurationByIdResponse, + UpdatePushPreferencesForAChannelRequest, /** - * The UpdateMessageByIdData model constructor. - * @property {module:model/UpdateMessageByIdData} + * The UpdatePushPreferencesForAChannelResponse model constructor. + * @property {module:model/UpdatePushPreferencesForAChannelResponse} */ - UpdateMessageByIdData, + UpdatePushPreferencesForAChannelResponse, /** - * The UpdatePushNotificationContentTemplateData model constructor. - * @property {module:model/UpdatePushNotificationContentTemplateData} + * The UpdatePushPreferencesRequest model constructor. + * @property {module:model/UpdatePushPreferencesRequest} */ - UpdatePushNotificationContentTemplateData, - - /** - * The UpdatePushNotificationContentTemplateResponse model constructor. - * @property {module:model/UpdatePushNotificationContentTemplateResponse} - */ - UpdatePushNotificationContentTemplateResponse, - - /** - * The UpdatePushPreferencesData model constructor. - * @property {module:model/UpdatePushPreferencesData} - */ - UpdatePushPreferencesData, - - /** - * The UpdatePushPreferencesForChannelByUrlData model constructor. - * @property {module:model/UpdatePushPreferencesForChannelByUrlData} - */ - UpdatePushPreferencesForChannelByUrlData, - - /** - * The UpdatePushPreferencesForChannelByUrlResponse model constructor. - * @property {module:model/UpdatePushPreferencesForChannelByUrlResponse} - */ - UpdatePushPreferencesForChannelByUrlResponse, + UpdatePushPreferencesRequest, /** * The UpdatePushPreferencesResponse model constructor. @@ -1939,82 +812,10 @@ export { UpdatePushPreferencesResponse, /** - * The UpdateUserByIdData model constructor. - * @property {module:model/UpdateUserByIdData} - */ - UpdateUserByIdData, - - /** - * The UpdateUserMetadataData model constructor. - * @property {module:model/UpdateUserMetadataData} - */ - UpdateUserMetadataData, - - /** - * The UpdateUserMetadataResponse model constructor. - * @property {module:model/UpdateUserMetadataResponse} - */ - UpdateUserMetadataResponse, - - /** - * The UseDefaultEmojisData model constructor. - * @property {module:model/UseDefaultEmojisData} - */ - UseDefaultEmojisData, - - /** - * The UseDefaultEmojisResponse model constructor. - * @property {module:model/UseDefaultEmojisResponse} - */ - UseDefaultEmojisResponse, - - /** - * The ViewAnnouncementByIdResponse model constructor. - * @property {module:model/ViewAnnouncementByIdResponse} - */ - ViewAnnouncementByIdResponse, - - /** - * The ViewBotByIdResponse model constructor. - * @property {module:model/ViewBotByIdResponse} - */ - ViewBotByIdResponse, - - /** - * The ViewChannelInvitationPreferenceResponse model constructor. - * @property {module:model/ViewChannelInvitationPreferenceResponse} - */ - ViewChannelInvitationPreferenceResponse, - - /** - * The ViewCountPreferenceOfChannelByUrlResponse model constructor. - * @property {module:model/ViewCountPreferenceOfChannelByUrlResponse} - */ - ViewCountPreferenceOfChannelByUrlResponse, - - /** - * The ViewDataExportByIdResponse model constructor. - * @property {module:model/ViewDataExportByIdResponse} - */ - ViewDataExportByIdResponse, - - /** - * The ViewDefaultChannelInvitationPreferenceResponse model constructor. - * @property {module:model/ViewDefaultChannelInvitationPreferenceResponse} - */ - ViewDefaultChannelInvitationPreferenceResponse, - - /** - * The ViewGdprRequestByIdResponse model constructor. - * @property {module:model/ViewGdprRequestByIdResponse} - */ - ViewGdprRequestByIdResponse, - - /** - * The ViewNumberOfChannelsByJoinStatusResponse model constructor. - * @property {module:model/ViewNumberOfChannelsByJoinStatusResponse} + * The ViewCountPreferenceOfAChannelResponse model constructor. + * @property {module:model/ViewCountPreferenceOfAChannelResponse} */ - ViewNumberOfChannelsByJoinStatusResponse, + ViewCountPreferenceOfAChannelResponse, /** * The ViewNumberOfChannelsWithUnreadMessagesResponse model constructor. @@ -2022,12 +823,6 @@ export { */ ViewNumberOfChannelsWithUnreadMessagesResponse, - /** - * The ViewNumberOfConcurrentConnectionsResponse model constructor. - * @property {module:model/ViewNumberOfConcurrentConnectionsResponse} - */ - ViewNumberOfConcurrentConnectionsResponse, - /** * The ViewNumberOfDailyActiveUsersResponse model constructor. * @property {module:model/ViewNumberOfDailyActiveUsersResponse} @@ -2040,24 +835,6 @@ export { */ ViewNumberOfMonthlyActiveUsersResponse, - /** - * The ViewNumberOfPeakConnectionsResponse model constructor. - * @property {module:model/ViewNumberOfPeakConnectionsResponse} - */ - ViewNumberOfPeakConnectionsResponse, - - /** - * The ViewNumberOfPeakConnectionsResponsePeakConnectionsInner model constructor. - * @property {module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner} - */ - ViewNumberOfPeakConnectionsResponsePeakConnectionsInner, - - /** - * The ViewNumberOfUnreadItemsResponse model constructor. - * @property {module:model/ViewNumberOfUnreadItemsResponse} - */ - ViewNumberOfUnreadItemsResponse, - /** * The ViewNumberOfUnreadMessagesResponse model constructor. * @property {module:model/ViewNumberOfUnreadMessagesResponse} @@ -2065,28 +842,10 @@ export { ViewNumberOfUnreadMessagesResponse, /** - * The ViewPushConfigurationByIdResponse model constructor. - * @property {module:model/ViewPushConfigurationByIdResponse} - */ - ViewPushConfigurationByIdResponse, - - /** - * The ViewPushNotificationContentTemplateResponse model constructor. - * @property {module:model/ViewPushNotificationContentTemplateResponse} - */ - ViewPushNotificationContentTemplateResponse, - - /** - * The ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner model constructor. - * @property {module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner} - */ - ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner, - - /** - * The ViewPushPreferencesForChannelByUrlResponse model constructor. - * @property {module:model/ViewPushPreferencesForChannelByUrlResponse} + * The ViewPushPreferencesForAChannelResponse model constructor. + * @property {module:model/ViewPushPreferencesForAChannelResponse} */ - ViewPushPreferencesForChannelByUrlResponse, + ViewPushPreferencesForAChannelResponse, /** * The ViewPushPreferencesResponse model constructor. @@ -2094,54 +853,18 @@ export { */ ViewPushPreferencesResponse, - /** - * The ViewSecondaryApiTokenByTokenResponse model constructor. - * @property {module:model/ViewSecondaryApiTokenByTokenResponse} - */ - ViewSecondaryApiTokenByTokenResponse, - - /** - * The ViewTotalNumberOfMessagesInChannelResponse model constructor. - * @property {module:model/ViewTotalNumberOfMessagesInChannelResponse} - */ - ViewTotalNumberOfMessagesInChannelResponse, - - /** - * The ViewUserMetadataResponse model constructor. - * @property {module:model/ViewUserMetadataResponse} - */ - ViewUserMetadataResponse, - - /** - * The ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner model constructor. - * @property {module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner} - */ - ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner, - /** * The AnnouncementApi service constructor. * @property {module:api/AnnouncementApi} */ AnnouncementApi, - /** - * The ApplicationApi service constructor. - * @property {module:api/ApplicationApi} - */ - ApplicationApi, - /** * The BotApi service constructor. * @property {module:api/BotApi} */ BotApi, - /** - * The DataExportApi service constructor. - * @property {module:api/DataExportApi} - */ - DataExportApi, - /** * The GroupChannelApi service constructor. * @property {module:api/GroupChannelApi} @@ -2172,18 +895,6 @@ export { */ OpenChannelApi, - /** - * The PrivacyApi service constructor. - * @property {module:api/PrivacyApi} - */ - PrivacyApi, - - /** - * The ReportApi service constructor. - * @property {module:api/ReportApi} - */ - ReportApi, - /** * The StatisticsApi service constructor. * @property {module:api/StatisticsApi} @@ -2194,11 +905,5 @@ export { * The UserApi service constructor. * @property {module:api/UserApi} */ - UserApi, - - /** - * The WebhookApi service constructor. - * @property {module:api/WebhookApi} - */ - WebhookApi + UserApi }; diff --git a/src/model/AcceptAnInvitationRequest.js b/src/model/AcceptAnInvitationRequest.js new file mode 100644 index 0000000..9e5cb2a --- /dev/null +++ b/src/model/AcceptAnInvitationRequest.js @@ -0,0 +1,81 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AcceptAnInvitationRequest model module. + * @module model/AcceptAnInvitationRequest + * @version 2.0.0 + */ +class AcceptAnInvitationRequest { + /** + * Constructs a new AcceptAnInvitationRequest. + * @alias module:model/AcceptAnInvitationRequest + * @param userId {String} + */ + constructor(userId) { + + AcceptAnInvitationRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a AcceptAnInvitationRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AcceptAnInvitationRequest} obj Optional instance to populate. + * @return {module:model/AcceptAnInvitationRequest} The populated AcceptAnInvitationRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AcceptAnInvitationRequest(); + + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} access_code + */ +AcceptAnInvitationRequest.prototype['access_code'] = undefined; + +/** + * @member {String} user_id + */ +AcceptAnInvitationRequest.prototype['user_id'] = undefined; + + + + + + +export default AcceptAnInvitationRequest; + diff --git a/src/model/AddARegistrationOrDeviceTokenRequest.js b/src/model/AddARegistrationOrDeviceTokenRequest.js new file mode 100644 index 0000000..efe06cb --- /dev/null +++ b/src/model/AddARegistrationOrDeviceTokenRequest.js @@ -0,0 +1,87 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AddARegistrationOrDeviceTokenRequest model module. + * @module model/AddARegistrationOrDeviceTokenRequest + * @version 2.0.0 + */ +class AddARegistrationOrDeviceTokenRequest { + /** + * Constructs a new AddARegistrationOrDeviceTokenRequest. + * @alias module:model/AddARegistrationOrDeviceTokenRequest + */ + constructor() { + + AddARegistrationOrDeviceTokenRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddARegistrationOrDeviceTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddARegistrationOrDeviceTokenRequest} obj Optional instance to populate. + * @return {module:model/AddARegistrationOrDeviceTokenRequest} The populated AddARegistrationOrDeviceTokenRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddARegistrationOrDeviceTokenRequest(); + + if (data.hasOwnProperty('apns_device_token')) { + obj['apns_device_token'] = ApiClient.convertToType(data['apns_device_token'], 'String'); + } + if (data.hasOwnProperty('gcm_reg_token')) { + obj['gcm_reg_token'] = ApiClient.convertToType(data['gcm_reg_token'], 'String'); + } + if (data.hasOwnProperty('huawei_device_token')) { + obj['huawei_device_token'] = ApiClient.convertToType(data['huawei_device_token'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} apns_device_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['apns_device_token'] = undefined; + +/** + * @member {String} gcm_reg_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['gcm_reg_token'] = undefined; + +/** + * @member {String} huawei_device_token + */ +AddARegistrationOrDeviceTokenRequest.prototype['huawei_device_token'] = undefined; + + + + + + +export default AddARegistrationOrDeviceTokenRequest; + diff --git a/src/model/AddARegistrationOrDeviceTokenResponse.js b/src/model/AddARegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..68678c9 --- /dev/null +++ b/src/model/AddARegistrationOrDeviceTokenResponse.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; + +/** + * The AddARegistrationOrDeviceTokenResponse model module. + * @module model/AddARegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +class AddARegistrationOrDeviceTokenResponse { + /** + * Constructs a new AddARegistrationOrDeviceTokenResponse. + * @alias module:model/AddARegistrationOrDeviceTokenResponse + */ + constructor() { + + AddARegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddARegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddARegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/AddARegistrationOrDeviceTokenResponse} The populated AddARegistrationOrDeviceTokenResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddARegistrationOrDeviceTokenResponse(); + + if (data.hasOwnProperty('token')) { + obj['token'] = ApiClient.convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = SendbirdBasicUserInfo.constructFromObject(data['user']); + } + } + return obj; + } + + +} + +/** + * @member {String} token + */ +AddARegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {String} type + */ +AddARegistrationOrDeviceTokenResponse.prototype['type'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +AddARegistrationOrDeviceTokenResponse.prototype['user'] = undefined; + + + + + + +export default AddARegistrationOrDeviceTokenResponse; + diff --git a/src/model/AddApnsPushConfigurationData.js b/src/model/AddApnsPushConfigurationData.js deleted file mode 100644 index 6ff796f..0000000 --- a/src/model/AddApnsPushConfigurationData.js +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddApnsPushConfigurationData model module. - * @module model/AddApnsPushConfigurationData - * @version 0.0.16 - */ -class AddApnsPushConfigurationData { - /** - * Constructs a new AddApnsPushConfigurationData. - * @alias module:model/AddApnsPushConfigurationData - * @param apnsCert {File} In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. - * @param apnsCertEnvType {String} Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. There is no need to specify this property when the apns_cert above is specified. - * @param apnsCertPassword {String} Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @param hasUnreadCountBadge {Boolean} Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @param contentAvailable {Boolean} Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @param mutableContent {Boolean} Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @param apnsType {String} (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - */ - constructor(apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - - AddApnsPushConfigurationData.initialize(this, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - obj['apns_cert'] = apnsCert; - obj['apns_cert_env_type'] = apnsCertEnvType; - obj['apns_cert_password'] = apnsCertPassword; - obj['has_unread_count_badge'] = hasUnreadCountBadge; - obj['content_available'] = contentAvailable; - obj['mutable_content'] = mutableContent; - obj['push_sound'] = pushSound; - obj['apns_type'] = apnsType; - } - - /** - * Constructs a AddApnsPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationData} The populated AddApnsPushConfigurationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationData(); - - if (data.hasOwnProperty('apns_cert')) { - obj['apns_cert'] = ApiClient.convertToType(data['apns_cert'], File); - } - if (data.hasOwnProperty('apns_cert_env_type')) { - obj['apns_cert_env_type'] = ApiClient.convertToType(data['apns_cert_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_cert_password')) { - obj['apns_cert_password'] = ApiClient.convertToType(data['apns_cert_password'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = ApiClient.convertToType(data['has_unread_count_badge'], 'Boolean'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = ApiClient.convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = ApiClient.convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('apns_type')) { - obj['apns_type'] = ApiClient.convertToType(data['apns_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. - * @member {File} apns_cert - */ -AddApnsPushConfigurationData.prototype['apns_cert'] = undefined; - -/** - * Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. There is no need to specify this property when the apns_cert above is specified. - * @member {String} apns_cert_env_type - */ -AddApnsPushConfigurationData.prototype['apns_cert_env_type'] = undefined; - -/** - * Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @member {String} apns_cert_password - */ -AddApnsPushConfigurationData.prototype['apns_cert_password'] = undefined; - -/** - * Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @member {Boolean} has_unread_count_badge - */ -AddApnsPushConfigurationData.prototype['has_unread_count_badge'] = undefined; - -/** - * Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @member {Boolean} content_available - */ -AddApnsPushConfigurationData.prototype['content_available'] = undefined; - -/** - * Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @member {Boolean} mutable_content - */ -AddApnsPushConfigurationData.prototype['mutable_content'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @member {String} push_sound - */ -AddApnsPushConfigurationData.prototype['push_sound'] = undefined; - -/** - * (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_type - */ -AddApnsPushConfigurationData.prototype['apns_type'] = undefined; - - - - - - -export default AddApnsPushConfigurationData; - diff --git a/src/model/AddApnsPushConfigurationResponse.js b/src/model/AddApnsPushConfigurationResponse.js deleted file mode 100644 index 0ec3ede..0000000 --- a/src/model/AddApnsPushConfigurationResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddApnsPushConfigurationResponsePushConfigurationsInner from './AddApnsPushConfigurationResponsePushConfigurationsInner'; - -/** - * The AddApnsPushConfigurationResponse model module. - * @module model/AddApnsPushConfigurationResponse - * @version 0.0.16 - */ -class AddApnsPushConfigurationResponse { - /** - * Constructs a new AddApnsPushConfigurationResponse. - * @alias module:model/AddApnsPushConfigurationResponse - */ - constructor() { - - AddApnsPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddApnsPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationResponse} The populated AddApnsPushConfigurationResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], [AddApnsPushConfigurationResponsePushConfigurationsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -AddApnsPushConfigurationResponse.prototype['push_configurations'] = undefined; - - - - - - -export default AddApnsPushConfigurationResponse; - diff --git a/src/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js b/src/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index aa3337f..0000000 --- a/src/model/AddApnsPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddApnsPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddApnsPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -class AddApnsPushConfigurationResponsePushConfigurationsInner { - /** - * Constructs a new AddApnsPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddApnsPushConfigurationResponsePushConfigurationsInner - */ - constructor() { - - AddApnsPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddApnsPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddApnsPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddApnsPushConfigurationResponsePushConfigurationsInner} The populated AddApnsPushConfigurationResponsePushConfigurationsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddApnsPushConfigurationResponsePushConfigurationsInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = ApiClient.convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('apns_cer_env_type')) { - obj['apns_cer_env_type'] = ApiClient.convertToType(data['apns_cer_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_expiration')) { - obj['apns_expiration'] = ApiClient.convertToType(data['apns_expiration'], 'Number'); - } - if (data.hasOwnProperty('apns_name')) { - obj['apns_name'] = ApiClient.convertToType(data['apns_name'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = ApiClient.convertToType(data['has_unread_count_badge'], 'Number'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = ApiClient.convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = ApiClient.convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} id - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {Number} created_at - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['created_at'] = undefined; - -/** - * @member {String} apns_cer_env_type - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_cer_env_type'] = undefined; - -/** - * @member {Number} apns_expiration - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_expiration'] = undefined; - -/** - * @member {String} apns_name - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['apns_name'] = undefined; - -/** - * @member {Number} has_unread_count_badge - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['has_unread_count_badge'] = undefined; - -/** - * @member {Boolean} content_available - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['content_available'] = undefined; - -/** - * @member {Boolean} mutable_content - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['mutable_content'] = undefined; - -/** - * @member {String} push_sound - */ -AddApnsPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; - - - - - - -export default AddApnsPushConfigurationResponsePushConfigurationsInner; - diff --git a/src/model/AddEmojiCategoriesResponse.js b/src/model/AddEmojiCategoriesResponse.js deleted file mode 100644 index 5a18a93..0000000 --- a/src/model/AddEmojiCategoriesResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddEmojiCategoriesResponseEmojiCategoriesInner from './AddEmojiCategoriesResponseEmojiCategoriesInner'; - -/** - * The AddEmojiCategoriesResponse model module. - * @module model/AddEmojiCategoriesResponse - * @version 0.0.16 - */ -class AddEmojiCategoriesResponse { - /** - * Constructs a new AddEmojiCategoriesResponse. - * @alias module:model/AddEmojiCategoriesResponse - */ - constructor() { - - AddEmojiCategoriesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddEmojiCategoriesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojiCategoriesResponse} obj Optional instance to populate. - * @return {module:model/AddEmojiCategoriesResponse} The populated AddEmojiCategoriesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojiCategoriesResponse(); - - if (data.hasOwnProperty('emoji_categories')) { - obj['emoji_categories'] = ApiClient.convertToType(data['emoji_categories'], [AddEmojiCategoriesResponseEmojiCategoriesInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} emoji_categories - */ -AddEmojiCategoriesResponse.prototype['emoji_categories'] = undefined; - - - - - - -export default AddEmojiCategoriesResponse; - diff --git a/src/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js b/src/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js deleted file mode 100644 index 0422879..0000000 --- a/src/model/AddEmojiCategoriesResponseEmojiCategoriesInner.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddEmojiCategoriesResponseEmojiCategoriesInner model module. - * @module model/AddEmojiCategoriesResponseEmojiCategoriesInner - * @version 0.0.16 - */ -class AddEmojiCategoriesResponseEmojiCategoriesInner { - /** - * Constructs a new AddEmojiCategoriesResponseEmojiCategoriesInner. - * @alias module:model/AddEmojiCategoriesResponseEmojiCategoriesInner - */ - constructor() { - - AddEmojiCategoriesResponseEmojiCategoriesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddEmojiCategoriesResponseEmojiCategoriesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojiCategoriesResponseEmojiCategoriesInner} obj Optional instance to populate. - * @return {module:model/AddEmojiCategoriesResponseEmojiCategoriesInner} The populated AddEmojiCategoriesResponseEmojiCategoriesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojiCategoriesResponseEmojiCategoriesInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['id'] = undefined; - -/** - * @member {String} name - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['name'] = undefined; - -/** - * @member {String} url - */ -AddEmojiCategoriesResponseEmojiCategoriesInner.prototype['url'] = undefined; - - - - - - -export default AddEmojiCategoriesResponseEmojiCategoriesInner; - diff --git a/src/model/AddEmojisData.js b/src/model/AddEmojisData.js deleted file mode 100644 index 9645598..0000000 --- a/src/model/AddEmojisData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddEmojisData model module. - * @module model/AddEmojisData - * @version 0.0.16 - */ -class AddEmojisData { - /** - * Constructs a new AddEmojisData. - * @alias module:model/AddEmojisData - * @param emojiCategoryId {Number} Specifies the unique ID of the emoji category that a list of new emojis belong to. - * @param emojis {Array.} Specifies a list of one or more new emojis to register. - */ - constructor(emojiCategoryId, emojis) { - - AddEmojisData.initialize(this, emojiCategoryId, emojis); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, emojiCategoryId, emojis) { - obj['emoji_category_id'] = emojiCategoryId; - obj['emojis'] = emojis; - } - - /** - * Constructs a AddEmojisData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojisData} obj Optional instance to populate. - * @return {module:model/AddEmojisData} The populated AddEmojisData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojisData(); - - if (data.hasOwnProperty('emoji_category_id')) { - obj['emoji_category_id'] = ApiClient.convertToType(data['emoji_category_id'], 'Number'); - } - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = ApiClient.convertToType(data['emojis'], [Object]); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the emoji category that a list of new emojis belong to. - * @member {Number} emoji_category_id - */ -AddEmojisData.prototype['emoji_category_id'] = undefined; - -/** - * Specifies a list of one or more new emojis to register. - * @member {Array.} emojis - */ -AddEmojisData.prototype['emojis'] = undefined; - - - - - - -export default AddEmojisData; - diff --git a/src/model/AddEmojisResponse.js b/src/model/AddEmojisResponse.js deleted file mode 100644 index d3cc1ed..0000000 --- a/src/model/AddEmojisResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner from './ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner'; - -/** - * The AddEmojisResponse model module. - * @module model/AddEmojisResponse - * @version 0.0.16 - */ -class AddEmojisResponse { - /** - * Constructs a new AddEmojisResponse. - * @alias module:model/AddEmojisResponse - */ - constructor() { - - AddEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddEmojisResponse} obj Optional instance to populate. - * @return {module:model/AddEmojisResponse} The populated AddEmojisResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddEmojisResponse(); - - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = ApiClient.convertToType(data['emojis'], [ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} emojis - */ -AddEmojisResponse.prototype['emojis'] = undefined; - - - - - - -export default AddEmojisResponse; - diff --git a/src/model/AddExtraDataToAMessageRequest.js b/src/model/AddExtraDataToAMessageRequest.js new file mode 100644 index 0000000..e561f8c --- /dev/null +++ b/src/model/AddExtraDataToAMessageRequest.js @@ -0,0 +1,74 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The AddExtraDataToAMessageRequest model module. + * @module model/AddExtraDataToAMessageRequest + * @version 2.0.0 + */ +class AddExtraDataToAMessageRequest { + /** + * Constructs a new AddExtraDataToAMessageRequest. + * @alias module:model/AddExtraDataToAMessageRequest + * @param sortedMetaarray {Array.} + */ + constructor(sortedMetaarray) { + + AddExtraDataToAMessageRequest.initialize(this, sortedMetaarray); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, sortedMetaarray) { + obj['sorted_metaarray'] = sortedMetaarray; + } + + /** + * Constructs a AddExtraDataToAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddExtraDataToAMessageRequest} obj Optional instance to populate. + * @return {module:model/AddExtraDataToAMessageRequest} The populated AddExtraDataToAMessageRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddExtraDataToAMessageRequest(); + + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} sorted_metaarray + */ +AddExtraDataToAMessageRequest.prototype['sorted_metaarray'] = undefined; + + + + + + +export default AddExtraDataToAMessageRequest; + diff --git a/src/model/AddExtraDataToAMessageResponse.js b/src/model/AddExtraDataToAMessageResponse.js new file mode 100644 index 0000000..34bb617 --- /dev/null +++ b/src/model/AddExtraDataToAMessageResponse.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The AddExtraDataToAMessageResponse model module. + * @module model/AddExtraDataToAMessageResponse + * @version 2.0.0 + */ +class AddExtraDataToAMessageResponse { + /** + * Constructs a new AddExtraDataToAMessageResponse. + * @alias module:model/AddExtraDataToAMessageResponse + */ + constructor() { + + AddExtraDataToAMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AddExtraDataToAMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AddExtraDataToAMessageResponse} obj Optional instance to populate. + * @return {module:model/AddExtraDataToAMessageResponse} The populated AddExtraDataToAMessageResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AddExtraDataToAMessageResponse(); + + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} sorted_metaarray + */ +AddExtraDataToAMessageResponse.prototype['sorted_metaarray'] = undefined; + + + + + + +export default AddExtraDataToAMessageResponse; + diff --git a/src/model/AddExtraDataToMessageData.js b/src/model/AddExtraDataToMessageData.js deleted file mode 100644 index 9946636..0000000 --- a/src/model/AddExtraDataToMessageData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddExtraDataToMessageData model module. - * @module model/AddExtraDataToMessageData - * @version 0.0.16 - */ -class AddExtraDataToMessageData { - /** - * Constructs a new AddExtraDataToMessageData. - * @alias module:model/AddExtraDataToMessageData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to add key-values items for additional information. - * @param sortedMetaarray {String} Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - */ - constructor(channelType, channelUrl, messageId, sortedMetaarray) { - - AddExtraDataToMessageData.initialize(this, channelType, channelUrl, messageId, sortedMetaarray); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelType, channelUrl, messageId, sortedMetaarray) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['sorted_metaarray'] = sortedMetaarray; - } - - /** - * Constructs a AddExtraDataToMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddExtraDataToMessageData} obj Optional instance to populate. - * @return {module:model/AddExtraDataToMessageData} The populated AddExtraDataToMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddExtraDataToMessageData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -AddExtraDataToMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -AddExtraDataToMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to add key-values items for additional information. - * @member {Number} message_id - */ -AddExtraDataToMessageData.prototype['message_id'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -AddExtraDataToMessageData.prototype['sorted_metaarray'] = undefined; - - - - - - -export default AddExtraDataToMessageData; - diff --git a/src/model/AddExtraDataToMessageResponse.js b/src/model/AddExtraDataToMessageResponse.js deleted file mode 100644 index c731d4c..0000000 --- a/src/model/AddExtraDataToMessageResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListMessagesResponseMessagesInnerSortedMetaarrayInner from './ListMessagesResponseMessagesInnerSortedMetaarrayInner'; - -/** - * The AddExtraDataToMessageResponse model module. - * @module model/AddExtraDataToMessageResponse - * @version 0.0.16 - */ -class AddExtraDataToMessageResponse { - /** - * Constructs a new AddExtraDataToMessageResponse. - * @alias module:model/AddExtraDataToMessageResponse - */ - constructor() { - - AddExtraDataToMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddExtraDataToMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddExtraDataToMessageResponse} obj Optional instance to populate. - * @return {module:model/AddExtraDataToMessageResponse} The populated AddExtraDataToMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddExtraDataToMessageResponse(); - - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [ListMessagesResponseMessagesInnerSortedMetaarrayInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} sorted_metaarray - */ -AddExtraDataToMessageResponse.prototype['sorted_metaarray'] = undefined; - - - - - - -export default AddExtraDataToMessageResponse; - diff --git a/src/model/AddFcmPushConfigurationData.js b/src/model/AddFcmPushConfigurationData.js deleted file mode 100644 index 7f36a3f..0000000 --- a/src/model/AddFcmPushConfigurationData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddFcmPushConfigurationData model module. - * @module model/AddFcmPushConfigurationData - * @version 0.0.16 - */ -class AddFcmPushConfigurationData { - /** - * Constructs a new AddFcmPushConfigurationData. - * @alias module:model/AddFcmPushConfigurationData - * @param apiKey {String} Specifies the FCM server key to register. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - constructor(apiKey, pushSound) { - - AddFcmPushConfigurationData.initialize(this, apiKey, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, apiKey, pushSound) { - obj['api_key'] = apiKey; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a AddFcmPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationData} The populated AddFcmPushConfigurationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationData(); - - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiClient.convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the FCM server key to register. - * @member {String} api_key - */ -AddFcmPushConfigurationData.prototype['api_key'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -AddFcmPushConfigurationData.prototype['push_sound'] = undefined; - - - - - - -export default AddFcmPushConfigurationData; - diff --git a/src/model/AddFcmPushConfigurationResponse.js b/src/model/AddFcmPushConfigurationResponse.js deleted file mode 100644 index d7e8747..0000000 --- a/src/model/AddFcmPushConfigurationResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddFcmPushConfigurationResponsePushConfigurationsInner from './AddFcmPushConfigurationResponsePushConfigurationsInner'; - -/** - * The AddFcmPushConfigurationResponse model module. - * @module model/AddFcmPushConfigurationResponse - * @version 0.0.16 - */ -class AddFcmPushConfigurationResponse { - /** - * Constructs a new AddFcmPushConfigurationResponse. - * @alias module:model/AddFcmPushConfigurationResponse - */ - constructor() { - - AddFcmPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFcmPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationResponse} The populated AddFcmPushConfigurationResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], [AddFcmPushConfigurationResponsePushConfigurationsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -AddFcmPushConfigurationResponse.prototype['push_configurations'] = undefined; - - - - - - -export default AddFcmPushConfigurationResponse; - diff --git a/src/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js b/src/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index f4edf99..0000000 --- a/src/model/AddFcmPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddFcmPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddFcmPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -class AddFcmPushConfigurationResponsePushConfigurationsInner { - /** - * Constructs a new AddFcmPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddFcmPushConfigurationResponsePushConfigurationsInner - */ - constructor() { - - AddFcmPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddFcmPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddFcmPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddFcmPushConfigurationResponsePushConfigurationsInner} The populated AddFcmPushConfigurationResponsePushConfigurationsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddFcmPushConfigurationResponsePushConfigurationsInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = ApiClient.convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiClient.convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} id - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {String} api_key - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['api_key'] = undefined; - -/** - * @member {String} push_sound - */ -AddFcmPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; - - - - - - -export default AddFcmPushConfigurationResponsePushConfigurationsInner; - diff --git a/src/model/AddHmsPushConfigurationData.js b/src/model/AddHmsPushConfigurationData.js deleted file mode 100644 index eb36a97..0000000 --- a/src/model/AddHmsPushConfigurationData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddHmsPushConfigurationData model module. - * @module model/AddHmsPushConfigurationData - * @version 0.0.16 - */ -class AddHmsPushConfigurationData { - /** - * Constructs a new AddHmsPushConfigurationData. - * @alias module:model/AddHmsPushConfigurationData - * @param huaweiAppId {String} Specifies the unique ID of application registered to the HMS server. - * @param huaweiAppSecret {String} Specifies the secret key allocated to the application. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - constructor(huaweiAppId, huaweiAppSecret, pushSound) { - - AddHmsPushConfigurationData.initialize(this, huaweiAppId, huaweiAppSecret, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, huaweiAppId, huaweiAppSecret, pushSound) { - obj['huawei_app_id'] = huaweiAppId; - obj['huawei_app_secret'] = huaweiAppSecret; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a AddHmsPushConfigurationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationData} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationData} The populated AddHmsPushConfigurationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationData(); - - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = ApiClient.convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = ApiClient.convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of application registered to the HMS server. - * @member {String} huawei_app_id - */ -AddHmsPushConfigurationData.prototype['huawei_app_id'] = undefined; - -/** - * Specifies the secret key allocated to the application. - * @member {String} huawei_app_secret - */ -AddHmsPushConfigurationData.prototype['huawei_app_secret'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -AddHmsPushConfigurationData.prototype['push_sound'] = undefined; - - - - - - -export default AddHmsPushConfigurationData; - diff --git a/src/model/AddHmsPushConfigurationResponse.js b/src/model/AddHmsPushConfigurationResponse.js deleted file mode 100644 index 20d0f1a..0000000 --- a/src/model/AddHmsPushConfigurationResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import AddHmsPushConfigurationResponsePushConfigurationsInner from './AddHmsPushConfigurationResponsePushConfigurationsInner'; - -/** - * The AddHmsPushConfigurationResponse model module. - * @module model/AddHmsPushConfigurationResponse - * @version 0.0.16 - */ -class AddHmsPushConfigurationResponse { - /** - * Constructs a new AddHmsPushConfigurationResponse. - * @alias module:model/AddHmsPushConfigurationResponse - */ - constructor() { - - AddHmsPushConfigurationResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddHmsPushConfigurationResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationResponse} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationResponse} The populated AddHmsPushConfigurationResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], [AddHmsPushConfigurationResponsePushConfigurationsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -AddHmsPushConfigurationResponse.prototype['push_configurations'] = undefined; - - - - - - -export default AddHmsPushConfigurationResponse; - diff --git a/src/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js b/src/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js deleted file mode 100644 index 36420f6..0000000 --- a/src/model/AddHmsPushConfigurationResponsePushConfigurationsInner.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddHmsPushConfigurationResponsePushConfigurationsInner model module. - * @module model/AddHmsPushConfigurationResponsePushConfigurationsInner - * @version 0.0.16 - */ -class AddHmsPushConfigurationResponsePushConfigurationsInner { - /** - * Constructs a new AddHmsPushConfigurationResponsePushConfigurationsInner. - * @alias module:model/AddHmsPushConfigurationResponsePushConfigurationsInner - */ - constructor() { - - AddHmsPushConfigurationResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddHmsPushConfigurationResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddHmsPushConfigurationResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/AddHmsPushConfigurationResponsePushConfigurationsInner} The populated AddHmsPushConfigurationResponsePushConfigurationsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddHmsPushConfigurationResponsePushConfigurationsInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = ApiClient.convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = ApiClient.convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = ApiClient.convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} id - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {String} huawei_app_id - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['huawei_app_id'] = undefined; - -/** - * @member {String} huawei_app_secret - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['huawei_app_secret'] = undefined; - -/** - * @member {String} push_sound - */ -AddHmsPushConfigurationResponsePushConfigurationsInner.prototype['push_sound'] = undefined; - - - - - - -export default AddHmsPushConfigurationResponsePushConfigurationsInner; - diff --git a/src/model/AddIpToWhitelistData.js b/src/model/AddIpToWhitelistData.js deleted file mode 100644 index 91940aa..0000000 --- a/src/model/AddIpToWhitelistData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddIpToWhitelistData model module. - * @module model/AddIpToWhitelistData - * @version 0.0.16 - */ -class AddIpToWhitelistData { - /** - * Constructs a new AddIpToWhitelistData. - * @alias module:model/AddIpToWhitelistData - * @param ipWhitelistAddresses {Array.} Specifies an array of one or more IP ranges and addresses to add to a whitelist. - */ - constructor(ipWhitelistAddresses) { - - AddIpToWhitelistData.initialize(this, ipWhitelistAddresses); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, ipWhitelistAddresses) { - obj['ip_whitelist_addresses'] = ipWhitelistAddresses; - } - - /** - * Constructs a AddIpToWhitelistData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddIpToWhitelistData} obj Optional instance to populate. - * @return {module:model/AddIpToWhitelistData} The populated AddIpToWhitelistData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddIpToWhitelistData(); - - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = ApiClient.convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more IP ranges and addresses to add to a whitelist. - * @member {Array.} ip_whitelist_addresses - */ -AddIpToWhitelistData.prototype['ip_whitelist_addresses'] = undefined; - - - - - - -export default AddIpToWhitelistData; - diff --git a/src/model/AddIpToWhitelistResponse.js b/src/model/AddIpToWhitelistResponse.js deleted file mode 100644 index 37c9508..0000000 --- a/src/model/AddIpToWhitelistResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddIpToWhitelistResponse model module. - * @module model/AddIpToWhitelistResponse - * @version 0.0.16 - */ -class AddIpToWhitelistResponse { - /** - * Constructs a new AddIpToWhitelistResponse. - * @alias module:model/AddIpToWhitelistResponse - */ - constructor() { - - AddIpToWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddIpToWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddIpToWhitelistResponse} obj Optional instance to populate. - * @return {module:model/AddIpToWhitelistResponse} The populated AddIpToWhitelistResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddIpToWhitelistResponse(); - - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = ApiClient.convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} ip_whitelist_addresses - */ -AddIpToWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; - - - - - - -export default AddIpToWhitelistResponse; - diff --git a/src/model/AddReactionToAMessageData.js b/src/model/AddReactionToAMessageData.js deleted file mode 100644 index 901ef25..0000000 --- a/src/model/AddReactionToAMessageData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddReactionToAMessageData model module. - * @module model/AddReactionToAMessageData - * @version 0.0.16 - */ -class AddReactionToAMessageData { - /** - * Constructs a new AddReactionToAMessageData. - * @alias module:model/AddReactionToAMessageData - * @param channelType {String} Specifies the type of the channel. Currently, a value of group_channels is only available for the parameter. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to add a reaction to. - * @param userId {String} Specifies the ID of the user who reacts to the message. - * @param reaction {String} Specifies the unique key of the reaction to be added to the message. The length is limited to 192 charaters. - */ - constructor(channelType, channelUrl, messageId, userId, reaction) { - - AddReactionToAMessageData.initialize(this, channelType, channelUrl, messageId, userId, reaction); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelType, channelUrl, messageId, userId, reaction) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['user_id'] = userId; - obj['reaction'] = reaction; - } - - /** - * Constructs a AddReactionToAMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddReactionToAMessageData} obj Optional instance to populate. - * @return {module:model/AddReactionToAMessageData} The populated AddReactionToAMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddReactionToAMessageData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = ApiClient.convertToType(data['reaction'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Currently, a value of group_channels is only available for the parameter. - * @member {String} channel_type - */ -AddReactionToAMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -AddReactionToAMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to add a reaction to. - * @member {Number} message_id - */ -AddReactionToAMessageData.prototype['message_id'] = undefined; - -/** - * Specifies the ID of the user who reacts to the message. - * @member {String} user_id - */ -AddReactionToAMessageData.prototype['user_id'] = undefined; - -/** - * Specifies the unique key of the reaction to be added to the message. The length is limited to 192 charaters. - * @member {String} reaction - */ -AddReactionToAMessageData.prototype['reaction'] = undefined; - - - - - - -export default AddReactionToAMessageData; - diff --git a/src/model/AddReactionToAMessageResponse.js b/src/model/AddReactionToAMessageResponse.js deleted file mode 100644 index bd93b86..0000000 --- a/src/model/AddReactionToAMessageResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddReactionToAMessageResponse model module. - * @module model/AddReactionToAMessageResponse - * @version 0.0.16 - */ -class AddReactionToAMessageResponse { - /** - * Constructs a new AddReactionToAMessageResponse. - * @alias module:model/AddReactionToAMessageResponse - */ - constructor() { - - AddReactionToAMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddReactionToAMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddReactionToAMessageResponse} obj Optional instance to populate. - * @return {module:model/AddReactionToAMessageResponse} The populated AddReactionToAMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddReactionToAMessageResponse(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('operation')) { - obj['operation'] = ApiClient.convertToType(data['operation'], 'String'); - } - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - } - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = ApiClient.convertToType(data['reaction'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('msg_id')) { - obj['msg_id'] = ApiClient.convertToType(data['msg_id'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -AddReactionToAMessageResponse.prototype['user_id'] = undefined; - -/** - * @member {String} operation - */ -AddReactionToAMessageResponse.prototype['operation'] = undefined; - -/** - * @member {Boolean} success - */ -AddReactionToAMessageResponse.prototype['success'] = undefined; - -/** - * @member {String} reaction - */ -AddReactionToAMessageResponse.prototype['reaction'] = undefined; - -/** - * @member {Number} updated_at - */ -AddReactionToAMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {Number} msg_id - */ -AddReactionToAMessageResponse.prototype['msg_id'] = undefined; - - - - - - -export default AddReactionToAMessageResponse; - diff --git a/src/model/AddRegistrationOrDeviceTokenData.js b/src/model/AddRegistrationOrDeviceTokenData.js deleted file mode 100644 index e09c064..0000000 --- a/src/model/AddRegistrationOrDeviceTokenData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AddRegistrationOrDeviceTokenData model module. - * @module model/AddRegistrationOrDeviceTokenData - * @version 0.0.16 - */ -class AddRegistrationOrDeviceTokenData { - /** - * Constructs a new AddRegistrationOrDeviceTokenData. - * @alias module:model/AddRegistrationOrDeviceTokenData - * @param gcmRegToken {String} Specifies a registration token for Firebase Cloud Messaging (formerly [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)). - * @param huaweiDeviceToken {String} Specifies a device token for Huawei Mobile Services. - * @param apnsDeviceToken {String} Specifies a device token for Apple Push Notification Service. - */ - constructor(gcmRegToken, huaweiDeviceToken, apnsDeviceToken) { - - AddRegistrationOrDeviceTokenData.initialize(this, gcmRegToken, huaweiDeviceToken, apnsDeviceToken); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, gcmRegToken, huaweiDeviceToken, apnsDeviceToken) { - obj['gcm_reg_token'] = gcmRegToken; - obj['huawei_device_token'] = huaweiDeviceToken; - obj['apns_device_token'] = apnsDeviceToken; - } - - /** - * Constructs a AddRegistrationOrDeviceTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRegistrationOrDeviceTokenData} obj Optional instance to populate. - * @return {module:model/AddRegistrationOrDeviceTokenData} The populated AddRegistrationOrDeviceTokenData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRegistrationOrDeviceTokenData(); - - if (data.hasOwnProperty('gcm_reg_token')) { - obj['gcm_reg_token'] = ApiClient.convertToType(data['gcm_reg_token'], 'String'); - } - if (data.hasOwnProperty('huawei_device_token')) { - obj['huawei_device_token'] = ApiClient.convertToType(data['huawei_device_token'], 'String'); - } - if (data.hasOwnProperty('apns_device_token')) { - obj['apns_device_token'] = ApiClient.convertToType(data['apns_device_token'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies a registration token for Firebase Cloud Messaging (formerly [Google Cloud Messaging](https://developers.google.com/cloud-messaging/)). - * @member {String} gcm_reg_token - */ -AddRegistrationOrDeviceTokenData.prototype['gcm_reg_token'] = undefined; - -/** - * Specifies a device token for Huawei Mobile Services. - * @member {String} huawei_device_token - */ -AddRegistrationOrDeviceTokenData.prototype['huawei_device_token'] = undefined; - -/** - * Specifies a device token for Apple Push Notification Service. - * @member {String} apns_device_token - */ -AddRegistrationOrDeviceTokenData.prototype['apns_device_token'] = undefined; - - - - - - -export default AddRegistrationOrDeviceTokenData; - diff --git a/src/model/AddRegistrationOrDeviceTokenResponse.js b/src/model/AddRegistrationOrDeviceTokenResponse.js deleted file mode 100644 index 065f158..0000000 --- a/src/model/AddRegistrationOrDeviceTokenResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The AddRegistrationOrDeviceTokenResponse model module. - * @module model/AddRegistrationOrDeviceTokenResponse - * @version 0.0.16 - */ -class AddRegistrationOrDeviceTokenResponse { - /** - * Constructs a new AddRegistrationOrDeviceTokenResponse. - * @alias module:model/AddRegistrationOrDeviceTokenResponse - */ - constructor() { - - AddRegistrationOrDeviceTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a AddRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/AddRegistrationOrDeviceTokenResponse} obj Optional instance to populate. - * @return {module:model/AddRegistrationOrDeviceTokenResponse} The populated AddRegistrationOrDeviceTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AddRegistrationOrDeviceTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - } - return obj; - } - - -} - -/** - * @member {String} token - */ -AddRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; - -/** - * @member {String} type - */ -AddRegistrationOrDeviceTokenResponse.prototype['type'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -AddRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; - - - - - - -export default AddRegistrationOrDeviceTokenResponse; - diff --git a/src/model/BanFromChannelsWithCustomChannelTypesData.js b/src/model/BanFromChannelsWithCustomChannelTypesData.js deleted file mode 100644 index 7f10b47..0000000 --- a/src/model/BanFromChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BanFromChannelsWithCustomChannelTypesData model module. - * @module model/BanFromChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -class BanFromChannelsWithCustomChannelTypesData { - /** - * Constructs a new BanFromChannelsWithCustomChannelTypesData. - * @alias module:model/BanFromChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to ban the user from channels with the channel types. The user is permanently banned unless unbanned (10 years, technically). - */ - constructor(channelCustomTypes) { - - BanFromChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a BanFromChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanFromChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/BanFromChannelsWithCustomChannelTypesData} The populated BanFromChannelsWithCustomChannelTypesData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BanFromChannelsWithCustomChannelTypesData(); - - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = ApiClient.convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more custom channel types, in order to ban the user from channels with the channel types. The user is permanently banned unless unbanned (10 years, technically). - * @member {Array.} channel_custom_types - */ -BanFromChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; - - - - - - -export default BanFromChannelsWithCustomChannelTypesData; - diff --git a/src/model/BanUsersInChannelsWithCustomChannelTypeData.js b/src/model/BanUsersInChannelsWithCustomChannelTypeData.js deleted file mode 100644 index 1a66e45..0000000 --- a/src/model/BanUsersInChannelsWithCustomChannelTypeData.js +++ /dev/null @@ -1,82 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import BanUsersInChannelsWithCustomChannelTypeDataBannedListInner from './BanUsersInChannelsWithCustomChannelTypeDataBannedListInner'; - -/** - * The BanUsersInChannelsWithCustomChannelTypeData model module. - * @module model/BanUsersInChannelsWithCustomChannelTypeData - * @version 0.0.16 - */ -class BanUsersInChannelsWithCustomChannelTypeData { - /** - * Constructs a new BanUsersInChannelsWithCustomChannelTypeData. - * @alias module:model/BanUsersInChannelsWithCustomChannelTypeData - * @param bannedList {Array.} - */ - constructor(bannedList) { - - BanUsersInChannelsWithCustomChannelTypeData.initialize(this, bannedList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, bannedList) { - obj['banned_list'] = bannedList; - } - - /** - * Constructs a BanUsersInChannelsWithCustomChannelTypeData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeData} obj Optional instance to populate. - * @return {module:model/BanUsersInChannelsWithCustomChannelTypeData} The populated BanUsersInChannelsWithCustomChannelTypeData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BanUsersInChannelsWithCustomChannelTypeData(); - - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = ApiClient.convertToType(data['banned_list'], [BanUsersInChannelsWithCustomChannelTypeDataBannedListInner]); - } - if (data.hasOwnProperty('on_demand_upsert')) { - obj['on_demand_upsert'] = ApiClient.convertToType(data['on_demand_upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} banned_list - */ -BanUsersInChannelsWithCustomChannelTypeData.prototype['banned_list'] = undefined; - -/** - * @member {Boolean} on_demand_upsert - */ -BanUsersInChannelsWithCustomChannelTypeData.prototype['on_demand_upsert'] = undefined; - - - - - - -export default BanUsersInChannelsWithCustomChannelTypeData; - diff --git a/src/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js b/src/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js deleted file mode 100644 index e57c988..0000000 --- a/src/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BanUsersInChannelsWithCustomChannelTypeDataBannedListInner model module. - * @module model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - * @version 0.0.16 - */ -class BanUsersInChannelsWithCustomChannelTypeDataBannedListInner { - /** - * Constructs a new BanUsersInChannelsWithCustomChannelTypeDataBannedListInner. - * @alias module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - * @param userId {String} - */ - constructor(userId) { - - BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.initialize(this, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId) { - obj['user_id'] = userId; - } - - /** - * Constructs a BanUsersInChannelsWithCustomChannelTypeDataBannedListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner} obj Optional instance to populate. - * @return {module:model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner} The populated BanUsersInChannelsWithCustomChannelTypeDataBannedListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['user_id'] = undefined; - -/** - * @member {Number} seconds - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['seconds'] = undefined; - -/** - * @member {String} description - */ -BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.prototype['description'] = undefined; - - - - - - -export default BanUsersInChannelsWithCustomChannelTypeDataBannedListInner; - diff --git a/src/model/Blob.js b/src/model/Blob.js deleted file mode 100644 index f9d5ae0..0000000 --- a/src/model/Blob.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Blob model module. - * @module model/Blob - * @version 0.0.16 - */ -class Blob { - /** - * Constructs a new Blob. - * @alias module:model/Blob - */ - constructor() { - - Blob.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Blob from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Blob} obj Optional instance to populate. - * @return {module:model/Blob} The populated Blob instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Blob(); - - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} size - */ -Blob.prototype['size'] = undefined; - -/** - * @member {String} type - */ -Blob.prototype['type'] = undefined; - - - - - - -export default Blob; - diff --git a/src/model/BlockAUserRequest.js b/src/model/BlockAUserRequest.js new file mode 100644 index 0000000..dd09443 --- /dev/null +++ b/src/model/BlockAUserRequest.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The BlockAUserRequest model module. + * @module model/BlockAUserRequest + * @version 2.0.0 + */ +class BlockAUserRequest { + /** + * Constructs a new BlockAUserRequest. + * @alias module:model/BlockAUserRequest + */ + constructor() { + + BlockAUserRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BlockAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BlockAUserRequest} obj Optional instance to populate. + * @return {module:model/BlockAUserRequest} The populated BlockAUserRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BlockAUserRequest(); + + if (data.hasOwnProperty('target_id')) { + obj['target_id'] = ApiClient.convertToType(data['target_id'], 'String'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} target_id + */ +BlockAUserRequest.prototype['target_id'] = undefined; + +/** + * Specifies an array of IDs of all the users to block. This property can be used interchangeably with the users[] property when blocking multiple users at once. + * @member {Array.} user_ids + */ +BlockAUserRequest.prototype['user_ids'] = undefined; + + + + + + +export default BlockAUserRequest; + diff --git a/src/model/BlockAUserResponse.js b/src/model/BlockAUserResponse.js new file mode 100644 index 0000000..8d9dc81 --- /dev/null +++ b/src/model/BlockAUserResponse.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdUser from './SendbirdUser'; + +/** + * The BlockAUserResponse model module. + * @module model/BlockAUserResponse + * @version 2.0.0 + */ +class BlockAUserResponse { + /** + * Constructs a new BlockAUserResponse. + * @alias module:model/BlockAUserResponse + */ + constructor() { + + BlockAUserResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a BlockAUserResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/BlockAUserResponse} obj Optional instance to populate. + * @return {module:model/BlockAUserResponse} The populated BlockAUserResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new BlockAUserResponse(); + + if (data.hasOwnProperty('users')) { + obj['users'] = ApiClient.convertToType(data['users'], [SendbirdUser]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = ApiClient.convertToType(data['next'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} users + */ +BlockAUserResponse.prototype['users'] = undefined; + +/** + * @member {String} next + */ +BlockAUserResponse.prototype['next'] = undefined; + + + + + + +export default BlockAUserResponse; + diff --git a/src/model/BlockUserData.js b/src/model/BlockUserData.js deleted file mode 100644 index 2976571..0000000 --- a/src/model/BlockUserData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BlockUserData model module. - * @module model/BlockUserData - * @version 0.0.16 - */ -class BlockUserData { - /** - * Constructs a new BlockUserData. - * @alias module:model/BlockUserData - * @param userId {String} Specifies the unique ID of the user to block. - * @param targetId {String} Specifies the ID of the user to be blocked. - * @param userIds {Array.} Specifies an array of the IDs of the users to be blocked at a time. (for bulk mode) - * @param users {Array.} Specifies an array of the IDs of the users to be blocked at a time. The user_ids above and this property can be used interchangeably. (for bulk mode) - */ - constructor(userId, targetId, userIds, users) { - - BlockUserData.initialize(this, userId, targetId, userIds, users); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId, targetId, userIds, users) { - obj['user_id'] = userId; - obj['target_id'] = targetId; - obj['user_ids'] = userIds; - obj['users'] = users; - } - - /** - * Constructs a BlockUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BlockUserData} obj Optional instance to populate. - * @return {module:model/BlockUserData} The populated BlockUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BlockUserData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('target_id')) { - obj['target_id'] = ApiClient.convertToType(data['target_id'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the user to block. - * @member {String} user_id - */ -BlockUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the user to be blocked. - * @member {String} target_id - */ -BlockUserData.prototype['target_id'] = undefined; - -/** - * Specifies an array of the IDs of the users to be blocked at a time. (for bulk mode) - * @member {Array.} user_ids - */ -BlockUserData.prototype['user_ids'] = undefined; - -/** - * Specifies an array of the IDs of the users to be blocked at a time. The user_ids above and this property can be used interchangeably. (for bulk mode) - * @member {Array.} users - */ -BlockUserData.prototype['users'] = undefined; - - - - - - -export default BlockUserData; - diff --git a/src/model/BlockUserResponse.js b/src/model/BlockUserResponse.js deleted file mode 100644 index e2bdf2c..0000000 --- a/src/model/BlockUserResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The BlockUserResponse model module. - * @module model/BlockUserResponse - * @version 0.0.16 - */ -class BlockUserResponse { - /** - * Constructs a new BlockUserResponse. - * @alias module:model/BlockUserResponse - */ - constructor() { - - BlockUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a BlockUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/BlockUserResponse} obj Optional instance to populate. - * @return {module:model/BlockUserResponse} The populated BlockUserResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new BlockUserResponse(); - - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['String']); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} users - */ -BlockUserResponse.prototype['users'] = undefined; - -/** - * @member {String} next - */ -BlockUserResponse.prototype['next'] = undefined; - - - - - - -export default BlockUserResponse; - diff --git a/src/model/CheckIfMemberResponse.js b/src/model/CheckIfMemberResponse.js new file mode 100644 index 0000000..b23ea77 --- /dev/null +++ b/src/model/CheckIfMemberResponse.js @@ -0,0 +1,106 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CheckIfMemberResponse model module. + * @module model/CheckIfMemberResponse + * @version 2.0.0 + */ +class CheckIfMemberResponse { + /** + * Constructs a new CheckIfMemberResponse. + * @alias module:model/CheckIfMemberResponse + */ + constructor() { + + CheckIfMemberResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CheckIfMemberResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CheckIfMemberResponse} obj Optional instance to populate. + * @return {module:model/CheckIfMemberResponse} The populated CheckIfMemberResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CheckIfMemberResponse(); + + if (data.hasOwnProperty('is_member')) { + obj['is_member'] = ApiClient.convertToType(data['is_member'], 'Boolean'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = ApiClient.convertToType(data['state'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} is_member + */ +CheckIfMemberResponse.prototype['is_member'] = undefined; + +/** + * @member {module:model/CheckIfMemberResponse.StateEnum} state + */ +CheckIfMemberResponse.prototype['state'] = undefined; + + + + + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +CheckIfMemberResponse['StateEnum'] = { + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined", + + /** + * value: "none" + * @const + */ + "none": "none" +}; + + + +export default CheckIfMemberResponse; + diff --git a/src/model/ChooseAPushNotificationContentTemplateRequest.js b/src/model/ChooseAPushNotificationContentTemplateRequest.js new file mode 100644 index 0000000..6dccea3 --- /dev/null +++ b/src/model/ChooseAPushNotificationContentTemplateRequest.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ChooseAPushNotificationContentTemplateRequest model module. + * @module model/ChooseAPushNotificationContentTemplateRequest + * @version 2.0.0 + */ +class ChooseAPushNotificationContentTemplateRequest { + /** + * Constructs a new ChooseAPushNotificationContentTemplateRequest. + * @alias module:model/ChooseAPushNotificationContentTemplateRequest + * @param name {module:model/ChooseAPushNotificationContentTemplateRequest.NameEnum} Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) + */ + constructor(name) { + + ChooseAPushNotificationContentTemplateRequest.initialize(this, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name) { + obj['name'] = name; + } + + /** + * Constructs a ChooseAPushNotificationContentTemplateRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChooseAPushNotificationContentTemplateRequest} obj Optional instance to populate. + * @return {module:model/ChooseAPushNotificationContentTemplateRequest} The populated ChooseAPushNotificationContentTemplateRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ChooseAPushNotificationContentTemplateRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Specifies the name of a template used for notifications. Acceptable values are default and alternative. (Default: default) + * @member {module:model/ChooseAPushNotificationContentTemplateRequest.NameEnum} name + */ +ChooseAPushNotificationContentTemplateRequest.prototype['name'] = undefined; + + + + + +/** + * Allowed values for the name property. + * @enum {String} + * @readonly + */ +ChooseAPushNotificationContentTemplateRequest['NameEnum'] = { + + /** + * value: "default" + * @const + */ + "default": "default", + + /** + * value: "alternative" + * @const + */ + "alternative": "alternative" +}; + + + +export default ChooseAPushNotificationContentTemplateRequest; + diff --git a/src/model/ChooseAPushNotificationContentTemplateResponse.js b/src/model/ChooseAPushNotificationContentTemplateResponse.js new file mode 100644 index 0000000..ab2cad1 --- /dev/null +++ b/src/model/ChooseAPushNotificationContentTemplateResponse.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ChooseAPushNotificationContentTemplateResponse model module. + * @module model/ChooseAPushNotificationContentTemplateResponse + * @version 2.0.0 + */ +class ChooseAPushNotificationContentTemplateResponse { + /** + * Constructs a new ChooseAPushNotificationContentTemplateResponse. + * @alias module:model/ChooseAPushNotificationContentTemplateResponse + */ + constructor() { + + ChooseAPushNotificationContentTemplateResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ChooseAPushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ChooseAPushNotificationContentTemplateResponse} obj Optional instance to populate. + * @return {module:model/ChooseAPushNotificationContentTemplateResponse} The populated ChooseAPushNotificationContentTemplateResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ChooseAPushNotificationContentTemplateResponse(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} name + */ +ChooseAPushNotificationContentTemplateResponse.prototype['name'] = undefined; + + + + + + +export default ChooseAPushNotificationContentTemplateResponse; + diff --git a/src/model/ChoosePushNotificationContentTemplateResponse.js b/src/model/ChoosePushNotificationContentTemplateResponse.js deleted file mode 100644 index 3849a68..0000000 --- a/src/model/ChoosePushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChoosePushNotificationContentTemplateResponse model module. - * @module model/ChoosePushNotificationContentTemplateResponse - * @version 0.0.16 - */ -class ChoosePushNotificationContentTemplateResponse { - /** - * Constructs a new ChoosePushNotificationContentTemplateResponse. - * @alias module:model/ChoosePushNotificationContentTemplateResponse - */ - constructor() { - - ChoosePushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChoosePushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChoosePushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/ChoosePushNotificationContentTemplateResponse} The populated ChoosePushNotificationContentTemplateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChoosePushNotificationContentTemplateResponse(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} name - */ -ChoosePushNotificationContentTemplateResponse.prototype['name'] = undefined; - - - - - - -export default ChoosePushNotificationContentTemplateResponse; - diff --git a/src/model/ChooseWhichEventsToSubscribeToData.js b/src/model/ChooseWhichEventsToSubscribeToData.js deleted file mode 100644 index 340cb88..0000000 --- a/src/model/ChooseWhichEventsToSubscribeToData.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChooseWhichEventsToSubscribeToData model module. - * @module model/ChooseWhichEventsToSubscribeToData - * @version 0.0.16 - */ -class ChooseWhichEventsToSubscribeToData { - /** - * Constructs a new ChooseWhichEventsToSubscribeToData. - * @alias module:model/ChooseWhichEventsToSubscribeToData - * @param enabled {Boolean} Determines whether webhooks are turned on in your Sendbird application or not. (Default: false) - * @param url {String} Specifies the URL of your webhook server to receive payloads for events. - */ - constructor(enabled, url) { - - ChooseWhichEventsToSubscribeToData.initialize(this, enabled, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, enabled, url) { - obj['enabled'] = enabled; - obj['url'] = url; - } - - /** - * Constructs a ChooseWhichEventsToSubscribeToData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToData} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToData} The populated ChooseWhichEventsToSubscribeToData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToData(); - - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = ApiClient.convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = ApiClient.convertToType(data['enabled_events'], ['String']); - } - } - return obj; - } - - -} - -/** - * Determines whether webhooks are turned on in your Sendbird application or not. (Default: false) - * @member {Boolean} enabled - */ -ChooseWhichEventsToSubscribeToData.prototype['enabled'] = undefined; - -/** - * Specifies the URL of your webhook server to receive payloads for events. - * @member {String} url - */ -ChooseWhichEventsToSubscribeToData.prototype['url'] = undefined; - -/** - * Determines whether to include the information on the members of group channels in payloads. (Default: false) - * @member {Boolean} include_members - */ -ChooseWhichEventsToSubscribeToData.prototype['include_members'] = undefined; - -/** - * Specifies an array of one or more [events](#2-webhook-events) for your webhook server to subscribe to. If set to an asterisk () only, the server will subscribe to all supported events. If set to an empty array, the server will unsubscribe from all (which indicates turning off webhooks). - * @member {Array.} enabled_events - */ -ChooseWhichEventsToSubscribeToData.prototype['enabled_events'] = undefined; - - - - - - -export default ChooseWhichEventsToSubscribeToData; - diff --git a/src/model/ChooseWhichEventsToSubscribeToResponse.js b/src/model/ChooseWhichEventsToSubscribeToResponse.js deleted file mode 100644 index e8fce4b..0000000 --- a/src/model/ChooseWhichEventsToSubscribeToResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ChooseWhichEventsToSubscribeToResponseWebhook from './ChooseWhichEventsToSubscribeToResponseWebhook'; - -/** - * The ChooseWhichEventsToSubscribeToResponse model module. - * @module model/ChooseWhichEventsToSubscribeToResponse - * @version 0.0.16 - */ -class ChooseWhichEventsToSubscribeToResponse { - /** - * Constructs a new ChooseWhichEventsToSubscribeToResponse. - * @alias module:model/ChooseWhichEventsToSubscribeToResponse - */ - constructor() { - - ChooseWhichEventsToSubscribeToResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChooseWhichEventsToSubscribeToResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToResponse} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToResponse} The populated ChooseWhichEventsToSubscribeToResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToResponse(); - - if (data.hasOwnProperty('webhook')) { - obj['webhook'] = ChooseWhichEventsToSubscribeToResponseWebhook.constructFromObject(data['webhook']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} webhook - */ -ChooseWhichEventsToSubscribeToResponse.prototype['webhook'] = undefined; - - - - - - -export default ChooseWhichEventsToSubscribeToResponse; - diff --git a/src/model/ChooseWhichEventsToSubscribeToResponseWebhook.js b/src/model/ChooseWhichEventsToSubscribeToResponseWebhook.js deleted file mode 100644 index d0f2230..0000000 --- a/src/model/ChooseWhichEventsToSubscribeToResponseWebhook.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ChooseWhichEventsToSubscribeToResponseWebhook model module. - * @module model/ChooseWhichEventsToSubscribeToResponseWebhook - * @version 0.0.16 - */ -class ChooseWhichEventsToSubscribeToResponseWebhook { - /** - * Constructs a new ChooseWhichEventsToSubscribeToResponseWebhook. - * @alias module:model/ChooseWhichEventsToSubscribeToResponseWebhook - */ - constructor() { - - ChooseWhichEventsToSubscribeToResponseWebhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ChooseWhichEventsToSubscribeToResponseWebhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} obj Optional instance to populate. - * @return {module:model/ChooseWhichEventsToSubscribeToResponseWebhook} The populated ChooseWhichEventsToSubscribeToResponseWebhook instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ChooseWhichEventsToSubscribeToResponseWebhook(); - - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = ApiClient.convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = ApiClient.convertToType(data['enabled_events'], ['String']); - } - if (data.hasOwnProperty('include_unread_count')) { - obj['include_unread_count'] = ApiClient.convertToType(data['include_unread_count'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} enabled - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['enabled'] = undefined; - -/** - * @member {String} url - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['url'] = undefined; - -/** - * @member {Boolean} include_members - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['include_members'] = undefined; - -/** - * @member {Array.} enabled_events - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['enabled_events'] = undefined; - -/** - * @member {Boolean} include_unread_count - */ -ChooseWhichEventsToSubscribeToResponseWebhook.prototype['include_unread_count'] = undefined; - - - - - - -export default ChooseWhichEventsToSubscribeToResponseWebhook; - diff --git a/src/model/ConfigureAutoEventData.js b/src/model/ConfigureAutoEventData.js deleted file mode 100644 index f0eb69e..0000000 --- a/src/model/ConfigureAutoEventData.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ConfigureAutoEventDataAutoEventMessage from './ConfigureAutoEventDataAutoEventMessage'; - -/** - * The ConfigureAutoEventData model module. - * @module model/ConfigureAutoEventData - * @version 0.0.16 - */ -class ConfigureAutoEventData { - /** - * Constructs a new ConfigureAutoEventData. - * @alias module:model/ConfigureAutoEventData - */ - constructor() { - - ConfigureAutoEventData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ConfigureAutoEventData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureAutoEventData} obj Optional instance to populate. - * @return {module:model/ConfigureAutoEventData} The populated ConfigureAutoEventData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigureAutoEventData(); - - if (data.hasOwnProperty('auto_event_message')) { - obj['auto_event_message'] = ConfigureAutoEventDataAutoEventMessage.constructFromObject(data['auto_event_message']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/ConfigureAutoEventDataAutoEventMessage} auto_event_message - */ -ConfigureAutoEventData.prototype['auto_event_message'] = undefined; - - - - - - -export default ConfigureAutoEventData; - diff --git a/src/model/ConfigureAutoEventDataAutoEventMessage.js b/src/model/ConfigureAutoEventDataAutoEventMessage.js deleted file mode 100644 index 056648a..0000000 --- a/src/model/ConfigureAutoEventDataAutoEventMessage.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ConfigureAutoEventDataAutoEventMessage model module. - * @module model/ConfigureAutoEventDataAutoEventMessage - * @version 0.0.16 - */ -class ConfigureAutoEventDataAutoEventMessage { - /** - * Constructs a new ConfigureAutoEventDataAutoEventMessage. - * @alias module:model/ConfigureAutoEventDataAutoEventMessage - */ - constructor() { - - ConfigureAutoEventDataAutoEventMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ConfigureAutoEventDataAutoEventMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ConfigureAutoEventDataAutoEventMessage} obj Optional instance to populate. - * @return {module:model/ConfigureAutoEventDataAutoEventMessage} The populated ConfigureAutoEventDataAutoEventMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ConfigureAutoEventDataAutoEventMessage(); - - if (data.hasOwnProperty('user_leave')) { - obj['user_leave'] = ApiClient.convertToType(data['user_leave'], Object); - } - if (data.hasOwnProperty('user_join')) { - obj['user_join'] = ApiClient.convertToType(data['user_join'], Object); - } - if (data.hasOwnProperty('channel_create')) { - obj['channel_create'] = ApiClient.convertToType(data['channel_create'], Object); - } - if (data.hasOwnProperty('channel_change')) { - obj['channel_change'] = ApiClient.convertToType(data['channel_change'], Object); - } - } - return obj; - } - - -} - -/** - * @member {Object} user_leave - */ -ConfigureAutoEventDataAutoEventMessage.prototype['user_leave'] = undefined; - -/** - * @member {Object} user_join - */ -ConfigureAutoEventDataAutoEventMessage.prototype['user_join'] = undefined; - -/** - * @member {Object} channel_create - */ -ConfigureAutoEventDataAutoEventMessage.prototype['channel_create'] = undefined; - -/** - * @member {Object} channel_change - */ -ConfigureAutoEventDataAutoEventMessage.prototype['channel_change'] = undefined; - - - - - - -export default ConfigureAutoEventDataAutoEventMessage; - diff --git a/src/model/CreateABotRequest.js b/src/model/CreateABotRequest.js new file mode 100644 index 0000000..f1957c8 --- /dev/null +++ b/src/model/CreateABotRequest.js @@ -0,0 +1,150 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateABotRequest model module. + * @module model/CreateABotRequest + * @version 2.0.0 + */ +class CreateABotRequest { + /** + * Constructs a new CreateABotRequest. + * @alias module:model/CreateABotRequest + * @param botCallbackUrl {String} + * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. + * @param botProfileUrl {String} + * @param botType {String} + * @param botUserid {String} Specifies the unique ID of a bot. The length is limited to 80 characters. + * @param isPrivacyMode {Boolean} Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. + */ + constructor(botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode) { + + CreateABotRequest.initialize(this, botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, botCallbackUrl, botNickname, botProfileUrl, botType, botUserid, isPrivacyMode) { + obj['bot_callback_url'] = botCallbackUrl; + obj['bot_nickname'] = botNickname; + obj['bot_profile_url'] = botProfileUrl; + obj['bot_type'] = botType; + obj['bot_userid'] = botUserid; + obj['is_privacy_mode'] = isPrivacyMode; + } + + /** + * Constructs a CreateABotRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotRequest} obj Optional instance to populate. + * @return {module:model/CreateABotRequest} The populated CreateABotRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotRequest(); + + if (data.hasOwnProperty('bot_callback_url')) { + obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = ApiClient.convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); + } + if (data.hasOwnProperty('is_privacy_mode')) { + obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('enable_mark_as_read')) { + obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('show_member')) { + obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} bot_callback_url + */ +CreateABotRequest.prototype['bot_callback_url'] = undefined; + +/** + * Specifies the bot's nickname. The length is limited to 80 characters. + * @member {String} bot_nickname + */ +CreateABotRequest.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +CreateABotRequest.prototype['bot_profile_url'] = undefined; + +/** + * @member {String} bot_type + */ +CreateABotRequest.prototype['bot_type'] = undefined; + +/** + * Specifies the unique ID of a bot. The length is limited to 80 characters. + * @member {String} bot_userid + */ +CreateABotRequest.prototype['bot_userid'] = undefined; + +/** + * Determines whether to forward all or specific messages to the bot in channels where the bot is a member. If set to true, only messages starting with a \"/\" or mentioning the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. This property can help protect the privacy of users' chat logs by configuring the bot to only receive messages addressed to the bot. + * @member {Boolean} is_privacy_mode + */ +CreateABotRequest.prototype['is_privacy_mode'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +CreateABotRequest.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Boolean} enable_mark_as_read + */ +CreateABotRequest.prototype['enable_mark_as_read'] = undefined; + +/** + * @member {Boolean} show_member + */ +CreateABotRequest.prototype['show_member'] = undefined; + + + + + + +export default CreateABotRequest; + diff --git a/src/model/CreateABotResponse.js b/src/model/CreateABotResponse.js new file mode 100644 index 0000000..4645fe2 --- /dev/null +++ b/src/model/CreateABotResponse.js @@ -0,0 +1,131 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CreateABotResponseBot from './CreateABotResponseBot'; +import CreateABotResponseBotStyle from './CreateABotResponseBotStyle'; + +/** + * The CreateABotResponse model module. + * @module model/CreateABotResponse + * @version 2.0.0 + */ +class CreateABotResponse { + /** + * Constructs a new CreateABotResponse. + * @alias module:model/CreateABotResponse + * @param bot {module:model/CreateABotResponseBot} + */ + constructor(bot) { + + CreateABotResponse.initialize(this, bot); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, bot) { + obj['bot'] = bot; + } + + /** + * Constructs a CreateABotResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponse} obj Optional instance to populate. + * @return {module:model/CreateABotResponse} The populated CreateABotResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponse(); + + if (data.hasOwnProperty('bot')) { + obj['bot'] = CreateABotResponseBot.constructFromObject(data['bot']); + } + if (data.hasOwnProperty('bot_callback_url')) { + obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); + } + if (data.hasOwnProperty('bot_style')) { + obj['bot_style'] = CreateABotResponseBotStyle.constructFromObject(data['bot_style']); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('enable_mark_as_read')) { + obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('is_privacy_mode')) { + obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); + } + if (data.hasOwnProperty('show_member')) { + obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/CreateABotResponseBot} bot + */ +CreateABotResponse.prototype['bot'] = undefined; + +/** + * @member {String} bot_callback_url + */ +CreateABotResponse.prototype['bot_callback_url'] = undefined; + +/** + * @member {module:model/CreateABotResponseBotStyle} bot_style + */ +CreateABotResponse.prototype['bot_style'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +CreateABotResponse.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Number} created_at + */ +CreateABotResponse.prototype['created_at'] = undefined; + +/** + * @member {Boolean} enable_mark_as_read + */ +CreateABotResponse.prototype['enable_mark_as_read'] = undefined; + +/** + * @member {Boolean} is_privacy_mode + */ +CreateABotResponse.prototype['is_privacy_mode'] = undefined; + +/** + * @member {Boolean} show_member + */ +CreateABotResponse.prototype['show_member'] = undefined; + + + + + + +export default CreateABotResponse; + diff --git a/src/model/CreateABotResponseBot.js b/src/model/CreateABotResponseBot.js new file mode 100644 index 0000000..b38df72 --- /dev/null +++ b/src/model/CreateABotResponseBot.js @@ -0,0 +1,137 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateABotResponseBot model module. + * @module model/CreateABotResponseBot + * @version 2.0.0 + */ +class CreateABotResponseBot { + /** + * Constructs a new CreateABotResponseBot. + * @alias module:model/CreateABotResponseBot + * @param botUserid {String} + */ + constructor(botUserid) { + + CreateABotResponseBot.initialize(this, botUserid); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, botUserid) { + obj['bot_userid'] = botUserid; + } + + /** + * Constructs a CreateABotResponseBot from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponseBot} obj Optional instance to populate. + * @return {module:model/CreateABotResponseBot} The populated CreateABotResponseBot instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponseBot(); + + if (data.hasOwnProperty('ai_agent_type')) { + obj['ai_agent_type'] = ApiClient.convertToType(data['ai_agent_type'], 'String'); + } + if (data.hasOwnProperty('bot_metadata')) { + obj['bot_metadata'] = ApiClient.convertToType(data['bot_metadata'], Object); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_require_auth_for_profile_image')) { + obj['bot_require_auth_for_profile_image'] = ApiClient.convertToType(data['bot_require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('bot_token')) { + obj['bot_token'] = ApiClient.convertToType(data['bot_token'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = ApiClient.convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); + } + if (data.hasOwnProperty('feedback')) { + obj['feedback'] = ApiClient.convertToType(data['feedback'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} ai_agent_type + */ +CreateABotResponseBot.prototype['ai_agent_type'] = undefined; + +/** + * @member {Object} bot_metadata + */ +CreateABotResponseBot.prototype['bot_metadata'] = undefined; + +/** + * @member {String} bot_nickname + */ +CreateABotResponseBot.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +CreateABotResponseBot.prototype['bot_profile_url'] = undefined; + +/** + * @member {Boolean} bot_require_auth_for_profile_image + */ +CreateABotResponseBot.prototype['bot_require_auth_for_profile_image'] = undefined; + +/** + * @member {String} bot_token + */ +CreateABotResponseBot.prototype['bot_token'] = undefined; + +/** + * @member {String} bot_type + */ +CreateABotResponseBot.prototype['bot_type'] = undefined; + +/** + * @member {String} bot_userid + */ +CreateABotResponseBot.prototype['bot_userid'] = undefined; + +/** + * @member {Boolean} feedback + */ +CreateABotResponseBot.prototype['feedback'] = undefined; + + + + + + +export default CreateABotResponseBot; + diff --git a/src/model/CreateABotResponseBotStyle.js b/src/model/CreateABotResponseBotStyle.js new file mode 100644 index 0000000..03f8df2 --- /dev/null +++ b/src/model/CreateABotResponseBotStyle.js @@ -0,0 +1,96 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ListBotsResponseBotsInnerBotStyleColor from './ListBotsResponseBotsInnerBotStyleColor'; + +/** + * The CreateABotResponseBotStyle model module. + * @module model/CreateABotResponseBotStyle + * @version 2.0.0 + */ +class CreateABotResponseBotStyle { + /** + * Constructs a new CreateABotResponseBotStyle. + * @alias module:model/CreateABotResponseBotStyle + */ + constructor() { + + CreateABotResponseBotStyle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateABotResponseBotStyle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateABotResponseBotStyle} obj Optional instance to populate. + * @return {module:model/CreateABotResponseBotStyle} The populated CreateABotResponseBotStyle instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateABotResponseBotStyle(); + + if (data.hasOwnProperty('auto_open')) { + obj['auto_open'] = ApiClient.convertToType(data['auto_open'], 'Boolean'); + } + if (data.hasOwnProperty('color')) { + obj['color'] = ListBotsResponseBotsInnerBotStyleColor.constructFromObject(data['color']); + } + if (data.hasOwnProperty('toggle_button_type')) { + obj['toggle_button_type'] = ApiClient.convertToType(data['toggle_button_type'], 'String'); + } + if (data.hasOwnProperty('toggle_button_url')) { + obj['toggle_button_url'] = ApiClient.convertToType(data['toggle_button_url'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} auto_open + */ +CreateABotResponseBotStyle.prototype['auto_open'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyleColor} color + */ +CreateABotResponseBotStyle.prototype['color'] = undefined; + +/** + * @member {String} toggle_button_type + */ +CreateABotResponseBotStyle.prototype['toggle_button_type'] = undefined; + +/** + * @member {String} toggle_button_url + */ +CreateABotResponseBotStyle.prototype['toggle_button_url'] = undefined; + + + + + + +export default CreateABotResponseBotStyle; + diff --git a/src/model/CreateAChannelMetadataRequest.js b/src/model/CreateAChannelMetadataRequest.js new file mode 100644 index 0000000..fbf8208 --- /dev/null +++ b/src/model/CreateAChannelMetadataRequest.js @@ -0,0 +1,81 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAChannelMetadataRequest model module. + * @module model/CreateAChannelMetadataRequest + * @version 2.0.0 + */ +class CreateAChannelMetadataRequest { + /** + * Constructs a new CreateAChannelMetadataRequest. + * @alias module:model/CreateAChannelMetadataRequest + * @param metadata {Object} + */ + constructor(metadata) { + + CreateAChannelMetadataRequest.initialize(this, metadata); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, metadata) { + obj['metadata'] = metadata; + } + + /** + * Constructs a CreateAChannelMetadataRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAChannelMetadataRequest} obj Optional instance to populate. + * @return {module:model/CreateAChannelMetadataRequest} The populated CreateAChannelMetadataRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAChannelMetadataRequest(); + + if (data.hasOwnProperty('include_ts')) { + obj['include_ts'] = ApiClient.convertToType(data['include_ts'], 'Boolean'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} include_ts + */ +CreateAChannelMetadataRequest.prototype['include_ts'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAChannelMetadataRequest.prototype['metadata'] = undefined; + + + + + + +export default CreateAChannelMetadataRequest; + diff --git a/src/model/CreateAChannelMetadataResponse.js b/src/model/CreateAChannelMetadataResponse.js new file mode 100644 index 0000000..f21595b --- /dev/null +++ b/src/model/CreateAChannelMetadataResponse.js @@ -0,0 +1,79 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAChannelMetadataResponse model module. + * @module model/CreateAChannelMetadataResponse + * @version 2.0.0 + */ +class CreateAChannelMetadataResponse { + /** + * Constructs a new CreateAChannelMetadataResponse. + * @alias module:model/CreateAChannelMetadataResponse + */ + constructor() { + + CreateAChannelMetadataResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateAChannelMetadataResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAChannelMetadataResponse} obj Optional instance to populate. + * @return {module:model/CreateAChannelMetadataResponse} The populated CreateAChannelMetadataResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAChannelMetadataResponse(); + + if (data.hasOwnProperty('include_ts')) { + obj['include_ts'] = ApiClient.convertToType(data['include_ts'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + } + return obj; + } + + +} + +/** + * @member {Number} include_ts + */ +CreateAChannelMetadataResponse.prototype['include_ts'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAChannelMetadataResponse.prototype['metadata'] = undefined; + + + + + + +export default CreateAChannelMetadataResponse; + diff --git a/src/model/CreateAGroupChannelRequest.js b/src/model/CreateAGroupChannelRequest.js new file mode 100644 index 0000000..fd9ea5f --- /dev/null +++ b/src/model/CreateAGroupChannelRequest.js @@ -0,0 +1,221 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdUser from './SendbirdUser'; + +/** + * The CreateAGroupChannelRequest model module. + * @module model/CreateAGroupChannelRequest + * @version 2.0.0 + */ +class CreateAGroupChannelRequest { + /** + * Constructs a new CreateAGroupChannelRequest. + * @alias module:model/CreateAGroupChannelRequest + * @param users {Array.} + */ + constructor(users) { + + CreateAGroupChannelRequest.initialize(this, users); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, users) { + obj['users'] = users; + } + + /** + * Constructs a CreateAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/CreateAGroupChannelRequest} The populated CreateAGroupChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAGroupChannelRequest(); + + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('block_sdk_user_channel_join')) { + obj['block_sdk_user_channel_join'] = ApiClient.convertToType(data['block_sdk_user_channel_join'], 'Boolean'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('hidden_status')) { + obj['hidden_status'] = ApiClient.convertToType(data['hidden_status'], Object); + } + if (data.hasOwnProperty('invitation_status')) { + obj['invitation_status'] = ApiClient.convertToType(data['invitation_status'], Object); + } + if (data.hasOwnProperty('inviter_id')) { + obj['inviter_id'] = ApiClient.convertToType(data['inviter_id'], 'String'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); + } + if (data.hasOwnProperty('strict')) { + obj['strict'] = ApiClient.convertToType(data['strict'], 'Boolean'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + if (data.hasOwnProperty('users')) { + obj['users'] = ApiClient.convertToType(data['users'], [SendbirdUser]); + } + } + return obj; + } + + +} + +/** + * @member {String} access_code + */ +CreateAGroupChannelRequest.prototype['access_code'] = undefined; + +/** + * @member {Boolean} block_sdk_user_channel_join + */ +CreateAGroupChannelRequest.prototype['block_sdk_user_channel_join'] = undefined; + +/** + * @member {String} channel_url + */ +CreateAGroupChannelRequest.prototype['channel_url'] = undefined; + +/** + * Uploads a file for the channel cover image. + * @member {File} cover_file + */ +CreateAGroupChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +CreateAGroupChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +CreateAGroupChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +CreateAGroupChannelRequest.prototype['data'] = undefined; + +/** + * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. + * @member {Object} hidden_status + */ +CreateAGroupChannelRequest.prototype['hidden_status'] = undefined; + +/** + * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) + * @member {Object} invitation_status + */ +CreateAGroupChannelRequest.prototype['invitation_status'] = undefined; + +/** + * @member {String} inviter_id + */ +CreateAGroupChannelRequest.prototype['inviter_id'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +CreateAGroupChannelRequest.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +CreateAGroupChannelRequest.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_public + */ +CreateAGroupChannelRequest.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +CreateAGroupChannelRequest.prototype['is_super'] = undefined; + +/** + * @member {String} name + */ +CreateAGroupChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +CreateAGroupChannelRequest.prototype['operator_ids'] = undefined; + +/** + * @member {Boolean} strict + */ +CreateAGroupChannelRequest.prototype['strict'] = undefined; + +/** + * @member {Array.} user_ids + */ +CreateAGroupChannelRequest.prototype['user_ids'] = undefined; + +/** + * @member {Array.} users + */ +CreateAGroupChannelRequest.prototype['users'] = undefined; + + + + + + +export default CreateAGroupChannelRequest; + diff --git a/src/model/CreateAUserRequest.js b/src/model/CreateAUserRequest.js new file mode 100644 index 0000000..3347369 --- /dev/null +++ b/src/model/CreateAUserRequest.js @@ -0,0 +1,126 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAUserRequest model module. + * @module model/CreateAUserRequest + * @version 2.0.0 + */ +class CreateAUserRequest { + /** + * Constructs a new CreateAUserRequest. + * @alias module:model/CreateAUserRequest + * @param nickname {String} + * @param profileUrl {String} + * @param userId {String} + */ + constructor(nickname, profileUrl, userId) { + + CreateAUserRequest.initialize(this, nickname, profileUrl, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, nickname, profileUrl, userId) { + obj['nickname'] = nickname; + obj['profile_url'] = profileUrl; + obj['user_id'] = userId; + } + + /** + * Constructs a CreateAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAUserRequest} obj Optional instance to populate. + * @return {module:model/CreateAUserRequest} The populated CreateAUserRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAUserRequest(); + + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('issue_access_token')) { + obj['issue_access_token'] = ApiClient.convertToType(data['issue_access_token'], 'Boolean'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('profile_file')) { + obj['profile_file'] = ApiClient.convertToType(data['profile_file'], File); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} discovery_keys + */ +CreateAUserRequest.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} issue_access_token + */ +CreateAUserRequest.prototype['issue_access_token'] = undefined; + +/** + * @member {Object} metadata + */ +CreateAUserRequest.prototype['metadata'] = undefined; + +/** + * @member {String} nickname + */ +CreateAUserRequest.prototype['nickname'] = undefined; + +/** + * Specifies the file of the user's profile image. An acceptable image is limited to a JPG, JPEG, or PNG file of up to 5 MB. When passing a file, you should send a multipart request. If the profile_file property is specified, the profile_url property is not required. + * @member {File} profile_file + */ +CreateAUserRequest.prototype['profile_file'] = undefined; + +/** + * @member {String} profile_url + */ +CreateAUserRequest.prototype['profile_url'] = undefined; + +/** + * @member {String} user_id + */ +CreateAUserRequest.prototype['user_id'] = undefined; + + + + + + +export default CreateAUserRequest; + diff --git a/src/model/CreateAnOpenChannelRequest.js b/src/model/CreateAnOpenChannelRequest.js new file mode 100644 index 0000000..517610b --- /dev/null +++ b/src/model/CreateAnOpenChannelRequest.js @@ -0,0 +1,135 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateAnOpenChannelRequest model module. + * @module model/CreateAnOpenChannelRequest + * @version 2.0.0 + */ +class CreateAnOpenChannelRequest { + /** + * Constructs a new CreateAnOpenChannelRequest. + * @alias module:model/CreateAnOpenChannelRequest + */ + constructor() { + + CreateAnOpenChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/CreateAnOpenChannelRequest} The populated CreateAnOpenChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateAnOpenChannelRequest(); + + if (data.hasOwnProperty('is_dynamic_partitioned')) { + obj['is_dynamic_partitioned'] = ApiClient.convertToType(data['is_dynamic_partitioned'], 'Boolean'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} is_dynamic_partitioned + */ +CreateAnOpenChannelRequest.prototype['is_dynamic_partitioned'] = undefined; + +/** + * @member {String} channel_url + */ +CreateAnOpenChannelRequest.prototype['channel_url'] = undefined; + +/** + * @member {File} cover_file + */ +CreateAnOpenChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +CreateAnOpenChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +CreateAnOpenChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +CreateAnOpenChannelRequest.prototype['data'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +CreateAnOpenChannelRequest.prototype['is_ephemeral'] = undefined; + +/** + * @member {String} name + */ +CreateAnOpenChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +CreateAnOpenChannelRequest.prototype['operator_ids'] = undefined; + + + + + + +export default CreateAnOpenChannelRequest; + diff --git a/src/model/CreateBotData.js b/src/model/CreateBotData.js deleted file mode 100644 index 31a3eb0..0000000 --- a/src/model/CreateBotData.js +++ /dev/null @@ -1,155 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateBotData model module. - * @module model/CreateBotData - * @version 0.0.16 - */ -class CreateBotData { - /** - * Constructs a new CreateBotData. - * @alias module:model/CreateBotData - * @param botUserid {String} Specifies the unique ID of the bot. The length is limited to 80 characters. - * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. - * @param botProfileUrl {String} Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @param botType {String} Specifies the type of the bot that you can specify for categorization. The length is limited to 128 characters. - * @param botCallbackUrl {String} Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @param isPrivacyMode {Boolean} In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - */ - constructor(botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode) { - - CreateBotData.initialize(this, botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, botUserid, botNickname, botProfileUrl, botType, botCallbackUrl, isPrivacyMode) { - obj['bot_userid'] = botUserid; - obj['bot_nickname'] = botNickname; - obj['bot_profile_url'] = botProfileUrl; - obj['bot_type'] = botType; - obj['bot_callback_url'] = botCallbackUrl; - obj['is_privacy_mode'] = isPrivacyMode; - } - - /** - * Constructs a CreateBotData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotData} obj Optional instance to populate. - * @return {module:model/CreateBotData} The populated CreateBotData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotData(); - - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_type')) { - obj['bot_type'] = ApiClient.convertToType(data['bot_type'], 'String'); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the bot. The length is limited to 80 characters. - * @member {String} bot_userid - */ -CreateBotData.prototype['bot_userid'] = undefined; - -/** - * Specifies the bot's nickname. The length is limited to 80 characters. - * @member {String} bot_nickname - */ -CreateBotData.prototype['bot_nickname'] = undefined; - -/** - * Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @member {String} bot_profile_url - */ -CreateBotData.prototype['bot_profile_url'] = undefined; - -/** - * Specifies the type of the bot that you can specify for categorization. The length is limited to 128 characters. - * @member {String} bot_type - */ -CreateBotData.prototype['bot_type'] = undefined; - -/** - * Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @member {String} bot_callback_url - */ -CreateBotData.prototype['bot_callback_url'] = undefined; - -/** - * In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @member {Boolean} is_privacy_mode - */ -CreateBotData.prototype['is_privacy_mode'] = undefined; - -/** - * Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @member {Boolean} enable_mark_as_read - */ -CreateBotData.prototype['enable_mark_as_read'] = undefined; - -/** - * Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @member {Boolean} show_member - */ -CreateBotData.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -CreateBotData.prototype['channel_invitation_preference'] = undefined; - - - - - - -export default CreateBotData; - diff --git a/src/model/CreateBotResponse.js b/src/model/CreateBotResponse.js deleted file mode 100644 index b1ffde0..0000000 --- a/src/model/CreateBotResponse.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CreateBotResponseBot from './CreateBotResponseBot'; - -/** - * The CreateBotResponse model module. - * @module model/CreateBotResponse - * @version 0.0.16 - */ -class CreateBotResponse { - /** - * Constructs a new CreateBotResponse. - * @alias module:model/CreateBotResponse - */ - constructor() { - - CreateBotResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateBotResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotResponse} obj Optional instance to populate. - * @return {module:model/CreateBotResponse} The populated CreateBotResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotResponse(); - - if (data.hasOwnProperty('bot')) { - obj['bot'] = CreateBotResponseBot.constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/CreateBotResponseBot} bot - */ -CreateBotResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -CreateBotResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -CreateBotResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -CreateBotResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -CreateBotResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -CreateBotResponse.prototype['channel_invitation_preference'] = undefined; - - - - - - -export default CreateBotResponse; - diff --git a/src/model/CreateBotResponseBot.js b/src/model/CreateBotResponseBot.js deleted file mode 100644 index f419abf..0000000 --- a/src/model/CreateBotResponseBot.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateBotResponseBot model module. - * @module model/CreateBotResponseBot - * @version 0.0.16 - */ -class CreateBotResponseBot { - /** - * Constructs a new CreateBotResponseBot. - * @alias module:model/CreateBotResponseBot - */ - constructor() { - - CreateBotResponseBot.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateBotResponseBot from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateBotResponseBot} obj Optional instance to populate. - * @return {module:model/CreateBotResponseBot} The populated CreateBotResponseBot instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateBotResponseBot(); - - if (data.hasOwnProperty('bot_token')) { - obj['bot_token'] = ApiClient.convertToType(data['bot_token'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_type')) { - obj['bot_type'] = ApiClient.convertToType(data['bot_type'], 'String'); - } - if (data.hasOwnProperty('bot_metadata')) { - obj['bot_metadata'] = ApiClient.convertToType(data['bot_metadata'], Object); - } - } - return obj; - } - - -} - -/** - * @member {String} bot_token - */ -CreateBotResponseBot.prototype['bot_token'] = undefined; - -/** - * @member {String} bot_profile_url - */ -CreateBotResponseBot.prototype['bot_profile_url'] = undefined; - -/** - * @member {String} bot_userid - */ -CreateBotResponseBot.prototype['bot_userid'] = undefined; - -/** - * @member {String} bot_nickname - */ -CreateBotResponseBot.prototype['bot_nickname'] = undefined; - -/** - * @member {String} bot_type - */ -CreateBotResponseBot.prototype['bot_type'] = undefined; - -/** - * @member {Object} bot_metadata - */ -CreateBotResponseBot.prototype['bot_metadata'] = undefined; - - - - - - -export default CreateBotResponseBot; - diff --git a/src/model/CreateChannelMetacounterData.js b/src/model/CreateChannelMetacounterData.js deleted file mode 100644 index 4e5f600..0000000 --- a/src/model/CreateChannelMetacounterData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateChannelMetacounterData model module. - * @module model/CreateChannelMetacounterData - * @version 0.0.16 - */ -class CreateChannelMetacounterData { - /** - * Constructs a new CreateChannelMetacounterData. - * @alias module:model/CreateChannelMetacounterData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the channel to store the metacounter in. - * @param metacounter {String} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - */ - constructor(channelType, channelUrl, metacounter) { - - CreateChannelMetacounterData.initialize(this, channelType, channelUrl, metacounter); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelType, channelUrl, metacounter) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['metacounter'] = metacounter; - } - - /** - * Constructs a CreateChannelMetacounterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetacounterData} obj Optional instance to populate. - * @return {module:model/CreateChannelMetacounterData} The populated CreateChannelMetacounterData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetacounterData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('metacounter')) { - obj['metacounter'] = ApiClient.convertToType(data['metacounter'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -CreateChannelMetacounterData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to store the metacounter in. - * @member {String} channel_url - */ -CreateChannelMetacounterData.prototype['channel_url'] = undefined; - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - * @member {String} metacounter - */ -CreateChannelMetacounterData.prototype['metacounter'] = undefined; - - - - - - -export default CreateChannelMetacounterData; - diff --git a/src/model/CreateChannelMetadataData.js b/src/model/CreateChannelMetadataData.js deleted file mode 100644 index e7b59fd..0000000 --- a/src/model/CreateChannelMetadataData.js +++ /dev/null @@ -1,105 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateChannelMetadataData model module. - * @module model/CreateChannelMetadataData - * @version 0.0.16 - */ -class CreateChannelMetadataData { - /** - * Constructs a new CreateChannelMetadataData. - * @alias module:model/CreateChannelMetadataData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the channel to store the metadata in. - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - */ - constructor(channelType, channelUrl, metadata) { - - CreateChannelMetadataData.initialize(this, channelType, channelUrl, metadata); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelType, channelUrl, metadata) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['metadata'] = metadata; - } - - /** - * Constructs a CreateChannelMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetadataData} obj Optional instance to populate. - * @return {module:model/CreateChannelMetadataData} The populated CreateChannelMetadataData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetadataData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('include_ts')) { - obj['include_ts'] = ApiClient.convertToType(data['include_ts'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -CreateChannelMetadataData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to store the metadata in. - * @member {String} channel_url - */ -CreateChannelMetadataData.prototype['channel_url'] = undefined; - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateChannelMetadataData.prototype['metadata'] = undefined; - -/** - * Determines whether to include the timestamp of when a metadata has been created in the response. (Default: false) - * @member {Boolean} include_ts - */ -CreateChannelMetadataData.prototype['include_ts'] = undefined; - - - - - - -export default CreateChannelMetadataData; - diff --git a/src/model/CreateChannelMetadataResponse.js b/src/model/CreateChannelMetadataResponse.js deleted file mode 100644 index 072d9d7..0000000 --- a/src/model/CreateChannelMetadataResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateChannelMetadataResponse model module. - * @module model/CreateChannelMetadataResponse - * @version 0.0.16 - */ -class CreateChannelMetadataResponse { - /** - * Constructs a new CreateChannelMetadataResponse. - * @alias module:model/CreateChannelMetadataResponse - */ - constructor() { - - CreateChannelMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateChannelMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateChannelMetadataResponse} obj Optional instance to populate. - * @return {module:model/CreateChannelMetadataResponse} The populated CreateChannelMetadataResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateChannelMetadataResponse(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], {'String': 'String'}); - } - if (data.hasOwnProperty('include_ts')) { - obj['include_ts'] = ApiClient.convertToType(data['include_ts'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Object.} metadata - */ -CreateChannelMetadataResponse.prototype['metadata'] = undefined; - -/** - * @member {Number} include_ts - */ -CreateChannelMetadataResponse.prototype['include_ts'] = undefined; - - - - - - -export default CreateChannelMetadataResponse; - diff --git a/src/model/CreateUserData.js b/src/model/CreateUserData.js deleted file mode 100644 index d94eaf2..0000000 --- a/src/model/CreateUserData.js +++ /dev/null @@ -1,132 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateUserData model module. - * @module model/CreateUserData - * @version 0.0.16 - */ -class CreateUserData { - /** - * Constructs a new CreateUserData. - * @alias module:model/CreateUserData - * @param userId {String} Specifies a user's unique ID, which is used to sign into the Sendbird service. The length is limited to 80 characters.

Do not use PII (Personally Identifiable Information) of your service, such as user email address, legal name or phone number. - * @param nickname {String} Specifies a nickname for a new user. The length is limited to 80 characters. - * @param profileUrl {String} Specifies the URL of the user's profile image. If left empty, no profile image is set for the user. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - */ - constructor(userId, nickname, profileUrl) { - - CreateUserData.initialize(this, userId, nickname, profileUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId, nickname, profileUrl) { - obj['user_id'] = userId; - obj['nickname'] = nickname; - obj['profile_url'] = profileUrl; - } - - /** - * Constructs a CreateUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserData} obj Optional instance to populate. - * @return {module:model/CreateUserData} The populated CreateUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('profile_file')) { - obj['profile_file'] = ApiClient.convertToType(data['profile_file'], File); - } - if (data.hasOwnProperty('issue_access_token')) { - obj['issue_access_token'] = ApiClient.convertToType(data['issue_access_token'], 'Boolean'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - } - return obj; - } - - -} - -/** - * Specifies a user's unique ID, which is used to sign into the Sendbird service. The length is limited to 80 characters.

Do not use PII (Personally Identifiable Information) of your service, such as user email address, legal name or phone number. - * @member {String} user_id - */ -CreateUserData.prototype['user_id'] = undefined; - -/** - * Specifies a nickname for a new user. The length is limited to 80 characters. - * @member {String} nickname - */ -CreateUserData.prototype['nickname'] = undefined; - -/** - * Specifies the URL of the user's profile image. If left empty, no profile image is set for the user. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - * @member {String} profile_url - */ -CreateUserData.prototype['profile_url'] = undefined; - -/** - * Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. - * @member {File} profile_file - */ -CreateUserData.prototype['profile_file'] = undefined; - -/** - * Determines whether to create an access token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_access_token - */ -CreateUserData.prototype['issue_access_token'] = undefined; - -/** - * Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. - * @member {Array.} discovery_keys - */ -CreateUserData.prototype['discovery_keys'] = undefined; - -/** - * Specifies a `JSON` object to store key-value items for additional user information such as phone number, email or a long description of the user. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateUserData.prototype['metadata'] = undefined; - - - - - - -export default CreateUserData; - diff --git a/src/model/CreateUserMetadataData.js b/src/model/CreateUserMetadataData.js deleted file mode 100644 index 8c7fd21..0000000 --- a/src/model/CreateUserMetadataData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateUserMetadataData model module. - * @module model/CreateUserMetadataData - * @version 0.0.16 - */ -class CreateUserMetadataData { - /** - * Constructs a new CreateUserMetadataData. - * @alias module:model/CreateUserMetadataData - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - */ - constructor(metadata) { - - CreateUserMetadataData.initialize(this, metadata); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, metadata) { - obj['metadata'] = metadata; - } - - /** - * Constructs a CreateUserMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserMetadataData} obj Optional instance to populate. - * @return {module:model/CreateUserMetadataData} The populated CreateUserMetadataData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserMetadataData(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - } - return obj; - } - - -} - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -CreateUserMetadataData.prototype['metadata'] = undefined; - - - - - - -export default CreateUserMetadataData; - diff --git a/src/model/CreateUserMetadataResponse.js b/src/model/CreateUserMetadataResponse.js deleted file mode 100644 index 781f629..0000000 --- a/src/model/CreateUserMetadataResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateUserMetadataResponse model module. - * @module model/CreateUserMetadataResponse - * @version 0.0.16 - */ -class CreateUserMetadataResponse { - /** - * Constructs a new CreateUserMetadataResponse. - * @alias module:model/CreateUserMetadataResponse - */ - constructor() { - - CreateUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/CreateUserMetadataResponse} The populated CreateUserMetadataResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserMetadataResponse(); - - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = ApiClient.convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} anyOf - */ -CreateUserMetadataResponse.prototype['anyOf'] = undefined; - - - - - - -export default CreateUserMetadataResponse; - diff --git a/src/model/CreateUserTokenData.js b/src/model/CreateUserTokenData.js deleted file mode 100644 index bc55d92..0000000 --- a/src/model/CreateUserTokenData.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The CreateUserTokenData model module. - * @module model/CreateUserTokenData - * @version 0.0.16 - */ -class CreateUserTokenData { - /** - * Constructs a new CreateUserTokenData. - * @alias module:model/CreateUserTokenData - */ - constructor() { - - CreateUserTokenData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CreateUserTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CreateUserTokenData} obj Optional instance to populate. - * @return {module:model/CreateUserTokenData} The populated CreateUserTokenData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CreateUserTokenData(); - - if (data.hasOwnProperty('expires_at')) { - obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the expiration time of the new session token in Unix milliseconds format. By default, the expiration time of a session token is seven days from the timestamp when the token was issued. - * @member {Number} expires_at - */ -CreateUserTokenData.prototype['expires_at'] = undefined; - - - - - - -export default CreateUserTokenData; - diff --git a/src/model/CreateUserTokenRequest.js b/src/model/CreateUserTokenRequest.js new file mode 100644 index 0000000..acdcd13 --- /dev/null +++ b/src/model/CreateUserTokenRequest.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateUserTokenRequest model module. + * @module model/CreateUserTokenRequest + * @version 2.0.0 + */ +class CreateUserTokenRequest { + /** + * Constructs a new CreateUserTokenRequest. + * @alias module:model/CreateUserTokenRequest + */ + constructor() { + + CreateUserTokenRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateUserTokenRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateUserTokenRequest} obj Optional instance to populate. + * @return {module:model/CreateUserTokenRequest} The populated CreateUserTokenRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateUserTokenRequest(); + + if (data.hasOwnProperty('expires_at')) { + obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} expires_at + */ +CreateUserTokenRequest.prototype['expires_at'] = undefined; + + + + + + +export default CreateUserTokenRequest; + diff --git a/src/model/CreateUserTokenResponse.js b/src/model/CreateUserTokenResponse.js index 9d00982..ac72d1d 100644 --- a/src/model/CreateUserTokenResponse.js +++ b/src/model/CreateUserTokenResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateUserTokenResponse model module. * @module model/CreateUserTokenResponse - * @version 0.0.16 + * @version 2.0.0 */ class CreateUserTokenResponse { /** @@ -47,12 +47,12 @@ class CreateUserTokenResponse { if (data) { obj = obj || new CreateUserTokenResponse(); - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } if (data.hasOwnProperty('expires_at')) { obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Number'); } + if (data.hasOwnProperty('token')) { + obj['token'] = ApiClient.convertToType(data['token'], 'String'); + } } return obj; } @@ -61,14 +61,14 @@ class CreateUserTokenResponse { } /** - * @member {String} token + * @member {Number} expires_at */ -CreateUserTokenResponse.prototype['token'] = undefined; +CreateUserTokenResponse.prototype['expires_at'] = undefined; /** - * @member {Number} expires_at + * @member {String} token */ -CreateUserTokenResponse.prototype['expires_at'] = undefined; +CreateUserTokenResponse.prototype['token'] = undefined; diff --git a/src/model/CustomTypeListBannedUsersResponse.js b/src/model/CustomTypeListBannedUsersResponse.js deleted file mode 100644 index 33b196c..0000000 --- a/src/model/CustomTypeListBannedUsersResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcListBannedUsersResponseBannedListInner from './OcListBannedUsersResponseBannedListInner'; - -/** - * The CustomTypeListBannedUsersResponse model module. - * @module model/CustomTypeListBannedUsersResponse - * @version 0.0.16 - */ -class CustomTypeListBannedUsersResponse { - /** - * Constructs a new CustomTypeListBannedUsersResponse. - * @alias module:model/CustomTypeListBannedUsersResponse - */ - constructor() { - - CustomTypeListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a CustomTypeListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/CustomTypeListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/CustomTypeListBannedUsersResponse} The populated CustomTypeListBannedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new CustomTypeListBannedUsersResponse(); - - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = ApiClient.convertToType(data['banned_list'], [OcListBannedUsersResponseBannedListInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} banned_list - */ -CustomTypeListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {String} next - */ -CustomTypeListBannedUsersResponse.prototype['next'] = undefined; - - - - - - -export default CustomTypeListBannedUsersResponse; - diff --git a/src/model/DeleteAllowedIpsFromWhitelistResponse.js b/src/model/DeleteAllowedIpsFromWhitelistResponse.js deleted file mode 100644 index 8c20eb4..0000000 --- a/src/model/DeleteAllowedIpsFromWhitelistResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteAllowedIpsFromWhitelistResponse model module. - * @module model/DeleteAllowedIpsFromWhitelistResponse - * @version 0.0.16 - */ -class DeleteAllowedIpsFromWhitelistResponse { - /** - * Constructs a new DeleteAllowedIpsFromWhitelistResponse. - * @alias module:model/DeleteAllowedIpsFromWhitelistResponse - */ - constructor() { - - DeleteAllowedIpsFromWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteAllowedIpsFromWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteAllowedIpsFromWhitelistResponse} obj Optional instance to populate. - * @return {module:model/DeleteAllowedIpsFromWhitelistResponse} The populated DeleteAllowedIpsFromWhitelistResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteAllowedIpsFromWhitelistResponse(); - - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = ApiClient.convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} ip_whitelist_addresses - */ -DeleteAllowedIpsFromWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; - - - - - - -export default DeleteAllowedIpsFromWhitelistResponse; - diff --git a/src/model/DeleteApnsCertificateByIdResponse.js b/src/model/DeleteApnsCertificateByIdResponse.js deleted file mode 100644 index 00a599f..0000000 --- a/src/model/DeleteApnsCertificateByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The DeleteApnsCertificateByIdResponse model module. - * @module model/DeleteApnsCertificateByIdResponse - * @version 0.0.16 - */ -class DeleteApnsCertificateByIdResponse { - /** - * Constructs a new DeleteApnsCertificateByIdResponse. - * @alias module:model/DeleteApnsCertificateByIdResponse - */ - constructor() { - - DeleteApnsCertificateByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a DeleteApnsCertificateByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/DeleteApnsCertificateByIdResponse} obj Optional instance to populate. - * @return {module:model/DeleteApnsCertificateByIdResponse} The populated DeleteApnsCertificateByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new DeleteApnsCertificateByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -DeleteApnsCertificateByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default DeleteApnsCertificateByIdResponse; - diff --git a/src/model/EnableReactionsData.js b/src/model/EnableReactionsData.js deleted file mode 100644 index 5644fe1..0000000 --- a/src/model/EnableReactionsData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The EnableReactionsData model module. - * @module model/EnableReactionsData - * @version 0.0.16 - */ -class EnableReactionsData { - /** - * Constructs a new EnableReactionsData. - * @alias module:model/EnableReactionsData - * @param enabled {Boolean} Determines whether to turn on the message reaction feature. (Default: false) - */ - constructor(enabled) { - - EnableReactionsData.initialize(this, enabled); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, enabled) { - obj['enabled'] = enabled; - } - - /** - * Constructs a EnableReactionsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EnableReactionsData} obj Optional instance to populate. - * @return {module:model/EnableReactionsData} The populated EnableReactionsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EnableReactionsData(); - - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Determines whether to turn on the message reaction feature. (Default: false) - * @member {Boolean} enabled - */ -EnableReactionsData.prototype['enabled'] = undefined; - - - - - - -export default EnableReactionsData; - diff --git a/src/model/EnableReactionsResponse.js b/src/model/EnableReactionsResponse.js deleted file mode 100644 index e79f514..0000000 --- a/src/model/EnableReactionsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The EnableReactionsResponse model module. - * @module model/EnableReactionsResponse - * @version 0.0.16 - */ -class EnableReactionsResponse { - /** - * Constructs a new EnableReactionsResponse. - * @alias module:model/EnableReactionsResponse - */ - constructor() { - - EnableReactionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a EnableReactionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/EnableReactionsResponse} obj Optional instance to populate. - * @return {module:model/EnableReactionsResponse} The populated EnableReactionsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new EnableReactionsResponse(); - - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = ApiClient.convertToType(data['reactions'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} reactions - */ -EnableReactionsResponse.prototype['reactions'] = undefined; - - - - - - -export default EnableReactionsResponse; - diff --git a/src/model/File.js b/src/model/File.js deleted file mode 100644 index 0786b53..0000000 --- a/src/model/File.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The File model module. - * @module model/File - * @version 0.0.16 - */ -class File { - /** - * Constructs a new File. - * @alias module:model/File - */ - constructor() { - - File.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a File from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/File} obj Optional instance to populate. - * @return {module:model/File} The populated File instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new File(); - - if (data.hasOwnProperty('last_modified')) { - obj['last_modified'] = ApiClient.convertToType(data['last_modified'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('webkit_relative_path')) { - obj['webkit_relative_path'] = ApiClient.convertToType(data['webkit_relative_path'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} last_modified - */ -File.prototype['last_modified'] = undefined; - -/** - * @member {String} name - */ -File.prototype['name'] = undefined; - -/** - * @member {Number} size - */ -File.prototype['size'] = undefined; - -/** - * @member {String} type - */ -File.prototype['type'] = undefined; - -/** - * @member {String} webkit_relative_path - */ -File.prototype['webkit_relative_path'] = undefined; - - - - - - -export default File; - diff --git a/src/model/FreezeAGroupChannelRequest.js b/src/model/FreezeAGroupChannelRequest.js new file mode 100644 index 0000000..36a7efe --- /dev/null +++ b/src/model/FreezeAGroupChannelRequest.js @@ -0,0 +1,73 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FreezeAGroupChannelRequest model module. + * @module model/FreezeAGroupChannelRequest + * @version 2.0.0 + */ +class FreezeAGroupChannelRequest { + /** + * Constructs a new FreezeAGroupChannelRequest. + * @alias module:model/FreezeAGroupChannelRequest + * @param freeze {Boolean} + */ + constructor(freeze) { + + FreezeAGroupChannelRequest.initialize(this, freeze); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, freeze) { + obj['freeze'] = freeze; + } + + /** + * Constructs a FreezeAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FreezeAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/FreezeAGroupChannelRequest} The populated FreezeAGroupChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FreezeAGroupChannelRequest(); + + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} freeze + */ +FreezeAGroupChannelRequest.prototype['freeze'] = undefined; + + + + + + +export default FreezeAGroupChannelRequest; + diff --git a/src/model/FreezeAnOpenChannelRequest.js b/src/model/FreezeAnOpenChannelRequest.js new file mode 100644 index 0000000..c26bd2c --- /dev/null +++ b/src/model/FreezeAnOpenChannelRequest.js @@ -0,0 +1,74 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FreezeAnOpenChannelRequest model module. + * @module model/FreezeAnOpenChannelRequest + * @version 2.0.0 + */ +class FreezeAnOpenChannelRequest { + /** + * Constructs a new FreezeAnOpenChannelRequest. + * @alias module:model/FreezeAnOpenChannelRequest + * @param freeze {Boolean} Determines whether to freeze the channel. (Default: true) + */ + constructor(freeze) { + + FreezeAnOpenChannelRequest.initialize(this, freeze); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, freeze) { + obj['freeze'] = freeze; + } + + /** + * Constructs a FreezeAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FreezeAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/FreezeAnOpenChannelRequest} The populated FreezeAnOpenChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FreezeAnOpenChannelRequest(); + + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Determines whether to freeze the channel. (Default: true) + * @member {Boolean} freeze + */ +FreezeAnOpenChannelRequest.prototype['freeze'] = undefined; + + + + + + +export default FreezeAnOpenChannelRequest; + diff --git a/src/model/Function.js b/src/model/Function.js deleted file mode 100644 index 9a47699..0000000 --- a/src/model/Function.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The Function model module. - * @module model/Function - * @version 0.0.16 - */ -class Function { - /** - * Constructs a new Function. - * @alias module:model/Function - */ - constructor() { - - Function.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a Function from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/Function} obj Optional instance to populate. - * @return {module:model/Function} The populated Function instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new Function(); - - if (data.hasOwnProperty('arguments')) { - obj['arguments'] = ApiClient.convertToType(data['arguments'], Object); - } - if (data.hasOwnProperty('caller')) { - obj['caller'] = Function.constructFromObject(data['caller']); - } - if (data.hasOwnProperty('length')) { - obj['length'] = ApiClient.convertToType(data['length'], 'Number'); - } - if (data.hasOwnProperty('prototype')) { - obj['prototype'] = ApiClient.convertToType(data['prototype'], Object); - } - } - return obj; - } - - -} - -/** - * @member {Object} arguments - */ -Function.prototype['arguments'] = undefined; - -/** - * @member {module:model/Function} caller - */ -Function.prototype['caller'] = undefined; - -/** - * @member {Number} length - */ -Function.prototype['length'] = undefined; - -/** - * @member {Object} prototype - */ -Function.prototype['prototype'] = undefined; - - - - - - -export default Function; - diff --git a/src/model/GcAcceptInvitationData.js b/src/model/GcAcceptInvitationData.js deleted file mode 100644 index 0c70f99..0000000 --- a/src/model/GcAcceptInvitationData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcAcceptInvitationData model module. - * @module model/GcAcceptInvitationData - * @version 0.0.16 - */ -class GcAcceptInvitationData { - /** - * Constructs a new GcAcceptInvitationData. - * @alias module:model/GcAcceptInvitationData - * @param channelUrl {String} Specifies the URL of the private group channel to join through accepting an invitation. - * @param userId {String} Specifies the unique ID of the user to accept an invitation to join the private group channel. - * @param accessCode {String} This property should be specified if the private group channel to join requires an access code to the invited users, which means that the is_access_code_required property of the channel resource is true. - */ - constructor(channelUrl, userId, accessCode) { - - GcAcceptInvitationData.initialize(this, channelUrl, userId, accessCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, accessCode) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['access_code'] = accessCode; - } - - /** - * Constructs a GcAcceptInvitationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcAcceptInvitationData} obj Optional instance to populate. - * @return {module:model/GcAcceptInvitationData} The populated GcAcceptInvitationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcAcceptInvitationData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the private group channel to join through accepting an invitation. - * @member {String} channel_url - */ -GcAcceptInvitationData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to accept an invitation to join the private group channel. - * @member {String} user_id - */ -GcAcceptInvitationData.prototype['user_id'] = undefined; - -/** - * This property should be specified if the private group channel to join requires an access code to the invited users, which means that the is_access_code_required property of the channel resource is true. - * @member {String} access_code - */ -GcAcceptInvitationData.prototype['access_code'] = undefined; - - - - - - -export default GcAcceptInvitationData; - diff --git a/src/model/GcBanUserData.js b/src/model/GcBanUserData.js deleted file mode 100644 index ad7a00b..0000000 --- a/src/model/GcBanUserData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcBanUserData model module. - * @module model/GcBanUserData - * @version 0.0.16 - */ -class GcBanUserData { - /** - * Constructs a new GcBanUserData. - * @alias module:model/GcBanUserData - * @param channelUrl {String} Specifies the URL of the channel where to ban a user. - * @param userId {String} Specifies the unique ID of the user to ban. - * @param agentId {String} Specifies the ID of the agent (operator) who bans the user. - * @param seconds {Number} Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the banning. The length is limited to 250 characters. - */ - constructor(channelUrl, userId, agentId, seconds, description) { - - GcBanUserData.initialize(this, channelUrl, userId, agentId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, agentId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['agent_id'] = agentId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcBanUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcBanUserData} obj Optional instance to populate. - * @return {module:model/GcBanUserData} The populated GcBanUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcBanUserData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('agent_id')) { - obj['agent_id'] = ApiClient.convertToType(data['agent_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel where to ban a user. - * @member {String} channel_url - */ -GcBanUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to ban. - * @member {String} user_id - */ -GcBanUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the agent (operator) who bans the user. - * @member {String} agent_id - */ -GcBanUserData.prototype['agent_id'] = undefined; - -/** - * Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -GcBanUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the banning. The length is limited to 250 characters. - * @member {String} description - */ -GcBanUserData.prototype['description'] = undefined; - - - - - - -export default GcBanUserData; - diff --git a/src/model/GcBanUserResponse.js b/src/model/GcBanUserResponse.js deleted file mode 100644 index 8ffba75..0000000 --- a/src/model/GcBanUserResponse.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcDeleteChannelByUrl200Response from './OcDeleteChannelByUrl200Response'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcBanUserResponse model module. - * @module model/GcBanUserResponse - * @version 0.0.16 - */ -class GcBanUserResponse { - /** - * Constructs a new GcBanUserResponse. - * @alias module:model/GcBanUserResponse - */ - constructor() { - - GcBanUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcBanUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcBanUserResponse} obj Optional instance to populate. - * @return {module:model/GcBanUserResponse} The populated GcBanUserResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcBanUserResponse(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = OcDeleteChannelByUrl200Response.constructFromObject(data['metadata']); - } - if (data.hasOwnProperty('next_url')) { - obj['next_url'] = ApiClient.convertToType(data['next_url'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -GcBanUserResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcBanUserResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcBanUserResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcBanUserResponse.prototype['description'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -GcBanUserResponse.prototype['metadata'] = undefined; - -/** - * @member {String} next_url - */ -GcBanUserResponse.prototype['next_url'] = undefined; - -/** - * @member {String} nickname - */ -GcBanUserResponse.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -GcBanUserResponse.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -GcBanUserResponse.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} user_id - */ -GcBanUserResponse.prototype['user_id'] = undefined; - - - - - - -export default GcBanUserResponse; - diff --git a/src/model/GcCheckIfMemberByIdResponse.js b/src/model/GcCheckIfMemberByIdResponse.js deleted file mode 100644 index 378fb11..0000000 --- a/src/model/GcCheckIfMemberByIdResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcCheckIfMemberByIdResponse model module. - * @module model/GcCheckIfMemberByIdResponse - * @version 0.0.16 - */ -class GcCheckIfMemberByIdResponse { - /** - * Constructs a new GcCheckIfMemberByIdResponse. - * @alias module:model/GcCheckIfMemberByIdResponse - */ - constructor() { - - GcCheckIfMemberByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcCheckIfMemberByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcCheckIfMemberByIdResponse} obj Optional instance to populate. - * @return {module:model/GcCheckIfMemberByIdResponse} The populated GcCheckIfMemberByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcCheckIfMemberByIdResponse(); - - if (data.hasOwnProperty('is_member')) { - obj['is_member'] = ApiClient.convertToType(data['is_member'], 'Boolean'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} is_member - */ -GcCheckIfMemberByIdResponse.prototype['is_member'] = undefined; - -/** - * @member {String} state - */ -GcCheckIfMemberByIdResponse.prototype['state'] = undefined; - - - - - - -export default GcCheckIfMemberByIdResponse; - diff --git a/src/model/GcCreateChannelData.js b/src/model/GcCreateChannelData.js deleted file mode 100644 index 45eb0e6..0000000 --- a/src/model/GcCreateChannelData.js +++ /dev/null @@ -1,237 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcCreateChannelData model module. - * @module model/GcCreateChannelData - * @version 0.0.16 - */ -class GcCreateChannelData { - /** - * Constructs a new GcCreateChannelData. - * @alias module:model/GcCreateChannelData - * @param userIds {Array.} Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. - */ - constructor(userIds) { - - GcCreateChannelData.initialize(this, userIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a GcCreateChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcCreateChannelData} obj Optional instance to populate. - * @return {module:model/GcCreateChannelData} The populated GcCreateChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcCreateChannelData(); - - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], [SendBirdUser]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); - } - if (data.hasOwnProperty('inviter_id')) { - obj['inviter_id'] = ApiClient.convertToType(data['inviter_id'], 'String'); - } - if (data.hasOwnProperty('strict')) { - obj['strict'] = ApiClient.convertToType(data['strict'], 'Boolean'); - } - if (data.hasOwnProperty('invitation_status')) { - obj['invitation_status'] = ApiClient.convertToType(data['invitation_status'], Object); - } - if (data.hasOwnProperty('hidden_status')) { - obj['hidden_status'] = ApiClient.convertToType(data['hidden_status'], Object); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('block_sdk_user_channel_join')) { - obj['block_sdk_user_channel_join'] = ApiClient.convertToType(data['block_sdk_user_channel_join'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The users below and this property can be used interchangeably. - * @member {Array.} user_ids - */ -GcCreateChannelData.prototype['user_ids'] = undefined; - -/** - * Specifies an array of one or more IDs of users to invite to the channel. The maximum number of users to be invited at once is 100. The user_ids above and this property can be used interchangeably. - * @member {Array.} users - */ -GcCreateChannelData.prototype['users'] = undefined; - -/** - * Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. (Default: group channel) - * @member {String} name - */ -GcCreateChannelData.prototype['name'] = undefined; - -/** - * Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. - * @member {String} channel_url - */ -GcCreateChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the URL of the cover image for the channel. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -GcCreateChannelData.prototype['cover_url'] = undefined; - -/** - * Uploads the cover image file for the channel. - * @member {File} cover_file - */ -GcCreateChannelData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -GcCreateChannelData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -GcCreateChannelData.prototype['data'] = undefined; - -/** - * Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the same users in the user_ids or users property or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @member {Boolean} is_distinct - */ -GcCreateChannelData.prototype['is_distinct'] = undefined; - -/** - * Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @member {Boolean} is_public - */ -GcCreateChannelData.prototype['is_public'] = undefined; - -/** - * Determines whether to allow the channel to accommodate more than 2,000 members. (Default: false)

Supergroup channels are not supported with the is_distinct property and the property is false by default. - * @member {Boolean} is_super - */ -GcCreateChannelData.prototype['is_super'] = undefined; - -/** - * Determines whether to preserve the messages in the channel for the purpose of retrieving chat history. (Default: false) - * @member {Boolean} is_ephemeral - */ -GcCreateChannelData.prototype['is_ephemeral'] = undefined; - -/** - * This parameter can only be used when the channel operator creates a public group channel. They can set an access code for the corresponding type of channel. The channel then requires the specified access code to a user who attempts to join. If specified, the is_access_code_required property of the channel resource is set to true. - * @member {String} access_code - */ -GcCreateChannelData.prototype['access_code'] = undefined; - -/** - * Specifies the ID of the user who has invited other users as members of the channel. The inviter is not automatically registered to the channel as a member, so you should specify the ID of the inviter in the user_ids property below if needed. - * @member {String} inviter_id - */ -GcCreateChannelData.prototype['inviter_id'] = undefined; - -/** - * Determines whether to receive a `400111` error and cease channel creation when there is at least one non-existing user in the specified user_ids or users property above. If set to false, the channel will be created excluding the non-existing users without receiving the mentioned error. (Default: false) - * @member {Boolean} strict - */ -GcCreateChannelData.prototype['strict'] = undefined; - -/** - * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @member {Object} invitation_status - */ -GcCreateChannelData.prototype['invitation_status'] = undefined; - -/** - * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - * @member {Object} hidden_status - */ -GcCreateChannelData.prototype['hidden_status'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. You should also include these IDs in the user_ids property to invite them to the channel as members. They can delete any messages in the channel, and also view all messages without any filtering or throttling. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcCreateChannelData.prototype['operator_ids'] = undefined; - -/** - * Determines whether to block users from joining the channel through the Chat SDK. This parameter can be used in order to restrict the ways for users to join the channel, and only using the [join a channel](#2-join-a-channel) action can add a user to the channel. (Default: false) - * @member {Boolean} block_sdk_user_channel_join - */ -GcCreateChannelData.prototype['block_sdk_user_channel_join'] = undefined; - - - - - - -export default GcCreateChannelData; - diff --git a/src/model/GcDeclineInvitationData.js b/src/model/GcDeclineInvitationData.js deleted file mode 100644 index b86ccd5..0000000 --- a/src/model/GcDeclineInvitationData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcDeclineInvitationData model module. - * @module model/GcDeclineInvitationData - * @version 0.0.16 - */ -class GcDeclineInvitationData { - /** - * Constructs a new GcDeclineInvitationData. - * @alias module:model/GcDeclineInvitationData - * @param channelUrl {String} Specifies the URL of the private group channel to decline an invitation from. - * @param userId {String} Specifies the unique ID of the user to decline an invitation. - */ - constructor(channelUrl, userId) { - - GcDeclineInvitationData.initialize(this, channelUrl, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - } - - /** - * Constructs a GcDeclineInvitationData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcDeclineInvitationData} obj Optional instance to populate. - * @return {module:model/GcDeclineInvitationData} The populated GcDeclineInvitationData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcDeclineInvitationData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the private group channel to decline an invitation from. - * @member {String} channel_url - */ -GcDeclineInvitationData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to decline an invitation. - * @member {String} user_id - */ -GcDeclineInvitationData.prototype['user_id'] = undefined; - - - - - - -export default GcDeclineInvitationData; - diff --git a/src/model/GcFreezeChannelData.js b/src/model/GcFreezeChannelData.js deleted file mode 100644 index cd3393f..0000000 --- a/src/model/GcFreezeChannelData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcFreezeChannelData model module. - * @module model/GcFreezeChannelData - * @version 0.0.16 - */ -class GcFreezeChannelData { - /** - * Constructs a new GcFreezeChannelData. - * @alias module:model/GcFreezeChannelData - * @param channelUrl {String} Specifies the URL of the channel to freeze. - * @param freeze {Boolean} Determines whether to freeze the channel. (Default: false) - */ - constructor(channelUrl, freeze) { - - GcFreezeChannelData.initialize(this, channelUrl, freeze); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, freeze) { - obj['channel_url'] = channelUrl; - obj['freeze'] = freeze; - } - - /** - * Constructs a GcFreezeChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcFreezeChannelData} obj Optional instance to populate. - * @return {module:model/GcFreezeChannelData} The populated GcFreezeChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcFreezeChannelData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to freeze. - * @member {String} channel_url - */ -GcFreezeChannelData.prototype['channel_url'] = undefined; - -/** - * Determines whether to freeze the channel. (Default: false) - * @member {Boolean} freeze - */ -GcFreezeChannelData.prototype['freeze'] = undefined; - - - - - - -export default GcFreezeChannelData; - diff --git a/src/model/GcHideOrArchiveChannelData.js b/src/model/GcHideOrArchiveChannelData.js deleted file mode 100644 index 9019463..0000000 --- a/src/model/GcHideOrArchiveChannelData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcHideOrArchiveChannelData model module. - * @module model/GcHideOrArchiveChannelData - * @version 0.0.16 - */ -class GcHideOrArchiveChannelData { - /** - * Constructs a new GcHideOrArchiveChannelData. - * @alias module:model/GcHideOrArchiveChannelData - * @param channelUrl {String} Specifies the URL of the channel to hide or archive. - * @param userId {String} Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. - * @param allowAutoUnhide {Boolean} Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. - * @param shouldHideAll {Boolean} Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) - * @param hidePreviousMessages {Boolean} When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. - */ - constructor(channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages) { - - GcHideOrArchiveChannelData.initialize(this, channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, allowAutoUnhide, shouldHideAll, hidePreviousMessages) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['allow_auto_unhide'] = allowAutoUnhide; - obj['should_hide_all'] = shouldHideAll; - obj['hide_previous_messages'] = hidePreviousMessages; - } - - /** - * Constructs a GcHideOrArchiveChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcHideOrArchiveChannelData} obj Optional instance to populate. - * @return {module:model/GcHideOrArchiveChannelData} The populated GcHideOrArchiveChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcHideOrArchiveChannelData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('allow_auto_unhide')) { - obj['allow_auto_unhide'] = ApiClient.convertToType(data['allow_auto_unhide'], 'Boolean'); - } - if (data.hasOwnProperty('should_hide_all')) { - obj['should_hide_all'] = ApiClient.convertToType(data['should_hide_all'], 'Boolean'); - } - if (data.hasOwnProperty('hide_previous_messages')) { - obj['hide_previous_messages'] = ApiClient.convertToType(data['hide_previous_messages'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to hide or archive. - * @member {String} channel_url - */ -GcHideOrArchiveChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. - * @member {String} user_id - */ -GcHideOrArchiveChannelData.prototype['user_id'] = undefined; - -/** - * Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. - * @member {Boolean} allow_auto_unhide - */ -GcHideOrArchiveChannelData.prototype['allow_auto_unhide'] = undefined; - -/** - * Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) - * @member {Boolean} should_hide_all - */ -GcHideOrArchiveChannelData.prototype['should_hide_all'] = undefined; - -/** - * When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. - * @member {Boolean} hide_previous_messages - */ -GcHideOrArchiveChannelData.prototype['hide_previous_messages'] = undefined; - - - - - - -export default GcHideOrArchiveChannelData; - diff --git a/src/model/GcInviteAsMembersData.js b/src/model/GcInviteAsMembersData.js deleted file mode 100644 index a479614..0000000 --- a/src/model/GcInviteAsMembersData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcInviteAsMembersData model module. - * @module model/GcInviteAsMembersData - * @version 0.0.16 - */ -class GcInviteAsMembersData { - /** - * Constructs a new GcInviteAsMembersData. - * @alias module:model/GcInviteAsMembersData - * @param channelUrl {String} Specifies the URL of the channel to invite into. - * @param userIds {Array.} Specifies an array of one or more user IDs to invite into the channel. The maximum number of users to be invited at once is 100. The users can be used instead of this property. - * @param users {Array.} Specifies a list of one or more `JSON` objects which contain the user_id property to invite into the channel. The maximum number of users to be invited at once is 100. The user_ids can be used instead of this property. - * @param invitationStatus {Object} Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @param hiddenStatus {Object} Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - */ - constructor(channelUrl, userIds, users, invitationStatus, hiddenStatus) { - - GcInviteAsMembersData.initialize(this, channelUrl, userIds, users, invitationStatus, hiddenStatus); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userIds, users, invitationStatus, hiddenStatus) { - obj['channel_url'] = channelUrl; - obj['user_ids'] = userIds; - obj['users'] = users; - obj['invitation_status'] = invitationStatus; - obj['hidden_status'] = hiddenStatus; - } - - /** - * Constructs a GcInviteAsMembersData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcInviteAsMembersData} obj Optional instance to populate. - * @return {module:model/GcInviteAsMembersData} The populated GcInviteAsMembersData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcInviteAsMembersData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], ['String']); - } - if (data.hasOwnProperty('invitation_status')) { - obj['invitation_status'] = ApiClient.convertToType(data['invitation_status'], Object); - } - if (data.hasOwnProperty('hidden_status')) { - obj['hidden_status'] = ApiClient.convertToType(data['hidden_status'], Object); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to invite into. - * @member {String} channel_url - */ -GcInviteAsMembersData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more user IDs to invite into the channel. The maximum number of users to be invited at once is 100. The users can be used instead of this property. - * @member {Array.} user_ids - */ -GcInviteAsMembersData.prototype['user_ids'] = undefined; - -/** - * Specifies a list of one or more `JSON` objects which contain the user_id property to invite into the channel. The maximum number of users to be invited at once is 100. The user_ids can be used instead of this property. - * @member {Array.} users - */ -GcInviteAsMembersData.prototype['users'] = undefined; - -/** - * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) - * @member {Object} invitation_status - */ -GcInviteAsMembersData.prototype['invitation_status'] = undefined; - -/** - * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. - * @member {Object} hidden_status - */ -GcInviteAsMembersData.prototype['hidden_status'] = undefined; - - - - - - -export default GcInviteAsMembersData; - diff --git a/src/model/GcJoinChannelData.js b/src/model/GcJoinChannelData.js deleted file mode 100644 index 2813fb8..0000000 --- a/src/model/GcJoinChannelData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcJoinChannelData model module. - * @module model/GcJoinChannelData - * @version 0.0.16 - */ -class GcJoinChannelData { - /** - * Constructs a new GcJoinChannelData. - * @alias module:model/GcJoinChannelData - * @param channelUrl {String} Specifies the URL of the channel to join. - * @param userId {String} Specifies the unique ID of the user to join the public group channel. - * @param accessCode {String} This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. - */ - constructor(channelUrl, userId, accessCode) { - - GcJoinChannelData.initialize(this, channelUrl, userId, accessCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, accessCode) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['access_code'] = accessCode; - } - - /** - * Constructs a GcJoinChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcJoinChannelData} obj Optional instance to populate. - * @return {module:model/GcJoinChannelData} The populated GcJoinChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcJoinChannelData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to join. - * @member {String} channel_url - */ -GcJoinChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user to join the public group channel. - * @member {String} user_id - */ -GcJoinChannelData.prototype['user_id'] = undefined; - -/** - * This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. - * @member {String} access_code - */ -GcJoinChannelData.prototype['access_code'] = undefined; - - - - - - -export default GcJoinChannelData; - diff --git a/src/model/GcLeaveChannelData.js b/src/model/GcLeaveChannelData.js deleted file mode 100644 index e1456cc..0000000 --- a/src/model/GcLeaveChannelData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcLeaveChannelData model module. - * @module model/GcLeaveChannelData - * @version 0.0.16 - */ -class GcLeaveChannelData { - /** - * Constructs a new GcLeaveChannelData. - * @alias module:model/GcLeaveChannelData - * @param channelUrl {String} Specifies the URL of the channel to leave. - * @param userIds {Array.} Specifies an array of one or more IDs of the users to leave the channel. - * @param shouldLeaveAll {Boolean} Determines whether to make all members leave the channel. (Default: false) - */ - constructor(channelUrl, userIds, shouldLeaveAll) { - - GcLeaveChannelData.initialize(this, channelUrl, userIds, shouldLeaveAll); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userIds, shouldLeaveAll) { - obj['channel_url'] = channelUrl; - obj['user_ids'] = userIds; - obj['should_leave_all'] = shouldLeaveAll; - } - - /** - * Constructs a GcLeaveChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcLeaveChannelData} obj Optional instance to populate. - * @return {module:model/GcLeaveChannelData} The populated GcLeaveChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcLeaveChannelData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('should_leave_all')) { - obj['should_leave_all'] = ApiClient.convertToType(data['should_leave_all'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to leave. - * @member {String} channel_url - */ -GcLeaveChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of the users to leave the channel. - * @member {Array.} user_ids - */ -GcLeaveChannelData.prototype['user_ids'] = undefined; - -/** - * Determines whether to make all members leave the channel. (Default: false) - * @member {Boolean} should_leave_all - */ -GcLeaveChannelData.prototype['should_leave_all'] = undefined; - - - - - - -export default GcLeaveChannelData; - diff --git a/src/model/GcListBannedUsersResponse.js b/src/model/GcListBannedUsersResponse.js deleted file mode 100644 index e633f9d..0000000 --- a/src/model/GcListBannedUsersResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcListBannedUsersResponseBannedListInner from './OcListBannedUsersResponseBannedListInner'; - -/** - * The GcListBannedUsersResponse model module. - * @module model/GcListBannedUsersResponse - * @version 0.0.16 - */ -class GcListBannedUsersResponse { - /** - * Constructs a new GcListBannedUsersResponse. - * @alias module:model/GcListBannedUsersResponse - */ - constructor() { - - GcListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/GcListBannedUsersResponse} The populated GcListBannedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListBannedUsersResponse(); - - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = ApiClient.convertToType(data['banned_list'], [OcListBannedUsersResponseBannedListInner]); - } - if (data.hasOwnProperty('total_ban_count')) { - obj['total_ban_count'] = ApiClient.convertToType(data['total_ban_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} banned_list - */ -GcListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {Number} total_ban_count - */ -GcListBannedUsersResponse.prototype['total_ban_count'] = undefined; - -/** - * @member {String} next - */ -GcListBannedUsersResponse.prototype['next'] = undefined; - - - - - - -export default GcListBannedUsersResponse; - diff --git a/src/model/GcListChannelsResponse.js b/src/model/GcListChannelsResponse.js deleted file mode 100644 index 90ee0be..0000000 --- a/src/model/GcListChannelsResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdGroupChannel from './SendBirdGroupChannel'; - -/** - * The GcListChannelsResponse model module. - * @module model/GcListChannelsResponse - * @version 0.0.16 - */ -class GcListChannelsResponse { - /** - * Constructs a new GcListChannelsResponse. - * @alias module:model/GcListChannelsResponse - */ - constructor() { - - GcListChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcListChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListChannelsResponse} obj Optional instance to populate. - * @return {module:model/GcListChannelsResponse} The populated GcListChannelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListChannelsResponse(); - - if (data.hasOwnProperty('channels')) { - obj['channels'] = ApiClient.convertToType(data['channels'], [SendBirdGroupChannel]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - if (data.hasOwnProperty('ts')) { - obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} channels - */ -GcListChannelsResponse.prototype['channels'] = undefined; - -/** - * @member {String} next - */ -GcListChannelsResponse.prototype['next'] = undefined; - -/** - * @member {Number} ts - */ -GcListChannelsResponse.prototype['ts'] = undefined; - - - - - - -export default GcListChannelsResponse; - diff --git a/src/model/GcListMembersResponse.js b/src/model/GcListMembersResponse.js deleted file mode 100644 index 3844224..0000000 --- a/src/model/GcListMembersResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcListMembersResponse model module. - * @module model/GcListMembersResponse - * @version 0.0.16 - */ -class GcListMembersResponse { - /** - * Constructs a new GcListMembersResponse. - * @alias module:model/GcListMembersResponse - */ - constructor() { - - GcListMembersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcListMembersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListMembersResponse} obj Optional instance to populate. - * @return {module:model/GcListMembersResponse} The populated GcListMembersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListMembersResponse(); - - if (data.hasOwnProperty('members')) { - obj['members'] = ApiClient.convertToType(data['members'], [SendBirdUser]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} members - */ -GcListMembersResponse.prototype['members'] = undefined; - -/** - * @member {String} next - */ -GcListMembersResponse.prototype['next'] = undefined; - - - - - - -export default GcListMembersResponse; - diff --git a/src/model/GcListMutedUsersResponse.js b/src/model/GcListMutedUsersResponse.js deleted file mode 100644 index 5520f46..0000000 --- a/src/model/GcListMutedUsersResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcListMutedUsersResponse model module. - * @module model/GcListMutedUsersResponse - * @version 0.0.16 - */ -class GcListMutedUsersResponse { - /** - * Constructs a new GcListMutedUsersResponse. - * @alias module:model/GcListMutedUsersResponse - */ - constructor() { - - GcListMutedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcListMutedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListMutedUsersResponse} obj Optional instance to populate. - * @return {module:model/GcListMutedUsersResponse} The populated GcListMutedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListMutedUsersResponse(); - - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = ApiClient.convertToType(data['muted_list'], [SendBirdUser]); - } - if (data.hasOwnProperty('total_mute_count')) { - obj['total_mute_count'] = ApiClient.convertToType(data['total_mute_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} muted_list - */ -GcListMutedUsersResponse.prototype['muted_list'] = undefined; - -/** - * @member {Number} total_mute_count - */ -GcListMutedUsersResponse.prototype['total_mute_count'] = undefined; - -/** - * @member {String} next - */ -GcListMutedUsersResponse.prototype['next'] = undefined; - - - - - - -export default GcListMutedUsersResponse; - diff --git a/src/model/GcListOperatorsResponse.js b/src/model/GcListOperatorsResponse.js deleted file mode 100644 index b864ead..0000000 --- a/src/model/GcListOperatorsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcListOperatorsResponse model module. - * @module model/GcListOperatorsResponse - * @version 0.0.16 - */ -class GcListOperatorsResponse { - /** - * Constructs a new GcListOperatorsResponse. - * @alias module:model/GcListOperatorsResponse - */ - constructor() { - - GcListOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcListOperatorsResponse} obj Optional instance to populate. - * @return {module:model/GcListOperatorsResponse} The populated GcListOperatorsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcListOperatorsResponse(); - - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], [SendBirdUser]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} operators - */ -GcListOperatorsResponse.prototype['operators'] = undefined; - -/** - * @member {String} next - */ -GcListOperatorsResponse.prototype['next'] = undefined; - - - - - - -export default GcListOperatorsResponse; - diff --git a/src/model/GcMarkAllMessagesAsDeliveredData.js b/src/model/GcMarkAllMessagesAsDeliveredData.js deleted file mode 100644 index 1c6f067..0000000 --- a/src/model/GcMarkAllMessagesAsDeliveredData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcMarkAllMessagesAsDeliveredData model module. - * @module model/GcMarkAllMessagesAsDeliveredData - * @version 0.0.16 - */ -class GcMarkAllMessagesAsDeliveredData { - /** - * Constructs a new GcMarkAllMessagesAsDeliveredData. - * @alias module:model/GcMarkAllMessagesAsDeliveredData - * @param applicationId {String} Specifies the unique ID of your application. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the recipient to mark messages as delivered. - */ - constructor(applicationId, channelUrl, userId) { - - GcMarkAllMessagesAsDeliveredData.initialize(this, applicationId, channelUrl, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, applicationId, channelUrl, userId) { - obj['application_id'] = applicationId; - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - } - - /** - * Constructs a GcMarkAllMessagesAsDeliveredData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsDeliveredData} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsDeliveredData} The populated GcMarkAllMessagesAsDeliveredData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsDeliveredData(); - - if (data.hasOwnProperty('application_id')) { - obj['application_id'] = ApiClient.convertToType(data['application_id'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of your application. - * @member {String} application_id - */ -GcMarkAllMessagesAsDeliveredData.prototype['application_id'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMarkAllMessagesAsDeliveredData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the recipient to mark messages as delivered. - * @member {String} user_id - */ -GcMarkAllMessagesAsDeliveredData.prototype['user_id'] = undefined; - - - - - - -export default GcMarkAllMessagesAsDeliveredData; - diff --git a/src/model/GcMarkAllMessagesAsDeliveredResponse.js b/src/model/GcMarkAllMessagesAsDeliveredResponse.js deleted file mode 100644 index 5b8cbb8..0000000 --- a/src/model/GcMarkAllMessagesAsDeliveredResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcMarkAllMessagesAsDeliveredResponse model module. - * @module model/GcMarkAllMessagesAsDeliveredResponse - * @version 0.0.16 - */ -class GcMarkAllMessagesAsDeliveredResponse { - /** - * Constructs a new GcMarkAllMessagesAsDeliveredResponse. - * @alias module:model/GcMarkAllMessagesAsDeliveredResponse - */ - constructor() { - - GcMarkAllMessagesAsDeliveredResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcMarkAllMessagesAsDeliveredResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsDeliveredResponse} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsDeliveredResponse} The populated GcMarkAllMessagesAsDeliveredResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsDeliveredResponse(); - - if (data.hasOwnProperty('ts')) { - obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} ts - */ -GcMarkAllMessagesAsDeliveredResponse.prototype['ts'] = undefined; - - - - - - -export default GcMarkAllMessagesAsDeliveredResponse; - diff --git a/src/model/GcMarkAllMessagesAsReadData.js b/src/model/GcMarkAllMessagesAsReadData.js deleted file mode 100644 index b718140..0000000 --- a/src/model/GcMarkAllMessagesAsReadData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcMarkAllMessagesAsReadData model module. - * @module model/GcMarkAllMessagesAsReadData - * @version 0.0.16 - */ -class GcMarkAllMessagesAsReadData { - /** - * Constructs a new GcMarkAllMessagesAsReadData. - * @alias module:model/GcMarkAllMessagesAsReadData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the user to mark all messages as read. - * @param timestamp {Number} Specifies the timestamp to be the reference point of marking as read. If specified, the messages received before the specified time are marked as read. - */ - constructor(channelUrl, userId, timestamp) { - - GcMarkAllMessagesAsReadData.initialize(this, channelUrl, userId, timestamp); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, timestamp) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['timestamp'] = timestamp; - } - - /** - * Constructs a GcMarkAllMessagesAsReadData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMarkAllMessagesAsReadData} obj Optional instance to populate. - * @return {module:model/GcMarkAllMessagesAsReadData} The populated GcMarkAllMessagesAsReadData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMarkAllMessagesAsReadData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('timestamp')) { - obj['timestamp'] = ApiClient.convertToType(data['timestamp'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMarkAllMessagesAsReadData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the user to mark all messages as read. - * @member {String} user_id - */ -GcMarkAllMessagesAsReadData.prototype['user_id'] = undefined; - -/** - * Specifies the timestamp to be the reference point of marking as read. If specified, the messages received before the specified time are marked as read. - * @member {Number} timestamp - */ -GcMarkAllMessagesAsReadData.prototype['timestamp'] = undefined; - - - - - - -export default GcMarkAllMessagesAsReadData; - diff --git a/src/model/GcMuteUserData.js b/src/model/GcMuteUserData.js deleted file mode 100644 index 84aa1a7..0000000 --- a/src/model/GcMuteUserData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcMuteUserData model module. - * @module model/GcMuteUserData - * @version 0.0.16 - */ -class GcMuteUserData { - /** - * Constructs a new GcMuteUserData. - * @alias module:model/GcMuteUserData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param userId {String} Specifies the ID of the target user to mute. - * @param seconds {Number} Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the muting. - */ - constructor(channelUrl, userId, seconds, description) { - - GcMuteUserData.initialize(this, channelUrl, userId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcMuteUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcMuteUserData} obj Optional instance to populate. - * @return {module:model/GcMuteUserData} The populated GcMuteUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcMuteUserData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcMuteUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the target user to mute. - * @member {String} user_id - */ -GcMuteUserData.prototype['user_id'] = undefined; - -/** - * Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -GcMuteUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the muting. - * @member {String} description - */ -GcMuteUserData.prototype['description'] = undefined; - - - - - - -export default GcMuteUserData; - diff --git a/src/model/GcRegisterOperatorsData.js b/src/model/GcRegisterOperatorsData.js deleted file mode 100644 index 6c69ba4..0000000 --- a/src/model/GcRegisterOperatorsData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcRegisterOperatorsData model module. - * @module model/GcRegisterOperatorsData - * @version 0.0.16 - */ -class GcRegisterOperatorsData { - /** - * Constructs a new GcRegisterOperatorsData. - * @alias module:model/GcRegisterOperatorsData - * @param channelUrl {String} Specifies the URL of the channel to register operators to. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - */ - constructor(channelUrl, operatorIds) { - - GcRegisterOperatorsData.initialize(this, channelUrl, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, operatorIds) { - obj['channel_url'] = channelUrl; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a GcRegisterOperatorsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcRegisterOperatorsData} obj Optional instance to populate. - * @return {module:model/GcRegisterOperatorsData} The populated GcRegisterOperatorsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcRegisterOperatorsData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to register operators to. - * @member {String} channel_url - */ -GcRegisterOperatorsData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcRegisterOperatorsData.prototype['operator_ids'] = undefined; - - - - - - -export default GcRegisterOperatorsData; - diff --git a/src/model/GcRegisterOperatorsResponse.js b/src/model/GcRegisterOperatorsResponse.js deleted file mode 100644 index e05004e..0000000 --- a/src/model/GcRegisterOperatorsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcRegisterOperatorsResponse model module. - * @module model/GcRegisterOperatorsResponse - * @version 0.0.16 - */ -class GcRegisterOperatorsResponse { - /** - * Constructs a new GcRegisterOperatorsResponse. - * @alias module:model/GcRegisterOperatorsResponse - */ - constructor() { - - GcRegisterOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcRegisterOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcRegisterOperatorsResponse} obj Optional instance to populate. - * @return {module:model/GcRegisterOperatorsResponse} The populated GcRegisterOperatorsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcRegisterOperatorsResponse(); - - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} operator_ids - */ -GcRegisterOperatorsResponse.prototype['operator_ids'] = undefined; - - - - - - -export default GcRegisterOperatorsResponse; - diff --git a/src/model/GcResetChatHistoryData.js b/src/model/GcResetChatHistoryData.js deleted file mode 100644 index 937946f..0000000 --- a/src/model/GcResetChatHistoryData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcResetChatHistoryData model module. - * @module model/GcResetChatHistoryData - * @version 0.0.16 - */ -class GcResetChatHistoryData { - /** - * Constructs a new GcResetChatHistoryData. - * @alias module:model/GcResetChatHistoryData - * @param channelUrl {String} Specifies the URL of the target channel to reset chat history. - * @param userId {String} Specifies the unique ID of the user whose chat history to reset in the channel. If this user_id property is specified, the reset_all property is not required. - * @param resetAll {Boolean} Determines whether to reset all users' chat history in the channel. If this reset_all property is specified, the user_id property is not required. - */ - constructor(channelUrl, userId, resetAll) { - - GcResetChatHistoryData.initialize(this, channelUrl, userId, resetAll); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, resetAll) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['reset_all'] = resetAll; - } - - /** - * Constructs a GcResetChatHistoryData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcResetChatHistoryData} obj Optional instance to populate. - * @return {module:model/GcResetChatHistoryData} The populated GcResetChatHistoryData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcResetChatHistoryData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('reset_all')) { - obj['reset_all'] = ApiClient.convertToType(data['reset_all'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the target channel to reset chat history. - * @member {String} channel_url - */ -GcResetChatHistoryData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the user whose chat history to reset in the channel. If this user_id property is specified, the reset_all property is not required. - * @member {String} user_id - */ -GcResetChatHistoryData.prototype['user_id'] = undefined; - -/** - * Determines whether to reset all users' chat history in the channel. If this reset_all property is specified, the user_id property is not required. - * @member {Boolean} reset_all - */ -GcResetChatHistoryData.prototype['reset_all'] = undefined; - - - - - - -export default GcResetChatHistoryData; - diff --git a/src/model/GcResetChatHistoryResponse.js b/src/model/GcResetChatHistoryResponse.js deleted file mode 100644 index 2461c3d..0000000 --- a/src/model/GcResetChatHistoryResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcResetChatHistoryResponse model module. - * @module model/GcResetChatHistoryResponse - * @version 0.0.16 - */ -class GcResetChatHistoryResponse { - /** - * Constructs a new GcResetChatHistoryResponse. - * @alias module:model/GcResetChatHistoryResponse - */ - constructor() { - - GcResetChatHistoryResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcResetChatHistoryResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcResetChatHistoryResponse} obj Optional instance to populate. - * @return {module:model/GcResetChatHistoryResponse} The populated GcResetChatHistoryResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcResetChatHistoryResponse(); - - if (data.hasOwnProperty('ts_message_offset')) { - obj['ts_message_offset'] = ApiClient.convertToType(data['ts_message_offset'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} ts_message_offset - */ -GcResetChatHistoryResponse.prototype['ts_message_offset'] = undefined; - - - - - - -export default GcResetChatHistoryResponse; - diff --git a/src/model/GcUpdateBanByIdData.js b/src/model/GcUpdateBanByIdData.js deleted file mode 100644 index 2a0e983..0000000 --- a/src/model/GcUpdateBanByIdData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcUpdateBanByIdData model module. - * @module model/GcUpdateBanByIdData - * @version 0.0.16 - */ -class GcUpdateBanByIdData { - /** - * Constructs a new GcUpdateBanByIdData. - * @alias module:model/GcUpdateBanByIdData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param bannedUserId {String} Specifies the ID of the banned user to update. - * @param seconds {Number} Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @param description {String} Specifies a new reason for the banning to update. The length is limited to 250 characters. - */ - constructor(channelUrl, bannedUserId, seconds, description) { - - GcUpdateBanByIdData.initialize(this, channelUrl, bannedUserId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, bannedUserId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['banned_user_id'] = bannedUserId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a GcUpdateBanByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateBanByIdData} obj Optional instance to populate. - * @return {module:model/GcUpdateBanByIdData} The populated GcUpdateBanByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateBanByIdData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('banned_user_id')) { - obj['banned_user_id'] = ApiClient.convertToType(data['banned_user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -GcUpdateBanByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the banned user to update. - * @member {String} banned_user_id - */ -GcUpdateBanByIdData.prototype['banned_user_id'] = undefined; - -/** - * Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @member {Number} seconds - */ -GcUpdateBanByIdData.prototype['seconds'] = undefined; - -/** - * Specifies a new reason for the banning to update. The length is limited to 250 characters. - * @member {String} description - */ -GcUpdateBanByIdData.prototype['description'] = undefined; - - - - - - -export default GcUpdateBanByIdData; - diff --git a/src/model/GcUpdateBanByIdResponse.js b/src/model/GcUpdateBanByIdResponse.js deleted file mode 100644 index eefd5ec..0000000 --- a/src/model/GcUpdateBanByIdResponse.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcUpdateBanByIdResponse model module. - * @module model/GcUpdateBanByIdResponse - * @version 0.0.16 - */ -class GcUpdateBanByIdResponse { - /** - * Constructs a new GcUpdateBanByIdResponse. - * @alias module:model/GcUpdateBanByIdResponse - */ - constructor() { - - GcUpdateBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcUpdateBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateBanByIdResponse} obj Optional instance to populate. - * @return {module:model/GcUpdateBanByIdResponse} The populated GcUpdateBanByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateBanByIdResponse(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -GcUpdateBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcUpdateBanByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcUpdateBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcUpdateBanByIdResponse.prototype['description'] = undefined; - - - - - - -export default GcUpdateBanByIdResponse; - diff --git a/src/model/GcUpdateChannelByUrlData.js b/src/model/GcUpdateChannelByUrlData.js deleted file mode 100644 index a531153..0000000 --- a/src/model/GcUpdateChannelByUrlData.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcUpdateChannelByUrlData model module. - * @module model/GcUpdateChannelByUrlData - * @version 0.0.16 - */ -class GcUpdateChannelByUrlData { - /** - * Constructs a new GcUpdateChannelByUrlData. - * @alias module:model/GcUpdateChannelByUrlData - * @param channelUrl {String} Specifies the URL of the channel to update. - * @param name {String} Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. - * @param coverUrl {String} Specifies the unique URL of the cover image. The length is limited to 2,048 characters. - * @param coverFile {File} Uploads the cover image file for the channel. - * @param customType {String} Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @param data {String} Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @param isDistinct {Boolean} Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the current channel members users or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @param isPublic {Boolean} Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @param accessCode {String} This property can be used only when the channel operator wants to set an access code for a public group channel. If specified, the is_access_code_required property of the channel resource is then set to true, and the channel begins to require the specified access code to a user who attempts to join. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - */ - constructor(channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds) { - - GcUpdateChannelByUrlData.initialize(this, channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, name, coverUrl, coverFile, customType, data, isDistinct, isPublic, accessCode, operatorIds) { - obj['channel_url'] = channelUrl; - obj['name'] = name; - obj['cover_url'] = coverUrl; - obj['cover_file'] = coverFile; - obj['custom_type'] = customType; - obj['data'] = data; - obj['is_distinct'] = isDistinct; - obj['is_public'] = isPublic; - obj['access_code'] = accessCode; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a GcUpdateChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcUpdateChannelByUrlData} obj Optional instance to populate. - * @return {module:model/GcUpdateChannelByUrlData} The populated GcUpdateChannelByUrlData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcUpdateChannelByUrlData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('access_code')) { - obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to update. - * @member {String} channel_url - */ -GcUpdateChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the name of the channel, or the channel topic. The length is limited to 191 characters. - * @member {String} name - */ -GcUpdateChannelByUrlData.prototype['name'] = undefined; - -/** - * Specifies the unique URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -GcUpdateChannelByUrlData.prototype['cover_url'] = undefined; - -/** - * Uploads the cover image file for the channel. - * @member {File} cover_file - */ -GcUpdateChannelByUrlData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -GcUpdateChannelByUrlData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -GcUpdateChannelByUrlData.prototype['data'] = undefined; - -/** - * Determines whether to reuse an existing channel or create a new channel. If set to true, returns a channel with the current channel members users or creates a new channel if no match is found. Sendbird server can also use the custom channel type in the custom_type property if specified along with the users to return the corresponding channel. If set to false, Sendbird server always creates a new channel with a combination of the users as well as the channel custom type if specified. (Default: false)

Under this property, Sendbird server does not distinguish channels based on other properties such as channel URL or channel name. - * @member {Boolean} is_distinct - */ -GcUpdateChannelByUrlData.prototype['is_distinct'] = undefined; - -/** - * Determines whether to allow a user to join the channel without an invitation. (Default: false) - * @member {Boolean} is_public - */ -GcUpdateChannelByUrlData.prototype['is_public'] = undefined; - -/** - * This property can be used only when the channel operator wants to set an access code for a public group channel. If specified, the is_access_code_required property of the channel resource is then set to true, and the channel begins to require the specified access code to a user who attempts to join. - * @member {String} access_code - */ -GcUpdateChannelByUrlData.prototype['access_code'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. If the operators are not members of the channel yet, they need an [invitation](#2-invite-as-members) to [join](#2-join-a-channel) a privte group channel while they don't need any to join a [public](#-3-private-vs-public) group channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -GcUpdateChannelByUrlData.prototype['operator_ids'] = undefined; - - - - - - -export default GcUpdateChannelByUrlData; - diff --git a/src/model/GcViewBanByIdResponse.js b/src/model/GcViewBanByIdResponse.js deleted file mode 100644 index 784b53b..0000000 --- a/src/model/GcViewBanByIdResponse.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The GcViewBanByIdResponse model module. - * @module model/GcViewBanByIdResponse - * @version 0.0.16 - */ -class GcViewBanByIdResponse { - /** - * Constructs a new GcViewBanByIdResponse. - * @alias module:model/GcViewBanByIdResponse - */ - constructor() { - - GcViewBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcViewBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewBanByIdResponse} obj Optional instance to populate. - * @return {module:model/GcViewBanByIdResponse} The populated GcViewBanByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewBanByIdResponse(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -GcViewBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -GcViewBanByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcViewBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcViewBanByIdResponse.prototype['description'] = undefined; - - - - - - -export default GcViewBanByIdResponse; - diff --git a/src/model/GcViewMuteByIdResponse.js b/src/model/GcViewMuteByIdResponse.js deleted file mode 100644 index 06d0b61..0000000 --- a/src/model/GcViewMuteByIdResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcViewMuteByIdResponse model module. - * @module model/GcViewMuteByIdResponse - * @version 0.0.16 - */ -class GcViewMuteByIdResponse { - /** - * Constructs a new GcViewMuteByIdResponse. - * @alias module:model/GcViewMuteByIdResponse - */ - constructor() { - - GcViewMuteByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcViewMuteByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewMuteByIdResponse} obj Optional instance to populate. - * @return {module:model/GcViewMuteByIdResponse} The populated GcViewMuteByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewMuteByIdResponse(); - - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('remaining_duration')) { - obj['remaining_duration'] = ApiClient.convertToType(data['remaining_duration'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} is_muted - */ -GcViewMuteByIdResponse.prototype['is_muted'] = undefined; - -/** - * @member {Number} remaining_duration - */ -GcViewMuteByIdResponse.prototype['remaining_duration'] = undefined; - -/** - * @member {Number} start_at - */ -GcViewMuteByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -GcViewMuteByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -GcViewMuteByIdResponse.prototype['description'] = undefined; - - - - - - -export default GcViewMuteByIdResponse; - diff --git a/src/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js b/src/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js deleted file mode 100644 index aac242c..0000000 --- a/src/model/GcViewNumberOfEachMembersUnreadMessagesResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GcViewNumberOfEachMembersUnreadMessagesResponse model module. - * @module model/GcViewNumberOfEachMembersUnreadMessagesResponse - * @version 0.0.16 - */ -class GcViewNumberOfEachMembersUnreadMessagesResponse { - /** - * Constructs a new GcViewNumberOfEachMembersUnreadMessagesResponse. - * @alias module:model/GcViewNumberOfEachMembersUnreadMessagesResponse - */ - constructor() { - - GcViewNumberOfEachMembersUnreadMessagesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GcViewNumberOfEachMembersUnreadMessagesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} obj Optional instance to populate. - * @return {module:model/GcViewNumberOfEachMembersUnreadMessagesResponse} The populated GcViewNumberOfEachMembersUnreadMessagesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GcViewNumberOfEachMembersUnreadMessagesResponse(); - - if (data.hasOwnProperty('unread')) { - obj['unread'] = ApiClient.convertToType(data['unread'], {'String': 'Number'}); - } - } - return obj; - } - - -} - -/** - * @member {Object.} unread - */ -GcViewNumberOfEachMembersUnreadMessagesResponse.prototype['unread'] = undefined; - - - - - - -export default GcViewNumberOfEachMembersUnreadMessagesResponse; - diff --git a/src/model/GenerateSecondaryApiTokenData.js b/src/model/GenerateSecondaryApiTokenData.js deleted file mode 100644 index 6f54647..0000000 --- a/src/model/GenerateSecondaryApiTokenData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GenerateSecondaryApiTokenData model module. - * @module model/GenerateSecondaryApiTokenData - * @version 0.0.16 - */ -class GenerateSecondaryApiTokenData { - /** - * Constructs a new GenerateSecondaryApiTokenData. - * @alias module:model/GenerateSecondaryApiTokenData - * @param HTTP_API_TOKEN {String} Specifies the master API token of the application. - */ - constructor(HTTP_API_TOKEN) { - - GenerateSecondaryApiTokenData.initialize(this, HTTP_API_TOKEN); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, HTTP_API_TOKEN) { - obj['HTTP_API_TOKEN'] = HTTP_API_TOKEN; - } - - /** - * Constructs a GenerateSecondaryApiTokenData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateSecondaryApiTokenData} obj Optional instance to populate. - * @return {module:model/GenerateSecondaryApiTokenData} The populated GenerateSecondaryApiTokenData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateSecondaryApiTokenData(); - - if (data.hasOwnProperty('HTTP_API_TOKEN')) { - obj['HTTP_API_TOKEN'] = ApiClient.convertToType(data['HTTP_API_TOKEN'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the master API token of the application. - * @member {String} HTTP_API_TOKEN - */ -GenerateSecondaryApiTokenData.prototype['HTTP_API_TOKEN'] = undefined; - - - - - - -export default GenerateSecondaryApiTokenData; - diff --git a/src/model/GenerateSecondaryApiTokenResponse.js b/src/model/GenerateSecondaryApiTokenResponse.js deleted file mode 100644 index 4f7cf71..0000000 --- a/src/model/GenerateSecondaryApiTokenResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GenerateSecondaryApiTokenResponse model module. - * @module model/GenerateSecondaryApiTokenResponse - * @version 0.0.16 - */ -class GenerateSecondaryApiTokenResponse { - /** - * Constructs a new GenerateSecondaryApiTokenResponse. - * @alias module:model/GenerateSecondaryApiTokenResponse - */ - constructor() { - - GenerateSecondaryApiTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GenerateSecondaryApiTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GenerateSecondaryApiTokenResponse} obj Optional instance to populate. - * @return {module:model/GenerateSecondaryApiTokenResponse} The populated GenerateSecondaryApiTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GenerateSecondaryApiTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} token - */ -GenerateSecondaryApiTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -GenerateSecondaryApiTokenResponse.prototype['created_at'] = undefined; - - - - - - -export default GenerateSecondaryApiTokenResponse; - diff --git a/src/model/GetAGroupChannelResponse.js b/src/model/GetAGroupChannelResponse.js new file mode 100644 index 0000000..819df89 --- /dev/null +++ b/src/model/GetAGroupChannelResponse.js @@ -0,0 +1,746 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import GetAGroupChannelResponseAllOf from './GetAGroupChannelResponseAllOf'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; +import SendbirdDisappearingMessage from './SendbirdDisappearingMessage'; +import SendbirdGroupChannel from './SendbirdGroupChannel'; +import SendbirdGroupChannelDetailChannel from './SendbirdGroupChannelDetailChannel'; +import SendbirdMember from './SendbirdMember'; +import SendbirdMessageResponse from './SendbirdMessageResponse'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; +import SendbirdSmsFallback from './SendbirdSmsFallback'; + +/** + * The GetAGroupChannelResponse model module. + * @module model/GetAGroupChannelResponse + * @version 2.0.0 + */ +class GetAGroupChannelResponse { + /** + * Constructs a new GetAGroupChannelResponse. + * @alias module:model/GetAGroupChannelResponse + * @implements module:model/GetAGroupChannelResponseAllOf + * @implements module:model/SendbirdGroupChannel + * @param channelUrl {String} + */ + constructor(channelUrl) { + GetAGroupChannelResponseAllOf.initialize(this);SendbirdGroupChannel.initialize(this, channelUrl); + GetAGroupChannelResponse.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a GetAGroupChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAGroupChannelResponse} obj Optional instance to populate. + * @return {module:model/GetAGroupChannelResponse} The populated GetAGroupChannelResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAGroupChannelResponse(); + GetAGroupChannelResponseAllOf.constructFromObject(data, obj); + SendbirdGroupChannel.constructFromObject(data, obj); + + if (data.hasOwnProperty('channel')) { + obj['channel'] = SendbirdGroupChannelDetailChannel.constructFromObject(data['channel']); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = SendbirdBasicUserInfo.constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = ApiClient.convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = SendbirdDisappearingMessage.constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = ApiClient.convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = ApiClient.convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = ApiClient.convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = ApiClient.convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = SendbirdBasicUserInfo.constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = ApiClient.convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = ApiClient.convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = ApiClient.convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = ApiClient.convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = SendbirdMessageResponse.constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = ApiClient.convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = ApiClient.convertToType(data['members'], [SendbirdMember]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = ApiClient.convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = ApiClient.convertToType(data['read_receipt'], {'String': 'Number'}); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = SendbirdSmsFallback.constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = ApiClient.convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = ApiClient.convertToType(data['user_last_read'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +GetAGroupChannelResponse.prototype['channel'] = undefined; + +/** + * @member {String} channel_url + */ +GetAGroupChannelResponse.prototype['channel_url'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.CountPreferenceEnum} count_preference + */ +GetAGroupChannelResponse.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +GetAGroupChannelResponse.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +GetAGroupChannelResponse.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +GetAGroupChannelResponse.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +GetAGroupChannelResponse.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +GetAGroupChannelResponse.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +GetAGroupChannelResponse.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +GetAGroupChannelResponse.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +GetAGroupChannelResponse.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +GetAGroupChannelResponse.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +GetAGroupChannelResponse.prototype['has_bot'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.HiddenStateEnum} hidden_state + */ +GetAGroupChannelResponse.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +GetAGroupChannelResponse.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +GetAGroupChannelResponse.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +GetAGroupChannelResponse.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +GetAGroupChannelResponse.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +GetAGroupChannelResponse.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +GetAGroupChannelResponse.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +GetAGroupChannelResponse.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +GetAGroupChannelResponse.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +GetAGroupChannelResponse.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +GetAGroupChannelResponse.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +GetAGroupChannelResponse.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +GetAGroupChannelResponse.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +GetAGroupChannelResponse.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +GetAGroupChannelResponse.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +GetAGroupChannelResponse.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +GetAGroupChannelResponse.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +GetAGroupChannelResponse.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +GetAGroupChannelResponse.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +GetAGroupChannelResponse.prototype['member_count'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.MemberStateEnum} member_state + */ +GetAGroupChannelResponse.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +GetAGroupChannelResponse.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +GetAGroupChannelResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +GetAGroupChannelResponse.prototype['metadata'] = undefined; + +/** + * @member {module:model/GetAGroupChannelResponse.MyRoleEnum} my_role + */ +GetAGroupChannelResponse.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +GetAGroupChannelResponse.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +GetAGroupChannelResponse.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +GetAGroupChannelResponse.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +GetAGroupChannelResponse.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +GetAGroupChannelResponse.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +GetAGroupChannelResponse.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +GetAGroupChannelResponse.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +GetAGroupChannelResponse.prototype['user_last_read'] = undefined; + + +// Implement GetAGroupChannelResponseAllOf interface: +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +GetAGroupChannelResponseAllOf.prototype['channel'] = undefined; +// Implement SendbirdGroupChannel interface: +/** + * @member {String} channel_url + */ +SendbirdGroupChannel.prototype['channel_url'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +SendbirdGroupChannel.prototype['count_preference'] = undefined; +/** + * @member {String} cover_url + */ +SendbirdGroupChannel.prototype['cover_url'] = undefined; +/** + * @member {Number} created_at + */ +SendbirdGroupChannel.prototype['created_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannel.prototype['created_by'] = undefined; +/** + * @member {String} custom_type + */ +SendbirdGroupChannel.prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +SendbirdGroupChannel.prototype['data'] = undefined; +/** + * @member {Object} delivery_receipt + */ +SendbirdGroupChannel.prototype['delivery_receipt'] = undefined; +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannel.prototype['disappearing_message'] = undefined; +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannel.prototype['freeze'] = undefined; +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannel.prototype['has_ai_bot'] = undefined; +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannel.prototype['has_bot'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +SendbirdGroupChannel.prototype['hidden_state'] = undefined; +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; +/** + * @member {Number} invited_at + */ +SendbirdGroupChannel.prototype['invited_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +SendbirdGroupChannel.prototype['inviter'] = undefined; +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannel.prototype['is_access_code_required'] = undefined; +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannel.prototype['is_broadcast'] = undefined; +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannel.prototype['is_discoverable'] = undefined; +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannel.prototype['is_distinct'] = undefined; +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannel.prototype['is_ephemeral'] = undefined; +/** + * @member {Boolean} is_exclusive + */ +SendbirdGroupChannel.prototype['is_exclusive'] = undefined; +/** + * @member {Boolean} is_hidden + */ +SendbirdGroupChannel.prototype['is_hidden'] = undefined; +/** + * @member {Boolean} is_muted + */ +SendbirdGroupChannel.prototype['is_muted'] = undefined; +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannel.prototype['is_public'] = undefined; +/** + * @member {Boolean} is_push_enabled + */ +SendbirdGroupChannel.prototype['is_push_enabled'] = undefined; +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannel.prototype['is_super'] = undefined; +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannel.prototype['joined_member_count'] = undefined; +/** + * @member {Number} joined_ts + */ +SendbirdGroupChannel.prototype['joined_ts'] = undefined; +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannel.prototype['last_message'] = undefined; +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannel.prototype['max_length_message'] = undefined; +/** + * @member {Number} member_count + */ +SendbirdGroupChannel.prototype['member_count'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +SendbirdGroupChannel.prototype['member_state'] = undefined; +/** + * @member {Array.} members + */ +SendbirdGroupChannel.prototype['members'] = undefined; +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannel.prototype['message_survival_seconds'] = undefined; +/** + * @member {Object} metadata + */ +SendbirdGroupChannel.prototype['metadata'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +SendbirdGroupChannel.prototype['my_role'] = undefined; +/** + * @member {String} name + */ +SendbirdGroupChannel.prototype['name'] = undefined; +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdGroupChannel.prototype['push_trigger_option'] = undefined; +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannel.prototype['read_receipt'] = undefined; +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannel.prototype['sms_fallback'] = undefined; +/** + * @member {Number} ts_message_offset + */ +SendbirdGroupChannel.prototype['ts_message_offset'] = undefined; +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannel.prototype['unread_mention_count'] = undefined; +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannel.prototype['unread_message_count'] = undefined; +/** + * @member {Number} user_last_read + */ +SendbirdGroupChannel.prototype['user_last_read'] = undefined; + + + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['HiddenStateEnum'] = { + + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['MemberStateEnum'] = { + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined", + + /** + * value: "none" + * @const + */ + "none": "none" +}; + + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +GetAGroupChannelResponse['MyRoleEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + + + +export default GetAGroupChannelResponse; + diff --git a/src/model/GetAGroupChannelResponseAllOf.js b/src/model/GetAGroupChannelResponseAllOf.js new file mode 100644 index 0000000..c1bbd16 --- /dev/null +++ b/src/model/GetAGroupChannelResponseAllOf.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdGroupChannelDetailChannel from './SendbirdGroupChannelDetailChannel'; + +/** + * The GetAGroupChannelResponseAllOf model module. + * @module model/GetAGroupChannelResponseAllOf + * @version 2.0.0 + */ +class GetAGroupChannelResponseAllOf { + /** + * Constructs a new GetAGroupChannelResponseAllOf. + * @alias module:model/GetAGroupChannelResponseAllOf + */ + constructor() { + + GetAGroupChannelResponseAllOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetAGroupChannelResponseAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetAGroupChannelResponseAllOf} obj Optional instance to populate. + * @return {module:model/GetAGroupChannelResponseAllOf} The populated GetAGroupChannelResponseAllOf instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetAGroupChannelResponseAllOf(); + + if (data.hasOwnProperty('channel')) { + obj['channel'] = SendbirdGroupChannelDetailChannel.constructFromObject(data['channel']); + } + } + return obj; + } + + +} + +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +GetAGroupChannelResponseAllOf.prototype['channel'] = undefined; + + + + + + +export default GetAGroupChannelResponseAllOf; + diff --git a/src/model/GetChannelInvitationPreferenceResponse.js b/src/model/GetChannelInvitationPreferenceResponse.js new file mode 100644 index 0000000..189f055 --- /dev/null +++ b/src/model/GetChannelInvitationPreferenceResponse.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GetChannelInvitationPreferenceResponse model module. + * @module model/GetChannelInvitationPreferenceResponse + * @version 2.0.0 + */ +class GetChannelInvitationPreferenceResponse { + /** + * Constructs a new GetChannelInvitationPreferenceResponse. + * @alias module:model/GetChannelInvitationPreferenceResponse + */ + constructor() { + + GetChannelInvitationPreferenceResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetChannelInvitationPreferenceResponse} obj Optional instance to populate. + * @return {module:model/GetChannelInvitationPreferenceResponse} The populated GetChannelInvitationPreferenceResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetChannelInvitationPreferenceResponse(); + + if (data.hasOwnProperty('auto_accept')) { + obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} auto_accept + */ +GetChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; + + + + + + +export default GetChannelInvitationPreferenceResponse; + diff --git a/src/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js b/src/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js deleted file mode 100644 index 944f8cb..0000000 --- a/src/model/GetDetailedOpenRateOfAnnouncementByIdResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDetailedOpenRateOfAnnouncementByIdResponse model module. - * @module model/GetDetailedOpenRateOfAnnouncementByIdResponse - * @version 0.0.16 - */ -class GetDetailedOpenRateOfAnnouncementByIdResponse { - /** - * Constructs a new GetDetailedOpenRateOfAnnouncementByIdResponse. - * @alias module:model/GetDetailedOpenRateOfAnnouncementByIdResponse - */ - constructor() { - - GetDetailedOpenRateOfAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDetailedOpenRateOfAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenRateOfAnnouncementByIdResponse} The populated GetDetailedOpenRateOfAnnouncementByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenRateOfAnnouncementByIdResponse(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('open_counts')) { - obj['open_counts'] = ApiClient.convertToType(data['open_counts'], ['Number']); - } - if (data.hasOwnProperty('open_rates')) { - obj['open_rates'] = ApiClient.convertToType(data['open_rates'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_counts')) { - obj['cumulative_open_counts'] = ApiClient.convertToType(data['cumulative_open_counts'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_rates')) { - obj['cumulative_open_rates'] = ApiClient.convertToType(data['cumulative_open_rates'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {Array.} open_counts - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['open_counts'] = undefined; - -/** - * @member {Array.} open_rates - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['open_rates'] = undefined; - -/** - * @member {Array.} cumulative_open_counts - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['cumulative_open_counts'] = undefined; - -/** - * @member {Array.} cumulative_open_rates - */ -GetDetailedOpenRateOfAnnouncementByIdResponse.prototype['cumulative_open_rates'] = undefined; - - - - - - -export default GetDetailedOpenRateOfAnnouncementByIdResponse; - diff --git a/src/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js b/src/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js deleted file mode 100644 index 3339c38..0000000 --- a/src/model/GetDetailedOpenRateOfAnnouncementGroupResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDetailedOpenRateOfAnnouncementGroupResponse model module. - * @module model/GetDetailedOpenRateOfAnnouncementGroupResponse - * @version 0.0.16 - */ -class GetDetailedOpenRateOfAnnouncementGroupResponse { - /** - * Constructs a new GetDetailedOpenRateOfAnnouncementGroupResponse. - * @alias module:model/GetDetailedOpenRateOfAnnouncementGroupResponse - */ - constructor() { - - GetDetailedOpenRateOfAnnouncementGroupResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDetailedOpenRateOfAnnouncementGroupResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenRateOfAnnouncementGroupResponse} The populated GetDetailedOpenRateOfAnnouncementGroupResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenRateOfAnnouncementGroupResponse(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('open_counts')) { - obj['open_counts'] = ApiClient.convertToType(data['open_counts'], ['Number']); - } - if (data.hasOwnProperty('open_rates')) { - obj['open_rates'] = ApiClient.convertToType(data['open_rates'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_counts')) { - obj['cumulative_open_counts'] = ApiClient.convertToType(data['cumulative_open_counts'], ['Number']); - } - if (data.hasOwnProperty('cumulative_open_rates')) { - obj['cumulative_open_rates'] = ApiClient.convertToType(data['cumulative_open_rates'], ['Number']); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['announcement_group'] = undefined; - -/** - * @member {Array.} open_counts - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['open_counts'] = undefined; - -/** - * @member {Array.} open_rates - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['open_rates'] = undefined; - -/** - * @member {Array.} cumulative_open_counts - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['cumulative_open_counts'] = undefined; - -/** - * @member {Array.} cumulative_open_rates - */ -GetDetailedOpenRateOfAnnouncementGroupResponse.prototype['cumulative_open_rates'] = undefined; - - - - - - -export default GetDetailedOpenRateOfAnnouncementGroupResponse; - diff --git a/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js b/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js deleted file mode 100644 index caa735c..0000000 --- a/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner from './GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner'; - -/** - * The GetDetailedOpenStatusOfAnnouncementByIdResponse model module. - * @module model/GetDetailedOpenStatusOfAnnouncementByIdResponse - * @version 0.0.16 - */ -class GetDetailedOpenStatusOfAnnouncementByIdResponse { - /** - * Constructs a new GetDetailedOpenStatusOfAnnouncementByIdResponse. - * @alias module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse - */ - constructor() { - - GetDetailedOpenStatusOfAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDetailedOpenStatusOfAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponse} The populated GetDetailedOpenStatusOfAnnouncementByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenStatusOfAnnouncementByIdResponse(); - - if (data.hasOwnProperty('open_status')) { - obj['open_status'] = ApiClient.convertToType(data['open_status'], [GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} open_status - */ -GetDetailedOpenStatusOfAnnouncementByIdResponse.prototype['open_status'] = undefined; - -/** - * @member {String} next - */ -GetDetailedOpenStatusOfAnnouncementByIdResponse.prototype['next'] = undefined; - - - - - - -export default GetDetailedOpenStatusOfAnnouncementByIdResponse; - diff --git a/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js b/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js deleted file mode 100644 index 6e1bb54..0000000 --- a/src/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner model module. - * @module model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - * @version 0.0.16 - */ -class GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner { - /** - * Constructs a new GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner. - * @alias module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - */ - constructor() { - - GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner} obj Optional instance to populate. - * @return {module:model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner} The populated GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('has_opened')) { - obj['has_opened'] = ApiClient.convertToType(data['has_opened'], 'Boolean'); - } - if (data.hasOwnProperty('sent_at')) { - obj['sent_at'] = ApiClient.convertToType(data['sent_at'], 'Number'); - } - if (data.hasOwnProperty('open_at')) { - obj['open_at'] = ApiClient.convertToType(data['open_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['user_id'] = undefined; - -/** - * @member {String} channel_url - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['channel_url'] = undefined; - -/** - * @member {Boolean} has_opened - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['has_opened'] = undefined; - -/** - * @member {Number} sent_at - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['sent_at'] = undefined; - -/** - * @member {Number} open_at - */ -GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.prototype['open_at'] = undefined; - - - - - - -export default GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner; - diff --git a/src/model/GetStatisticsDailyResponse.js b/src/model/GetStatisticsDailyResponse.js deleted file mode 100644 index 3f435bd..0000000 --- a/src/model/GetStatisticsDailyResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetStatisticsDailyResponseStatisticsInner from './GetStatisticsDailyResponseStatisticsInner'; - -/** - * The GetStatisticsDailyResponse model module. - * @module model/GetStatisticsDailyResponse - * @version 0.0.16 - */ -class GetStatisticsDailyResponse { - /** - * Constructs a new GetStatisticsDailyResponse. - * @alias module:model/GetStatisticsDailyResponse - */ - constructor() { - - GetStatisticsDailyResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStatisticsDailyResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsDailyResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsDailyResponse} The populated GetStatisticsDailyResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsDailyResponse(); - - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = ApiClient.convertToType(data['statistics'], [GetStatisticsDailyResponseStatisticsInner]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = ApiClient.convertToType(data['week'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} statistics - */ -GetStatisticsDailyResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsDailyResponse.prototype['week'] = undefined; - - - - - - -export default GetStatisticsDailyResponse; - diff --git a/src/model/GetStatisticsDailyResponseStatisticsInner.js b/src/model/GetStatisticsDailyResponseStatisticsInner.js deleted file mode 100644 index 7514007..0000000 --- a/src/model/GetStatisticsDailyResponseStatisticsInner.js +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The GetStatisticsDailyResponseStatisticsInner model module. - * @module model/GetStatisticsDailyResponseStatisticsInner - * @version 0.0.16 - */ -class GetStatisticsDailyResponseStatisticsInner { - /** - * Constructs a new GetStatisticsDailyResponseStatisticsInner. - * @alias module:model/GetStatisticsDailyResponseStatisticsInner - */ - constructor() { - - GetStatisticsDailyResponseStatisticsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStatisticsDailyResponseStatisticsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsDailyResponseStatisticsInner} obj Optional instance to populate. - * @return {module:model/GetStatisticsDailyResponseStatisticsInner} The populated GetStatisticsDailyResponseStatisticsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsDailyResponseStatisticsInner(); - - if (data.hasOwnProperty('date_range')) { - obj['date_range'] = ApiClient.convertToType(data['date_range'], 'String'); - } - if (data.hasOwnProperty('canceled_announcement_count')) { - obj['canceled_announcement_count'] = ApiClient.convertToType(data['canceled_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('stopped_announcement_count')) { - obj['stopped_announcement_count'] = ApiClient.convertToType(data['stopped_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('completed_announcement_count')) { - obj['completed_announcement_count'] = ApiClient.convertToType(data['completed_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('total_announcement_count')) { - obj['total_announcement_count'] = ApiClient.convertToType(data['total_announcement_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = ApiClient.convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} date_range - */ -GetStatisticsDailyResponseStatisticsInner.prototype['date_range'] = undefined; - -/** - * @member {Number} canceled_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['canceled_announcement_count'] = undefined; - -/** - * @member {Number} stopped_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['stopped_announcement_count'] = undefined; - -/** - * @member {Number} completed_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['completed_announcement_count'] = undefined; - -/** - * @member {Number} total_announcement_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['total_announcement_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['target_channel_count'] = undefined; - -/** - * @member {Number} target_user_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['target_user_count'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['sent_channel_count'] = undefined; - -/** - * @member {Number} sent_user_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_rate - */ -GetStatisticsDailyResponseStatisticsInner.prototype['open_rate'] = undefined; - -/** - * @member {Number} open_count - */ -GetStatisticsDailyResponseStatisticsInner.prototype['open_count'] = undefined; - - - - - - -export default GetStatisticsDailyResponseStatisticsInner; - diff --git a/src/model/GetStatisticsMonthlyResponse.js b/src/model/GetStatisticsMonthlyResponse.js deleted file mode 100644 index 7141eaf..0000000 --- a/src/model/GetStatisticsMonthlyResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetStatisticsDailyResponseStatisticsInner from './GetStatisticsDailyResponseStatisticsInner'; - -/** - * The GetStatisticsMonthlyResponse model module. - * @module model/GetStatisticsMonthlyResponse - * @version 0.0.16 - */ -class GetStatisticsMonthlyResponse { - /** - * Constructs a new GetStatisticsMonthlyResponse. - * @alias module:model/GetStatisticsMonthlyResponse - */ - constructor() { - - GetStatisticsMonthlyResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStatisticsMonthlyResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsMonthlyResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsMonthlyResponse} The populated GetStatisticsMonthlyResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsMonthlyResponse(); - - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = ApiClient.convertToType(data['statistics'], [GetStatisticsDailyResponseStatisticsInner]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = ApiClient.convertToType(data['week'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} statistics - */ -GetStatisticsMonthlyResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsMonthlyResponse.prototype['week'] = undefined; - - - - - - -export default GetStatisticsMonthlyResponse; - diff --git a/src/model/GetStatisticsResponse.js b/src/model/GetStatisticsResponse.js deleted file mode 100644 index f748b54..0000000 --- a/src/model/GetStatisticsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import GetStatisticsDailyResponseStatisticsInner from './GetStatisticsDailyResponseStatisticsInner'; - -/** - * The GetStatisticsResponse model module. - * @module model/GetStatisticsResponse - * @version 0.0.16 - */ -class GetStatisticsResponse { - /** - * Constructs a new GetStatisticsResponse. - * @alias module:model/GetStatisticsResponse - */ - constructor() { - - GetStatisticsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a GetStatisticsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/GetStatisticsResponse} obj Optional instance to populate. - * @return {module:model/GetStatisticsResponse} The populated GetStatisticsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new GetStatisticsResponse(); - - if (data.hasOwnProperty('statistics')) { - obj['statistics'] = ApiClient.convertToType(data['statistics'], [GetStatisticsDailyResponseStatisticsInner]); - } - if (data.hasOwnProperty('week')) { - obj['week'] = ApiClient.convertToType(data['week'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} statistics - */ -GetStatisticsResponse.prototype['statistics'] = undefined; - -/** - * @member {Number} week - */ -GetStatisticsResponse.prototype['week'] = undefined; - - - - - - -export default GetStatisticsResponse; - diff --git a/src/model/GetTotalNumberOfMessagesInAChannelResponse.js b/src/model/GetTotalNumberOfMessagesInAChannelResponse.js new file mode 100644 index 0000000..8aa402c --- /dev/null +++ b/src/model/GetTotalNumberOfMessagesInAChannelResponse.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The GetTotalNumberOfMessagesInAChannelResponse model module. + * @module model/GetTotalNumberOfMessagesInAChannelResponse + * @version 2.0.0 + */ +class GetTotalNumberOfMessagesInAChannelResponse { + /** + * Constructs a new GetTotalNumberOfMessagesInAChannelResponse. + * @alias module:model/GetTotalNumberOfMessagesInAChannelResponse + */ + constructor() { + + GetTotalNumberOfMessagesInAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetTotalNumberOfMessagesInAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetTotalNumberOfMessagesInAChannelResponse} obj Optional instance to populate. + * @return {module:model/GetTotalNumberOfMessagesInAChannelResponse} The populated GetTotalNumberOfMessagesInAChannelResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetTotalNumberOfMessagesInAChannelResponse(); + + if (data.hasOwnProperty('total')) { + obj['total'] = ApiClient.convertToType(data['total'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} total + */ +GetTotalNumberOfMessagesInAChannelResponse.prototype['total'] = undefined; + + + + + + +export default GetTotalNumberOfMessagesInAChannelResponse; + diff --git a/src/model/GroupChannelListMembersResponse.js b/src/model/GroupChannelListMembersResponse.js new file mode 100644 index 0000000..8b0fae3 --- /dev/null +++ b/src/model/GroupChannelListMembersResponse.js @@ -0,0 +1,82 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdMember from './SendbirdMember'; + +/** + * The GroupChannelListMembersResponse model module. + * @module model/GroupChannelListMembersResponse + * @version 2.0.0 + */ +class GroupChannelListMembersResponse { + /** + * Constructs a new GroupChannelListMembersResponse. + * @alias module:model/GroupChannelListMembersResponse + * @param members {Array.} + */ + constructor(members) { + + GroupChannelListMembersResponse.initialize(this, members); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, members) { + obj['members'] = members; + } + + /** + * Constructs a GroupChannelListMembersResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupChannelListMembersResponse} obj Optional instance to populate. + * @return {module:model/GroupChannelListMembersResponse} The populated GroupChannelListMembersResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupChannelListMembersResponse(); + + if (data.hasOwnProperty('members')) { + obj['members'] = ApiClient.convertToType(data['members'], [SendbirdMember]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = ApiClient.convertToType(data['next'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} members + */ +GroupChannelListMembersResponse.prototype['members'] = undefined; + +/** + * @member {String} next + */ +GroupChannelListMembersResponse.prototype['next'] = undefined; + + + + + + +export default GroupChannelListMembersResponse; + diff --git a/src/model/GroupChatListChannelsResponse.js b/src/model/GroupChatListChannelsResponse.js new file mode 100644 index 0000000..1519247 --- /dev/null +++ b/src/model/GroupChatListChannelsResponse.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdGroupChannel from './SendbirdGroupChannel'; + +/** + * The GroupChatListChannelsResponse model module. + * @module model/GroupChatListChannelsResponse + * @version 2.0.0 + */ +class GroupChatListChannelsResponse { + /** + * Constructs a new GroupChatListChannelsResponse. + * @alias module:model/GroupChatListChannelsResponse + */ + constructor() { + + GroupChatListChannelsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GroupChatListChannelsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GroupChatListChannelsResponse} obj Optional instance to populate. + * @return {module:model/GroupChatListChannelsResponse} The populated GroupChatListChannelsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GroupChatListChannelsResponse(); + + if (data.hasOwnProperty('channels')) { + obj['channels'] = ApiClient.convertToType(data['channels'], [SendbirdGroupChannel]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = ApiClient.convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} channels + */ +GroupChatListChannelsResponse.prototype['channels'] = undefined; + +/** + * @member {String} next + */ +GroupChatListChannelsResponse.prototype['next'] = undefined; + +/** + * @member {Number} ts + */ +GroupChatListChannelsResponse.prototype['ts'] = undefined; + + + + + + +export default GroupChatListChannelsResponse; + diff --git a/src/model/HideAChannelRequest.js b/src/model/HideAChannelRequest.js new file mode 100644 index 0000000..37c13c4 --- /dev/null +++ b/src/model/HideAChannelRequest.js @@ -0,0 +1,101 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The HideAChannelRequest model module. + * @module model/HideAChannelRequest + * @version 2.0.0 + */ +class HideAChannelRequest { + /** + * Constructs a new HideAChannelRequest. + * @alias module:model/HideAChannelRequest + * @param userId {String} Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. + */ + constructor(userId) { + + HideAChannelRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a HideAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/HideAChannelRequest} obj Optional instance to populate. + * @return {module:model/HideAChannelRequest} The populated HideAChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new HideAChannelRequest(); + + if (data.hasOwnProperty('allow_auto_unhide')) { + obj['allow_auto_unhide'] = ApiClient.convertToType(data['allow_auto_unhide'], 'Boolean'); + } + if (data.hasOwnProperty('hide_previous_messages')) { + obj['hide_previous_messages'] = ApiClient.convertToType(data['hide_previous_messages'], 'Boolean'); + } + if (data.hasOwnProperty('should_hide_all')) { + obj['should_hide_all'] = ApiClient.convertToType(data['should_hide_all'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * Determines the state and operating behavior of the channel in a channel list. If set to true, the channel is hidden from a user's channel list but it will reappear when there is a new message. If set to false, the channel is hidden from a user's channel list and it will remain hidden unless the value of the property changes to true through [unarchiving](#2-unhide-or-unarchive-a-channel). (Default: true)

When a user who has hidden the channel sends a message in that channel through the [Platform API](/docs/chat/v3/platform-api/guides/messages#2-send-a-message), the `allow_auto_unhide` property is changed to true, making the channel reappear in the channel list. + * @member {Boolean} allow_auto_unhide + */ +HideAChannelRequest.prototype['allow_auto_unhide'] = undefined; + +/** + * When the channel gets appeared back in either the list of the user in the user_id property or the lists of all channel members (should_hide_all = true), determines whether to conceal the messages sent and received before hiding or archiving the channel. (Default: false)

This property is effective only when the value of the [global application settings resource](/docs/chat/v3/platform-api/guides/global-application-settings#-3-resource-representation)'s display_past_message property is false. + * @member {Boolean} hide_previous_messages + */ +HideAChannelRequest.prototype['hide_previous_messages'] = undefined; + +/** + * Determines whether to make the specified channel disappear from the channel list of all channel members. When this is set to true, the user_id property isn't effective and doesn't need to be specified in the request. (Default: false) + * @member {Boolean} should_hide_all + */ +HideAChannelRequest.prototype['should_hide_all'] = undefined; + +/** + * Specifies the unique ID of the user whose channel will be hidden or archived from the list. This property is required when should_hide_all is set to false, which is the default value. However, when should_hide_all is set to true, this property isn't effective. + * @member {String} user_id + */ +HideAChannelRequest.prototype['user_id'] = undefined; + + + + + + +export default HideAChannelRequest; + diff --git a/src/model/InviteAsMembersRequest.js b/src/model/InviteAsMembersRequest.js new file mode 100644 index 0000000..c21ac85 --- /dev/null +++ b/src/model/InviteAsMembersRequest.js @@ -0,0 +1,99 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InviteAsMembersRequest model module. + * @module model/InviteAsMembersRequest + * @version 2.0.0 + */ +class InviteAsMembersRequest { + /** + * Constructs a new InviteAsMembersRequest. + * @alias module:model/InviteAsMembersRequest + * @param userIds {Array.} + */ + constructor(userIds) { + + InviteAsMembersRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a InviteAsMembersRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersRequest} obj Optional instance to populate. + * @return {module:model/InviteAsMembersRequest} The populated InviteAsMembersRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersRequest(); + + if (data.hasOwnProperty('hidden_status')) { + obj['hidden_status'] = ApiClient.convertToType(data['hidden_status'], Object); + } + if (data.hasOwnProperty('invitation_status')) { + obj['invitation_status'] = ApiClient.convertToType(data['invitation_status'], Object); + } + if (data.hasOwnProperty('inviter_id')) { + obj['inviter_id'] = ApiClient.convertToType(data['inviter_id'], 'String'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * Specifies one or more key-value pair items which set the channel's hidden status for each user. The key should be a user_id and the value should be their hidden status. Acceptable values are limited to the following:
- unhidden (default): the channel is included in when retrieving a list of group channels.
- hidden_allow_auto_unhide: the channel automatically gets unhidden when receiving a new message.
- hidden_prevent_auto_unhide: the channel keeps hidden though receiving a new message. + * @member {Object} hidden_status + */ +InviteAsMembersRequest.prototype['hidden_status'] = undefined; + +/** + * Specifies one or more key-value pair items which set the invitation status of each user invited to the channel. The key should be a user_id and the value should be their joining status. Acceptable values are joined, invited_by_friend, and invited_by_non_friend. (Default: joined) + * @member {Object} invitation_status + */ +InviteAsMembersRequest.prototype['invitation_status'] = undefined; + +/** + * @member {String} inviter_id + */ +InviteAsMembersRequest.prototype['inviter_id'] = undefined; + +/** + * @member {Array.} user_ids + */ +InviteAsMembersRequest.prototype['user_ids'] = undefined; + + + + + + +export default InviteAsMembersRequest; + diff --git a/src/model/InviteAsMembersResponse.js b/src/model/InviteAsMembersResponse.js new file mode 100644 index 0000000..bc9828f --- /dev/null +++ b/src/model/InviteAsMembersResponse.js @@ -0,0 +1,746 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InviteAsMembersResponseAllOf from './InviteAsMembersResponseAllOf'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; +import SendbirdDisappearingMessage from './SendbirdDisappearingMessage'; +import SendbirdGroupChannel from './SendbirdGroupChannel'; +import SendbirdMember from './SendbirdMember'; +import SendbirdMessageResponse from './SendbirdMessageResponse'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; +import SendbirdSmsFallback from './SendbirdSmsFallback'; +import SendbirdUser from './SendbirdUser'; + +/** + * The InviteAsMembersResponse model module. + * @module model/InviteAsMembersResponse + * @version 2.0.0 + */ +class InviteAsMembersResponse { + /** + * Constructs a new InviteAsMembersResponse. + * @alias module:model/InviteAsMembersResponse + * @implements module:model/SendbirdGroupChannel + * @implements module:model/InviteAsMembersResponseAllOf + * @param channelUrl {String} + */ + constructor(channelUrl) { + SendbirdGroupChannel.initialize(this, channelUrl);InviteAsMembersResponseAllOf.initialize(this); + InviteAsMembersResponse.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a InviteAsMembersResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersResponse} obj Optional instance to populate. + * @return {module:model/InviteAsMembersResponse} The populated InviteAsMembersResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersResponse(); + SendbirdGroupChannel.constructFromObject(data, obj); + InviteAsMembersResponseAllOf.constructFromObject(data, obj); + + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = SendbirdBasicUserInfo.constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = ApiClient.convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = SendbirdDisappearingMessage.constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = ApiClient.convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = ApiClient.convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = ApiClient.convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = ApiClient.convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = SendbirdBasicUserInfo.constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = ApiClient.convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = ApiClient.convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = ApiClient.convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = ApiClient.convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = SendbirdMessageResponse.constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = ApiClient.convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = ApiClient.convertToType(data['members'], [SendbirdMember]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = ApiClient.convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = ApiClient.convertToType(data['read_receipt'], {'String': 'Number'}); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = SendbirdSmsFallback.constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = ApiClient.convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = ApiClient.convertToType(data['user_last_read'], 'Number'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = ApiClient.convertToType(data['operators'], [SendbirdUser]); + } + } + return obj; + } + + +} + +/** + * @member {String} channel_url + */ +InviteAsMembersResponse.prototype['channel_url'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.CountPreferenceEnum} count_preference + */ +InviteAsMembersResponse.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +InviteAsMembersResponse.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +InviteAsMembersResponse.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +InviteAsMembersResponse.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +InviteAsMembersResponse.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +InviteAsMembersResponse.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +InviteAsMembersResponse.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +InviteAsMembersResponse.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +InviteAsMembersResponse.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +InviteAsMembersResponse.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +InviteAsMembersResponse.prototype['has_bot'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.HiddenStateEnum} hidden_state + */ +InviteAsMembersResponse.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +InviteAsMembersResponse.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +InviteAsMembersResponse.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +InviteAsMembersResponse.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +InviteAsMembersResponse.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +InviteAsMembersResponse.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +InviteAsMembersResponse.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +InviteAsMembersResponse.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +InviteAsMembersResponse.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +InviteAsMembersResponse.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +InviteAsMembersResponse.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +InviteAsMembersResponse.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +InviteAsMembersResponse.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +InviteAsMembersResponse.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +InviteAsMembersResponse.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +InviteAsMembersResponse.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +InviteAsMembersResponse.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +InviteAsMembersResponse.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +InviteAsMembersResponse.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +InviteAsMembersResponse.prototype['member_count'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.MemberStateEnum} member_state + */ +InviteAsMembersResponse.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +InviteAsMembersResponse.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +InviteAsMembersResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +InviteAsMembersResponse.prototype['metadata'] = undefined; + +/** + * @member {module:model/InviteAsMembersResponse.MyRoleEnum} my_role + */ +InviteAsMembersResponse.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +InviteAsMembersResponse.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +InviteAsMembersResponse.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +InviteAsMembersResponse.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +InviteAsMembersResponse.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +InviteAsMembersResponse.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +InviteAsMembersResponse.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +InviteAsMembersResponse.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +InviteAsMembersResponse.prototype['user_last_read'] = undefined; + +/** + * @member {Array.} operators + */ +InviteAsMembersResponse.prototype['operators'] = undefined; + + +// Implement SendbirdGroupChannel interface: +/** + * @member {String} channel_url + */ +SendbirdGroupChannel.prototype['channel_url'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +SendbirdGroupChannel.prototype['count_preference'] = undefined; +/** + * @member {String} cover_url + */ +SendbirdGroupChannel.prototype['cover_url'] = undefined; +/** + * @member {Number} created_at + */ +SendbirdGroupChannel.prototype['created_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannel.prototype['created_by'] = undefined; +/** + * @member {String} custom_type + */ +SendbirdGroupChannel.prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +SendbirdGroupChannel.prototype['data'] = undefined; +/** + * @member {Object} delivery_receipt + */ +SendbirdGroupChannel.prototype['delivery_receipt'] = undefined; +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannel.prototype['disappearing_message'] = undefined; +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannel.prototype['freeze'] = undefined; +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannel.prototype['has_ai_bot'] = undefined; +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannel.prototype['has_bot'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +SendbirdGroupChannel.prototype['hidden_state'] = undefined; +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; +/** + * @member {Number} invited_at + */ +SendbirdGroupChannel.prototype['invited_at'] = undefined; +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +SendbirdGroupChannel.prototype['inviter'] = undefined; +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannel.prototype['is_access_code_required'] = undefined; +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannel.prototype['is_broadcast'] = undefined; +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannel.prototype['is_discoverable'] = undefined; +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannel.prototype['is_distinct'] = undefined; +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannel.prototype['is_ephemeral'] = undefined; +/** + * @member {Boolean} is_exclusive + */ +SendbirdGroupChannel.prototype['is_exclusive'] = undefined; +/** + * @member {Boolean} is_hidden + */ +SendbirdGroupChannel.prototype['is_hidden'] = undefined; +/** + * @member {Boolean} is_muted + */ +SendbirdGroupChannel.prototype['is_muted'] = undefined; +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannel.prototype['is_public'] = undefined; +/** + * @member {Boolean} is_push_enabled + */ +SendbirdGroupChannel.prototype['is_push_enabled'] = undefined; +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannel.prototype['is_super'] = undefined; +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannel.prototype['joined_member_count'] = undefined; +/** + * @member {Number} joined_ts + */ +SendbirdGroupChannel.prototype['joined_ts'] = undefined; +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannel.prototype['last_message'] = undefined; +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannel.prototype['max_length_message'] = undefined; +/** + * @member {Number} member_count + */ +SendbirdGroupChannel.prototype['member_count'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +SendbirdGroupChannel.prototype['member_state'] = undefined; +/** + * @member {Array.} members + */ +SendbirdGroupChannel.prototype['members'] = undefined; +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannel.prototype['message_survival_seconds'] = undefined; +/** + * @member {Object} metadata + */ +SendbirdGroupChannel.prototype['metadata'] = undefined; +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +SendbirdGroupChannel.prototype['my_role'] = undefined; +/** + * @member {String} name + */ +SendbirdGroupChannel.prototype['name'] = undefined; +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdGroupChannel.prototype['push_trigger_option'] = undefined; +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannel.prototype['read_receipt'] = undefined; +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannel.prototype['sms_fallback'] = undefined; +/** + * @member {Number} ts_message_offset + */ +SendbirdGroupChannel.prototype['ts_message_offset'] = undefined; +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannel.prototype['unread_mention_count'] = undefined; +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannel.prototype['unread_message_count'] = undefined; +/** + * @member {Number} user_last_read + */ +SendbirdGroupChannel.prototype['user_last_read'] = undefined; +// Implement InviteAsMembersResponseAllOf interface: +/** + * @member {Array.} operators + */ +InviteAsMembersResponseAllOf.prototype['operators'] = undefined; + + + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['HiddenStateEnum'] = { + + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['MemberStateEnum'] = { + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined", + + /** + * value: "none" + * @const + */ + "none": "none" +}; + + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +InviteAsMembersResponse['MyRoleEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + + + +export default InviteAsMembersResponse; + diff --git a/src/model/InviteAsMembersResponseAllOf.js b/src/model/InviteAsMembersResponseAllOf.js new file mode 100644 index 0000000..4a03b15 --- /dev/null +++ b/src/model/InviteAsMembersResponseAllOf.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdUser from './SendbirdUser'; + +/** + * The InviteAsMembersResponseAllOf model module. + * @module model/InviteAsMembersResponseAllOf + * @version 2.0.0 + */ +class InviteAsMembersResponseAllOf { + /** + * Constructs a new InviteAsMembersResponseAllOf. + * @alias module:model/InviteAsMembersResponseAllOf + */ + constructor() { + + InviteAsMembersResponseAllOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InviteAsMembersResponseAllOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InviteAsMembersResponseAllOf} obj Optional instance to populate. + * @return {module:model/InviteAsMembersResponseAllOf} The populated InviteAsMembersResponseAllOf instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InviteAsMembersResponseAllOf(); + + if (data.hasOwnProperty('operators')) { + obj['operators'] = ApiClient.convertToType(data['operators'], [SendbirdUser]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} operators + */ +InviteAsMembersResponseAllOf.prototype['operators'] = undefined; + + + + + + +export default InviteAsMembersResponseAllOf; + diff --git a/src/model/JoinAChannelRequest.js b/src/model/JoinAChannelRequest.js new file mode 100644 index 0000000..6315326 --- /dev/null +++ b/src/model/JoinAChannelRequest.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JoinAChannelRequest model module. + * @module model/JoinAChannelRequest + * @version 2.0.0 + */ +class JoinAChannelRequest { + /** + * Constructs a new JoinAChannelRequest. + * @alias module:model/JoinAChannelRequest + * @param userId {String} Specifies the unique ID of the user to join the public group channel. + */ + constructor(userId) { + + JoinAChannelRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a JoinAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JoinAChannelRequest} obj Optional instance to populate. + * @return {module:model/JoinAChannelRequest} The populated JoinAChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JoinAChannelRequest(); + + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); + } + } + return obj; + } + + +} + +/** + * Specifies the unique ID of the user to join the public group channel. + * @member {String} user_id + */ +JoinAChannelRequest.prototype['user_id'] = undefined; + +/** + * This property should be specified if the public group channel to join requires an access code to users, which means that the is_access_code_required property of the channel resource is true. + * @member {String} access_code + */ +JoinAChannelRequest.prototype['access_code'] = undefined; + + + + + + +export default JoinAChannelRequest; + diff --git a/src/model/JoinChannelsData.js b/src/model/JoinChannelsData.js deleted file mode 100644 index 28da463..0000000 --- a/src/model/JoinChannelsData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The JoinChannelsData model module. - * @module model/JoinChannelsData - * @version 0.0.16 - */ -class JoinChannelsData { - /** - * Constructs a new JoinChannelsData. - * @alias module:model/JoinChannelsData - * @param botUserid {String} Specifies the ID of the bot to join the channels. - * @param channelUrls {Array.} Specifies an array of one or more URLs of the channels to join. - */ - constructor(botUserid, channelUrls) { - - JoinChannelsData.initialize(this, botUserid, channelUrls); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, botUserid, channelUrls) { - obj['bot_userid'] = botUserid; - obj['channel_urls'] = channelUrls; - } - - /** - * Constructs a JoinChannelsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JoinChannelsData} obj Optional instance to populate. - * @return {module:model/JoinChannelsData} The populated JoinChannelsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new JoinChannelsData(); - - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the ID of the bot to join the channels. - * @member {String} bot_userid - */ -JoinChannelsData.prototype['bot_userid'] = undefined; - -/** - * Specifies an array of one or more URLs of the channels to join. - * @member {Array.} channel_urls - */ -JoinChannelsData.prototype['channel_urls'] = undefined; - - - - - - -export default JoinChannelsData; - diff --git a/src/model/JoinChannelsRequest.js b/src/model/JoinChannelsRequest.js new file mode 100644 index 0000000..e3d81e6 --- /dev/null +++ b/src/model/JoinChannelsRequest.js @@ -0,0 +1,73 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The JoinChannelsRequest model module. + * @module model/JoinChannelsRequest + * @version 2.0.0 + */ +class JoinChannelsRequest { + /** + * Constructs a new JoinChannelsRequest. + * @alias module:model/JoinChannelsRequest + * @param channelUrls {Array.} + */ + constructor(channelUrls) { + + JoinChannelsRequest.initialize(this, channelUrls); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrls) { + obj['channel_urls'] = channelUrls; + } + + /** + * Constructs a JoinChannelsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/JoinChannelsRequest} obj Optional instance to populate. + * @return {module:model/JoinChannelsRequest} The populated JoinChannelsRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new JoinChannelsRequest(); + + if (data.hasOwnProperty('channel_urls')) { + obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} channel_urls + */ +JoinChannelsRequest.prototype['channel_urls'] = undefined; + + + + + + +export default JoinChannelsRequest; + diff --git a/src/model/JoinChannelsResponse.js b/src/model/JoinChannelsResponse.js deleted file mode 100644 index 97bd272..0000000 --- a/src/model/JoinChannelsResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdGroupChannel from './SendBirdGroupChannel'; - -/** - * The JoinChannelsResponse model module. - * @module model/JoinChannelsResponse - * @version 0.0.16 - */ -class JoinChannelsResponse { - /** - * Constructs a new JoinChannelsResponse. - * @alias module:model/JoinChannelsResponse - */ - constructor() { - - JoinChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a JoinChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/JoinChannelsResponse} obj Optional instance to populate. - * @return {module:model/JoinChannelsResponse} The populated JoinChannelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new JoinChannelsResponse(); - - if (data.hasOwnProperty('channels')) { - obj['channels'] = ApiClient.convertToType(data['channels'], [SendBirdGroupChannel]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} channels - */ -JoinChannelsResponse.prototype['channels'] = undefined; - - - - - - -export default JoinChannelsResponse; - diff --git a/src/model/LeaveAChannelRequest.js b/src/model/LeaveAChannelRequest.js new file mode 100644 index 0000000..9b525f4 --- /dev/null +++ b/src/model/LeaveAChannelRequest.js @@ -0,0 +1,140 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LeaveAChannelRequest model module. + * @module model/LeaveAChannelRequest + * @version 2.0.0 + */ +class LeaveAChannelRequest { + /** + * Constructs a new LeaveAChannelRequest. + * @alias module:model/LeaveAChannelRequest + * @param userIds {Array.} Specifies an array of one or more IDs of the users to leave the channel. + */ + constructor(userIds) { + + LeaveAChannelRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a LeaveAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeaveAChannelRequest} obj Optional instance to populate. + * @return {module:model/LeaveAChannelRequest} The populated LeaveAChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LeaveAChannelRequest(); + + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + if (data.hasOwnProperty('should_leave_all')) { + obj['should_leave_all'] = ApiClient.convertToType(data['should_leave_all'], 'Boolean'); + } + if (data.hasOwnProperty('should_remove_operator_status')) { + obj['should_remove_operator_status'] = ApiClient.convertToType(data['should_remove_operator_status'], 'Boolean'); + } + if (data.hasOwnProperty('reason')) { + obj['reason'] = ApiClient.convertToType(data['reason'], 'String'); + } + } + return obj; + } + + +} + +/** + * Specifies an array of one or more IDs of the users to leave the channel. + * @member {Array.} user_ids + */ +LeaveAChannelRequest.prototype['user_ids'] = undefined; + +/** + * Determines whether to make all members leave the channel. (Default: false) + * @member {Boolean} should_leave_all + */ +LeaveAChannelRequest.prototype['should_leave_all'] = undefined; + +/** + * Determines whether to remove a user from the channel's operator list if the user who is leaving the channel is an operator. (Default: false) + * @member {Boolean} should_remove_operator_status + */ +LeaveAChannelRequest.prototype['should_remove_operator_status'] = undefined; + +/** + * Specifies the reason for leaving a channel. Acceptable values are admin_removed, admin_deleted, admin_deactivated, left_by_own_choice, and channel_operator_removed. + * @member {module:model/LeaveAChannelRequest.ReasonEnum} reason + */ +LeaveAChannelRequest.prototype['reason'] = undefined; + + + + + +/** + * Allowed values for the reason property. + * @enum {String} + * @readonly + */ +LeaveAChannelRequest['ReasonEnum'] = { + + /** + * value: "LEFT_BY_OWN_CHOICE" + * @const + */ + "LEFT_BY_OWN_CHOICE": "LEFT_BY_OWN_CHOICE", + + /** + * value: "CHANNEL_OPERATOR_REMOVED" + * @const + */ + "CHANNEL_OPERATOR_REMOVED": "CHANNEL_OPERATOR_REMOVED", + + /** + * value: "ADMIN_REMOVED" + * @const + */ + "ADMIN_REMOVED": "ADMIN_REMOVED", + + /** + * value: "ADMIN_DELETED" + * @const + */ + "ADMIN_DELETED": "ADMIN_DELETED", + + /** + * value: "ADMIN_DEACTIVATED" + * @const + */ + "ADMIN_DEACTIVATED": "ADMIN_DEACTIVATED" +}; + + + +export default LeaveAChannelRequest; + diff --git a/src/model/LeaveMyGroupChannelsData.js b/src/model/LeaveMyGroupChannelsData.js deleted file mode 100644 index f5aac54..0000000 --- a/src/model/LeaveMyGroupChannelsData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The LeaveMyGroupChannelsData model module. - * @module model/LeaveMyGroupChannelsData - * @version 0.0.16 - */ -class LeaveMyGroupChannelsData { - /** - * Constructs a new LeaveMyGroupChannelsData. - * @alias module:model/LeaveMyGroupChannelsData - * @param customType {String} Specifies the custom channel type to make the user leave joined group channels with the corresponding type. - */ - constructor(customType) { - - LeaveMyGroupChannelsData.initialize(this, customType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, customType) { - obj['custom_type'] = customType; - } - - /** - * Constructs a LeaveMyGroupChannelsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/LeaveMyGroupChannelsData} obj Optional instance to populate. - * @return {module:model/LeaveMyGroupChannelsData} The populated LeaveMyGroupChannelsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LeaveMyGroupChannelsData(); - - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the custom channel type to make the user leave joined group channels with the corresponding type. - * @member {String} custom_type - */ -LeaveMyGroupChannelsData.prototype['custom_type'] = undefined; - - - - - - -export default LeaveMyGroupChannelsData; - diff --git a/src/model/LeaveMyGroupChannelsRequest.js b/src/model/LeaveMyGroupChannelsRequest.js new file mode 100644 index 0000000..36d3ae4 --- /dev/null +++ b/src/model/LeaveMyGroupChannelsRequest.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The LeaveMyGroupChannelsRequest model module. + * @module model/LeaveMyGroupChannelsRequest + * @version 2.0.0 + */ +class LeaveMyGroupChannelsRequest { + /** + * Constructs a new LeaveMyGroupChannelsRequest. + * @alias module:model/LeaveMyGroupChannelsRequest + */ + constructor() { + + LeaveMyGroupChannelsRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a LeaveMyGroupChannelsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/LeaveMyGroupChannelsRequest} obj Optional instance to populate. + * @return {module:model/LeaveMyGroupChannelsRequest} The populated LeaveMyGroupChannelsRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new LeaveMyGroupChannelsRequest(); + + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} custom_type + */ +LeaveMyGroupChannelsRequest.prototype['custom_type'] = undefined; + + + + + + +export default LeaveMyGroupChannelsRequest; + diff --git a/src/model/ListAllEmojisAndEmojiCategoriesResponse.js b/src/model/ListAllEmojisAndEmojiCategoriesResponse.js deleted file mode 100644 index dfc6a25..0000000 --- a/src/model/ListAllEmojisAndEmojiCategoriesResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner from './ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner'; - -/** - * The ListAllEmojisAndEmojiCategoriesResponse model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponse - * @version 0.0.16 - */ -class ListAllEmojisAndEmojiCategoriesResponse { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponse. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponse - */ - constructor() { - - ListAllEmojisAndEmojiCategoriesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponse} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponse} The populated ListAllEmojisAndEmojiCategoriesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponse(); - - if (data.hasOwnProperty('emoji_hash')) { - obj['emoji_hash'] = ApiClient.convertToType(data['emoji_hash'], 'String'); - } - if (data.hasOwnProperty('emoji_categories')) { - obj['emoji_categories'] = ApiClient.convertToType(data['emoji_categories'], [ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner]); - } - } - return obj; - } - - -} - -/** - * @member {String} emoji_hash - */ -ListAllEmojisAndEmojiCategoriesResponse.prototype['emoji_hash'] = undefined; - -/** - * @member {Array.} emoji_categories - */ -ListAllEmojisAndEmojiCategoriesResponse.prototype['emoji_categories'] = undefined; - - - - - - -export default ListAllEmojisAndEmojiCategoriesResponse; - diff --git a/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js b/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js deleted file mode 100644 index 95e1761..0000000 --- a/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner from './ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner'; - -/** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - * @version 0.0.16 - */ -class ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - */ - constructor() { - - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner} The populated ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = ApiClient.convertToType(data['emojis'], [ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner]); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['id'] = undefined; - -/** - * @member {String} name - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['name'] = undefined; - -/** - * @member {String} url - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['url'] = undefined; - -/** - * @member {Array.} emojis - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.prototype['emojis'] = undefined; - - - - - - -export default ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner; - diff --git a/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js b/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js deleted file mode 100644 index c42705a..0000000 --- a/src/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner model module. - * @module model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - * @version 0.0.16 - */ -class ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner { - /** - * Constructs a new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner. - * @alias module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - */ - constructor() { - - ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner} obj Optional instance to populate. - * @return {module:model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner} The populated ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Number} id - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['id'] = undefined; - -/** - * @member {String} key - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['key'] = undefined; - -/** - * @member {String} url - */ -ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.prototype['url'] = undefined; - - - - - - -export default ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner; - diff --git a/src/model/ListAnnouncementGroupsResponse.js b/src/model/ListAnnouncementGroupsResponse.js deleted file mode 100644 index 5dc16e8..0000000 --- a/src/model/ListAnnouncementGroupsResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListAnnouncementGroupsResponse model module. - * @module model/ListAnnouncementGroupsResponse - * @version 0.0.16 - */ -class ListAnnouncementGroupsResponse { - /** - * Constructs a new ListAnnouncementGroupsResponse. - * @alias module:model/ListAnnouncementGroupsResponse - */ - constructor() { - - ListAnnouncementGroupsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAnnouncementGroupsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementGroupsResponse} obj Optional instance to populate. - * @return {module:model/ListAnnouncementGroupsResponse} The populated ListAnnouncementGroupsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementGroupsResponse(); - - if (data.hasOwnProperty('announcement_groups')) { - obj['announcement_groups'] = ApiClient.convertToType(data['announcement_groups'], ['String']); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} announcement_groups - */ -ListAnnouncementGroupsResponse.prototype['announcement_groups'] = undefined; - -/** - * @member {String} next - */ -ListAnnouncementGroupsResponse.prototype['next'] = undefined; - - - - - - -export default ListAnnouncementGroupsResponse; - diff --git a/src/model/ListAnnouncementsResponse.js b/src/model/ListAnnouncementsResponse.js deleted file mode 100644 index a198da5..0000000 --- a/src/model/ListAnnouncementsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListAnnouncementsResponseAnnouncementsInner from './ListAnnouncementsResponseAnnouncementsInner'; - -/** - * The ListAnnouncementsResponse model module. - * @module model/ListAnnouncementsResponse - * @version 0.0.16 - */ -class ListAnnouncementsResponse { - /** - * Constructs a new ListAnnouncementsResponse. - * @alias module:model/ListAnnouncementsResponse - */ - constructor() { - - ListAnnouncementsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAnnouncementsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementsResponse} obj Optional instance to populate. - * @return {module:model/ListAnnouncementsResponse} The populated ListAnnouncementsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementsResponse(); - - if (data.hasOwnProperty('announcements')) { - obj['announcements'] = ApiClient.convertToType(data['announcements'], [ListAnnouncementsResponseAnnouncementsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} announcements - */ -ListAnnouncementsResponse.prototype['announcements'] = undefined; - -/** - * @member {String} next - */ -ListAnnouncementsResponse.prototype['next'] = undefined; - - - - - - -export default ListAnnouncementsResponse; - diff --git a/src/model/ListAnnouncementsResponseAnnouncementsInner.js b/src/model/ListAnnouncementsResponseAnnouncementsInner.js deleted file mode 100644 index 6f317f5..0000000 --- a/src/model/ListAnnouncementsResponseAnnouncementsInner.js +++ /dev/null @@ -1,241 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ScheduleAnnouncementResponseCreateChannelOptions from './ScheduleAnnouncementResponseCreateChannelOptions'; -import ScheduleAnnouncementResponseMessage from './ScheduleAnnouncementResponseMessage'; - -/** - * The ListAnnouncementsResponseAnnouncementsInner model module. - * @module model/ListAnnouncementsResponseAnnouncementsInner - * @version 0.0.16 - */ -class ListAnnouncementsResponseAnnouncementsInner { - /** - * Constructs a new ListAnnouncementsResponseAnnouncementsInner. - * @alias module:model/ListAnnouncementsResponseAnnouncementsInner - */ - constructor() { - - ListAnnouncementsResponseAnnouncementsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListAnnouncementsResponseAnnouncementsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListAnnouncementsResponseAnnouncementsInner} obj Optional instance to populate. - * @return {module:model/ListAnnouncementsResponseAnnouncementsInner} The populated ListAnnouncementsResponseAnnouncementsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListAnnouncementsResponseAnnouncementsInner(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ScheduleAnnouncementResponseMessage.constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = ApiClient.convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = ScheduleAnnouncementResponseCreateChannelOptions.constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = ApiClient.convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('target_custom_type')) { - obj['target_custom_type'] = ApiClient.convertToType(data['target_custom_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['open_rate'] = undefined; - -/** - * @member {Boolean} create_channel - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['create_channel'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['create_channel_options'] = undefined; - -/** - * @member {Number} end_at - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['end_at'] = undefined; - -/** - * @member {Boolean} mark_as_read - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['mark_as_read'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['sent_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_channel_type'] = undefined; - -/** - * @member {String} target_custom_type - */ -ListAnnouncementsResponseAnnouncementsInner.prototype['target_custom_type'] = undefined; - - - - - - -export default ListAnnouncementsResponseAnnouncementsInner; - diff --git a/src/model/ListBannedChannelsResponse.js b/src/model/ListBannedChannelsResponse.js deleted file mode 100644 index 5a772b0..0000000 --- a/src/model/ListBannedChannelsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListBannedChannelsResponseBannedChannelsInner from './ListBannedChannelsResponseBannedChannelsInner'; - -/** - * The ListBannedChannelsResponse model module. - * @module model/ListBannedChannelsResponse - * @version 0.0.16 - */ -class ListBannedChannelsResponse { - /** - * Constructs a new ListBannedChannelsResponse. - * @alias module:model/ListBannedChannelsResponse - */ - constructor() { - - ListBannedChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListBannedChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListBannedChannelsResponse} obj Optional instance to populate. - * @return {module:model/ListBannedChannelsResponse} The populated ListBannedChannelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListBannedChannelsResponse(); - - if (data.hasOwnProperty('banned_channels')) { - obj['banned_channels'] = ApiClient.convertToType(data['banned_channels'], [ListBannedChannelsResponseBannedChannelsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} banned_channels - */ -ListBannedChannelsResponse.prototype['banned_channels'] = undefined; - -/** - * @member {String} next - */ -ListBannedChannelsResponse.prototype['next'] = undefined; - - - - - - -export default ListBannedChannelsResponse; - diff --git a/src/model/ListBannedChannelsResponseBannedChannelsInner.js b/src/model/ListBannedChannelsResponseBannedChannelsInner.js deleted file mode 100644 index c73e04c..0000000 --- a/src/model/ListBannedChannelsResponseBannedChannelsInner.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; - -/** - * The ListBannedChannelsResponseBannedChannelsInner model module. - * @module model/ListBannedChannelsResponseBannedChannelsInner - * @version 0.0.16 - */ -class ListBannedChannelsResponseBannedChannelsInner { - /** - * Constructs a new ListBannedChannelsResponseBannedChannelsInner. - * @alias module:model/ListBannedChannelsResponseBannedChannelsInner - */ - constructor() { - - ListBannedChannelsResponseBannedChannelsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListBannedChannelsResponseBannedChannelsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListBannedChannelsResponseBannedChannelsInner} obj Optional instance to populate. - * @return {module:model/ListBannedChannelsResponseBannedChannelsInner} The populated ListBannedChannelsResponseBannedChannelsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListBannedChannelsResponseBannedChannelsInner(); - - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} start_at - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['start_at'] = undefined; - -/** - * @member {String} description - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['description'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['channel'] = undefined; - -/** - * @member {Number} end_at - */ -ListBannedChannelsResponseBannedChannelsInner.prototype['end_at'] = undefined; - - - - - - -export default ListBannedChannelsResponseBannedChannelsInner; - diff --git a/src/model/ListBlockedUsersResponse.js b/src/model/ListBlockedUsersResponse.js index 0f53804..c391135 100644 --- a/src/model/ListBlockedUsersResponse.js +++ b/src/model/ListBlockedUsersResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; +import SendbirdUser from './SendbirdUser'; /** * The ListBlockedUsersResponse model module. * @module model/ListBlockedUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListBlockedUsersResponse { /** @@ -49,7 +49,7 @@ class ListBlockedUsersResponse { obj = obj || new ListBlockedUsersResponse(); if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], [SendBirdUser]); + obj['users'] = ApiClient.convertToType(data['users'], [SendbirdUser]); } if (data.hasOwnProperty('next')) { obj['next'] = ApiClient.convertToType(data['next'], 'String'); @@ -62,7 +62,7 @@ class ListBlockedUsersResponse { } /** - * @member {Array.} users + * @member {Array.} users */ ListBlockedUsersResponse.prototype['users'] = undefined; diff --git a/src/model/ListBotsResponse.js b/src/model/ListBotsResponse.js index 5b86eca..94267fc 100644 --- a/src/model/ListBotsResponse.js +++ b/src/model/ListBotsResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -17,7 +17,7 @@ import ListBotsResponseBotsInner from './ListBotsResponseBotsInner'; /** * The ListBotsResponse model module. * @module model/ListBotsResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListBotsResponse { /** diff --git a/src/model/ListBotsResponseBotsInner.js b/src/model/ListBotsResponseBotsInner.js index cd8a776..22d9eba 100644 --- a/src/model/ListBotsResponseBotsInner.js +++ b/src/model/ListBotsResponseBotsInner.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,16 @@ */ import ApiClient from '../ApiClient'; -import CreateBotResponseBot from './CreateBotResponseBot'; +import ListBotsResponseBotsInnerAi from './ListBotsResponseBotsInnerAi'; +import ListBotsResponseBotsInnerBot from './ListBotsResponseBotsInnerBot'; +import ListBotsResponseBotsInnerBotStyle from './ListBotsResponseBotsInnerBotStyle'; +import ListBotsResponseBotsInnerFirstMessagesInner from './ListBotsResponseBotsInnerFirstMessagesInner'; +import ListBotsResponseBotsInnerSafeguard from './ListBotsResponseBotsInnerSafeguard'; /** * The ListBotsResponseBotsInner model module. * @module model/ListBotsResponseBotsInner - * @version 0.0.16 + * @version 2.0.0 */ class ListBotsResponseBotsInner { /** @@ -48,24 +52,39 @@ class ListBotsResponseBotsInner { if (data) { obj = obj || new ListBotsResponseBotsInner(); + if (data.hasOwnProperty('ai')) { + obj['ai'] = ListBotsResponseBotsInnerAi.constructFromObject(data['ai']); + } if (data.hasOwnProperty('bot')) { - obj['bot'] = CreateBotResponseBot.constructFromObject(data['bot']); + obj['bot'] = ListBotsResponseBotsInnerBot.constructFromObject(data['bot']); } if (data.hasOwnProperty('bot_callback_url')) { obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); } + if (data.hasOwnProperty('bot_style')) { + obj['bot_style'] = ListBotsResponseBotsInnerBotStyle.constructFromObject(data['bot_style']); + } + if (data.hasOwnProperty('channel_invitation_preference')) { + obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } if (data.hasOwnProperty('enable_mark_as_read')) { obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); } + if (data.hasOwnProperty('first_messages')) { + obj['first_messages'] = ApiClient.convertToType(data['first_messages'], [ListBotsResponseBotsInnerFirstMessagesInner]); + } if (data.hasOwnProperty('is_privacy_mode')) { obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); } + if (data.hasOwnProperty('safeguard')) { + obj['safeguard'] = ListBotsResponseBotsInnerSafeguard.constructFromObject(data['safeguard']); + } if (data.hasOwnProperty('show_member')) { obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } } return obj; } @@ -74,7 +93,12 @@ class ListBotsResponseBotsInner { } /** - * @member {module:model/CreateBotResponseBot} bot + * @member {module:model/ListBotsResponseBotsInnerAi} ai + */ +ListBotsResponseBotsInner.prototype['ai'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBot} bot */ ListBotsResponseBotsInner.prototype['bot'] = undefined; @@ -83,25 +107,45 @@ ListBotsResponseBotsInner.prototype['bot'] = undefined; */ ListBotsResponseBotsInner.prototype['bot_callback_url'] = undefined; +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyle} bot_style + */ +ListBotsResponseBotsInner.prototype['bot_style'] = undefined; + +/** + * @member {Number} channel_invitation_preference + */ +ListBotsResponseBotsInner.prototype['channel_invitation_preference'] = undefined; + +/** + * @member {Number} created_at + */ +ListBotsResponseBotsInner.prototype['created_at'] = undefined; + /** * @member {Boolean} enable_mark_as_read */ ListBotsResponseBotsInner.prototype['enable_mark_as_read'] = undefined; +/** + * @member {Array.} first_messages + */ +ListBotsResponseBotsInner.prototype['first_messages'] = undefined; + /** * @member {Boolean} is_privacy_mode */ ListBotsResponseBotsInner.prototype['is_privacy_mode'] = undefined; /** - * @member {Boolean} show_member + * @member {module:model/ListBotsResponseBotsInnerSafeguard} safeguard */ -ListBotsResponseBotsInner.prototype['show_member'] = undefined; +ListBotsResponseBotsInner.prototype['safeguard'] = undefined; /** - * @member {Number} channel_invitation_preference + * @member {Boolean} show_member */ -ListBotsResponseBotsInner.prototype['channel_invitation_preference'] = undefined; +ListBotsResponseBotsInner.prototype['show_member'] = undefined; diff --git a/src/model/ListBotsResponseBotsInnerAi.js b/src/model/ListBotsResponseBotsInnerAi.js new file mode 100644 index 0000000..2ff8ad8 --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerAi.js @@ -0,0 +1,159 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ListBotsResponseBotsInnerAi model module. + * @module model/ListBotsResponseBotsInnerAi + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerAi { + /** + * Constructs a new ListBotsResponseBotsInnerAi. + * @alias module:model/ListBotsResponseBotsInnerAi + */ + constructor() { + + ListBotsResponseBotsInnerAi.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerAi from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerAi} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerAi} The populated ListBotsResponseBotsInnerAi instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerAi(); + + if (data.hasOwnProperty('backend')) { + obj['backend'] = ApiClient.convertToType(data['backend'], 'String'); + } + if (data.hasOwnProperty('feedback')) { + obj['feedback'] = ApiClient.convertToType(data['feedback'], 'Boolean'); + } + if (data.hasOwnProperty('frequency_penalty')) { + obj['frequency_penalty'] = ApiClient.convertToType(data['frequency_penalty'], 'Number'); + } + if (data.hasOwnProperty('instruction_mode')) { + obj['instruction_mode'] = ApiClient.convertToType(data['instruction_mode'], Object); + } + if (data.hasOwnProperty('max_tokens')) { + obj['max_tokens'] = ApiClient.convertToType(data['max_tokens'], 'Number'); + } + if (data.hasOwnProperty('model')) { + obj['model'] = ApiClient.convertToType(data['model'], 'String'); + } + if (data.hasOwnProperty('presence_penalty')) { + obj['presence_penalty'] = ApiClient.convertToType(data['presence_penalty'], 'Number'); + } + if (data.hasOwnProperty('stream')) { + obj['stream'] = ApiClient.convertToType(data['stream'], 'Boolean'); + } + if (data.hasOwnProperty('system_message')) { + obj['system_message'] = ApiClient.convertToType(data['system_message'], 'String'); + } + if (data.hasOwnProperty('system_message_for_context_prefix')) { + obj['system_message_for_context_prefix'] = ApiClient.convertToType(data['system_message_for_context_prefix'], 'String'); + } + if (data.hasOwnProperty('temperature')) { + obj['temperature'] = ApiClient.convertToType(data['temperature'], 'Number'); + } + if (data.hasOwnProperty('top_p')) { + obj['top_p'] = ApiClient.convertToType(data['top_p'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} backend + */ +ListBotsResponseBotsInnerAi.prototype['backend'] = undefined; + +/** + * @member {Boolean} feedback + */ +ListBotsResponseBotsInnerAi.prototype['feedback'] = undefined; + +/** + * @member {Number} frequency_penalty + */ +ListBotsResponseBotsInnerAi.prototype['frequency_penalty'] = undefined; + +/** + * @member {Object} instruction_mode + */ +ListBotsResponseBotsInnerAi.prototype['instruction_mode'] = undefined; + +/** + * @member {Number} max_tokens + */ +ListBotsResponseBotsInnerAi.prototype['max_tokens'] = undefined; + +/** + * @member {String} model + */ +ListBotsResponseBotsInnerAi.prototype['model'] = undefined; + +/** + * @member {Number} presence_penalty + */ +ListBotsResponseBotsInnerAi.prototype['presence_penalty'] = undefined; + +/** + * @member {Boolean} stream + */ +ListBotsResponseBotsInnerAi.prototype['stream'] = undefined; + +/** + * @member {String} system_message + */ +ListBotsResponseBotsInnerAi.prototype['system_message'] = undefined; + +/** + * @member {String} system_message_for_context_prefix + */ +ListBotsResponseBotsInnerAi.prototype['system_message_for_context_prefix'] = undefined; + +/** + * @member {Number} temperature + */ +ListBotsResponseBotsInnerAi.prototype['temperature'] = undefined; + +/** + * @member {Number} top_p + */ +ListBotsResponseBotsInnerAi.prototype['top_p'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerAi; + diff --git a/src/model/ListBotsResponseBotsInnerBot.js b/src/model/ListBotsResponseBotsInnerBot.js new file mode 100644 index 0000000..c0e1674 --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerBot.js @@ -0,0 +1,129 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ListBotsResponseBotsInnerBot model module. + * @module model/ListBotsResponseBotsInnerBot + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerBot { + /** + * Constructs a new ListBotsResponseBotsInnerBot. + * @alias module:model/ListBotsResponseBotsInnerBot + * @param botUserid {String} + */ + constructor(botUserid) { + + ListBotsResponseBotsInnerBot.initialize(this, botUserid); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, botUserid) { + obj['bot_userid'] = botUserid; + } + + /** + * Constructs a ListBotsResponseBotsInnerBot from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBot} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBot} The populated ListBotsResponseBotsInnerBot instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBot(); + + if (data.hasOwnProperty('ai_agent_type')) { + obj['ai_agent_type'] = ApiClient.convertToType(data['ai_agent_type'], 'String'); + } + if (data.hasOwnProperty('bot_metadata')) { + obj['bot_metadata'] = ApiClient.convertToType(data['bot_metadata'], Object); + } + if (data.hasOwnProperty('bot_nickname')) { + obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); + } + if (data.hasOwnProperty('bot_profile_url')) { + obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); + } + if (data.hasOwnProperty('bot_require_auth_for_profile_image')) { + obj['bot_require_auth_for_profile_image'] = ApiClient.convertToType(data['bot_require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('bot_token')) { + obj['bot_token'] = ApiClient.convertToType(data['bot_token'], 'String'); + } + if (data.hasOwnProperty('bot_type')) { + obj['bot_type'] = ApiClient.convertToType(data['bot_type'], 'String'); + } + if (data.hasOwnProperty('bot_userid')) { + obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} ai_agent_type + */ +ListBotsResponseBotsInnerBot.prototype['ai_agent_type'] = undefined; + +/** + * @member {Object} bot_metadata + */ +ListBotsResponseBotsInnerBot.prototype['bot_metadata'] = undefined; + +/** + * @member {String} bot_nickname + */ +ListBotsResponseBotsInnerBot.prototype['bot_nickname'] = undefined; + +/** + * @member {String} bot_profile_url + */ +ListBotsResponseBotsInnerBot.prototype['bot_profile_url'] = undefined; + +/** + * @member {Boolean} bot_require_auth_for_profile_image + */ +ListBotsResponseBotsInnerBot.prototype['bot_require_auth_for_profile_image'] = undefined; + +/** + * @member {String} bot_token + */ +ListBotsResponseBotsInnerBot.prototype['bot_token'] = undefined; + +/** + * @member {String} bot_type + */ +ListBotsResponseBotsInnerBot.prototype['bot_type'] = undefined; + +/** + * @member {String} bot_userid + */ +ListBotsResponseBotsInnerBot.prototype['bot_userid'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerBot; + diff --git a/src/model/ListBotsResponseBotsInnerBotStyle.js b/src/model/ListBotsResponseBotsInnerBotStyle.js new file mode 100644 index 0000000..6ab7172 --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerBotStyle.js @@ -0,0 +1,96 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ListBotsResponseBotsInnerBotStyleColor from './ListBotsResponseBotsInnerBotStyleColor'; + +/** + * The ListBotsResponseBotsInnerBotStyle model module. + * @module model/ListBotsResponseBotsInnerBotStyle + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerBotStyle { + /** + * Constructs a new ListBotsResponseBotsInnerBotStyle. + * @alias module:model/ListBotsResponseBotsInnerBotStyle + */ + constructor() { + + ListBotsResponseBotsInnerBotStyle.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerBotStyle from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBotStyle} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBotStyle} The populated ListBotsResponseBotsInnerBotStyle instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBotStyle(); + + if (data.hasOwnProperty('auto_open')) { + obj['auto_open'] = ApiClient.convertToType(data['auto_open'], 'Boolean'); + } + if (data.hasOwnProperty('color')) { + obj['color'] = ListBotsResponseBotsInnerBotStyleColor.constructFromObject(data['color']); + } + if (data.hasOwnProperty('toggle_button_type')) { + obj['toggle_button_type'] = ApiClient.convertToType(data['toggle_button_type'], 'String'); + } + if (data.hasOwnProperty('toggle_button_url')) { + obj['toggle_button_url'] = ApiClient.convertToType(data['toggle_button_url'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} auto_open + */ +ListBotsResponseBotsInnerBotStyle.prototype['auto_open'] = undefined; + +/** + * @member {module:model/ListBotsResponseBotsInnerBotStyleColor} color + */ +ListBotsResponseBotsInnerBotStyle.prototype['color'] = undefined; + +/** + * @member {String} toggle_button_type + */ +ListBotsResponseBotsInnerBotStyle.prototype['toggle_button_type'] = undefined; + +/** + * @member {String} toggle_button_url + */ +ListBotsResponseBotsInnerBotStyle.prototype['toggle_button_url'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerBotStyle; + diff --git a/src/model/ListBotsResponseBotsInnerBotStyleColor.js b/src/model/ListBotsResponseBotsInnerBotStyleColor.js new file mode 100644 index 0000000..ef0f4af --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerBotStyleColor.js @@ -0,0 +1,87 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ListBotsResponseBotsInnerBotStyleColor model module. + * @module model/ListBotsResponseBotsInnerBotStyleColor + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerBotStyleColor { + /** + * Constructs a new ListBotsResponseBotsInnerBotStyleColor. + * @alias module:model/ListBotsResponseBotsInnerBotStyleColor + */ + constructor() { + + ListBotsResponseBotsInnerBotStyleColor.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerBotStyleColor from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerBotStyleColor} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerBotStyleColor} The populated ListBotsResponseBotsInnerBotStyleColor instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerBotStyleColor(); + + if (data.hasOwnProperty('accent_color')) { + obj['accent_color'] = ApiClient.convertToType(data['accent_color'], 'String'); + } + if (data.hasOwnProperty('bot_message_color')) { + obj['bot_message_color'] = ApiClient.convertToType(data['bot_message_color'], 'String'); + } + if (data.hasOwnProperty('theme')) { + obj['theme'] = ApiClient.convertToType(data['theme'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} accent_color + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['accent_color'] = undefined; + +/** + * @member {String} bot_message_color + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['bot_message_color'] = undefined; + +/** + * @member {String} theme + */ +ListBotsResponseBotsInnerBotStyleColor.prototype['theme'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerBotStyleColor; + diff --git a/src/model/ListBotsResponseBotsInnerFirstMessagesInner.js b/src/model/ListBotsResponseBotsInnerFirstMessagesInner.js new file mode 100644 index 0000000..401b9a8 --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerFirstMessagesInner.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ListBotsResponseBotsInnerFirstMessagesInnerData from './ListBotsResponseBotsInnerFirstMessagesInnerData'; + +/** + * The ListBotsResponseBotsInnerFirstMessagesInner model module. + * @module model/ListBotsResponseBotsInnerFirstMessagesInner + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerFirstMessagesInner { + /** + * Constructs a new ListBotsResponseBotsInnerFirstMessagesInner. + * @alias module:model/ListBotsResponseBotsInnerFirstMessagesInner + */ + constructor() { + + ListBotsResponseBotsInnerFirstMessagesInner.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerFirstMessagesInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerFirstMessagesInner} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerFirstMessagesInner} The populated ListBotsResponseBotsInnerFirstMessagesInner instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerFirstMessagesInner(); + + if (data.hasOwnProperty('data')) { + obj['data'] = ListBotsResponseBotsInnerFirstMessagesInnerData.constructFromObject(data['data']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} data + */ +ListBotsResponseBotsInnerFirstMessagesInner.prototype['data'] = undefined; + +/** + * @member {String} message + */ +ListBotsResponseBotsInnerFirstMessagesInner.prototype['message'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerFirstMessagesInner; + diff --git a/src/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js b/src/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js new file mode 100644 index 0000000..5edb821 --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerFirstMessagesInnerData.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ListBotsResponseBotsInnerFirstMessagesInnerData model module. + * @module model/ListBotsResponseBotsInnerFirstMessagesInnerData + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerFirstMessagesInnerData { + /** + * Constructs a new ListBotsResponseBotsInnerFirstMessagesInnerData. + * @alias module:model/ListBotsResponseBotsInnerFirstMessagesInnerData + */ + constructor() { + + ListBotsResponseBotsInnerFirstMessagesInnerData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerFirstMessagesInnerData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerFirstMessagesInnerData} The populated ListBotsResponseBotsInnerFirstMessagesInnerData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerFirstMessagesInnerData(); + + if (data.hasOwnProperty('suggested_replies')) { + obj['suggested_replies'] = ApiClient.convertToType(data['suggested_replies'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} suggested_replies + */ +ListBotsResponseBotsInnerFirstMessagesInnerData.prototype['suggested_replies'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerFirstMessagesInnerData; + diff --git a/src/model/ListBotsResponseBotsInnerSafeguard.js b/src/model/ListBotsResponseBotsInnerSafeguard.js new file mode 100644 index 0000000..310632e --- /dev/null +++ b/src/model/ListBotsResponseBotsInnerSafeguard.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ListBotsResponseBotsInnerSafeguard model module. + * @module model/ListBotsResponseBotsInnerSafeguard + * @version 2.0.0 + */ +class ListBotsResponseBotsInnerSafeguard { + /** + * Constructs a new ListBotsResponseBotsInnerSafeguard. + * @alias module:model/ListBotsResponseBotsInnerSafeguard + */ + constructor() { + + ListBotsResponseBotsInnerSafeguard.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListBotsResponseBotsInnerSafeguard from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListBotsResponseBotsInnerSafeguard} obj Optional instance to populate. + * @return {module:model/ListBotsResponseBotsInnerSafeguard} The populated ListBotsResponseBotsInnerSafeguard instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListBotsResponseBotsInnerSafeguard(); + + if (data.hasOwnProperty('banned_phrases')) { + obj['banned_phrases'] = ApiClient.convertToType(data['banned_phrases'], [Object]); + } + if (data.hasOwnProperty('enabled')) { + obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('pii_masking')) { + obj['pii_masking'] = ApiClient.convertToType(data['pii_masking'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} banned_phrases + */ +ListBotsResponseBotsInnerSafeguard.prototype['banned_phrases'] = undefined; + +/** + * @member {Boolean} enabled + */ +ListBotsResponseBotsInnerSafeguard.prototype['enabled'] = undefined; + +/** + * @member {String} message + */ +ListBotsResponseBotsInnerSafeguard.prototype['message'] = undefined; + +/** + * @member {Boolean} pii_masking + */ +ListBotsResponseBotsInnerSafeguard.prototype['pii_masking'] = undefined; + + + + + + +export default ListBotsResponseBotsInnerSafeguard; + diff --git a/src/model/ListDataExportsByMessageChannelOrUserResponse.js b/src/model/ListDataExportsByMessageChannelOrUserResponse.js deleted file mode 100644 index 56b9a3b..0000000 --- a/src/model/ListDataExportsByMessageChannelOrUserResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInner from './ListDataExportsByMessageChannelOrUserResponseExportedDataInner'; - -/** - * The ListDataExportsByMessageChannelOrUserResponse model module. - * @module model/ListDataExportsByMessageChannelOrUserResponse - * @version 0.0.16 - */ -class ListDataExportsByMessageChannelOrUserResponse { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponse. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponse - */ - constructor() { - - ListDataExportsByMessageChannelOrUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponse} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponse} The populated ListDataExportsByMessageChannelOrUserResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponse(); - - if (data.hasOwnProperty('exported_data')) { - obj['exported_data'] = ApiClient.convertToType(data['exported_data'], [ListDataExportsByMessageChannelOrUserResponseExportedDataInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} exported_data - */ -ListDataExportsByMessageChannelOrUserResponse.prototype['exported_data'] = undefined; - -/** - * @member {String} next - */ -ListDataExportsByMessageChannelOrUserResponse.prototype['next'] = undefined; - - - - - - -export default ListDataExportsByMessageChannelOrUserResponse; - diff --git a/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js b/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js deleted file mode 100644 index 3fdd18b..0000000 --- a/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.js +++ /dev/null @@ -1,160 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; - -/** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInner model module. - * @module model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner - * @version 0.0.16 - */ -class ListDataExportsByMessageChannelOrUserResponseExportedDataInner { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponseExportedDataInner. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner - */ - constructor() { - - ListDataExportsByMessageChannelOrUserResponseExportedDataInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponseExportedDataInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner} The populated ListDataExportsByMessageChannelOrUserResponseExportedDataInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = ApiClient.convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = ApiClient.convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = ApiClient.convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = ApiClient.convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = ApiClient.convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {String} request_id - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['request_id'] = undefined; - -/** - * @member {String} status - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['status'] = undefined; - -/** - * @member {String} format - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} sender_ids - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInner.prototype['user_ids'] = undefined; - - - - - - -export default ListDataExportsByMessageChannelOrUserResponseExportedDataInner; - diff --git a/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js b/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js deleted file mode 100644 index dcebb01..0000000 --- a/src/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile model module. - * @module model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - * @version 0.0.16 - */ -class ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile { - /** - * Constructs a new ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile. - * @alias module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - */ - constructor() { - - ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} obj Optional instance to populate. - * @return {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} The populated ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('expires_at')) { - obj['expires_at'] = ApiClient.convertToType(data['expires_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} url - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.prototype['url'] = undefined; - -/** - * @member {Number} expires_at - */ -ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.prototype['expires_at'] = undefined; - - - - - - -export default ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile; - diff --git a/src/model/ListEmojisResponse.js b/src/model/ListEmojisResponse.js deleted file mode 100644 index 8b3b405..0000000 --- a/src/model/ListEmojisResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdEmoji from './SendBirdEmoji'; - -/** - * The ListEmojisResponse model module. - * @module model/ListEmojisResponse - * @version 0.0.16 - */ -class ListEmojisResponse { - /** - * Constructs a new ListEmojisResponse. - * @alias module:model/ListEmojisResponse - */ - constructor() { - - ListEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListEmojisResponse} obj Optional instance to populate. - * @return {module:model/ListEmojisResponse} The populated ListEmojisResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListEmojisResponse(); - - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = ApiClient.convertToType(data['emojis'], [SendBirdEmoji]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} emojis - */ -ListEmojisResponse.prototype['emojis'] = undefined; - - - - - - -export default ListEmojisResponse; - diff --git a/src/model/ListGdprRequestsResponse.js b/src/model/ListGdprRequestsResponse.js deleted file mode 100644 index 5738e5b..0000000 --- a/src/model/ListGdprRequestsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListGdprRequestsResponseRequestsInner from './ListGdprRequestsResponseRequestsInner'; - -/** - * The ListGdprRequestsResponse model module. - * @module model/ListGdprRequestsResponse - * @version 0.0.16 - */ -class ListGdprRequestsResponse { - /** - * Constructs a new ListGdprRequestsResponse. - * @alias module:model/ListGdprRequestsResponse - */ - constructor() { - - ListGdprRequestsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListGdprRequestsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGdprRequestsResponse} obj Optional instance to populate. - * @return {module:model/ListGdprRequestsResponse} The populated ListGdprRequestsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGdprRequestsResponse(); - - if (data.hasOwnProperty('requests')) { - obj['requests'] = ApiClient.convertToType(data['requests'], [ListGdprRequestsResponseRequestsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} requests - */ -ListGdprRequestsResponse.prototype['requests'] = undefined; - -/** - * @member {String} next - */ -ListGdprRequestsResponse.prototype['next'] = undefined; - - - - - - -export default ListGdprRequestsResponse; - diff --git a/src/model/ListGdprRequestsResponseRequestsInner.js b/src/model/ListGdprRequestsResponseRequestsInner.js deleted file mode 100644 index 837e1e5..0000000 --- a/src/model/ListGdprRequestsResponseRequestsInner.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; - -/** - * The ListGdprRequestsResponseRequestsInner model module. - * @module model/ListGdprRequestsResponseRequestsInner - * @version 0.0.16 - */ -class ListGdprRequestsResponseRequestsInner { - /** - * Constructs a new ListGdprRequestsResponseRequestsInner. - * @alias module:model/ListGdprRequestsResponseRequestsInner - */ - constructor() { - - ListGdprRequestsResponseRequestsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListGdprRequestsResponseRequestsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListGdprRequestsResponseRequestsInner} obj Optional instance to populate. - * @return {module:model/ListGdprRequestsResponseRequestsInner} The populated ListGdprRequestsResponseRequestsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListGdprRequestsResponseRequestsInner(); - - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('files')) { - obj['files'] = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.constructFromObject(data['files']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = ApiClient.convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} request_id - */ -ListGdprRequestsResponseRequestsInner.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -ListGdprRequestsResponseRequestsInner.prototype['action'] = undefined; - -/** - * @member {String} status - */ -ListGdprRequestsResponseRequestsInner.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -ListGdprRequestsResponseRequestsInner.prototype['user_id'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} files - */ -ListGdprRequestsResponseRequestsInner.prototype['files'] = undefined; - -/** - * @member {Array.} user_ids - */ -ListGdprRequestsResponseRequestsInner.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -ListGdprRequestsResponseRequestsInner.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -ListGdprRequestsResponseRequestsInner.prototype['created_at'] = undefined; - - - - - - -export default ListGdprRequestsResponseRequestsInner; - diff --git a/src/model/ListMessagesResponse.js b/src/model/ListMessagesResponse.js index f8320da..70cb88d 100644 --- a/src/model/ListMessagesResponse.js +++ b/src/model/ListMessagesResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import ListMessagesResponseMessagesInner from './ListMessagesResponseMessagesInner'; +import SendbirdMessageResponse from './SendbirdMessageResponse'; /** * The ListMessagesResponse model module. * @module model/ListMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListMessagesResponse { /** @@ -49,7 +49,7 @@ class ListMessagesResponse { obj = obj || new ListMessagesResponse(); if (data.hasOwnProperty('messages')) { - obj['messages'] = ApiClient.convertToType(data['messages'], [ListMessagesResponseMessagesInner]); + obj['messages'] = ApiClient.convertToType(data['messages'], [SendbirdMessageResponse]); } } return obj; @@ -59,7 +59,7 @@ class ListMessagesResponse { } /** - * @member {Array.} messages + * @member {Array.} messages */ ListMessagesResponse.prototype['messages'] = undefined; diff --git a/src/model/ListMessagesResponseMessagesInner.js b/src/model/ListMessagesResponseMessagesInner.js deleted file mode 100644 index 4c16e3f..0000000 --- a/src/model/ListMessagesResponseMessagesInner.js +++ /dev/null @@ -1,243 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListMessagesResponseMessagesInnerOgTag from './ListMessagesResponseMessagesInnerOgTag'; -import ListMessagesResponseMessagesInnerSortedMetaarrayInner from './ListMessagesResponseMessagesInnerSortedMetaarrayInner'; -import SendBirdMessageResponseMentionedUsersInner from './SendBirdMessageResponseMentionedUsersInner'; -import SendBirdMessageResponseUser from './SendBirdMessageResponseUser'; - -/** - * The ListMessagesResponseMessagesInner model module. - * @module model/ListMessagesResponseMessagesInner - * @version 0.0.16 - */ -class ListMessagesResponseMessagesInner { - /** - * Constructs a new ListMessagesResponseMessagesInner. - * @alias module:model/ListMessagesResponseMessagesInner - */ - constructor() { - - ListMessagesResponseMessagesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMessagesResponseMessagesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInner} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInner} The populated ListMessagesResponseMessagesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInner(); - - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdMessageResponseMentionedUsersInner]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = ApiClient.convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = ApiClient.convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = ApiClient.convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdMessageResponseUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = ApiClient.convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = ApiClient.convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [ListMessagesResponseMessagesInnerSortedMetaarrayInner]); - } - if (data.hasOwnProperty('og_tag')) { - obj['og_tag'] = ListMessagesResponseMessagesInnerOgTag.constructFromObject(data['og_tag']); - } - } - return obj; - } - - -} - -/** - * @member {Number} message_survival_seconds - */ -ListMessagesResponseMessagesInner.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -ListMessagesResponseMessagesInner.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -ListMessagesResponseMessagesInner.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -ListMessagesResponseMessagesInner.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -ListMessagesResponseMessagesInner.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -ListMessagesResponseMessagesInner.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -ListMessagesResponseMessagesInner.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -ListMessagesResponseMessagesInner.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -ListMessagesResponseMessagesInner.prototype['file'] = undefined; - -/** - * @member {String} message - */ -ListMessagesResponseMessagesInner.prototype['message'] = undefined; - -/** - * @member {String} data - */ -ListMessagesResponseMessagesInner.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -ListMessagesResponseMessagesInner.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -ListMessagesResponseMessagesInner.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -ListMessagesResponseMessagesInner.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -ListMessagesResponseMessagesInner.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -ListMessagesResponseMessagesInner.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -ListMessagesResponseMessagesInner.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -ListMessagesResponseMessagesInner.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -ListMessagesResponseMessagesInner.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -ListMessagesResponseMessagesInner.prototype['message_id'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -ListMessagesResponseMessagesInner.prototype['sorted_metaarray'] = undefined; - -/** - * @member {module:model/ListMessagesResponseMessagesInnerOgTag} og_tag - */ -ListMessagesResponseMessagesInner.prototype['og_tag'] = undefined; - - - - - - -export default ListMessagesResponseMessagesInner; - diff --git a/src/model/ListMessagesResponseMessagesInnerOgTag.js b/src/model/ListMessagesResponseMessagesInnerOgTag.js deleted file mode 100644 index 9d2ad19..0000000 --- a/src/model/ListMessagesResponseMessagesInnerOgTag.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListMessagesResponseMessagesInnerOgTagOgImage from './ListMessagesResponseMessagesInnerOgTagOgImage'; - -/** - * The ListMessagesResponseMessagesInnerOgTag model module. - * @module model/ListMessagesResponseMessagesInnerOgTag - * @version 0.0.16 - */ -class ListMessagesResponseMessagesInnerOgTag { - /** - * Constructs a new ListMessagesResponseMessagesInnerOgTag. - * @alias module:model/ListMessagesResponseMessagesInnerOgTag - */ - constructor() { - - ListMessagesResponseMessagesInnerOgTag.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMessagesResponseMessagesInnerOgTag from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerOgTag} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerOgTag} The populated ListMessagesResponseMessagesInnerOgTag instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerOgTag(); - - if (data.hasOwnProperty('og:url')) { - obj['og:url'] = ApiClient.convertToType(data['og:url'], 'String'); - } - if (data.hasOwnProperty('og:title')) { - obj['og:title'] = ApiClient.convertToType(data['og:title'], 'String'); - } - if (data.hasOwnProperty('og:description')) { - obj['og:description'] = ApiClient.convertToType(data['og:description'], 'String'); - } - if (data.hasOwnProperty('og:image')) { - obj['og:image'] = ListMessagesResponseMessagesInnerOgTagOgImage.constructFromObject(data['og:image']); - } - } - return obj; - } - - -} - -/** - * @member {String} og:url - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:url'] = undefined; - -/** - * @member {String} og:title - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:title'] = undefined; - -/** - * @member {String} og:description - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:description'] = undefined; - -/** - * @member {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} og:image - */ -ListMessagesResponseMessagesInnerOgTag.prototype['og:image'] = undefined; - - - - - - -export default ListMessagesResponseMessagesInnerOgTag; - diff --git a/src/model/ListMessagesResponseMessagesInnerOgTagOgImage.js b/src/model/ListMessagesResponseMessagesInnerOgTagOgImage.js deleted file mode 100644 index 0c20e96..0000000 --- a/src/model/ListMessagesResponseMessagesInnerOgTagOgImage.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListMessagesResponseMessagesInnerOgTagOgImage model module. - * @module model/ListMessagesResponseMessagesInnerOgTagOgImage - * @version 0.0.16 - */ -class ListMessagesResponseMessagesInnerOgTagOgImage { - /** - * Constructs a new ListMessagesResponseMessagesInnerOgTagOgImage. - * @alias module:model/ListMessagesResponseMessagesInnerOgTagOgImage - */ - constructor() { - - ListMessagesResponseMessagesInnerOgTagOgImage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMessagesResponseMessagesInnerOgTagOgImage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerOgTagOgImage} The populated ListMessagesResponseMessagesInnerOgTagOgImage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerOgTagOgImage(); - - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('secure_url')) { - obj['secure_url'] = ApiClient.convertToType(data['secure_url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = ApiClient.convertToType(data['width'], 'Number'); - } - if (data.hasOwnProperty('height')) { - obj['height'] = ApiClient.convertToType(data['height'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} url - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['url'] = undefined; - -/** - * @member {String} secure_url - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['secure_url'] = undefined; - -/** - * @member {Number} width - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['width'] = undefined; - -/** - * @member {Number} height - */ -ListMessagesResponseMessagesInnerOgTagOgImage.prototype['height'] = undefined; - - - - - - -export default ListMessagesResponseMessagesInnerOgTagOgImage; - diff --git a/src/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js b/src/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js deleted file mode 100644 index ba8af47..0000000 --- a/src/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListMessagesResponseMessagesInnerSortedMetaarrayInner model module. - * @module model/ListMessagesResponseMessagesInnerSortedMetaarrayInner - * @version 0.0.16 - */ -class ListMessagesResponseMessagesInnerSortedMetaarrayInner { - /** - * Constructs a new ListMessagesResponseMessagesInnerSortedMetaarrayInner. - * @alias module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner - */ - constructor() { - - ListMessagesResponseMessagesInnerSortedMetaarrayInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMessagesResponseMessagesInnerSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner} obj Optional instance to populate. - * @return {module:model/ListMessagesResponseMessagesInnerSortedMetaarrayInner} The populated ListMessagesResponseMessagesInnerSortedMetaarrayInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {String} key - */ -ListMessagesResponseMessagesInnerSortedMetaarrayInner.prototype['key'] = undefined; - -/** - * @member {Array.} value - */ -ListMessagesResponseMessagesInnerSortedMetaarrayInner.prototype['value'] = undefined; - - - - - - -export default ListMessagesResponseMessagesInnerSortedMetaarrayInner; - diff --git a/src/model/ListMutedChannelsResponse.js b/src/model/ListMutedChannelsResponse.js deleted file mode 100644 index 17879de..0000000 --- a/src/model/ListMutedChannelsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; - -/** - * The ListMutedChannelsResponse model module. - * @module model/ListMutedChannelsResponse - * @version 0.0.16 - */ -class ListMutedChannelsResponse { - /** - * Constructs a new ListMutedChannelsResponse. - * @alias module:model/ListMutedChannelsResponse - */ - constructor() { - - ListMutedChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMutedChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMutedChannelsResponse} obj Optional instance to populate. - * @return {module:model/ListMutedChannelsResponse} The populated ListMutedChannelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMutedChannelsResponse(); - - if (data.hasOwnProperty('muted_channels')) { - obj['muted_channels'] = ApiClient.convertToType(data['muted_channels'], [SendBirdChannelResponse]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} muted_channels - */ -ListMutedChannelsResponse.prototype['muted_channels'] = undefined; - -/** - * @member {String} next - */ -ListMutedChannelsResponse.prototype['next'] = undefined; - - - - - - -export default ListMutedChannelsResponse; - diff --git a/src/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js b/src/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js deleted file mode 100644 index 0aed102..0000000 --- a/src/model/ListMutedUsersInChannelsWithCustomChannelType200Response.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ListMutedUsersInChannelsWithCustomChannelType200Response model module. - * @module model/ListMutedUsersInChannelsWithCustomChannelType200Response - * @version 0.0.16 - */ -class ListMutedUsersInChannelsWithCustomChannelType200Response { - /** - * Constructs a new ListMutedUsersInChannelsWithCustomChannelType200Response. - * @alias module:model/ListMutedUsersInChannelsWithCustomChannelType200Response - */ - constructor() { - - ListMutedUsersInChannelsWithCustomChannelType200Response.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListMutedUsersInChannelsWithCustomChannelType200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} obj Optional instance to populate. - * @return {module:model/ListMutedUsersInChannelsWithCustomChannelType200Response} The populated ListMutedUsersInChannelsWithCustomChannelType200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListMutedUsersInChannelsWithCustomChannelType200Response(); - - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = ApiClient.convertToType(data['muted_list'], [SendBirdUser]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} muted_list - */ -ListMutedUsersInChannelsWithCustomChannelType200Response.prototype['muted_list'] = undefined; - -/** - * @member {String} next - */ -ListMutedUsersInChannelsWithCustomChannelType200Response.prototype['next'] = undefined; - - - - - - -export default ListMutedUsersInChannelsWithCustomChannelType200Response; - diff --git a/src/model/ListMyGroupChannelsResponse.js b/src/model/ListMyGroupChannelsResponse.js index ef32d25..f83a637 100644 --- a/src/model/ListMyGroupChannelsResponse.js +++ b/src/model/ListMyGroupChannelsResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import SendBirdGroupChannel from './SendBirdGroupChannel'; +import SendbirdGroupChannel from './SendbirdGroupChannel'; /** * The ListMyGroupChannelsResponse model module. * @module model/ListMyGroupChannelsResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListMyGroupChannelsResponse { /** @@ -49,7 +49,7 @@ class ListMyGroupChannelsResponse { obj = obj || new ListMyGroupChannelsResponse(); if (data.hasOwnProperty('channels')) { - obj['channels'] = ApiClient.convertToType(data['channels'], [SendBirdGroupChannel]); + obj['channels'] = ApiClient.convertToType(data['channels'], [SendbirdGroupChannel]); } if (data.hasOwnProperty('next')) { obj['next'] = ApiClient.convertToType(data['next'], 'String'); @@ -65,7 +65,7 @@ class ListMyGroupChannelsResponse { } /** - * @member {Array.} channels + * @member {Array.} channels */ ListMyGroupChannelsResponse.prototype['channels'] = undefined; diff --git a/src/model/ListOpenChannelsResponse.js b/src/model/ListOpenChannelsResponse.js new file mode 100644 index 0000000..b865ce3 --- /dev/null +++ b/src/model/ListOpenChannelsResponse.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdOpenChannel from './SendbirdOpenChannel'; + +/** + * The ListOpenChannelsResponse model module. + * @module model/ListOpenChannelsResponse + * @version 2.0.0 + */ +class ListOpenChannelsResponse { + /** + * Constructs a new ListOpenChannelsResponse. + * @alias module:model/ListOpenChannelsResponse + */ + constructor() { + + ListOpenChannelsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListOpenChannelsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListOpenChannelsResponse} obj Optional instance to populate. + * @return {module:model/ListOpenChannelsResponse} The populated ListOpenChannelsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListOpenChannelsResponse(); + + if (data.hasOwnProperty('channels')) { + obj['channels'] = ApiClient.convertToType(data['channels'], [SendbirdOpenChannel]); + } + if (data.hasOwnProperty('next')) { + obj['next'] = ApiClient.convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} channels + */ +ListOpenChannelsResponse.prototype['channels'] = undefined; + +/** + * @member {String} next + */ +ListOpenChannelsResponse.prototype['next'] = undefined; + +/** + * @member {Number} ts + */ +ListOpenChannelsResponse.prototype['ts'] = undefined; + + + + + + +export default ListOpenChannelsResponse; + diff --git a/src/model/ListOperatorsResponse.js b/src/model/ListOperatorsResponse.js new file mode 100644 index 0000000..62b7ad0 --- /dev/null +++ b/src/model/ListOperatorsResponse.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; + +/** + * The ListOperatorsResponse model module. + * @module model/ListOperatorsResponse + * @version 2.0.0 + */ +class ListOperatorsResponse { + /** + * Constructs a new ListOperatorsResponse. + * @alias module:model/ListOperatorsResponse + */ + constructor() { + + ListOperatorsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ListOperatorsResponse} obj Optional instance to populate. + * @return {module:model/ListOperatorsResponse} The populated ListOperatorsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ListOperatorsResponse(); + + if (data.hasOwnProperty('next')) { + obj['next'] = ApiClient.convertToType(data['next'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = ApiClient.convertToType(data['operators'], [SendbirdBasicUserInfo]); + } + } + return obj; + } + + +} + +/** + * @member {String} next + */ +ListOperatorsResponse.prototype['next'] = undefined; + +/** + * @member {Array.} operators + */ +ListOperatorsResponse.prototype['operators'] = undefined; + + + + + + +export default ListOperatorsResponse; + diff --git a/src/model/ListPushConfigurationsResponse.js b/src/model/ListPushConfigurationsResponse.js deleted file mode 100644 index b1fb69f..0000000 --- a/src/model/ListPushConfigurationsResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPushConfigurationsResponsePushConfigurationsInner from './ListPushConfigurationsResponsePushConfigurationsInner'; - -/** - * The ListPushConfigurationsResponse model module. - * @module model/ListPushConfigurationsResponse - * @version 0.0.16 - */ -class ListPushConfigurationsResponse { - /** - * Constructs a new ListPushConfigurationsResponse. - * @alias module:model/ListPushConfigurationsResponse - */ - constructor() { - - ListPushConfigurationsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPushConfigurationsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushConfigurationsResponse} obj Optional instance to populate. - * @return {module:model/ListPushConfigurationsResponse} The populated ListPushConfigurationsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushConfigurationsResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], [ListPushConfigurationsResponsePushConfigurationsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -ListPushConfigurationsResponse.prototype['push_configurations'] = undefined; - - - - - - -export default ListPushConfigurationsResponse; - diff --git a/src/model/ListPushConfigurationsResponsePushConfigurationsInner.js b/src/model/ListPushConfigurationsResponsePushConfigurationsInner.js deleted file mode 100644 index 8f218c8..0000000 --- a/src/model/ListPushConfigurationsResponsePushConfigurationsInner.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListPushConfigurationsResponsePushConfigurationsInner model module. - * @module model/ListPushConfigurationsResponsePushConfigurationsInner - * @version 0.0.16 - */ -class ListPushConfigurationsResponsePushConfigurationsInner { - /** - * Constructs a new ListPushConfigurationsResponsePushConfigurationsInner. - * @alias module:model/ListPushConfigurationsResponsePushConfigurationsInner - */ - constructor() { - - ListPushConfigurationsResponsePushConfigurationsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPushConfigurationsResponsePushConfigurationsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushConfigurationsResponsePushConfigurationsInner} obj Optional instance to populate. - * @return {module:model/ListPushConfigurationsResponsePushConfigurationsInner} The populated ListPushConfigurationsResponsePushConfigurationsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushConfigurationsResponsePushConfigurationsInner(); - - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'String'); - } - if (data.hasOwnProperty('push_type')) { - obj['push_type'] = ApiClient.convertToType(data['push_type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiClient.convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('sender_id')) { - obj['sender_id'] = ApiClient.convertToType(data['sender_id'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} id - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['id'] = undefined; - -/** - * @member {String} push_type - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['push_type'] = undefined; - -/** - * @member {Number} created_at - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['created_at'] = undefined; - -/** - * @member {String} api_key - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['api_key'] = undefined; - -/** - * @member {String} sender_id - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['sender_id'] = undefined; - -/** - * @member {String} push_sound - */ -ListPushConfigurationsResponsePushConfigurationsInner.prototype['push_sound'] = undefined; - - - - - - -export default ListPushConfigurationsResponsePushConfigurationsInner; - diff --git a/src/model/ListPushNotificationContentTemplatesResponse.js b/src/model/ListPushNotificationContentTemplatesResponse.js deleted file mode 100644 index 3c16540..0000000 --- a/src/model/ListPushNotificationContentTemplatesResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner from './ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner'; - -/** - * The ListPushNotificationContentTemplatesResponse model module. - * @module model/ListPushNotificationContentTemplatesResponse - * @version 0.0.16 - */ -class ListPushNotificationContentTemplatesResponse { - /** - * Constructs a new ListPushNotificationContentTemplatesResponse. - * @alias module:model/ListPushNotificationContentTemplatesResponse - */ - constructor() { - - ListPushNotificationContentTemplatesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPushNotificationContentTemplatesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponse} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponse} The populated ListPushNotificationContentTemplatesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponse(); - - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = ApiClient.convertToType(data['push_message_templates'], [ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_message_templates - */ -ListPushNotificationContentTemplatesResponse.prototype['push_message_templates'] = undefined; - - - - - - -export default ListPushNotificationContentTemplatesResponse; - diff --git a/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js b/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js deleted file mode 100644 index b0c0e6b..0000000 --- a/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate from './ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate'; - -/** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner model module. - * @module model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - * @version 0.0.16 - */ -class ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner { - /** - * Constructs a new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner. - * @alias module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - */ - constructor() { - - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner} The populated ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = ApiClient.convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.constructFromObject(data['template']); - } - } - return obj; - } - - -} - -/** - * @member {String} template_name - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.prototype['template_name'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} template - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.prototype['template'] = undefined; - - - - - - -export default ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner; - diff --git a/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js b/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js deleted file mode 100644 index e9f7108..0000000 --- a/src/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate model module. - * @module model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - * @version 0.0.16 - */ -class ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate { - /** - * Constructs a new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate. - * @alias module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - */ - constructor() { - - ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} obj Optional instance to populate. - * @return {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} The populated ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - - if (data.hasOwnProperty('MESG')) { - obj['MESG'] = ApiClient.convertToType(data['MESG'], 'String'); - } - if (data.hasOwnProperty('FILE')) { - obj['FILE'] = ApiClient.convertToType(data['FILE'], 'String'); - } - if (data.hasOwnProperty('ADMM')) { - obj['ADMM'] = ApiClient.convertToType(data['ADMM'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} MESG - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['MESG'] = undefined; - -/** - * @member {String} FILE - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['FILE'] = undefined; - -/** - * @member {String} ADMM - */ -ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.prototype['ADMM'] = undefined; - - - - - - -export default ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate; - diff --git a/src/model/ListReactionsOfMessageResponse.js b/src/model/ListReactionsOfMessageResponse.js deleted file mode 100644 index 0cf017c..0000000 --- a/src/model/ListReactionsOfMessageResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListReactionsOfMessageResponse model module. - * @module model/ListReactionsOfMessageResponse - * @version 0.0.16 - */ -class ListReactionsOfMessageResponse { - /** - * Constructs a new ListReactionsOfMessageResponse. - * @alias module:model/ListReactionsOfMessageResponse - */ - constructor() { - - ListReactionsOfMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReactionsOfMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReactionsOfMessageResponse} obj Optional instance to populate. - * @return {module:model/ListReactionsOfMessageResponse} The populated ListReactionsOfMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReactionsOfMessageResponse(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} key - */ -ListReactionsOfMessageResponse.prototype['key'] = undefined; - - - - - - -export default ListReactionsOfMessageResponse; - diff --git a/src/model/ListRegistrationOrDeviceTokensResponse.js b/src/model/ListRegistrationOrDeviceTokensResponse.js index 5e8a733..ceef7b0 100644 --- a/src/model/ListRegistrationOrDeviceTokensResponse.js +++ b/src/model/ListRegistrationOrDeviceTokensResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; /** * The ListRegistrationOrDeviceTokensResponse model module. * @module model/ListRegistrationOrDeviceTokensResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListRegistrationOrDeviceTokensResponse { /** @@ -58,7 +58,7 @@ class ListRegistrationOrDeviceTokensResponse { obj['type'] = ApiClient.convertToType(data['type'], 'String'); } if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); + obj['user'] = SendbirdBasicUserInfo.constructFromObject(data['user']); } } return obj; @@ -83,7 +83,7 @@ ListRegistrationOrDeviceTokensResponse.prototype['tokens'] = undefined; ListRegistrationOrDeviceTokensResponse.prototype['type'] = undefined; /** - * @member {module:model/SendBirdUser} user + * @member {module:model/SendbirdBasicUserInfo} user */ ListRegistrationOrDeviceTokensResponse.prototype['user'] = undefined; diff --git a/src/model/ListReportsOnChannelByUrlResponse.js b/src/model/ListReportsOnChannelByUrlResponse.js deleted file mode 100644 index 39ce371..0000000 --- a/src/model/ListReportsOnChannelByUrlResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListReportsOnMessageByIdResponseReportLogsInner from './ListReportsOnMessageByIdResponseReportLogsInner'; - -/** - * The ListReportsOnChannelByUrlResponse model module. - * @module model/ListReportsOnChannelByUrlResponse - * @version 0.0.16 - */ -class ListReportsOnChannelByUrlResponse { - /** - * Constructs a new ListReportsOnChannelByUrlResponse. - * @alias module:model/ListReportsOnChannelByUrlResponse - */ - constructor() { - - ListReportsOnChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsOnChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnChannelByUrlResponse} The populated ListReportsOnChannelByUrlResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnChannelByUrlResponse(); - - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = ApiClient.convertToType(data['report_logs'], [ListReportsOnMessageByIdResponseReportLogsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} report_logs - */ -ListReportsOnChannelByUrlResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnChannelByUrlResponse.prototype['next'] = undefined; - - - - - - -export default ListReportsOnChannelByUrlResponse; - diff --git a/src/model/ListReportsOnMessageByIdResponse.js b/src/model/ListReportsOnMessageByIdResponse.js deleted file mode 100644 index ec4dc2c..0000000 --- a/src/model/ListReportsOnMessageByIdResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListReportsOnMessageByIdResponseReportLogsInner from './ListReportsOnMessageByIdResponseReportLogsInner'; - -/** - * The ListReportsOnMessageByIdResponse model module. - * @module model/ListReportsOnMessageByIdResponse - * @version 0.0.16 - */ -class ListReportsOnMessageByIdResponse { - /** - * Constructs a new ListReportsOnMessageByIdResponse. - * @alias module:model/ListReportsOnMessageByIdResponse - */ - constructor() { - - ListReportsOnMessageByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsOnMessageByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnMessageByIdResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnMessageByIdResponse} The populated ListReportsOnMessageByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnMessageByIdResponse(); - - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = ApiClient.convertToType(data['report_logs'], [ListReportsOnMessageByIdResponseReportLogsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} report_logs - */ -ListReportsOnMessageByIdResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnMessageByIdResponse.prototype['next'] = undefined; - - - - - - -export default ListReportsOnMessageByIdResponse; - diff --git a/src/model/ListReportsOnMessageByIdResponseReportLogsInner.js b/src/model/ListReportsOnMessageByIdResponseReportLogsInner.js deleted file mode 100644 index 71a8cc7..0000000 --- a/src/model/ListReportsOnMessageByIdResponseReportLogsInner.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ListReportsOnMessageByIdResponseReportLogsInner model module. - * @module model/ListReportsOnMessageByIdResponseReportLogsInner - * @version 0.0.16 - */ -class ListReportsOnMessageByIdResponseReportLogsInner { - /** - * Constructs a new ListReportsOnMessageByIdResponseReportLogsInner. - * @alias module:model/ListReportsOnMessageByIdResponseReportLogsInner - */ - constructor() { - - ListReportsOnMessageByIdResponseReportLogsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsOnMessageByIdResponseReportLogsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnMessageByIdResponseReportLogsInner} obj Optional instance to populate. - * @return {module:model/ListReportsOnMessageByIdResponseReportLogsInner} The populated ListReportsOnMessageByIdResponseReportLogsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnMessageByIdResponseReportLogsInner(); - - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = ApiClient.convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = SendBirdUser.constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = SendBirdUser.constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = SendBirdMessageResponse.constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} report_type - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ListReportsOnMessageByIdResponseReportLogsInner.prototype['created_at'] = undefined; - - - - - - -export default ListReportsOnMessageByIdResponseReportLogsInner; - diff --git a/src/model/ListReportsOnUserByIdResponse.js b/src/model/ListReportsOnUserByIdResponse.js deleted file mode 100644 index c8f3f24..0000000 --- a/src/model/ListReportsOnUserByIdResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListReportsOnMessageByIdResponseReportLogsInner from './ListReportsOnMessageByIdResponseReportLogsInner'; - -/** - * The ListReportsOnUserByIdResponse model module. - * @module model/ListReportsOnUserByIdResponse - * @version 0.0.16 - */ -class ListReportsOnUserByIdResponse { - /** - * Constructs a new ListReportsOnUserByIdResponse. - * @alias module:model/ListReportsOnUserByIdResponse - */ - constructor() { - - ListReportsOnUserByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsOnUserByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsOnUserByIdResponse} obj Optional instance to populate. - * @return {module:model/ListReportsOnUserByIdResponse} The populated ListReportsOnUserByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsOnUserByIdResponse(); - - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = ApiClient.convertToType(data['report_logs'], [ListReportsOnMessageByIdResponseReportLogsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} report_logs - */ -ListReportsOnUserByIdResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsOnUserByIdResponse.prototype['next'] = undefined; - - - - - - -export default ListReportsOnUserByIdResponse; - diff --git a/src/model/ListReportsResponse.js b/src/model/ListReportsResponse.js deleted file mode 100644 index a995d5a..0000000 --- a/src/model/ListReportsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListReportsResponseReportLogsInner from './ListReportsResponseReportLogsInner'; - -/** - * The ListReportsResponse model module. - * @module model/ListReportsResponse - * @version 0.0.16 - */ -class ListReportsResponse { - /** - * Constructs a new ListReportsResponse. - * @alias module:model/ListReportsResponse - */ - constructor() { - - ListReportsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsResponse} obj Optional instance to populate. - * @return {module:model/ListReportsResponse} The populated ListReportsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsResponse(); - - if (data.hasOwnProperty('report_logs')) { - obj['report_logs'] = ApiClient.convertToType(data['report_logs'], [ListReportsResponseReportLogsInner]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} report_logs - */ -ListReportsResponse.prototype['report_logs'] = undefined; - -/** - * @member {String} next - */ -ListReportsResponse.prototype['next'] = undefined; - - - - - - -export default ListReportsResponse; - diff --git a/src/model/ListReportsResponseReportLogsInner.js b/src/model/ListReportsResponseReportLogsInner.js deleted file mode 100644 index 112713c..0000000 --- a/src/model/ListReportsResponseReportLogsInner.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ListReportsResponseReportLogsInner model module. - * @module model/ListReportsResponseReportLogsInner - * @version 0.0.16 - */ -class ListReportsResponseReportLogsInner { - /** - * Constructs a new ListReportsResponseReportLogsInner. - * @alias module:model/ListReportsResponseReportLogsInner - */ - constructor() { - - ListReportsResponseReportLogsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListReportsResponseReportLogsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListReportsResponseReportLogsInner} obj Optional instance to populate. - * @return {module:model/ListReportsResponseReportLogsInner} The populated ListReportsResponseReportLogsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListReportsResponseReportLogsInner(); - - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = SendBirdUser.constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = ApiClient.convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = SendBirdUser.constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = SendBirdMessageResponse.constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ListReportsResponseReportLogsInner.prototype['reporting_user'] = undefined; - -/** - * @member {String} report_type - */ -ListReportsResponseReportLogsInner.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ListReportsResponseReportLogsInner.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ListReportsResponseReportLogsInner.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ListReportsResponseReportLogsInner.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ListReportsResponseReportLogsInner.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ListReportsResponseReportLogsInner.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ListReportsResponseReportLogsInner.prototype['created_at'] = undefined; - - - - - - -export default ListReportsResponseReportLogsInner; - diff --git a/src/model/ListSecondaryApiTokensResponse.js b/src/model/ListSecondaryApiTokensResponse.js deleted file mode 100644 index 4b6cd62..0000000 --- a/src/model/ListSecondaryApiTokensResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListSecondaryApiTokensResponseApiTokensInner from './ListSecondaryApiTokensResponseApiTokensInner'; - -/** - * The ListSecondaryApiTokensResponse model module. - * @module model/ListSecondaryApiTokensResponse - * @version 0.0.16 - */ -class ListSecondaryApiTokensResponse { - /** - * Constructs a new ListSecondaryApiTokensResponse. - * @alias module:model/ListSecondaryApiTokensResponse - */ - constructor() { - - ListSecondaryApiTokensResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListSecondaryApiTokensResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSecondaryApiTokensResponse} obj Optional instance to populate. - * @return {module:model/ListSecondaryApiTokensResponse} The populated ListSecondaryApiTokensResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSecondaryApiTokensResponse(); - - if (data.hasOwnProperty('api_tokens')) { - obj['api_tokens'] = ApiClient.convertToType(data['api_tokens'], [ListSecondaryApiTokensResponseApiTokensInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} api_tokens - */ -ListSecondaryApiTokensResponse.prototype['api_tokens'] = undefined; - - - - - - -export default ListSecondaryApiTokensResponse; - diff --git a/src/model/ListSecondaryApiTokensResponseApiTokensInner.js b/src/model/ListSecondaryApiTokensResponseApiTokensInner.js deleted file mode 100644 index 8c61997..0000000 --- a/src/model/ListSecondaryApiTokensResponseApiTokensInner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ListSecondaryApiTokensResponseApiTokensInner model module. - * @module model/ListSecondaryApiTokensResponseApiTokensInner - * @version 0.0.16 - */ -class ListSecondaryApiTokensResponseApiTokensInner { - /** - * Constructs a new ListSecondaryApiTokensResponseApiTokensInner. - * @alias module:model/ListSecondaryApiTokensResponseApiTokensInner - */ - constructor() { - - ListSecondaryApiTokensResponseApiTokensInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ListSecondaryApiTokensResponseApiTokensInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ListSecondaryApiTokensResponseApiTokensInner} obj Optional instance to populate. - * @return {module:model/ListSecondaryApiTokensResponseApiTokensInner} The populated ListSecondaryApiTokensResponseApiTokensInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ListSecondaryApiTokensResponseApiTokensInner(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} token - */ -ListSecondaryApiTokensResponseApiTokensInner.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -ListSecondaryApiTokensResponseApiTokensInner.prototype['created_at'] = undefined; - - - - - - -export default ListSecondaryApiTokensResponseApiTokensInner; - diff --git a/src/model/ListUsersResponse.js b/src/model/ListUsersResponse.js index 2667571..d08cc25 100644 --- a/src/model/ListUsersResponse.js +++ b/src/model/ListUsersResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,12 +12,12 @@ */ import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; +import SendbirdUser from './SendbirdUser'; /** * The ListUsersResponse model module. * @module model/ListUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ class ListUsersResponse { /** @@ -48,12 +48,12 @@ class ListUsersResponse { if (data) { obj = obj || new ListUsersResponse(); - if (data.hasOwnProperty('users')) { - obj['users'] = ApiClient.convertToType(data['users'], [SendBirdUser]); - } if (data.hasOwnProperty('next')) { obj['next'] = ApiClient.convertToType(data['next'], 'String'); } + if (data.hasOwnProperty('users')) { + obj['users'] = ApiClient.convertToType(data['users'], [SendbirdUser]); + } } return obj; } @@ -62,14 +62,14 @@ class ListUsersResponse { } /** - * @member {Array.} users + * @member {String} next */ -ListUsersResponse.prototype['users'] = undefined; +ListUsersResponse.prototype['next'] = undefined; /** - * @member {String} next + * @member {Array.} users */ -ListUsersResponse.prototype['next'] = undefined; +ListUsersResponse.prototype['users'] = undefined; diff --git a/src/model/MarkAllMessagesAsReadData.js b/src/model/MarkAllMessagesAsReadData.js deleted file mode 100644 index 529c79f..0000000 --- a/src/model/MarkAllMessagesAsReadData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MarkAllMessagesAsReadData model module. - * @module model/MarkAllMessagesAsReadData - * @version 0.0.16 - */ -class MarkAllMessagesAsReadData { - /** - * Constructs a new MarkAllMessagesAsReadData. - * @alias module:model/MarkAllMessagesAsReadData - * @param channelUrls {Array.} Specifies an array of one or more group channel URLs to mark all of the unread messages in as read. If not specified, all of the unread messages in the joined group channels are marked as read. - */ - constructor(channelUrls) { - - MarkAllMessagesAsReadData.initialize(this, channelUrls); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrls) { - obj['channel_urls'] = channelUrls; - } - - /** - * Constructs a MarkAllMessagesAsReadData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MarkAllMessagesAsReadData} obj Optional instance to populate. - * @return {module:model/MarkAllMessagesAsReadData} The populated MarkAllMessagesAsReadData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MarkAllMessagesAsReadData(); - - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more group channel URLs to mark all of the unread messages in as read. If not specified, all of the unread messages in the joined group channels are marked as read. - * @member {Array.} channel_urls - */ -MarkAllMessagesAsReadData.prototype['channel_urls'] = undefined; - - - - - - -export default MarkAllMessagesAsReadData; - diff --git a/src/model/MarkAllMessagesAsReadRequest.js b/src/model/MarkAllMessagesAsReadRequest.js new file mode 100644 index 0000000..445ca2a --- /dev/null +++ b/src/model/MarkAllMessagesAsReadRequest.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MarkAllMessagesAsReadRequest model module. + * @module model/MarkAllMessagesAsReadRequest + * @version 2.0.0 + */ +class MarkAllMessagesAsReadRequest { + /** + * Constructs a new MarkAllMessagesAsReadRequest. + * @alias module:model/MarkAllMessagesAsReadRequest + */ + constructor() { + + MarkAllMessagesAsReadRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MarkAllMessagesAsReadRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MarkAllMessagesAsReadRequest} obj Optional instance to populate. + * @return {module:model/MarkAllMessagesAsReadRequest} The populated MarkAllMessagesAsReadRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MarkAllMessagesAsReadRequest(); + + if (data.hasOwnProperty('channel_urls')) { + obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); + } + } + return obj; + } + + +} + +/** + * Specifies an array of one or more group channel URLs where unread messages need to be marked as read. If not specified, unread messages in all group channels a user joined are marked as read. + * @member {Array.} channel_urls + */ +MarkAllMessagesAsReadRequest.prototype['channel_urls'] = undefined; + + + + + + +export default MarkAllMessagesAsReadRequest; + diff --git a/src/model/MarkChannelMessagesAsReadRequest.js b/src/model/MarkChannelMessagesAsReadRequest.js new file mode 100644 index 0000000..c100b4d --- /dev/null +++ b/src/model/MarkChannelMessagesAsReadRequest.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MarkChannelMessagesAsReadRequest model module. + * @module model/MarkChannelMessagesAsReadRequest + * @version 2.0.0 + */ +class MarkChannelMessagesAsReadRequest { + /** + * Constructs a new MarkChannelMessagesAsReadRequest. + * @alias module:model/MarkChannelMessagesAsReadRequest + */ + constructor() { + + MarkChannelMessagesAsReadRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MarkChannelMessagesAsReadRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MarkChannelMessagesAsReadRequest} obj Optional instance to populate. + * @return {module:model/MarkChannelMessagesAsReadRequest} The populated MarkChannelMessagesAsReadRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MarkChannelMessagesAsReadRequest(); + + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} user_id + */ +MarkChannelMessagesAsReadRequest.prototype['user_id'] = undefined; + + + + + + +export default MarkChannelMessagesAsReadRequest; + diff --git a/src/model/MuteInChannelsWithCustomChannelTypesData.js b/src/model/MuteInChannelsWithCustomChannelTypesData.js deleted file mode 100644 index e158c80..0000000 --- a/src/model/MuteInChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MuteInChannelsWithCustomChannelTypesData model module. - * @module model/MuteInChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -class MuteInChannelsWithCustomChannelTypesData { - /** - * Constructs a new MuteInChannelsWithCustomChannelTypesData. - * @alias module:model/MuteInChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to mute the user in channels with the channel types. The user is permanently muted unless unmuted (10 years, technically). - */ - constructor(channelCustomTypes) { - - MuteInChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a MuteInChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MuteInChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/MuteInChannelsWithCustomChannelTypesData} The populated MuteInChannelsWithCustomChannelTypesData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MuteInChannelsWithCustomChannelTypesData(); - - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = ApiClient.convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more custom channel types, in order to mute the user in channels with the channel types. The user is permanently muted unless unmuted (10 years, technically). - * @member {Array.} channel_custom_types - */ -MuteInChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; - - - - - - -export default MuteInChannelsWithCustomChannelTypesData; - diff --git a/src/model/MuteUsersInChannelsWithCustomChannelTypeData.js b/src/model/MuteUsersInChannelsWithCustomChannelTypeData.js deleted file mode 100644 index c7783b9..0000000 --- a/src/model/MuteUsersInChannelsWithCustomChannelTypeData.js +++ /dev/null @@ -1,97 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The MuteUsersInChannelsWithCustomChannelTypeData model module. - * @module model/MuteUsersInChannelsWithCustomChannelTypeData - * @version 0.0.16 - */ -class MuteUsersInChannelsWithCustomChannelTypeData { - /** - * Constructs a new MuteUsersInChannelsWithCustomChannelTypeData. - * @alias module:model/MuteUsersInChannelsWithCustomChannelTypeData - * @param userIds {Array.} - */ - constructor(userIds) { - - MuteUsersInChannelsWithCustomChannelTypeData.initialize(this, userIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userIds) { - obj['user_ids'] = userIds; - } - - /** - * Constructs a MuteUsersInChannelsWithCustomChannelTypeData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/MuteUsersInChannelsWithCustomChannelTypeData} obj Optional instance to populate. - * @return {module:model/MuteUsersInChannelsWithCustomChannelTypeData} The populated MuteUsersInChannelsWithCustomChannelTypeData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new MuteUsersInChannelsWithCustomChannelTypeData(); - - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('on_demand_upsert')) { - obj['on_demand_upsert'] = ApiClient.convertToType(data['on_demand_upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} user_ids - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['user_ids'] = undefined; - -/** - * @member {Number} seconds - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['seconds'] = undefined; - -/** - * @member {String} description - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['description'] = undefined; - -/** - * @member {Boolean} on_demand_upsert - */ -MuteUsersInChannelsWithCustomChannelTypeData.prototype['on_demand_upsert'] = undefined; - - - - - - -export default MuteUsersInChannelsWithCustomChannelTypeData; - diff --git a/src/model/OcBanUserData.js b/src/model/OcBanUserData.js deleted file mode 100644 index fab7ac6..0000000 --- a/src/model/OcBanUserData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcBanUserData model module. - * @module model/OcBanUserData - * @version 0.0.16 - */ -class OcBanUserData { - /** - * Constructs a new OcBanUserData. - * @alias module:model/OcBanUserData - * @param channelUrl {String} Specifies the URL of the channel where to ban the specified user. - * @param userId {String} Specifies the ID of the user to ban. - * @param agentId {String} Specifies the ID of the operator (agent) who bans the user. - * @param seconds {Number} Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the banning. The length is limited to 250 characters. - */ - constructor(channelUrl, userId, agentId, seconds, description) { - - OcBanUserData.initialize(this, channelUrl, userId, agentId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, userId, agentId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['user_id'] = userId; - obj['agent_id'] = agentId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcBanUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcBanUserData} obj Optional instance to populate. - * @return {module:model/OcBanUserData} The populated OcBanUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcBanUserData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('agent_id')) { - obj['agent_id'] = ApiClient.convertToType(data['agent_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel where to ban the specified user. - * @member {String} channel_url - */ -OcBanUserData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the user to ban. - * @member {String} user_id - */ -OcBanUserData.prototype['user_id'] = undefined; - -/** - * Specifies the ID of the operator (agent) who bans the user. - * @member {String} agent_id - */ -OcBanUserData.prototype['agent_id'] = undefined; - -/** - * Specifies the ban duration. If set to -1, the user will be banned permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -OcBanUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the banning. The length is limited to 250 characters. - * @member {String} description - */ -OcBanUserData.prototype['description'] = undefined; - - - - - - -export default OcBanUserData; - diff --git a/src/model/OcBanUserResponse.js b/src/model/OcBanUserResponse.js deleted file mode 100644 index 6d679ec..0000000 --- a/src/model/OcBanUserResponse.js +++ /dev/null @@ -1,145 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcDeleteChannelByUrl200Response from './OcDeleteChannelByUrl200Response'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcBanUserResponse model module. - * @module model/OcBanUserResponse - * @version 0.0.16 - */ -class OcBanUserResponse { - /** - * Constructs a new OcBanUserResponse. - * @alias module:model/OcBanUserResponse - */ - constructor() { - - OcBanUserResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcBanUserResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcBanUserResponse} obj Optional instance to populate. - * @return {module:model/OcBanUserResponse} The populated OcBanUserResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcBanUserResponse(); - - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('next_url')) { - obj['next_url'] = ApiClient.convertToType(data['next_url'], 'String'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = OcDeleteChannelByUrl200Response.constructFromObject(data['metadata']); - } - } - return obj; - } - - -} - -/** - * @member {Number} start_at - */ -OcBanUserResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcBanUserResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcBanUserResponse.prototype['description'] = undefined; - -/** - * @member {String} user_id - */ -OcBanUserResponse.prototype['user_id'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -OcBanUserResponse.prototype['user'] = undefined; - -/** - * @member {String} next_url - */ -OcBanUserResponse.prototype['next_url'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -OcBanUserResponse.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} nickname - */ -OcBanUserResponse.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -OcBanUserResponse.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -OcBanUserResponse.prototype['metadata'] = undefined; - - - - - - -export default OcBanUserResponse; - diff --git a/src/model/OcCreateChannelData.js b/src/model/OcCreateChannelData.js deleted file mode 100644 index 0c78557..0000000 --- a/src/model/OcCreateChannelData.js +++ /dev/null @@ -1,153 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcCreateChannelData model module. - * @module model/OcCreateChannelData - * @version 0.0.16 - */ -class OcCreateChannelData { - /** - * Constructs a new OcCreateChannelData. - * @alias module:model/OcCreateChannelData - */ - constructor() { - - OcCreateChannelData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcCreateChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcCreateChannelData} obj Optional instance to populate. - * @return {module:model/OcCreateChannelData} The populated OcCreateChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcCreateChannelData(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)')) { - obj['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'] = ApiClient.convertToType(data['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'], 'Boolean'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. (Default: open channel) - * @member {String} name - */ -OcCreateChannelData.prototype['name'] = undefined; - -/** - * Specifies the URL of the channel. Only numbers, characters, and underscores are allowed. The length is 4 to 100 characters, inclusive. If not specified, a URL is automatically generated. - * @member {String} channel_url - */ -OcCreateChannelData.prototype['channel_url'] = undefined; - -/** - * Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -OcCreateChannelData.prototype['cover_url'] = undefined; - -/** - * Uploads a file for the channel cover image. - * @member {File} cover_file - */ -OcCreateChannelData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -OcCreateChannelData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -OcCreateChannelData.prototype['data'] = undefined; - -/** - * Determines whether to preserve the messages in the channel for the purpose of retrieving chat history or not. It set to true, the messages in the channel are not saved in the Sendbird database and the chat history can't be retrieved. (Default: false) - * @member {Boolean} is_ephemeral - */ -OcCreateChannelData.prototype['is_ephemeral'] = undefined; - -/** - * Determines whether the channel is an open channel with dynamic partitioning or not. If the value of this property is true, the open channel can create several subchannels in order to accommodate a massive number of usres. (Default: false)

For the new Sendbird applications created after December 15, 2020, this property will be automatically set to true. - * @member {Boolean} [is_dynamic_partitioned](#2-how-dynamic-partitioning-works) - */ -OcCreateChannelData.prototype['[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)'] = undefined; - -/** - * Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @member {Array.} operator_ids - */ -OcCreateChannelData.prototype['operator_ids'] = undefined; - -/** - * (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - * @member {Array.} operators - */ -OcCreateChannelData.prototype['operators'] = undefined; - - - - - - -export default OcCreateChannelData; - diff --git a/src/model/OcDeleteChannelByUrl200Response.js b/src/model/OcDeleteChannelByUrl200Response.js deleted file mode 100644 index 9d4471b..0000000 --- a/src/model/OcDeleteChannelByUrl200Response.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcDeleteChannelByUrl200Response model module. - * @module model/OcDeleteChannelByUrl200Response - * @version 0.0.16 - */ -class OcDeleteChannelByUrl200Response { - /** - * Constructs a new OcDeleteChannelByUrl200Response. - * @alias module:model/OcDeleteChannelByUrl200Response - */ - constructor() { - - OcDeleteChannelByUrl200Response.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcDeleteChannelByUrl200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcDeleteChannelByUrl200Response} obj Optional instance to populate. - * @return {module:model/OcDeleteChannelByUrl200Response} The populated OcDeleteChannelByUrl200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcDeleteChannelByUrl200Response(); - - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = ApiClient.convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} anyOf - */ -OcDeleteChannelByUrl200Response.prototype['anyOf'] = undefined; - - - - - - -export default OcDeleteChannelByUrl200Response; - diff --git a/src/model/OcFreezeChannelData.js b/src/model/OcFreezeChannelData.js deleted file mode 100644 index 89af67f..0000000 --- a/src/model/OcFreezeChannelData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcFreezeChannelData model module. - * @module model/OcFreezeChannelData - * @version 0.0.16 - */ -class OcFreezeChannelData { - /** - * Constructs a new OcFreezeChannelData. - * @alias module:model/OcFreezeChannelData - * @param channelUrl {String} Specifies the URL of the channel to freeze. - * @param freeze {Boolean} Determines whether to freeze the channel. (Default: false) - */ - constructor(channelUrl, freeze) { - - OcFreezeChannelData.initialize(this, channelUrl, freeze); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, freeze) { - obj['channel_url'] = channelUrl; - obj['freeze'] = freeze; - } - - /** - * Constructs a OcFreezeChannelData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcFreezeChannelData} obj Optional instance to populate. - * @return {module:model/OcFreezeChannelData} The populated OcFreezeChannelData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcFreezeChannelData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to freeze. - * @member {String} channel_url - */ -OcFreezeChannelData.prototype['channel_url'] = undefined; - -/** - * Determines whether to freeze the channel. (Default: false) - * @member {Boolean} freeze - */ -OcFreezeChannelData.prototype['freeze'] = undefined; - - - - - - -export default OcFreezeChannelData; - diff --git a/src/model/OcListBannedUsersResponse.js b/src/model/OcListBannedUsersResponse.js deleted file mode 100644 index dd11c95..0000000 --- a/src/model/OcListBannedUsersResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcListBannedUsersResponseBannedListInner from './OcListBannedUsersResponseBannedListInner'; - -/** - * The OcListBannedUsersResponse model module. - * @module model/OcListBannedUsersResponse - * @version 0.0.16 - */ -class OcListBannedUsersResponse { - /** - * Constructs a new OcListBannedUsersResponse. - * @alias module:model/OcListBannedUsersResponse - */ - constructor() { - - OcListBannedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListBannedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListBannedUsersResponse} obj Optional instance to populate. - * @return {module:model/OcListBannedUsersResponse} The populated OcListBannedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListBannedUsersResponse(); - - if (data.hasOwnProperty('banned_list')) { - obj['banned_list'] = ApiClient.convertToType(data['banned_list'], [OcListBannedUsersResponseBannedListInner]); - } - if (data.hasOwnProperty('total_ban_count')) { - obj['total_ban_count'] = ApiClient.convertToType(data['total_ban_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} banned_list - */ -OcListBannedUsersResponse.prototype['banned_list'] = undefined; - -/** - * @member {Number} total_ban_count - */ -OcListBannedUsersResponse.prototype['total_ban_count'] = undefined; - -/** - * @member {String} next - */ -OcListBannedUsersResponse.prototype['next'] = undefined; - - - - - - -export default OcListBannedUsersResponse; - diff --git a/src/model/OcListBannedUsersResponseBannedListInner.js b/src/model/OcListBannedUsersResponseBannedListInner.js deleted file mode 100644 index 6bdb5af..0000000 --- a/src/model/OcListBannedUsersResponseBannedListInner.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcListBannedUsersResponseBannedListInner model module. - * @module model/OcListBannedUsersResponseBannedListInner - * @version 0.0.16 - */ -class OcListBannedUsersResponseBannedListInner { - /** - * Constructs a new OcListBannedUsersResponseBannedListInner. - * @alias module:model/OcListBannedUsersResponseBannedListInner - */ - constructor() { - - OcListBannedUsersResponseBannedListInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListBannedUsersResponseBannedListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListBannedUsersResponseBannedListInner} obj Optional instance to populate. - * @return {module:model/OcListBannedUsersResponseBannedListInner} The populated OcListBannedUsersResponseBannedListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListBannedUsersResponseBannedListInner(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -OcListBannedUsersResponseBannedListInner.prototype['user'] = undefined; - -/** - * @member {Number} start_at - */ -OcListBannedUsersResponseBannedListInner.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcListBannedUsersResponseBannedListInner.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcListBannedUsersResponseBannedListInner.prototype['description'] = undefined; - - - - - - -export default OcListBannedUsersResponseBannedListInner; - diff --git a/src/model/OcListChannelsResponse.js b/src/model/OcListChannelsResponse.js deleted file mode 100644 index 5e445ac..0000000 --- a/src/model/OcListChannelsResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdOpenChannel from './SendBirdOpenChannel'; - -/** - * The OcListChannelsResponse model module. - * @module model/OcListChannelsResponse - * @version 0.0.16 - */ -class OcListChannelsResponse { - /** - * Constructs a new OcListChannelsResponse. - * @alias module:model/OcListChannelsResponse - */ - constructor() { - - OcListChannelsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListChannelsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListChannelsResponse} obj Optional instance to populate. - * @return {module:model/OcListChannelsResponse} The populated OcListChannelsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListChannelsResponse(); - - if (data.hasOwnProperty('channels')) { - obj['channels'] = ApiClient.convertToType(data['channels'], [SendBirdOpenChannel]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - if (data.hasOwnProperty('ts')) { - obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} channels - */ -OcListChannelsResponse.prototype['channels'] = undefined; - -/** - * @member {String} next - */ -OcListChannelsResponse.prototype['next'] = undefined; - -/** - * @member {Number} ts - */ -OcListChannelsResponse.prototype['ts'] = undefined; - - - - - - -export default OcListChannelsResponse; - diff --git a/src/model/OcListMutedUsersResponse.js b/src/model/OcListMutedUsersResponse.js deleted file mode 100644 index 09a92d8..0000000 --- a/src/model/OcListMutedUsersResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcListMutedUsersResponse model module. - * @module model/OcListMutedUsersResponse - * @version 0.0.16 - */ -class OcListMutedUsersResponse { - /** - * Constructs a new OcListMutedUsersResponse. - * @alias module:model/OcListMutedUsersResponse - */ - constructor() { - - OcListMutedUsersResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListMutedUsersResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListMutedUsersResponse} obj Optional instance to populate. - * @return {module:model/OcListMutedUsersResponse} The populated OcListMutedUsersResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListMutedUsersResponse(); - - if (data.hasOwnProperty('muted_list')) { - obj['muted_list'] = ApiClient.convertToType(data['muted_list'], [SendBirdUser]); - } - if (data.hasOwnProperty('total_mute_count')) { - obj['total_mute_count'] = ApiClient.convertToType(data['total_mute_count'], 'Number'); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} muted_list - */ -OcListMutedUsersResponse.prototype['muted_list'] = undefined; - -/** - * @member {Number} total_mute_count - */ -OcListMutedUsersResponse.prototype['total_mute_count'] = undefined; - -/** - * @member {String} next - */ -OcListMutedUsersResponse.prototype['next'] = undefined; - - - - - - -export default OcListMutedUsersResponse; - diff --git a/src/model/OcListOperatorsResponse.js b/src/model/OcListOperatorsResponse.js deleted file mode 100644 index d42636f..0000000 --- a/src/model/OcListOperatorsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcListOperatorsResponse model module. - * @module model/OcListOperatorsResponse - * @version 0.0.16 - */ -class OcListOperatorsResponse { - /** - * Constructs a new OcListOperatorsResponse. - * @alias module:model/OcListOperatorsResponse - */ - constructor() { - - OcListOperatorsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListOperatorsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListOperatorsResponse} obj Optional instance to populate. - * @return {module:model/OcListOperatorsResponse} The populated OcListOperatorsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListOperatorsResponse(); - - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], [SendBirdUser]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} operators - */ -OcListOperatorsResponse.prototype['operators'] = undefined; - -/** - * @member {String} next - */ -OcListOperatorsResponse.prototype['next'] = undefined; - - - - - - -export default OcListOperatorsResponse; - diff --git a/src/model/OcListParticipantsResponse.js b/src/model/OcListParticipantsResponse.js deleted file mode 100644 index 80e8d9d..0000000 --- a/src/model/OcListParticipantsResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcListParticipantsResponse model module. - * @module model/OcListParticipantsResponse - * @version 0.0.16 - */ -class OcListParticipantsResponse { - /** - * Constructs a new OcListParticipantsResponse. - * @alias module:model/OcListParticipantsResponse - */ - constructor() { - - OcListParticipantsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcListParticipantsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcListParticipantsResponse} obj Optional instance to populate. - * @return {module:model/OcListParticipantsResponse} The populated OcListParticipantsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcListParticipantsResponse(); - - if (data.hasOwnProperty('participants')) { - obj['participants'] = ApiClient.convertToType(data['participants'], [SendBirdUser]); - } - if (data.hasOwnProperty('next')) { - obj['next'] = ApiClient.convertToType(data['next'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} participants - */ -OcListParticipantsResponse.prototype['participants'] = undefined; - -/** - * @member {String} next - */ -OcListParticipantsResponse.prototype['next'] = undefined; - - - - - - -export default OcListParticipantsResponse; - diff --git a/src/model/OcMuteUserData.js b/src/model/OcMuteUserData.js deleted file mode 100644 index 9a603df..0000000 --- a/src/model/OcMuteUserData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcMuteUserData model module. - * @module model/OcMuteUserData - * @version 0.0.16 - */ -class OcMuteUserData { - /** - * Constructs a new OcMuteUserData. - * @alias module:model/OcMuteUserData - * @param userId {String} Specifies the ID of the target user to mute. - * @param seconds {Number} Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @param description {String} Specifies a reason for the muting. - */ - constructor(userId, seconds, description) { - - OcMuteUserData.initialize(this, userId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId, seconds, description) { - obj['user_id'] = userId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcMuteUserData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcMuteUserData} obj Optional instance to populate. - * @return {module:model/OcMuteUserData} The populated OcMuteUserData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcMuteUserData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the ID of the target user to mute. - * @member {String} user_id - */ -OcMuteUserData.prototype['user_id'] = undefined; - -/** - * Specifies the duration of mute status. If set to -1, the user will be muted permanently (10 years, technically). (Default: -1) - * @member {Number} seconds - */ -OcMuteUserData.prototype['seconds'] = undefined; - -/** - * Specifies a reason for the muting. - * @member {String} description - */ -OcMuteUserData.prototype['description'] = undefined; - - - - - - -export default OcMuteUserData; - diff --git a/src/model/OcRegisterOperatorsData.js b/src/model/OcRegisterOperatorsData.js deleted file mode 100644 index 3f74cd1..0000000 --- a/src/model/OcRegisterOperatorsData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcRegisterOperatorsData model module. - * @module model/OcRegisterOperatorsData - * @version 0.0.16 - */ -class OcRegisterOperatorsData { - /** - * Constructs a new OcRegisterOperatorsData. - * @alias module:model/OcRegisterOperatorsData - * @param channelUrl {String} Specifies the URL of the channel to register operators to. - * @param operatorIds {Array.} Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100. - */ - constructor(channelUrl, operatorIds) { - - OcRegisterOperatorsData.initialize(this, channelUrl, operatorIds); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, operatorIds) { - obj['channel_url'] = channelUrl; - obj['operator_ids'] = operatorIds; - } - - /** - * Constructs a OcRegisterOperatorsData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcRegisterOperatorsData} obj Optional instance to populate. - * @return {module:model/OcRegisterOperatorsData} The populated OcRegisterOperatorsData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcRegisterOperatorsData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to register operators to. - * @member {String} channel_url - */ -OcRegisterOperatorsData.prototype['channel_url'] = undefined; - -/** - * Specifies an array of one or more IDs of users to register as operators of the channel. The maximum allowed number of operators per channel is 100. - * @member {Array.} operator_ids - */ -OcRegisterOperatorsData.prototype['operator_ids'] = undefined; - - - - - - -export default OcRegisterOperatorsData; - diff --git a/src/model/OcUpdateBanByIdData.js b/src/model/OcUpdateBanByIdData.js deleted file mode 100644 index bda15e0..0000000 --- a/src/model/OcUpdateBanByIdData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcUpdateBanByIdData model module. - * @module model/OcUpdateBanByIdData - * @version 0.0.16 - */ -class OcUpdateBanByIdData { - /** - * Constructs a new OcUpdateBanByIdData. - * @alias module:model/OcUpdateBanByIdData - * @param channelUrl {String} Specifies the URL of the target channel. - * @param bannedUserId {String} Specifies the ID of the banned user to update. - * @param seconds {Number} Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @param description {String} Specifies a new reason for the banning to update. The length is limited to 250 characters. - */ - constructor(channelUrl, bannedUserId, seconds, description) { - - OcUpdateBanByIdData.initialize(this, channelUrl, bannedUserId, seconds, description); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, bannedUserId, seconds, description) { - obj['channel_url'] = channelUrl; - obj['banned_user_id'] = bannedUserId; - obj['seconds'] = seconds; - obj['description'] = description; - } - - /** - * Constructs a OcUpdateBanByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateBanByIdData} obj Optional instance to populate. - * @return {module:model/OcUpdateBanByIdData} The populated OcUpdateBanByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateBanByIdData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('banned_user_id')) { - obj['banned_user_id'] = ApiClient.convertToType(data['banned_user_id'], 'String'); - } - if (data.hasOwnProperty('seconds')) { - obj['seconds'] = ApiClient.convertToType(data['seconds'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -OcUpdateBanByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the ID of the banned user to update. - * @member {String} banned_user_id - */ -OcUpdateBanByIdData.prototype['banned_user_id'] = undefined; - -/** - * Specifies a new ban duration to update. If set to -1, the user will be banned permanently (10 years, technically). - * @member {Number} seconds - */ -OcUpdateBanByIdData.prototype['seconds'] = undefined; - -/** - * Specifies a new reason for the banning to update. The length is limited to 250 characters. - * @member {String} description - */ -OcUpdateBanByIdData.prototype['description'] = undefined; - - - - - - -export default OcUpdateBanByIdData; - diff --git a/src/model/OcUpdateBanByIdResponse.js b/src/model/OcUpdateBanByIdResponse.js deleted file mode 100644 index c7e0dbe..0000000 --- a/src/model/OcUpdateBanByIdResponse.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcUpdateBanByIdResponse model module. - * @module model/OcUpdateBanByIdResponse - * @version 0.0.16 - */ -class OcUpdateBanByIdResponse { - /** - * Constructs a new OcUpdateBanByIdResponse. - * @alias module:model/OcUpdateBanByIdResponse - */ - constructor() { - - OcUpdateBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcUpdateBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateBanByIdResponse} obj Optional instance to populate. - * @return {module:model/OcUpdateBanByIdResponse} The populated OcUpdateBanByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateBanByIdResponse(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -OcUpdateBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {String} description - */ -OcUpdateBanByIdResponse.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -OcUpdateBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -OcUpdateBanByIdResponse.prototype['start_at'] = undefined; - - - - - - -export default OcUpdateBanByIdResponse; - diff --git a/src/model/OcUpdateChannelByUrlData.js b/src/model/OcUpdateChannelByUrlData.js deleted file mode 100644 index b225c64..0000000 --- a/src/model/OcUpdateChannelByUrlData.js +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcUpdateChannelByUrlData model module. - * @module model/OcUpdateChannelByUrlData - * @version 0.0.16 - */ -class OcUpdateChannelByUrlData { - /** - * Constructs a new OcUpdateChannelByUrlData. - * @alias module:model/OcUpdateChannelByUrlData - * @param channelUrl {String} Specifies the URL of the channel to update. - * @param name {String} Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. - * @param coverUrl {String} Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @param coverFile {File} Uploads the file for the channel cover image. - * @param customType {String} Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @param data {String} Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @param operatorIds {Array.} Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @param operators {Array.} (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - */ - constructor(channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators) { - - OcUpdateChannelByUrlData.initialize(this, channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelUrl, name, coverUrl, coverFile, customType, data, operatorIds, operators) { - obj['channel_url'] = channelUrl; - obj['name'] = name; - obj['cover_url'] = coverUrl; - obj['cover_file'] = coverFile; - obj['custom_type'] = customType; - obj['data'] = data; - obj['operator_ids'] = operatorIds; - obj['operators'] = operators; - } - - /** - * Constructs a OcUpdateChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcUpdateChannelByUrlData} obj Optional instance to populate. - * @return {module:model/OcUpdateChannelByUrlData} The populated OcUpdateChannelByUrlData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcUpdateChannelByUrlData(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('cover_file')) { - obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('operator_ids')) { - obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the URL of the channel to update. - * @member {String} channel_url - */ -OcUpdateChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the channel topic, or the name of the channel. The length is limited to 191 characters. - * @member {String} name - */ -OcUpdateChannelByUrlData.prototype['name'] = undefined; - -/** - * Specifies the URL of the cover image. The length is limited to 2,048 characters. - * @member {String} cover_url - */ -OcUpdateChannelByUrlData.prototype['cover_url'] = undefined; - -/** - * Uploads the file for the channel cover image. - * @member {File} cover_file - */ -OcUpdateChannelByUrlData.prototype['cover_file'] = undefined; - -/** - * Specifies the custom channel type which is used for channel grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -OcUpdateChannelByUrlData.prototype['custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} data - */ -OcUpdateChannelByUrlData.prototype['data'] = undefined; - -/** - * Specifies an array of one or more user IDs to register as operators of the channel. The maximum allowed number of operators per channel is 100. Operators can delete any messages in the channel, and can also receive all messages that have been throttled.

Operators cannot view messages that have been [moderated by](/docs/chat/v3/platform-api/guides/filter-and-moderation) the domain filter or profanity filter. Only the sender will be notified that the message has been blocked. - * @member {Array.} operator_ids - */ -OcUpdateChannelByUrlData.prototype['operator_ids'] = undefined; - -/** - * (Deprecated) Specifies the string IDs of the users registered as channel operators. Operators can delete any messages in the channel, and can also receive all messages that have been throttled. - * @member {Array.} operators - */ -OcUpdateChannelByUrlData.prototype['operators'] = undefined; - - - - - - -export default OcUpdateChannelByUrlData; - diff --git a/src/model/OcViewBanByIdResponse.js b/src/model/OcViewBanByIdResponse.js deleted file mode 100644 index 3d32c52..0000000 --- a/src/model/OcViewBanByIdResponse.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The OcViewBanByIdResponse model module. - * @module model/OcViewBanByIdResponse - * @version 0.0.16 - */ -class OcViewBanByIdResponse { - /** - * Constructs a new OcViewBanByIdResponse. - * @alias module:model/OcViewBanByIdResponse - */ - constructor() { - - OcViewBanByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcViewBanByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcViewBanByIdResponse} obj Optional instance to populate. - * @return {module:model/OcViewBanByIdResponse} The populated OcViewBanByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcViewBanByIdResponse(); - - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdUser} user - */ -OcViewBanByIdResponse.prototype['user'] = undefined; - -/** - * @member {String} description - */ -OcViewBanByIdResponse.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -OcViewBanByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -OcViewBanByIdResponse.prototype['start_at'] = undefined; - - - - - - -export default OcViewBanByIdResponse; - diff --git a/src/model/OcViewMuteByIdResponse.js b/src/model/OcViewMuteByIdResponse.js deleted file mode 100644 index cebf0e0..0000000 --- a/src/model/OcViewMuteByIdResponse.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The OcViewMuteByIdResponse model module. - * @module model/OcViewMuteByIdResponse - * @version 0.0.16 - */ -class OcViewMuteByIdResponse { - /** - * Constructs a new OcViewMuteByIdResponse. - * @alias module:model/OcViewMuteByIdResponse - */ - constructor() { - - OcViewMuteByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a OcViewMuteByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/OcViewMuteByIdResponse} obj Optional instance to populate. - * @return {module:model/OcViewMuteByIdResponse} The populated OcViewMuteByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new OcViewMuteByIdResponse(); - - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('remaining_duration')) { - obj['remaining_duration'] = ApiClient.convertToType(data['remaining_duration'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} is_muted - */ -OcViewMuteByIdResponse.prototype['is_muted'] = undefined; - -/** - * @member {Number} remaining_duration - */ -OcViewMuteByIdResponse.prototype['remaining_duration'] = undefined; - -/** - * @member {Number} start_at - */ -OcViewMuteByIdResponse.prototype['start_at'] = undefined; - -/** - * @member {Number} end_at - */ -OcViewMuteByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {String} description - */ -OcViewMuteByIdResponse.prototype['description'] = undefined; - - - - - - -export default OcViewMuteByIdResponse; - diff --git a/src/model/RegisterAndScheduleDataExportData.js b/src/model/RegisterAndScheduleDataExportData.js deleted file mode 100644 index fe70c0b..0000000 --- a/src/model/RegisterAndScheduleDataExportData.js +++ /dev/null @@ -1,184 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RegisterAndScheduleDataExportData model module. - * @module model/RegisterAndScheduleDataExportData - * @version 0.0.16 - */ -class RegisterAndScheduleDataExportData { - /** - * Constructs a new RegisterAndScheduleDataExportData. - * @alias module:model/RegisterAndScheduleDataExportData - * @param startTs {Number} Specifies the starting timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @param endTs {Number} Specifies the ending timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - */ - constructor(startTs, endTs) { - - RegisterAndScheduleDataExportData.initialize(this, startTs, endTs); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, startTs, endTs) { - obj['start_ts'] = startTs; - obj['end_ts'] = endTs; - } - - /** - * Constructs a RegisterAndScheduleDataExportData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAndScheduleDataExportData} obj Optional instance to populate. - * @return {module:model/RegisterAndScheduleDataExportData} The populated RegisterAndScheduleDataExportData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAndScheduleDataExportData(); - - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = ApiClient.convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = ApiClient.convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = ApiClient.convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = ApiClient.convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = ApiClient.convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('exclude_sender_ids')) { - obj['exclude_sender_ids'] = ApiClient.convertToType(data['exclude_sender_ids'], ['String']); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('exclude_channel_urls')) { - obj['exclude_channel_urls'] = ApiClient.convertToType(data['exclude_channel_urls'], ['String']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('show_read_receipt')) { - obj['show_read_receipt'] = ApiClient.convertToType(data['show_read_receipt'], 'Boolean'); - } - if (data.hasOwnProperty('show_channel_metadata')) { - obj['show_channel_metadata'] = ApiClient.convertToType(data['show_channel_metadata'], 'Boolean'); - } - if (data.hasOwnProperty('neighboring_message_limit')) { - obj['neighboring_message_limit'] = ApiClient.convertToType(data['neighboring_message_limit'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the starting timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @member {Number} start_ts - */ -RegisterAndScheduleDataExportData.prototype['start_ts'] = undefined; - -/** - * Specifies the ending timestamp of a period for target objects' creation date, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The creation time of messages, channels, and users will be in-between the start_ts and end_ts. - * @member {Number} end_ts - */ -RegisterAndScheduleDataExportData.prototype['end_ts'] = undefined; - -/** - * Specifies the format of the file to export the messages to. Acceptable values are json and csv. (Default: json) - * @member {String} format - */ -RegisterAndScheduleDataExportData.prototype['format'] = undefined; - -/** - * Sets a single character delimiter to separate the values in each row of the csv file which stores two-dimensional arrays of the exported message data. Either English alphabets or special characters can be used as a delimiter, including a horizontal tab (\\t), a line feed (\\n), a vertical bar (\\ - * @member {String} csv_delimiter - */ -RegisterAndScheduleDataExportData.prototype['csv_delimiter'] = undefined; - -/** - * Specifies the timezone to be applied to the timestamp of the exported messages. For example, US/Pacific, Asia/Seoul, Europe/London, etc. (Default: UTC) - * @member {String} timezone - */ -RegisterAndScheduleDataExportData.prototype['timezone'] = undefined; - -/** - * Specifies an array of the IDs of the users which are used to filter the messages by its sender for the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs in the request. (Default: all messages sent by any user) - * @member {Array.} sender_ids - */ -RegisterAndScheduleDataExportData.prototype['sender_ids'] = undefined; - -/** - * Specifies an array of the IDs of the users which are used to exclude their sent messages from the export. This property is effective only when the data_type parameter is set to messages, and can be specified up to 10 IDs. (Default: all messages sent by any user) - * @member {Array.} exclude_sender_ids - */ -RegisterAndScheduleDataExportData.prototype['exclude_sender_ids'] = undefined; - -/** - * Specifies an array of one or more URLs of channels to export the messages from. This property is effective only when the data_type parameter is set to messages or channels. (Default: all channels) - * @member {Array.} channel_urls - */ -RegisterAndScheduleDataExportData.prototype['channel_urls'] = undefined; - -/** - * Specifies an array of one or more URLs of channels to exclude when exporting the messages. This property is effective only when the data_type parameter is set to messages or channels. (Default: include all channels) - * @member {Array.} exclude_channel_urls - */ -RegisterAndScheduleDataExportData.prototype['exclude_channel_urls'] = undefined; - -/** - * Specifies an array of the IDs of the users to export their information. This property is effective only when the data_type parameter is set to users. (Default: all users) - * @member {Array.} user_ids - */ -RegisterAndScheduleDataExportData.prototype['user_ids'] = undefined; - -/** - * Determines whether to include information about the read receipts of each channel in the exported data. The read receipt indicates the timestamps of when each user has last read the messages in the channel, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). (Default: true) - * @member {Boolean} show_read_receipt - */ -RegisterAndScheduleDataExportData.prototype['show_read_receipt'] = undefined; - -/** - * Determines whether to include [channel metadata](/docs/chat/v3/platform-api/guides/user-and-channel-metadata#2-view-a-channel-metadata) in the result files. - * @member {Boolean} show_channel_metadata - */ -RegisterAndScheduleDataExportData.prototype['show_channel_metadata'] = undefined; - -/** - * Specifies the maximum number of other users' messages to be exported, which took place after the specified message of a user filtered by the sender_ids property. Even if there may be more messages that took place, if the quantity exceeds the number of the neighboring_message_limit, they are omitted. Only the messages that took place right after the specified message will be counted and exported. This can be used to better analyze the context. Acceptable values are 1 to 10, inclusive. (Default: 0) - * @member {Number} neighboring_message_limit - */ -RegisterAndScheduleDataExportData.prototype['neighboring_message_limit'] = undefined; - - - - - - -export default RegisterAndScheduleDataExportData; - diff --git a/src/model/RegisterAndScheduleDataExportResponse.js b/src/model/RegisterAndScheduleDataExportResponse.js deleted file mode 100644 index 983e712..0000000 --- a/src/model/RegisterAndScheduleDataExportResponse.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; - -/** - * The RegisterAndScheduleDataExportResponse model module. - * @module model/RegisterAndScheduleDataExportResponse - * @version 0.0.16 - */ -class RegisterAndScheduleDataExportResponse { - /** - * Constructs a new RegisterAndScheduleDataExportResponse. - * @alias module:model/RegisterAndScheduleDataExportResponse - */ - constructor() { - - RegisterAndScheduleDataExportResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RegisterAndScheduleDataExportResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAndScheduleDataExportResponse} obj Optional instance to populate. - * @return {module:model/RegisterAndScheduleDataExportResponse} The populated RegisterAndScheduleDataExportResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAndScheduleDataExportResponse(); - - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = ApiClient.convertToType(data['channel_custom_types'], ['String']); - } - if (data.hasOwnProperty('data_type')) { - obj['data_type'] = ApiClient.convertToType(data['data_type'], 'String'); - } - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = ApiClient.convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = ApiClient.convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = ApiClient.convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = ApiClient.convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = ApiClient.convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} channel_custom_types - */ -RegisterAndScheduleDataExportResponse.prototype['channel_custom_types'] = undefined; - -/** - * @member {String} data_type - */ -RegisterAndScheduleDataExportResponse.prototype['data_type'] = undefined; - -/** - * @member {String} request_id - */ -RegisterAndScheduleDataExportResponse.prototype['request_id'] = undefined; - -/** - * @member {String} status - */ -RegisterAndScheduleDataExportResponse.prototype['status'] = undefined; - -/** - * @member {String} format - */ -RegisterAndScheduleDataExportResponse.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -RegisterAndScheduleDataExportResponse.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -RegisterAndScheduleDataExportResponse.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -RegisterAndScheduleDataExportResponse.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -RegisterAndScheduleDataExportResponse.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -RegisterAndScheduleDataExportResponse.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -RegisterAndScheduleDataExportResponse.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} sender_ids - */ -RegisterAndScheduleDataExportResponse.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -RegisterAndScheduleDataExportResponse.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -RegisterAndScheduleDataExportResponse.prototype['user_ids'] = undefined; - - - - - - -export default RegisterAndScheduleDataExportResponse; - diff --git a/src/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js b/src/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js deleted file mode 100644 index 10b18c2..0000000 --- a/src/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RegisterAsOperatorToChannelsWithCustomChannelTypesData model module. - * @module model/RegisterAsOperatorToChannelsWithCustomChannelTypesData - * @version 0.0.16 - */ -class RegisterAsOperatorToChannelsWithCustomChannelTypesData { - /** - * Constructs a new RegisterAsOperatorToChannelsWithCustomChannelTypesData. - * @alias module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData - * @param channelCustomTypes {Array.} Specifies an array of one or more custom channel types, in order to register the user as an operator to channels with the channel types. - */ - constructor(channelCustomTypes) { - - RegisterAsOperatorToChannelsWithCustomChannelTypesData.initialize(this, channelCustomTypes); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelCustomTypes) { - obj['channel_custom_types'] = channelCustomTypes; - } - - /** - * Constructs a RegisterAsOperatorToChannelsWithCustomChannelTypesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} obj Optional instance to populate. - * @return {module:model/RegisterAsOperatorToChannelsWithCustomChannelTypesData} The populated RegisterAsOperatorToChannelsWithCustomChannelTypesData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterAsOperatorToChannelsWithCustomChannelTypesData(); - - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = ApiClient.convertToType(data['channel_custom_types'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more custom channel types, in order to register the user as an operator to channels with the channel types. - * @member {Array.} channel_custom_types - */ -RegisterAsOperatorToChannelsWithCustomChannelTypesData.prototype['channel_custom_types'] = undefined; - - - - - - -export default RegisterAsOperatorToChannelsWithCustomChannelTypesData; - diff --git a/src/model/RegisterGdprRequestData.js b/src/model/RegisterGdprRequestData.js deleted file mode 100644 index f2c9ade..0000000 --- a/src/model/RegisterGdprRequestData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RegisterGdprRequestData model module. - * @module model/RegisterGdprRequestData - * @version 0.0.16 - */ -class RegisterGdprRequestData { - /** - * Constructs a new RegisterGdprRequestData. - * @alias module:model/RegisterGdprRequestData - * @param action {String} Determines the type of a GDPR request. Acceptable values are limited to access and delete. If set to access, Sendbird server generates a downloadable zip file containing the data of the specified user with the user_id property to comply with GDPR's [right to access](https://gdpr-info.eu/art-15-gdpr/) of the data subject. If set to delete, the specified users with the user_ids property will be permanently deleted from your Sendbird application to comply with GDPR's [right to erasure](https://gdpr-info.eu/art-17-gdpr/) of the data subject. (Default: delete) - * @param userIds {Array.} Specifies an array of the IDs of the users to delete in order to meet the GDPR's requirements. The maximum number of users to be processed at once is 100. This should be specified when the value of the action property is delete. - * @param channelDeleteOption {String} Determines the scope of group channels to delete in addition to deleting the specified users with the user_ids property. Acceptable values are limited to the following:
- do_not_delete (default): the users will be deleted but their joined group channels will remain.
- 1_on_1: only 1-on-1 group channels of the users will be deleted. (This option can be useful when eliminating spam users)
- all: all joined group channels of the users will be deleted.

This only works when the value of the action property is delete. - * @param userId {String} Specifies the ID of the user to meet the GDPR's requirements. - */ - constructor(action, userIds, channelDeleteOption, userId) { - - RegisterGdprRequestData.initialize(this, action, userIds, channelDeleteOption, userId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, action, userIds, channelDeleteOption, userId) { - obj['action'] = action; - obj['user_ids'] = userIds; - obj['channel_delete_option'] = channelDeleteOption; - obj['user_id'] = userId; - } - - /** - * Constructs a RegisterGdprRequestData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterGdprRequestData} obj Optional instance to populate. - * @return {module:model/RegisterGdprRequestData} The populated RegisterGdprRequestData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterGdprRequestData(); - - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = ApiClient.convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * Determines the type of a GDPR request. Acceptable values are limited to access and delete. If set to access, Sendbird server generates a downloadable zip file containing the data of the specified user with the user_id property to comply with GDPR's [right to access](https://gdpr-info.eu/art-15-gdpr/) of the data subject. If set to delete, the specified users with the user_ids property will be permanently deleted from your Sendbird application to comply with GDPR's [right to erasure](https://gdpr-info.eu/art-17-gdpr/) of the data subject. (Default: delete) - * @member {String} action - */ -RegisterGdprRequestData.prototype['action'] = undefined; - -/** - * Specifies an array of the IDs of the users to delete in order to meet the GDPR's requirements. The maximum number of users to be processed at once is 100. This should be specified when the value of the action property is delete. - * @member {Array.} user_ids - */ -RegisterGdprRequestData.prototype['user_ids'] = undefined; - -/** - * Determines the scope of group channels to delete in addition to deleting the specified users with the user_ids property. Acceptable values are limited to the following:
- do_not_delete (default): the users will be deleted but their joined group channels will remain.
- 1_on_1: only 1-on-1 group channels of the users will be deleted. (This option can be useful when eliminating spam users)
- all: all joined group channels of the users will be deleted.

This only works when the value of the action property is delete. - * @member {String} channel_delete_option - */ -RegisterGdprRequestData.prototype['channel_delete_option'] = undefined; - -/** - * Specifies the ID of the user to meet the GDPR's requirements. - * @member {String} user_id - */ -RegisterGdprRequestData.prototype['user_id'] = undefined; - - - - - - -export default RegisterGdprRequestData; - diff --git a/src/model/RegisterGdprRequestResponse.js b/src/model/RegisterGdprRequestResponse.js deleted file mode 100644 index dd2462b..0000000 --- a/src/model/RegisterGdprRequestResponse.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RegisterGdprRequestResponse model module. - * @module model/RegisterGdprRequestResponse - * @version 0.0.16 - */ -class RegisterGdprRequestResponse { - /** - * Constructs a new RegisterGdprRequestResponse. - * @alias module:model/RegisterGdprRequestResponse - */ - constructor() { - - RegisterGdprRequestResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RegisterGdprRequestResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RegisterGdprRequestResponse} obj Optional instance to populate. - * @return {module:model/RegisterGdprRequestResponse} The populated RegisterGdprRequestResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RegisterGdprRequestResponse(); - - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = ApiClient.convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} request_id - */ -RegisterGdprRequestResponse.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -RegisterGdprRequestResponse.prototype['action'] = undefined; - -/** - * @member {String} status - */ -RegisterGdprRequestResponse.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -RegisterGdprRequestResponse.prototype['user_id'] = undefined; - -/** - * @member {Array.} user_ids - */ -RegisterGdprRequestResponse.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -RegisterGdprRequestResponse.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -RegisterGdprRequestResponse.prototype['created_at'] = undefined; - - - - - - -export default RegisterGdprRequestResponse; - diff --git a/src/model/RegisterOperatorsToAGroupChannelRequest.js b/src/model/RegisterOperatorsToAGroupChannelRequest.js new file mode 100644 index 0000000..2176e12 --- /dev/null +++ b/src/model/RegisterOperatorsToAGroupChannelRequest.js @@ -0,0 +1,73 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RegisterOperatorsToAGroupChannelRequest model module. + * @module model/RegisterOperatorsToAGroupChannelRequest + * @version 2.0.0 + */ +class RegisterOperatorsToAGroupChannelRequest { + /** + * Constructs a new RegisterOperatorsToAGroupChannelRequest. + * @alias module:model/RegisterOperatorsToAGroupChannelRequest + * @param operatorIds {Array.} + */ + constructor(operatorIds) { + + RegisterOperatorsToAGroupChannelRequest.initialize(this, operatorIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, operatorIds) { + obj['operator_ids'] = operatorIds; + } + + /** + * Constructs a RegisterOperatorsToAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RegisterOperatorsToAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/RegisterOperatorsToAGroupChannelRequest} The populated RegisterOperatorsToAGroupChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RegisterOperatorsToAGroupChannelRequest(); + + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} operator_ids + */ +RegisterOperatorsToAGroupChannelRequest.prototype['operator_ids'] = undefined; + + + + + + +export default RegisterOperatorsToAGroupChannelRequest; + diff --git a/src/model/RemoveARegistrationOrDeviceTokenResponse.js b/src/model/RemoveARegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..95281ce --- /dev/null +++ b/src/model/RemoveARegistrationOrDeviceTokenResponse.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; + +/** + * The RemoveARegistrationOrDeviceTokenResponse model module. + * @module model/RemoveARegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +class RemoveARegistrationOrDeviceTokenResponse { + /** + * Constructs a new RemoveARegistrationOrDeviceTokenResponse. + * @alias module:model/RemoveARegistrationOrDeviceTokenResponse + */ + constructor() { + + RemoveARegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RemoveARegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoveARegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/RemoveARegistrationOrDeviceTokenResponse} The populated RemoveARegistrationOrDeviceTokenResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoveARegistrationOrDeviceTokenResponse(); + + if (data.hasOwnProperty('token')) { + obj['token'] = ApiClient.convertToType(data['token'], 'String'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = SendbirdBasicUserInfo.constructFromObject(data['user']); + } + } + return obj; + } + + +} + +/** + * @member {String} token + */ +RemoveARegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +RemoveARegistrationOrDeviceTokenResponse.prototype['user'] = undefined; + + + + + + +export default RemoveARegistrationOrDeviceTokenResponse; + diff --git a/src/model/RemoveAllRegistrationOrDeviceTokenResponse.js b/src/model/RemoveAllRegistrationOrDeviceTokenResponse.js new file mode 100644 index 0000000..847c403 --- /dev/null +++ b/src/model/RemoveAllRegistrationOrDeviceTokenResponse.js @@ -0,0 +1,80 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; + +/** + * The RemoveAllRegistrationOrDeviceTokenResponse model module. + * @module model/RemoveAllRegistrationOrDeviceTokenResponse + * @version 2.0.0 + */ +class RemoveAllRegistrationOrDeviceTokenResponse { + /** + * Constructs a new RemoveAllRegistrationOrDeviceTokenResponse. + * @alias module:model/RemoveAllRegistrationOrDeviceTokenResponse + */ + constructor() { + + RemoveAllRegistrationOrDeviceTokenResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RemoveAllRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RemoveAllRegistrationOrDeviceTokenResponse} obj Optional instance to populate. + * @return {module:model/RemoveAllRegistrationOrDeviceTokenResponse} The populated RemoveAllRegistrationOrDeviceTokenResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RemoveAllRegistrationOrDeviceTokenResponse(); + + if (data.hasOwnProperty('token')) { + obj['token'] = ApiClient.convertToType(data['token'], ['String']); + } + if (data.hasOwnProperty('user')) { + obj['user'] = SendbirdBasicUserInfo.constructFromObject(data['user']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} token + */ +RemoveAllRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +RemoveAllRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; + + + + + + +export default RemoveAllRegistrationOrDeviceTokenResponse; + diff --git a/src/model/RemovePushConfigurationByIdResponse.js b/src/model/RemovePushConfigurationByIdResponse.js deleted file mode 100644 index 212ebd8..0000000 --- a/src/model/RemovePushConfigurationByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RemovePushConfigurationByIdResponse model module. - * @module model/RemovePushConfigurationByIdResponse - * @version 0.0.16 - */ -class RemovePushConfigurationByIdResponse { - /** - * Constructs a new RemovePushConfigurationByIdResponse. - * @alias module:model/RemovePushConfigurationByIdResponse - */ - constructor() { - - RemovePushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RemovePushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemovePushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/RemovePushConfigurationByIdResponse} The populated RemovePushConfigurationByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RemovePushConfigurationByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -RemovePushConfigurationByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default RemovePushConfigurationByIdResponse; - diff --git a/src/model/RemoveReactionFromAMessageResponse.js b/src/model/RemoveReactionFromAMessageResponse.js deleted file mode 100644 index ece470f..0000000 --- a/src/model/RemoveReactionFromAMessageResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RemoveReactionFromAMessageResponse model module. - * @module model/RemoveReactionFromAMessageResponse - * @version 0.0.16 - */ -class RemoveReactionFromAMessageResponse { - /** - * Constructs a new RemoveReactionFromAMessageResponse. - * @alias module:model/RemoveReactionFromAMessageResponse - */ - constructor() { - - RemoveReactionFromAMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RemoveReactionFromAMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveReactionFromAMessageResponse} obj Optional instance to populate. - * @return {module:model/RemoveReactionFromAMessageResponse} The populated RemoveReactionFromAMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveReactionFromAMessageResponse(); - - if (data.hasOwnProperty('reaction')) { - obj['reaction'] = ApiClient.convertToType(data['reaction'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'Number'); - } - if (data.hasOwnProperty('success')) { - obj['success'] = ApiClient.convertToType(data['success'], 'Boolean'); - } - if (data.hasOwnProperty('msg_id')) { - obj['msg_id'] = ApiClient.convertToType(data['msg_id'], 'Number'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('operation')) { - obj['operation'] = ApiClient.convertToType(data['operation'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} reaction - */ -RemoveReactionFromAMessageResponse.prototype['reaction'] = undefined; - -/** - * @member {Number} user_id - */ -RemoveReactionFromAMessageResponse.prototype['user_id'] = undefined; - -/** - * @member {Boolean} success - */ -RemoveReactionFromAMessageResponse.prototype['success'] = undefined; - -/** - * @member {Number} msg_id - */ -RemoveReactionFromAMessageResponse.prototype['msg_id'] = undefined; - -/** - * @member {Number} updated_at - */ -RemoveReactionFromAMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {String} operation - */ -RemoveReactionFromAMessageResponse.prototype['operation'] = undefined; - - - - - - -export default RemoveReactionFromAMessageResponse; - diff --git a/src/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js b/src/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js deleted file mode 100644 index be57f0c..0000000 --- a/src/model/RemoveRegistrationOrDeviceTokenByTokenResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The RemoveRegistrationOrDeviceTokenByTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenByTokenResponse - * @version 0.0.16 - */ -class RemoveRegistrationOrDeviceTokenByTokenResponse { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenByTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenByTokenResponse - */ - constructor() { - - RemoveRegistrationOrDeviceTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RemoveRegistrationOrDeviceTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenByTokenResponse} The populated RemoveRegistrationOrDeviceTokenByTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenByTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], ['String']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} token - */ -RemoveRegistrationOrDeviceTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -RemoveRegistrationOrDeviceTokenByTokenResponse.prototype['user'] = undefined; - - - - - - -export default RemoveRegistrationOrDeviceTokenByTokenResponse; - diff --git a/src/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js b/src/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js deleted file mode 100644 index e395db9..0000000 --- a/src/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - * @version 0.0.16 - */ -class RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - */ - constructor() { - - RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse} The populated RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.prototype['user_id'] = undefined; - - - - - - -export default RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse; - diff --git a/src/model/RemoveRegistrationOrDeviceTokenResponse.js b/src/model/RemoveRegistrationOrDeviceTokenResponse.js deleted file mode 100644 index 6ae9da8..0000000 --- a/src/model/RemoveRegistrationOrDeviceTokenResponse.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The RemoveRegistrationOrDeviceTokenResponse model module. - * @module model/RemoveRegistrationOrDeviceTokenResponse - * @version 0.0.16 - */ -class RemoveRegistrationOrDeviceTokenResponse { - /** - * Constructs a new RemoveRegistrationOrDeviceTokenResponse. - * @alias module:model/RemoveRegistrationOrDeviceTokenResponse - */ - constructor() { - - RemoveRegistrationOrDeviceTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RemoveRegistrationOrDeviceTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RemoveRegistrationOrDeviceTokenResponse} obj Optional instance to populate. - * @return {module:model/RemoveRegistrationOrDeviceTokenResponse} The populated RemoveRegistrationOrDeviceTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RemoveRegistrationOrDeviceTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], ['String']); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdUser.constructFromObject(data['user']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} token - */ -RemoveRegistrationOrDeviceTokenResponse.prototype['token'] = undefined; - -/** - * @member {module:model/SendBirdUser} user - */ -RemoveRegistrationOrDeviceTokenResponse.prototype['user'] = undefined; - - - - - - -export default RemoveRegistrationOrDeviceTokenResponse; - diff --git a/src/model/ReportChannelByUrlData.js b/src/model/ReportChannelByUrlData.js deleted file mode 100644 index b5af6f7..0000000 --- a/src/model/ReportChannelByUrlData.js +++ /dev/null @@ -1,110 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ReportChannelByUrlData model module. - * @module model/ReportChannelByUrlData - * @version 0.0.16 - */ -class ReportChannelByUrlData { - /** - * Constructs a new ReportChannelByUrlData. - * @alias module:model/ReportChannelByUrlData - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - */ - constructor(reportCategory) { - - ReportChannelByUrlData.initialize(this, reportCategory); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, reportCategory) { - obj['report_category'] = reportCategory; - } - - /** - * Constructs a ReportChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportChannelByUrlData} obj Optional instance to populate. - * @return {module:model/ReportChannelByUrlData} The populated ReportChannelByUrlData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportChannelByUrlData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = ApiClient.convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportChannelByUrlData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to report for offensive messages or inappropriate activities. - * @member {String} channel_url - */ -ReportChannelByUrlData.prototype['channel_url'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportChannelByUrlData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who reports the channel. - * @member {String} reporting_user_id - */ -ReportChannelByUrlData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportChannelByUrlData.prototype['report_description'] = undefined; - - - - - - -export default ReportChannelByUrlData; - diff --git a/src/model/ReportChannelByUrlResponse.js b/src/model/ReportChannelByUrlResponse.js deleted file mode 100644 index 873d2c9..0000000 --- a/src/model/ReportChannelByUrlResponse.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ReportChannelByUrlResponse model module. - * @module model/ReportChannelByUrlResponse - * @version 0.0.16 - */ -class ReportChannelByUrlResponse { - /** - * Constructs a new ReportChannelByUrlResponse. - * @alias module:model/ReportChannelByUrlResponse - */ - constructor() { - - ReportChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ReportChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ReportChannelByUrlResponse} The populated ReportChannelByUrlResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportChannelByUrlResponse(); - - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = ApiClient.convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = SendBirdUser.constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = SendBirdUser.constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = SendBirdMessageResponse.constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} report_type - */ -ReportChannelByUrlResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportChannelByUrlResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportChannelByUrlResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportChannelByUrlResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportChannelByUrlResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportChannelByUrlResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportChannelByUrlResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportChannelByUrlResponse.prototype['created_at'] = undefined; - - - - - - -export default ReportChannelByUrlResponse; - diff --git a/src/model/ReportMessageByIdData.js b/src/model/ReportMessageByIdData.js deleted file mode 100644 index 9244d24..0000000 --- a/src/model/ReportMessageByIdData.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ReportMessageByIdData model module. - * @module model/ReportMessageByIdData - * @version 0.0.16 - */ -class ReportMessageByIdData { - /** - * Constructs a new ReportMessageByIdData. - * @alias module:model/ReportMessageByIdData - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @param offendingUserId {String} Specifies the unique ID of the user who has sent the message to report. - */ - constructor(reportCategory, offendingUserId) { - - ReportMessageByIdData.initialize(this, reportCategory, offendingUserId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, reportCategory, offendingUserId) { - obj['report_category'] = reportCategory; - obj['offending_user_id'] = offendingUserId; - } - - /** - * Constructs a ReportMessageByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportMessageByIdData} obj Optional instance to populate. - * @return {module:model/ReportMessageByIdData} The populated ReportMessageByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportMessageByIdData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('offending_user_id')) { - obj['offending_user_id'] = ApiClient.convertToType(data['offending_user_id'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = ApiClient.convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportMessageByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel where the message to report is in. - * @member {String} channel_url - */ -ReportMessageByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to report. - * @member {String} message_id - */ -ReportMessageByIdData.prototype['message_id'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportMessageByIdData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who has sent the message to report. - * @member {String} offending_user_id - */ -ReportMessageByIdData.prototype['offending_user_id'] = undefined; - -/** - * Specifies the unique ID of the user who reports the message. - * @member {String} reporting_user_id - */ -ReportMessageByIdData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportMessageByIdData.prototype['report_description'] = undefined; - - - - - - -export default ReportMessageByIdData; - diff --git a/src/model/ReportMessageByIdResponse.js b/src/model/ReportMessageByIdResponse.js deleted file mode 100644 index dbe4f82..0000000 --- a/src/model/ReportMessageByIdResponse.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ReportMessageByIdResponse model module. - * @module model/ReportMessageByIdResponse - * @version 0.0.16 - */ -class ReportMessageByIdResponse { - /** - * Constructs a new ReportMessageByIdResponse. - * @alias module:model/ReportMessageByIdResponse - */ - constructor() { - - ReportMessageByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ReportMessageByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportMessageByIdResponse} obj Optional instance to populate. - * @return {module:model/ReportMessageByIdResponse} The populated ReportMessageByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportMessageByIdResponse(); - - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = ApiClient.convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = SendBirdUser.constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = SendBirdUser.constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = SendBirdMessageResponse.constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} report_type - */ -ReportMessageByIdResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportMessageByIdResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportMessageByIdResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportMessageByIdResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportMessageByIdResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportMessageByIdResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportMessageByIdResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportMessageByIdResponse.prototype['created_at'] = undefined; - - - - - - -export default ReportMessageByIdResponse; - diff --git a/src/model/ReportUserByIdData.js b/src/model/ReportUserByIdData.js deleted file mode 100644 index a7d4791..0000000 --- a/src/model/ReportUserByIdData.js +++ /dev/null @@ -1,121 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ReportUserByIdData model module. - * @module model/ReportUserByIdData - * @version 0.0.16 - */ -class ReportUserByIdData { - /** - * Constructs a new ReportUserByIdData. - * @alias module:model/ReportUserByIdData - * @param offendingUserId {String} Specifies the unique ID of the user to report for using offensive or abusive language such as sending explicit messages or inappropriate comments. - * @param reportCategory {String} Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - */ - constructor(offendingUserId, reportCategory) { - - ReportUserByIdData.initialize(this, offendingUserId, reportCategory); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, offendingUserId, reportCategory) { - obj['offending_user_id'] = offendingUserId; - obj['report_category'] = reportCategory; - } - - /** - * Constructs a ReportUserByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportUserByIdData} obj Optional instance to populate. - * @return {module:model/ReportUserByIdData} The populated ReportUserByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportUserByIdData(); - - if (data.hasOwnProperty('offending_user_id')) { - obj['offending_user_id'] = ApiClient.convertToType(data['offending_user_id'], 'String'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user_id')) { - obj['reporting_user_id'] = ApiClient.convertToType(data['reporting_user_id'], 'String'); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the user to report for using offensive or abusive language such as sending explicit messages or inappropriate comments. - * @member {String} offending_user_id - */ -ReportUserByIdData.prototype['offending_user_id'] = undefined; - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -ReportUserByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel where the user to report is in. - * @member {String} channel_url - */ -ReportUserByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the category which indicates the reason for reporting. Acceptable values are suspicious, harassing, inappropriate, and spam. - * @member {String} report_category - */ -ReportUserByIdData.prototype['report_category'] = undefined; - -/** - * Specifies the unique ID of the user who reports the offending user. - * @member {String} reporting_user_id - */ -ReportUserByIdData.prototype['reporting_user_id'] = undefined; - -/** - * Specifies additional information to be included in the report. - * @member {String} report_description - */ -ReportUserByIdData.prototype['report_description'] = undefined; - - - - - - -export default ReportUserByIdData; - diff --git a/src/model/ReportUserByIdResponse.js b/src/model/ReportUserByIdResponse.js deleted file mode 100644 index 28a85af..0000000 --- a/src/model/ReportUserByIdResponse.js +++ /dev/null @@ -1,130 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdChannelResponse from './SendBirdChannelResponse'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdUser from './SendBirdUser'; - -/** - * The ReportUserByIdResponse model module. - * @module model/ReportUserByIdResponse - * @version 0.0.16 - */ -class ReportUserByIdResponse { - /** - * Constructs a new ReportUserByIdResponse. - * @alias module:model/ReportUserByIdResponse - */ - constructor() { - - ReportUserByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ReportUserByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ReportUserByIdResponse} obj Optional instance to populate. - * @return {module:model/ReportUserByIdResponse} The populated ReportUserByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ReportUserByIdResponse(); - - if (data.hasOwnProperty('report_type')) { - obj['report_type'] = ApiClient.convertToType(data['report_type'], 'String'); - } - if (data.hasOwnProperty('report_category')) { - obj['report_category'] = ApiClient.convertToType(data['report_category'], 'String'); - } - if (data.hasOwnProperty('reporting_user')) { - obj['reporting_user'] = SendBirdUser.constructFromObject(data['reporting_user']); - } - if (data.hasOwnProperty('offending_user')) { - obj['offending_user'] = SendBirdUser.constructFromObject(data['offending_user']); - } - if (data.hasOwnProperty('reported_message')) { - obj['reported_message'] = SendBirdMessageResponse.constructFromObject(data['reported_message']); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdChannelResponse.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('report_description')) { - obj['report_description'] = ApiClient.convertToType(data['report_description'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} report_type - */ -ReportUserByIdResponse.prototype['report_type'] = undefined; - -/** - * @member {String} report_category - */ -ReportUserByIdResponse.prototype['report_category'] = undefined; - -/** - * @member {module:model/SendBirdUser} reporting_user - */ -ReportUserByIdResponse.prototype['reporting_user'] = undefined; - -/** - * @member {module:model/SendBirdUser} offending_user - */ -ReportUserByIdResponse.prototype['offending_user'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} reported_message - */ -ReportUserByIdResponse.prototype['reported_message'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse} channel - */ -ReportUserByIdResponse.prototype['channel'] = undefined; - -/** - * @member {String} report_description - */ -ReportUserByIdResponse.prototype['report_description'] = undefined; - -/** - * @member {Number} created_at - */ -ReportUserByIdResponse.prototype['created_at'] = undefined; - - - - - - -export default ReportUserByIdResponse; - diff --git a/src/model/ResetChatHistoryRequest.js b/src/model/ResetChatHistoryRequest.js new file mode 100644 index 0000000..b43be34 --- /dev/null +++ b/src/model/ResetChatHistoryRequest.js @@ -0,0 +1,81 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ResetChatHistoryRequest model module. + * @module model/ResetChatHistoryRequest + * @version 2.0.0 + */ +class ResetChatHistoryRequest { + /** + * Constructs a new ResetChatHistoryRequest. + * @alias module:model/ResetChatHistoryRequest + * @param userId {String} + */ + constructor(userId) { + + ResetChatHistoryRequest.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a ResetChatHistoryRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetChatHistoryRequest} obj Optional instance to populate. + * @return {module:model/ResetChatHistoryRequest} The populated ResetChatHistoryRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetChatHistoryRequest(); + + if (data.hasOwnProperty('reset_all')) { + obj['reset_all'] = ApiClient.convertToType(data['reset_all'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} reset_all + */ +ResetChatHistoryRequest.prototype['reset_all'] = undefined; + +/** + * @member {String} user_id + */ +ResetChatHistoryRequest.prototype['user_id'] = undefined; + + + + + + +export default ResetChatHistoryRequest; + diff --git a/src/model/ResetChatHistoryResponse.js b/src/model/ResetChatHistoryResponse.js new file mode 100644 index 0000000..be0021a --- /dev/null +++ b/src/model/ResetChatHistoryResponse.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ResetChatHistoryResponse model module. + * @module model/ResetChatHistoryResponse + * @version 2.0.0 + */ +class ResetChatHistoryResponse { + /** + * Constructs a new ResetChatHistoryResponse. + * @alias module:model/ResetChatHistoryResponse + */ + constructor() { + + ResetChatHistoryResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ResetChatHistoryResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetChatHistoryResponse} obj Optional instance to populate. + * @return {module:model/ResetChatHistoryResponse} The populated ResetChatHistoryResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetChatHistoryResponse(); + + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = ApiClient.convertToType(data['ts_message_offset'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The timestamp in Unix milliseconds indicating the point in time that determines when the user can view messages in a specific channel. Messages sent on or before this timestamp can't be viewed by the user. + * @member {Number} ts_message_offset + */ +ResetChatHistoryResponse.prototype['ts_message_offset'] = undefined; + + + + + + +export default ResetChatHistoryResponse; + diff --git a/src/model/ResetPushPreferencesResponse.js b/src/model/ResetPushPreferencesResponse.js deleted file mode 100644 index 76c55f4..0000000 --- a/src/model/ResetPushPreferencesResponse.js +++ /dev/null @@ -1,175 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ResetPushPreferencesResponse model module. - * @module model/ResetPushPreferencesResponse - * @version 0.0.16 - */ -class ResetPushPreferencesResponse { - /** - * Constructs a new ResetPushPreferencesResponse. - * @alias module:model/ResetPushPreferencesResponse - */ - constructor() { - - ResetPushPreferencesResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ResetPushPreferencesResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ResetPushPreferencesResponse} obj Optional instance to populate. - * @return {module:model/ResetPushPreferencesResponse} The populated ResetPushPreferencesResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ResetPushPreferencesResponse(); - - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'String'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['Number']); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} snooze_start_ts - */ -ResetPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} start_hour - */ -ResetPushPreferencesResponse.prototype['start_hour'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -ResetPushPreferencesResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} end_min - */ -ResetPushPreferencesResponse.prototype['end_min'] = undefined; - -/** - * @member {String} timezone - */ -ResetPushPreferencesResponse.prototype['timezone'] = undefined; - -/** - * @member {Boolean} block_push_from_bots - */ -ResetPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; - -/** - * @member {Array.} push_blocked_bot_ids - */ -ResetPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; - -/** - * @member {Number} start_min - */ -ResetPushPreferencesResponse.prototype['start_min'] = undefined; - -/** - * @member {String} snooze_end_ts - */ -ResetPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -ResetPushPreferencesResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} end_hour - */ -ResetPushPreferencesResponse.prototype['end_hour'] = undefined; - -/** - * @member {Boolean} enable_push_for_replies - */ -ResetPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; - -/** - * @member {String} push_sound - */ -ResetPushPreferencesResponse.prototype['push_sound'] = undefined; - -/** - * @member {String} push_trigger_option - */ -ResetPushPreferencesResponse.prototype['push_trigger_option'] = undefined; - - - - - - -export default ResetPushPreferencesResponse; - diff --git a/src/model/RetrieveAdvancedAnalyticsMetricsResponse.js b/src/model/RetrieveAdvancedAnalyticsMetricsResponse.js deleted file mode 100644 index c6af728..0000000 --- a/src/model/RetrieveAdvancedAnalyticsMetricsResponse.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RetrieveAdvancedAnalyticsMetricsResponse model module. - * @module model/RetrieveAdvancedAnalyticsMetricsResponse - * @version 0.0.16 - */ -class RetrieveAdvancedAnalyticsMetricsResponse { - /** - * Constructs a new RetrieveAdvancedAnalyticsMetricsResponse. - * @alias module:model/RetrieveAdvancedAnalyticsMetricsResponse - */ - constructor() { - - RetrieveAdvancedAnalyticsMetricsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RetrieveAdvancedAnalyticsMetricsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveAdvancedAnalyticsMetricsResponse} obj Optional instance to populate. - * @return {module:model/RetrieveAdvancedAnalyticsMetricsResponse} The populated RetrieveAdvancedAnalyticsMetricsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveAdvancedAnalyticsMetricsResponse(); - - if (data.hasOwnProperty('segments')) { - obj['segments'] = ApiClient.convertToType(data['segments'], 'String'); - } - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('custom_channel_type')) { - obj['custom_channel_type'] = ApiClient.convertToType(data['custom_channel_type'], 'String'); - } - if (data.hasOwnProperty('custom_message_type')) { - obj['custom_message_type'] = ApiClient.convertToType(data['custom_message_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} segments - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['segments'] = undefined; - -/** - * @member {String} date - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['date'] = undefined; - -/** - * @member {Number} value - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['value'] = undefined; - -/** - * @member {String} channel_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['channel_type'] = undefined; - -/** - * @member {String} custom_channel_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['custom_channel_type'] = undefined; - -/** - * @member {String} custom_message_type - */ -RetrieveAdvancedAnalyticsMetricsResponse.prototype['custom_message_type'] = undefined; - - - - - - -export default RetrieveAdvancedAnalyticsMetricsResponse; - diff --git a/src/model/RetrieveIpWhitelistResponse.js b/src/model/RetrieveIpWhitelistResponse.js deleted file mode 100644 index b0c052d..0000000 --- a/src/model/RetrieveIpWhitelistResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RetrieveIpWhitelistResponse model module. - * @module model/RetrieveIpWhitelistResponse - * @version 0.0.16 - */ -class RetrieveIpWhitelistResponse { - /** - * Constructs a new RetrieveIpWhitelistResponse. - * @alias module:model/RetrieveIpWhitelistResponse - */ - constructor() { - - RetrieveIpWhitelistResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RetrieveIpWhitelistResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveIpWhitelistResponse} obj Optional instance to populate. - * @return {module:model/RetrieveIpWhitelistResponse} The populated RetrieveIpWhitelistResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveIpWhitelistResponse(); - - if (data.hasOwnProperty('ip_whitelist_addresses')) { - obj['ip_whitelist_addresses'] = ApiClient.convertToType(data['ip_whitelist_addresses'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Array.} ip_whitelist_addresses - */ -RetrieveIpWhitelistResponse.prototype['ip_whitelist_addresses'] = undefined; - - - - - - -export default RetrieveIpWhitelistResponse; - diff --git a/src/model/RetrieveListOfSubscribedEventsResponse.js b/src/model/RetrieveListOfSubscribedEventsResponse.js deleted file mode 100644 index b5eef56..0000000 --- a/src/model/RetrieveListOfSubscribedEventsResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import RetrieveListOfSubscribedEventsResponseWebhook from './RetrieveListOfSubscribedEventsResponseWebhook'; - -/** - * The RetrieveListOfSubscribedEventsResponse model module. - * @module model/RetrieveListOfSubscribedEventsResponse - * @version 0.0.16 - */ -class RetrieveListOfSubscribedEventsResponse { - /** - * Constructs a new RetrieveListOfSubscribedEventsResponse. - * @alias module:model/RetrieveListOfSubscribedEventsResponse - */ - constructor() { - - RetrieveListOfSubscribedEventsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RetrieveListOfSubscribedEventsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveListOfSubscribedEventsResponse} obj Optional instance to populate. - * @return {module:model/RetrieveListOfSubscribedEventsResponse} The populated RetrieveListOfSubscribedEventsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveListOfSubscribedEventsResponse(); - - if (data.hasOwnProperty('webhook')) { - obj['webhook'] = RetrieveListOfSubscribedEventsResponseWebhook.constructFromObject(data['webhook']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/RetrieveListOfSubscribedEventsResponseWebhook} webhook - */ -RetrieveListOfSubscribedEventsResponse.prototype['webhook'] = undefined; - - - - - - -export default RetrieveListOfSubscribedEventsResponse; - diff --git a/src/model/RetrieveListOfSubscribedEventsResponseWebhook.js b/src/model/RetrieveListOfSubscribedEventsResponseWebhook.js deleted file mode 100644 index 9356854..0000000 --- a/src/model/RetrieveListOfSubscribedEventsResponseWebhook.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RetrieveListOfSubscribedEventsResponseWebhook model module. - * @module model/RetrieveListOfSubscribedEventsResponseWebhook - * @version 0.0.16 - */ -class RetrieveListOfSubscribedEventsResponseWebhook { - /** - * Constructs a new RetrieveListOfSubscribedEventsResponseWebhook. - * @alias module:model/RetrieveListOfSubscribedEventsResponseWebhook - */ - constructor() { - - RetrieveListOfSubscribedEventsResponseWebhook.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RetrieveListOfSubscribedEventsResponseWebhook from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RetrieveListOfSubscribedEventsResponseWebhook} obj Optional instance to populate. - * @return {module:model/RetrieveListOfSubscribedEventsResponseWebhook} The populated RetrieveListOfSubscribedEventsResponseWebhook instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RetrieveListOfSubscribedEventsResponseWebhook(); - - if (data.hasOwnProperty('enabled')) { - obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('include_members')) { - obj['include_members'] = ApiClient.convertToType(data['include_members'], 'Boolean'); - } - if (data.hasOwnProperty('enabled_events')) { - obj['enabled_events'] = ApiClient.convertToType(data['enabled_events'], ['String']); - } - if (data.hasOwnProperty('all_webhook_categories')) { - obj['all_webhook_categories'] = ApiClient.convertToType(data['all_webhook_categories'], ['String']); - } - if (data.hasOwnProperty('include_unread_count')) { - obj['include_unread_count'] = ApiClient.convertToType(data['include_unread_count'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} enabled - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['enabled'] = undefined; - -/** - * @member {String} url - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['url'] = undefined; - -/** - * @member {Boolean} include_members - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['include_members'] = undefined; - -/** - * @member {Array.} enabled_events - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['enabled_events'] = undefined; - -/** - * @member {Array.} all_webhook_categories - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['all_webhook_categories'] = undefined; - -/** - * @member {Boolean} include_unread_count - */ -RetrieveListOfSubscribedEventsResponseWebhook.prototype['include_unread_count'] = undefined; - - - - - - -export default RetrieveListOfSubscribedEventsResponseWebhook; - diff --git a/src/model/RevokeSecondaryApiTokenByTokenResponse.js b/src/model/RevokeSecondaryApiTokenByTokenResponse.js deleted file mode 100644 index 69d85af..0000000 --- a/src/model/RevokeSecondaryApiTokenByTokenResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The RevokeSecondaryApiTokenByTokenResponse model module. - * @module model/RevokeSecondaryApiTokenByTokenResponse - * @version 0.0.16 - */ -class RevokeSecondaryApiTokenByTokenResponse { - /** - * Constructs a new RevokeSecondaryApiTokenByTokenResponse. - * @alias module:model/RevokeSecondaryApiTokenByTokenResponse - */ - constructor() { - - RevokeSecondaryApiTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a RevokeSecondaryApiTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/RevokeSecondaryApiTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/RevokeSecondaryApiTokenByTokenResponse} The populated RevokeSecondaryApiTokenByTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new RevokeSecondaryApiTokenByTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} token - */ -RevokeSecondaryApiTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -RevokeSecondaryApiTokenByTokenResponse.prototype['created_at'] = undefined; - - - - - - -export default RevokeSecondaryApiTokenByTokenResponse; - diff --git a/src/model/SBObject.js b/src/model/SBObject.js deleted file mode 100644 index d5e165e..0000000 --- a/src/model/SBObject.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import Function from './Function'; - -/** - * The SBObject model module. - * @module model/SBObject - * @version 0.0.16 - */ -class SBObject { - /** - * Constructs a new SBObject. - * @alias module:model/SBObject - */ - constructor() { - - SBObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SBObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SBObject} obj Optional instance to populate. - * @return {module:model/SBObject} The populated SBObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SBObject(); - - if (data.hasOwnProperty('constructor')) { - obj['constructor'] = Function.constructFromObject(data['constructor']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/Function} constructor - */ -SBObject.prototype['constructor'] = undefined; - - - - - - -export default SBObject; - diff --git a/src/model/ScheduleAnAnnouncementRequest.js b/src/model/ScheduleAnAnnouncementRequest.js new file mode 100644 index 0000000..81d503b --- /dev/null +++ b/src/model/ScheduleAnAnnouncementRequest.js @@ -0,0 +1,209 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ScheduleAnAnnouncementRequestCreateChannelOptions from './ScheduleAnAnnouncementRequestCreateChannelOptions'; +import ScheduleAnAnnouncementRequestMessage from './ScheduleAnAnnouncementRequestMessage'; + +/** + * The ScheduleAnAnnouncementRequest model module. + * @module model/ScheduleAnAnnouncementRequest + * @version 2.0.0 + */ +class ScheduleAnAnnouncementRequest { + /** + * Constructs a new ScheduleAnAnnouncementRequest. + * @alias module:model/ScheduleAnAnnouncementRequest + */ + constructor() { + + ScheduleAnAnnouncementRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ScheduleAnAnnouncementRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequest} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequest} The populated ScheduleAnAnnouncementRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequest(); + + if (data.hasOwnProperty('announcement_group')) { + obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); + } + if (data.hasOwnProperty('assign_sender_as_channel_inviter')) { + obj['assign_sender_as_channel_inviter'] = ApiClient.convertToType(data['assign_sender_as_channel_inviter'], 'Boolean'); + } + if (data.hasOwnProperty('cease_at')) { + obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); + } + if (data.hasOwnProperty('create_channel')) { + obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); + } + if (data.hasOwnProperty('create_channel_options')) { + obj['create_channel_options'] = ScheduleAnAnnouncementRequestCreateChannelOptions.constructFromObject(data['create_channel_options']); + } + if (data.hasOwnProperty('enable_push')) { + obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); + } + if (data.hasOwnProperty('end_at')) { + obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); + } + if (data.hasOwnProperty('keep_channel_hidden_for_sender')) { + obj['keep_channel_hidden_for_sender'] = ApiClient.convertToType(data['keep_channel_hidden_for_sender'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ScheduleAnAnnouncementRequestMessage.constructFromObject(data['message']); + } + if (data.hasOwnProperty('resume_at')) { + obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); + } + if (data.hasOwnProperty('scheduled_at')) { + obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); + } + if (data.hasOwnProperty('send_to_frozen_channels')) { + obj['send_to_frozen_channels'] = ApiClient.convertToType(data['send_to_frozen_channels'], 'Boolean'); + } + if (data.hasOwnProperty('target_at')) { + obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); + } + if (data.hasOwnProperty('target_channel_type')) { + obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); + } + if (data.hasOwnProperty('target_custom_type')) { + obj['target_custom_type'] = ApiClient.convertToType(data['target_custom_type'], 'String'); + } + if (data.hasOwnProperty('target_list')) { + obj['target_list'] = ApiClient.convertToType(data['target_list'], ['String']); + } + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} announcement_group + */ +ScheduleAnAnnouncementRequest.prototype['announcement_group'] = undefined; + +/** + * @member {Boolean} assign_sender_as_channel_inviter + */ +ScheduleAnAnnouncementRequest.prototype['assign_sender_as_channel_inviter'] = undefined; + +/** + * @member {String} cease_at + */ +ScheduleAnAnnouncementRequest.prototype['cease_at'] = undefined; + +/** + * @member {Boolean} create_channel + */ +ScheduleAnAnnouncementRequest.prototype['create_channel'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} create_channel_options + */ +ScheduleAnAnnouncementRequest.prototype['create_channel_options'] = undefined; + +/** + * @member {Boolean} enable_push + */ +ScheduleAnAnnouncementRequest.prototype['enable_push'] = undefined; + +/** + * @member {Number} end_at + */ +ScheduleAnAnnouncementRequest.prototype['end_at'] = undefined; + +/** + * @member {Boolean} keep_channel_hidden_for_sender + */ +ScheduleAnAnnouncementRequest.prototype['keep_channel_hidden_for_sender'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +ScheduleAnAnnouncementRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestMessage} message + */ +ScheduleAnAnnouncementRequest.prototype['message'] = undefined; + +/** + * @member {String} resume_at + */ +ScheduleAnAnnouncementRequest.prototype['resume_at'] = undefined; + +/** + * @member {Number} scheduled_at + */ +ScheduleAnAnnouncementRequest.prototype['scheduled_at'] = undefined; + +/** + * @member {Boolean} send_to_frozen_channels + */ +ScheduleAnAnnouncementRequest.prototype['send_to_frozen_channels'] = undefined; + +/** + * @member {String} target_at + */ +ScheduleAnAnnouncementRequest.prototype['target_at'] = undefined; + +/** + * @member {String} target_channel_type + */ +ScheduleAnAnnouncementRequest.prototype['target_channel_type'] = undefined; + +/** + * @member {String} target_custom_type + */ +ScheduleAnAnnouncementRequest.prototype['target_custom_type'] = undefined; + +/** + * @member {Array.} target_list + */ +ScheduleAnAnnouncementRequest.prototype['target_list'] = undefined; + +/** + * @member {String} unique_id + */ +ScheduleAnAnnouncementRequest.prototype['unique_id'] = undefined; + + + + + + +export default ScheduleAnAnnouncementRequest; + diff --git a/src/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js b/src/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js new file mode 100644 index 0000000..555af14 --- /dev/null +++ b/src/model/ScheduleAnAnnouncementRequestCreateChannelOptions.js @@ -0,0 +1,103 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ScheduleAnAnnouncementRequestCreateChannelOptions model module. + * @module model/ScheduleAnAnnouncementRequestCreateChannelOptions + * @version 2.0.0 + */ +class ScheduleAnAnnouncementRequestCreateChannelOptions { + /** + * Constructs a new ScheduleAnAnnouncementRequestCreateChannelOptions. + * @alias module:model/ScheduleAnAnnouncementRequestCreateChannelOptions + */ + constructor() { + + ScheduleAnAnnouncementRequestCreateChannelOptions.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ScheduleAnAnnouncementRequestCreateChannelOptions from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} The populated ScheduleAnAnnouncementRequestCreateChannelOptions instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequestCreateChannelOptions(); + + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('distinct')) { + obj['distinct'] = ApiClient.convertToType(data['distinct'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} cover_url + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['data'] = undefined; + +/** + * @member {Boolean} distinct + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['distinct'] = undefined; + +/** + * @member {String} name + */ +ScheduleAnAnnouncementRequestCreateChannelOptions.prototype['name'] = undefined; + + + + + + +export default ScheduleAnAnnouncementRequestCreateChannelOptions; + diff --git a/src/model/ScheduleAnAnnouncementRequestMessage.js b/src/model/ScheduleAnAnnouncementRequestMessage.js new file mode 100644 index 0000000..4eeac3a --- /dev/null +++ b/src/model/ScheduleAnAnnouncementRequestMessage.js @@ -0,0 +1,103 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ScheduleAnAnnouncementRequestMessage model module. + * @module model/ScheduleAnAnnouncementRequestMessage + * @version 2.0.0 + */ +class ScheduleAnAnnouncementRequestMessage { + /** + * Constructs a new ScheduleAnAnnouncementRequestMessage. + * @alias module:model/ScheduleAnAnnouncementRequestMessage + */ + constructor() { + + ScheduleAnAnnouncementRequestMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ScheduleAnAnnouncementRequestMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementRequestMessage} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementRequestMessage} The populated ScheduleAnAnnouncementRequestMessage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementRequestMessage(); + + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} content + */ +ScheduleAnAnnouncementRequestMessage.prototype['content'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementRequestMessage.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementRequestMessage.prototype['data'] = undefined; + +/** + * @member {String} type + */ +ScheduleAnAnnouncementRequestMessage.prototype['type'] = undefined; + +/** + * @member {String} user_id + */ +ScheduleAnAnnouncementRequestMessage.prototype['user_id'] = undefined; + + + + + + +export default ScheduleAnAnnouncementRequestMessage; + diff --git a/src/model/ScheduleAnAnnouncementResponse.js b/src/model/ScheduleAnAnnouncementResponse.js new file mode 100644 index 0000000..cd62d47 --- /dev/null +++ b/src/model/ScheduleAnAnnouncementResponse.js @@ -0,0 +1,257 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ScheduleAnAnnouncementRequestCreateChannelOptions from './ScheduleAnAnnouncementRequestCreateChannelOptions'; +import ScheduleAnAnnouncementResponseMessage from './ScheduleAnAnnouncementResponseMessage'; + +/** + * The ScheduleAnAnnouncementResponse model module. + * @module model/ScheduleAnAnnouncementResponse + * @version 2.0.0 + */ +class ScheduleAnAnnouncementResponse { + /** + * Constructs a new ScheduleAnAnnouncementResponse. + * @alias module:model/ScheduleAnAnnouncementResponse + */ + constructor() { + + ScheduleAnAnnouncementResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ScheduleAnAnnouncementResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementResponse} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementResponse} The populated ScheduleAnAnnouncementResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementResponse(); + + if (data.hasOwnProperty('announcement_group')) { + obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); + } + if (data.hasOwnProperty('cease_at')) { + obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); + } + if (data.hasOwnProperty('completed_at')) { + obj['completed_at'] = ApiClient.convertToType(data['completed_at'], 'Number'); + } + if (data.hasOwnProperty('create_channel')) { + obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); + } + if (data.hasOwnProperty('create_channel_options')) { + obj['create_channel_options'] = ScheduleAnAnnouncementRequestCreateChannelOptions.constructFromObject(data['create_channel_options']); + } + if (data.hasOwnProperty('enable_push')) { + obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); + } + if (data.hasOwnProperty('end_at')) { + obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ScheduleAnAnnouncementResponseMessage.constructFromObject(data['message']); + } + if (data.hasOwnProperty('open_count')) { + obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); + } + if (data.hasOwnProperty('open_rate')) { + obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); + } + if (data.hasOwnProperty('priority')) { + obj['priority'] = ApiClient.convertToType(data['priority'], 'String'); + } + if (data.hasOwnProperty('resume_at')) { + obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); + } + if (data.hasOwnProperty('scheduled_at')) { + obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); + } + if (data.hasOwnProperty('send_to_frozen_channels')) { + obj['send_to_frozen_channels'] = ApiClient.convertToType(data['send_to_frozen_channels'], 'Boolean'); + } + if (data.hasOwnProperty('sent_channel_count')) { + obj['sent_channel_count'] = ApiClient.convertToType(data['sent_channel_count'], 'Number'); + } + if (data.hasOwnProperty('sent_user_count')) { + obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + if (data.hasOwnProperty('target_at')) { + obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); + } + if (data.hasOwnProperty('target_channel_count')) { + obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); + } + if (data.hasOwnProperty('target_channel_type')) { + obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); + } + if (data.hasOwnProperty('target_custom_type')) { + obj['target_custom_type'] = ApiClient.convertToType(data['target_custom_type'], 'String'); + } + if (data.hasOwnProperty('target_user_count')) { + obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); + } + if (data.hasOwnProperty('unique_id')) { + obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} announcement_group + */ +ScheduleAnAnnouncementResponse.prototype['announcement_group'] = undefined; + +/** + * @member {String} cease_at + */ +ScheduleAnAnnouncementResponse.prototype['cease_at'] = undefined; + +/** + * @member {Number} completed_at + */ +ScheduleAnAnnouncementResponse.prototype['completed_at'] = undefined; + +/** + * @member {Boolean} create_channel + */ +ScheduleAnAnnouncementResponse.prototype['create_channel'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementRequestCreateChannelOptions} create_channel_options + */ +ScheduleAnAnnouncementResponse.prototype['create_channel_options'] = undefined; + +/** + * @member {Boolean} enable_push + */ +ScheduleAnAnnouncementResponse.prototype['enable_push'] = undefined; + +/** + * @member {Number} end_at + */ +ScheduleAnAnnouncementResponse.prototype['end_at'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +ScheduleAnAnnouncementResponse.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/ScheduleAnAnnouncementResponseMessage} message + */ +ScheduleAnAnnouncementResponse.prototype['message'] = undefined; + +/** + * @member {Number} open_count + */ +ScheduleAnAnnouncementResponse.prototype['open_count'] = undefined; + +/** + * @member {Number} open_rate + */ +ScheduleAnAnnouncementResponse.prototype['open_rate'] = undefined; + +/** + * @member {String} priority + */ +ScheduleAnAnnouncementResponse.prototype['priority'] = undefined; + +/** + * @member {String} resume_at + */ +ScheduleAnAnnouncementResponse.prototype['resume_at'] = undefined; + +/** + * @member {Number} scheduled_at + */ +ScheduleAnAnnouncementResponse.prototype['scheduled_at'] = undefined; + +/** + * @member {Boolean} send_to_frozen_channels + */ +ScheduleAnAnnouncementResponse.prototype['send_to_frozen_channels'] = undefined; + +/** + * @member {Number} sent_channel_count + */ +ScheduleAnAnnouncementResponse.prototype['sent_channel_count'] = undefined; + +/** + * @member {Number} sent_user_count + */ +ScheduleAnAnnouncementResponse.prototype['sent_user_count'] = undefined; + +/** + * @member {String} status + */ +ScheduleAnAnnouncementResponse.prototype['status'] = undefined; + +/** + * @member {String} target_at + */ +ScheduleAnAnnouncementResponse.prototype['target_at'] = undefined; + +/** + * @member {Number} target_channel_count + */ +ScheduleAnAnnouncementResponse.prototype['target_channel_count'] = undefined; + +/** + * @member {String} target_channel_type + */ +ScheduleAnAnnouncementResponse.prototype['target_channel_type'] = undefined; + +/** + * @member {String} target_custom_type + */ +ScheduleAnAnnouncementResponse.prototype['target_custom_type'] = undefined; + +/** + * @member {Number} target_user_count + */ +ScheduleAnAnnouncementResponse.prototype['target_user_count'] = undefined; + +/** + * @member {String} unique_id + */ +ScheduleAnAnnouncementResponse.prototype['unique_id'] = undefined; + + + + + + +export default ScheduleAnAnnouncementResponse; + diff --git a/src/model/ScheduleAnAnnouncementResponseMessage.js b/src/model/ScheduleAnAnnouncementResponseMessage.js new file mode 100644 index 0000000..aa042f4 --- /dev/null +++ b/src/model/ScheduleAnAnnouncementResponseMessage.js @@ -0,0 +1,111 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ScheduleAnAnnouncementResponseMessage model module. + * @module model/ScheduleAnAnnouncementResponseMessage + * @version 2.0.0 + */ +class ScheduleAnAnnouncementResponseMessage { + /** + * Constructs a new ScheduleAnAnnouncementResponseMessage. + * @alias module:model/ScheduleAnAnnouncementResponseMessage + */ + constructor() { + + ScheduleAnAnnouncementResponseMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ScheduleAnAnnouncementResponseMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ScheduleAnAnnouncementResponseMessage} obj Optional instance to populate. + * @return {module:model/ScheduleAnAnnouncementResponseMessage} The populated ScheduleAnAnnouncementResponseMessage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ScheduleAnAnnouncementResponseMessage(); + + if (data.hasOwnProperty('content')) { + obj['content'] = ApiClient.convertToType(data['content'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('message_retention_hour')) { + obj['message_retention_hour'] = ApiClient.convertToType(data['message_retention_hour'], 'Number'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} content + */ +ScheduleAnAnnouncementResponseMessage.prototype['content'] = undefined; + +/** + * @member {String} custom_type + */ +ScheduleAnAnnouncementResponseMessage.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +ScheduleAnAnnouncementResponseMessage.prototype['data'] = undefined; + +/** + * @member {Number} message_retention_hour + */ +ScheduleAnAnnouncementResponseMessage.prototype['message_retention_hour'] = undefined; + +/** + * @member {String} type + */ +ScheduleAnAnnouncementResponseMessage.prototype['type'] = undefined; + +/** + * @member {String} user_id + */ +ScheduleAnAnnouncementResponseMessage.prototype['user_id'] = undefined; + + + + + + +export default ScheduleAnAnnouncementResponseMessage; + diff --git a/src/model/ScheduleAnnouncementData.js b/src/model/ScheduleAnnouncementData.js deleted file mode 100644 index 1804be7..0000000 --- a/src/model/ScheduleAnnouncementData.js +++ /dev/null @@ -1,287 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ScheduleAnnouncementDataMessage from './ScheduleAnnouncementDataMessage'; - -/** - * The ScheduleAnnouncementData model module. - * @module model/ScheduleAnnouncementData - * @version 0.0.16 - */ -class ScheduleAnnouncementData { - /** - * Constructs a new ScheduleAnnouncementData. - * @alias module:model/ScheduleAnnouncementData - * @param message {module:model/ScheduleAnnouncementDataMessage} - * @param targetAt {String} Specifies the target channels to send the announcement to. Acceptable values are the following:
- sender_all_channels (Default): sends the announcement to all of the sender's group channels.
- target_channels: sends the announcement to all target group channels. When the `message.type` of the announcement is ADMM, this is the only valid option.
- target_users_included_channels: sends the announcement to group channels consisting of the sender, target users, and other members.
- target_users_only_channels: sends the announcement to group channels consisting of the sender and target users only. - * @param targetList {Array.} Specifies an array of one or more target user IDs or target channel URLs to send the announcement to when the target_at is target_channels, target_users_only_channels, or target_users_included_channels.

When the target_at value is sender_all_channels, this property is not effective. - * @param targetChannelType {String} Determines which type of group channel to send the announcement to, based on the target_at and target_list. This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels and the target_list is specified. Acceptable values are limited to the following:
- all: send the announcement to all channels that have all target users and the sender in them, regardless of channel type.
- distinct (default): sends this announcement to the distinct channels. Distinct channels continue to use the same existing channels whenever someone attempts to create a new channel with the same members.
- non-distinct: sends this announcement to the non-distinct channels. Non-distinct channels always create a new channel even if there is an existing channel with the same members.

The distinct and non-distinct channels are a subtype of group channels, determined by the [is_distinct](/docs/chat/v3/platform-api/guides/group-channel#2-types-of-a-channel-3-resource-representation) property. - */ - constructor(message, targetAt, targetList, targetChannelType) { - - ScheduleAnnouncementData.initialize(this, message, targetAt, targetList, targetChannelType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, message, targetAt, targetList, targetChannelType) { - obj['message'] = message; - obj['target_at'] = targetAt; - obj['target_list'] = targetList; - obj['target_channel_type'] = targetChannelType; - } - - /** - * Constructs a ScheduleAnnouncementData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementData} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementData} The populated ScheduleAnnouncementData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementData(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ScheduleAnnouncementDataMessage.constructFromObject(data['message']); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_list')) { - obj['target_list'] = ApiClient.convertToType(data['target_list'], ['String']); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('message.custom_type')) { - obj['message.custom_type'] = ApiClient.convertToType(data['message.custom_type'], 'String'); - } - if (data.hasOwnProperty('message.data')) { - obj['message.data'] = ApiClient.convertToType(data['message.data'], 'String'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = ApiClient.convertToType(data['create_channel_options'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.name')) { - obj['create_channel_options.name'] = ApiClient.convertToType(data['create_channel_options.name'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.cover_url')) { - obj['create_channel_options.cover_url'] = ApiClient.convertToType(data['create_channel_options.cover_url'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.custom_type')) { - obj['create_channel_options.custom_type'] = ApiClient.convertToType(data['create_channel_options.custom_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.data')) { - obj['create_channel_options.data'] = ApiClient.convertToType(data['create_channel_options.data'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.distinct')) { - obj['create_channel_options.distinct'] = ApiClient.convertToType(data['create_channel_options.distinct'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('assign_sender_as_channel_inviter')) { - obj['assign_sender_as_channel_inviter'] = ApiClient.convertToType(data['assign_sender_as_channel_inviter'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/ScheduleAnnouncementDataMessage} message - */ -ScheduleAnnouncementData.prototype['message'] = undefined; - -/** - * Specifies the type of the message, which can be either MESG for a text message and ADMM for an admin message. - * @member {String} message_type - */ -ScheduleAnnouncementData.prototype['message_type'] = undefined; - -/** - * Specifies the unique ID of the sender when the message.type is MESG. When the message.type value is ADMM, this property is not effective. - * @member {String} user_id - */ -ScheduleAnnouncementData.prototype['user_id'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} content - */ -ScheduleAnnouncementData.prototype['content'] = undefined; - -/** - * Specifies the target channels to send the announcement to. Acceptable values are the following:
- sender_all_channels (Default): sends the announcement to all of the sender's group channels.
- target_channels: sends the announcement to all target group channels. When the `message.type` of the announcement is ADMM, this is the only valid option.
- target_users_included_channels: sends the announcement to group channels consisting of the sender, target users, and other members.
- target_users_only_channels: sends the announcement to group channels consisting of the sender and target users only. - * @member {String} target_at - */ -ScheduleAnnouncementData.prototype['target_at'] = undefined; - -/** - * Specifies an array of one or more target user IDs or target channel URLs to send the announcement to when the target_at is target_channels, target_users_only_channels, or target_users_included_channels.

When the target_at value is sender_all_channels, this property is not effective. - * @member {Array.} target_list - */ -ScheduleAnnouncementData.prototype['target_list'] = undefined; - -/** - * Determines which type of group channel to send the announcement to, based on the target_at and target_list. This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels and the target_list is specified. Acceptable values are limited to the following:
- all: send the announcement to all channels that have all target users and the sender in them, regardless of channel type.
- distinct (default): sends this announcement to the distinct channels. Distinct channels continue to use the same existing channels whenever someone attempts to create a new channel with the same members.
- non-distinct: sends this announcement to the non-distinct channels. Non-distinct channels always create a new channel even if there is an existing channel with the same members.

The distinct and non-distinct channels are a subtype of group channels, determined by the [is_distinct](/docs/chat/v3/platform-api/guides/group-channel#2-types-of-a-channel-3-resource-representation) property. - * @member {String} target_channel_type - */ -ScheduleAnnouncementData.prototype['target_channel_type'] = undefined; - -/** - * Specifies the unique ID of the new announcement. The unique_id will be automatically created unless specified. - * @member {String} unique_id - */ -ScheduleAnnouncementData.prototype['unique_id'] = undefined; - -/** - * Specifies the custom message type of the message of the new announcement. - * @member {String} message.custom_type - */ -ScheduleAnnouncementData.prototype['message.custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} message.data - */ -ScheduleAnnouncementData.prototype['message.data'] = undefined; - -/** - * Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. By specifying the create_channel_options, you can configure the properties of newly created channels. (Default: false) - * @member {Boolean} create_channel - */ -ScheduleAnnouncementData.prototype['create_channel'] = undefined; - -/** - * Specifies the announcement group that the new announcement belongs to.

This property is effective only when the target_at is either target_users_only_channels or target_users_included_channels. - * @member {String} announcement_group - */ -ScheduleAnnouncementData.prototype['announcement_group'] = undefined; - -/** - * A newly created channel configuration. - * @member {String} create_channel_options - */ -ScheduleAnnouncementData.prototype['create_channel_options'] = undefined; - -/** - * Specifies the name of channels to be created. (Default: Group Channel) - * @member {String} create_channel_options.name - */ -ScheduleAnnouncementData.prototype['create_channel_options.name'] = undefined; - -/** - * Specifies the URL of the cover image for the new channels. - * @member {String} create_channel_options.cover_url - */ -ScheduleAnnouncementData.prototype['create_channel_options.cover_url'] = undefined; - -/** - * Specifies the custom channel type of the new channels. - * @member {String} create_channel_options.custom_type - */ -ScheduleAnnouncementData.prototype['create_channel_options.custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} create_channel_options.data - */ -ScheduleAnnouncementData.prototype['create_channel_options.data'] = undefined; - -/** - * Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) - * @member {String} create_channel_options.distinct - */ -ScheduleAnnouncementData.prototype['create_channel_options.distinct'] = undefined; - -/** - * Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. If not specified, the default is the timestamp of when the request was delivered to Sendbird server. (Default: current timestamp) - * @member {Number} scheduled_at - */ -ScheduleAnnouncementData.prototype['scheduled_at'] = undefined; - -/** - * Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This should be specified in conjunction with the resume_at property.

If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. - * @member {String} cease_at - */ -ScheduleAnnouncementData.prototype['cease_at'] = undefined; - -/** - * Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This should be specified in conjunction with the cease_at property above.

If both the cease_at and resume_at are not specified, Sendbird server starts to send the announcement at the time of the scheduled_at above. - * @member {String} resume_at - */ -ScheduleAnnouncementData.prototype['resume_at'] = undefined; - -/** - * Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous##2-timestamps) format. If this property is specified, the announcement ends even when the announcement is not sent to all its targets.

For the announcement to run safely, the end_at time should be set at least 10 minutes later than the scheduled_at time. - * @member {Number} end_at - */ -ScheduleAnnouncementData.prototype['end_at'] = undefined; - -/** - * Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for the announcement. (Default: true) - * @member {Boolean} enable_push - */ -ScheduleAnnouncementData.prototype['enable_push'] = undefined; - -/** - * Determines whether to assign an announcement sender as an inviter of the newly created channels. (Default: false) - * @member {Boolean} assign_sender_as_channel_inviter - */ -ScheduleAnnouncementData.prototype['assign_sender_as_channel_inviter'] = undefined; - - - - - - -export default ScheduleAnnouncementData; - diff --git a/src/model/ScheduleAnnouncementDataMessage.js b/src/model/ScheduleAnnouncementDataMessage.js deleted file mode 100644 index 9d955db..0000000 --- a/src/model/ScheduleAnnouncementDataMessage.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ScheduleAnnouncementDataMessage model module. - * @module model/ScheduleAnnouncementDataMessage - * @version 0.0.16 - */ -class ScheduleAnnouncementDataMessage { - /** - * Constructs a new ScheduleAnnouncementDataMessage. - * The [message](/docs/chat/v3/platform-api/guides/messages#-3-resource-representation) of a new announcement. - * @alias module:model/ScheduleAnnouncementDataMessage - */ - constructor() { - - ScheduleAnnouncementDataMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ScheduleAnnouncementDataMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementDataMessage} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementDataMessage} The populated ScheduleAnnouncementDataMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementDataMessage(); - - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} type - */ -ScheduleAnnouncementDataMessage.prototype['type'] = undefined; - -/** - * @member {String} user_id - */ -ScheduleAnnouncementDataMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -ScheduleAnnouncementDataMessage.prototype['content'] = undefined; - - - - - - -export default ScheduleAnnouncementDataMessage; - diff --git a/src/model/ScheduleAnnouncementResponse.js b/src/model/ScheduleAnnouncementResponse.js deleted file mode 100644 index a94b645..0000000 --- a/src/model/ScheduleAnnouncementResponse.js +++ /dev/null @@ -1,209 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ScheduleAnnouncementResponseCreateChannelOptions from './ScheduleAnnouncementResponseCreateChannelOptions'; -import ScheduleAnnouncementResponseMessage from './ScheduleAnnouncementResponseMessage'; - -/** - * The ScheduleAnnouncementResponse model module. - * @module model/ScheduleAnnouncementResponse - * @version 0.0.16 - */ -class ScheduleAnnouncementResponse { - /** - * Constructs a new ScheduleAnnouncementResponse. - * @alias module:model/ScheduleAnnouncementResponse - */ - constructor() { - - ScheduleAnnouncementResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ScheduleAnnouncementResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponse} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponse} The populated ScheduleAnnouncementResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponse(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ScheduleAnnouncementResponseMessage.constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = ScheduleAnnouncementResponseCreateChannelOptions.constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = ApiClient.convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = ApiClient.convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -ScheduleAnnouncementResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ScheduleAnnouncementResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ScheduleAnnouncementResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ScheduleAnnouncementResponse.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ScheduleAnnouncementResponse.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ScheduleAnnouncementResponse.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ScheduleAnnouncementResponse.prototype['target_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ScheduleAnnouncementResponse.prototype['target_channel_type'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ScheduleAnnouncementResponse.prototype['create_channel_options'] = undefined; - -/** - * @member {String} status - */ -ScheduleAnnouncementResponse.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ScheduleAnnouncementResponse.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ScheduleAnnouncementResponse.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ScheduleAnnouncementResponse.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ScheduleAnnouncementResponse.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ScheduleAnnouncementResponse.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ScheduleAnnouncementResponse.prototype['sent_channel_count'] = undefined; - -/** - * @member {Number} open_count - */ -ScheduleAnnouncementResponse.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ScheduleAnnouncementResponse.prototype['open_rate'] = undefined; - - - - - - -export default ScheduleAnnouncementResponse; - diff --git a/src/model/ScheduleAnnouncementResponseCreateChannelOptions.js b/src/model/ScheduleAnnouncementResponseCreateChannelOptions.js deleted file mode 100644 index 85e6c3d..0000000 --- a/src/model/ScheduleAnnouncementResponseCreateChannelOptions.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ScheduleAnnouncementResponseCreateChannelOptions model module. - * @module model/ScheduleAnnouncementResponseCreateChannelOptions - * @version 0.0.16 - */ -class ScheduleAnnouncementResponseCreateChannelOptions { - /** - * Constructs a new ScheduleAnnouncementResponseCreateChannelOptions. - * @alias module:model/ScheduleAnnouncementResponseCreateChannelOptions - */ - constructor() { - - ScheduleAnnouncementResponseCreateChannelOptions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ScheduleAnnouncementResponseCreateChannelOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponseCreateChannelOptions} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponseCreateChannelOptions} The populated ScheduleAnnouncementResponseCreateChannelOptions instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponseCreateChannelOptions(); - - if (data.hasOwnProperty('distinct')) { - obj['distinct'] = ApiClient.convertToType(data['distinct'], 'Boolean'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} distinct - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['distinct'] = undefined; - -/** - * @member {String} data - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['data'] = undefined; - -/** - * @member {String} name - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['name'] = undefined; - -/** - * @member {String} cover_url - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['cover_url'] = undefined; - -/** - * @member {String} custom_type - */ -ScheduleAnnouncementResponseCreateChannelOptions.prototype['custom_type'] = undefined; - - - - - - -export default ScheduleAnnouncementResponseCreateChannelOptions; - diff --git a/src/model/ScheduleAnnouncementResponseMessage.js b/src/model/ScheduleAnnouncementResponseMessage.js deleted file mode 100644 index 25f84f5..0000000 --- a/src/model/ScheduleAnnouncementResponseMessage.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ScheduleAnnouncementResponseMessage model module. - * @module model/ScheduleAnnouncementResponseMessage - * @version 0.0.16 - */ -class ScheduleAnnouncementResponseMessage { - /** - * Constructs a new ScheduleAnnouncementResponseMessage. - * @alias module:model/ScheduleAnnouncementResponseMessage - */ - constructor() { - - ScheduleAnnouncementResponseMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ScheduleAnnouncementResponseMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ScheduleAnnouncementResponseMessage} obj Optional instance to populate. - * @return {module:model/ScheduleAnnouncementResponseMessage} The populated ScheduleAnnouncementResponseMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ScheduleAnnouncementResponseMessage(); - - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} type - */ -ScheduleAnnouncementResponseMessage.prototype['type'] = undefined; - -/** - * @member {String} custom_type - */ -ScheduleAnnouncementResponseMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} user_id - */ -ScheduleAnnouncementResponseMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -ScheduleAnnouncementResponseMessage.prototype['content'] = undefined; - -/** - * @member {String} data - */ -ScheduleAnnouncementResponseMessage.prototype['data'] = undefined; - - - - - - -export default ScheduleAnnouncementResponseMessage; - diff --git a/src/model/SendABotMessageRequest.js b/src/model/SendABotMessageRequest.js new file mode 100644 index 0000000..2ed42a5 --- /dev/null +++ b/src/model/SendABotMessageRequest.js @@ -0,0 +1,148 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdExtendedMessagePayload from './SendbirdExtendedMessagePayload'; + +/** + * The SendABotMessageRequest model module. + * @module model/SendABotMessageRequest + * @version 2.0.0 + */ +class SendABotMessageRequest { + /** + * Constructs a new SendABotMessageRequest. + * @alias module:model/SendABotMessageRequest + * @param channelUrl {String} + * @param message {String} + */ + constructor(channelUrl, message) { + + SendABotMessageRequest.initialize(this, channelUrl, message); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl, message) { + obj['channel_url'] = channelUrl; + obj['message'] = message; + } + + /** + * Constructs a SendABotMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendABotMessageRequest} obj Optional instance to populate. + * @return {module:model/SendABotMessageRequest} The populated SendABotMessageRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendABotMessageRequest(); + + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('extended_message_payload')) { + obj['extended_message_payload'] = SendbirdExtendedMessagePayload.constructFromObject(data['extended_message_payload']); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mentioned')) { + obj['mentioned'] = ApiClient.convertToType(data['mentioned'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} channel_url + */ +SendABotMessageRequest.prototype['channel_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendABotMessageRequest.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendABotMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendABotMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendABotMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {module:model/SendbirdExtendedMessagePayload} extended_message_payload + */ +SendABotMessageRequest.prototype['extended_message_payload'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendABotMessageRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {Array.} mentioned + */ +SendABotMessageRequest.prototype['mentioned'] = undefined; + +/** + * @member {String} message + */ +SendABotMessageRequest.prototype['message'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendABotMessageRequest.prototype['send_push'] = undefined; + + + + + + +export default SendABotMessageRequest; + diff --git a/src/model/SendAMessageRequest.js b/src/model/SendAMessageRequest.js new file mode 100644 index 0000000..4667fde --- /dev/null +++ b/src/model/SendAMessageRequest.js @@ -0,0 +1,534 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendAdminMessageRequestBody from './SendAdminMessageRequestBody'; +import SendFileMessageRequestBody from './SendFileMessageRequestBody'; +import SendTextMessageRequestBody from './SendTextMessageRequestBody'; +import SendTextMessageRequestBodyPushMessageTemplate from './SendTextMessageRequestBodyPushMessageTemplate'; +import SendbirdFile from './SendbirdFile'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The SendAMessageRequest model module. + * @module model/SendAMessageRequest + * @version 2.0.0 + */ +class SendAMessageRequest { + /** + * Constructs a new SendAMessageRequest. + * @alias module:model/SendAMessageRequest + * @implements module:model/SendTextMessageRequestBody + * @implements module:model/SendFileMessageRequestBody + * @implements module:model/SendAdminMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendAMessageRequest.MessageTypeEnum} Specifies the type of the message. The value of ADMM represents an admin message. + * @param files {module:model/SendbirdFile} + */ + constructor(message, messageType, files) { + SendTextMessageRequestBody.initialize(this, message, messageType);SendFileMessageRequestBody.initialize(this, files, messageType);SendAdminMessageRequestBody.initialize(this, message, messageType); + SendAMessageRequest.initialize(this, message, messageType, files); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, message, messageType, files) { + obj['message'] = message; + obj['message_type'] = messageType; + obj['files'] = files; + } + + /** + * Constructs a SendAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendAMessageRequest} obj Optional instance to populate. + * @return {module:model/SendAMessageRequest} The populated SendAMessageRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendAMessageRequest(); + SendTextMessageRequestBody.constructFromObject(data, obj); + SendFileMessageRequestBody.constructFromObject(data, obj); + SendAdminMessageRequestBody.constructFromObject(data, obj); + + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = ApiClient.convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = ApiClient.convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('include_poll_details')) { + obj['include_poll_details'] = ApiClient.convertToType(data['include_poll_details'], 'Boolean'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = ApiClient.convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('poll_id')) { + obj['poll_id'] = ApiClient.convertToType(data['poll_id'], 'Number'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = SendTextMessageRequestBodyPushMessageTemplate.constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = ApiClient.convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = ApiClient.convertToType(data['volume'], 'Number'); + } + if (data.hasOwnProperty('files')) { + obj['files'] = SendbirdFile.constructFromObject(data['files']); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('thumbnail1')) { + obj['thumbnail1'] = ApiClient.convertToType(data['thumbnail1'], 'String'); + } + if (data.hasOwnProperty('thumbnail2')) { + obj['thumbnail2'] = ApiClient.convertToType(data['thumbnail2'], 'String'); + } + if (data.hasOwnProperty('thumbnail3')) { + obj['thumbnail3'] = ApiClient.convertToType(data['thumbnail3'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = ApiClient.convertToType(data['thumbnails'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} apns_bundle_id + */ +SendAMessageRequest.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendAMessageRequest.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendAMessageRequest.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendAMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendAMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendAMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} include_poll_details + */ +SendAMessageRequest.prototype['include_poll_details'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendAMessageRequest.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendAMessageRequest.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendAMessageRequest.MentionTypeEnum} mention_type + */ +SendAMessageRequest.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendAMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendAMessageRequest.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAMessageRequest.MessageTypeEnum} message_type + */ +SendAMessageRequest.prototype['message_type'] = undefined; + +/** + * @member {Number} poll_id + */ +SendAMessageRequest.prototype['poll_id'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendAMessageRequest.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendAMessageRequest.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendAMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendAMessageRequest.prototype['sound'] = undefined; + +/** + * @member {Number} volume + */ +SendAMessageRequest.prototype['volume'] = undefined; + +/** + * @member {module:model/SendbirdFile} files + */ +SendAMessageRequest.prototype['files'] = undefined; + +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +SendAMessageRequest.prototype['require_auth'] = undefined; + +/** + * @member {String} thumbnail1 + */ +SendAMessageRequest.prototype['thumbnail1'] = undefined; + +/** + * @member {String} thumbnail2 + */ +SendAMessageRequest.prototype['thumbnail2'] = undefined; + +/** + * @member {String} thumbnail3 + */ +SendAMessageRequest.prototype['thumbnail3'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendAMessageRequest.prototype['thumbnails'] = undefined; + + +// Implement SendTextMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +SendTextMessageRequestBody.prototype['apns_bundle_id'] = undefined; +/** + * @member {Object} apple_critical_alert_options + */ +SendTextMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; +/** + * @member {Number} created_at + */ +SendTextMessageRequestBody.prototype['created_at'] = undefined; +/** + * @member {String} custom_type + */ +SendTextMessageRequestBody.prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +SendTextMessageRequestBody.prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +SendTextMessageRequestBody.prototype['dedup_id'] = undefined; +/** + * @member {Boolean} include_poll_details + */ +SendTextMessageRequestBody.prototype['include_poll_details'] = undefined; +/** + * @member {Boolean} is_silent + */ +SendTextMessageRequestBody.prototype['is_silent'] = undefined; +/** + * @member {Boolean} mark_as_read + */ +SendTextMessageRequestBody.prototype['mark_as_read'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBody.MentionTypeEnum} mention_type + */ +SendTextMessageRequestBody.prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +SendTextMessageRequestBody.prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} message + */ +SendTextMessageRequestBody.prototype['message'] = undefined; +/** + * Specifies the type of the message. The value of MESG represents a text message. + * @member {module:model/SendTextMessageRequestBody.MessageTypeEnum} message_type + */ +SendTextMessageRequestBody.prototype['message_type'] = undefined; +/** + * @member {Number} poll_id + */ +SendTextMessageRequestBody.prototype['poll_id'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendTextMessageRequestBody.prototype['push_message_template'] = undefined; +/** + * @member {Boolean} send_push + */ +SendTextMessageRequestBody.prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +SendTextMessageRequestBody.prototype['sorted_metaarray'] = undefined; +/** + * @member {String} sound + */ +SendTextMessageRequestBody.prototype['sound'] = undefined; +/** + * @member {Number} volume + */ +SendTextMessageRequestBody.prototype['volume'] = undefined; +// Implement SendFileMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +SendFileMessageRequestBody.prototype['apns_bundle_id'] = undefined; +/** + * @member {Object} apple_critical_alert_options + */ +SendFileMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; +/** + * @member {Number} created_at + */ +SendFileMessageRequestBody.prototype['created_at'] = undefined; +/** + * @member {String} custom_type + */ +SendFileMessageRequestBody.prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +SendFileMessageRequestBody.prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +SendFileMessageRequestBody.prototype['dedup_id'] = undefined; +/** + * @member {module:model/SendbirdFile} files + */ +SendFileMessageRequestBody.prototype['files'] = undefined; +/** + * @member {Boolean} is_silent + */ +SendFileMessageRequestBody.prototype['is_silent'] = undefined; +/** + * @member {Boolean} mark_as_read + */ +SendFileMessageRequestBody.prototype['mark_as_read'] = undefined; +/** + * @member {module:model/SendFileMessageRequestBody.MentionTypeEnum} mention_type + */ +SendFileMessageRequestBody.prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +SendFileMessageRequestBody.prototype['mentioned_user_ids'] = undefined; +/** + * Specifies the type of the message. The value of FILE represents a file message. + * @member {module:model/SendFileMessageRequestBody.MessageTypeEnum} message_type + */ +SendFileMessageRequestBody.prototype['message_type'] = undefined; +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +SendFileMessageRequestBody.prototype['require_auth'] = undefined; +/** + * @member {Boolean} send_push + */ +SendFileMessageRequestBody.prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +SendFileMessageRequestBody.prototype['sorted_metaarray'] = undefined; +/** + * @member {String} sound + */ +SendFileMessageRequestBody.prototype['sound'] = undefined; +/** + * @member {String} thumbnail1 + */ +SendFileMessageRequestBody.prototype['thumbnail1'] = undefined; +/** + * @member {String} thumbnail2 + */ +SendFileMessageRequestBody.prototype['thumbnail2'] = undefined; +/** + * @member {String} thumbnail3 + */ +SendFileMessageRequestBody.prototype['thumbnail3'] = undefined; +/** + * @member {Array.} thumbnails + */ +SendFileMessageRequestBody.prototype['thumbnails'] = undefined; +/** + * @member {Number} volume + */ +SendFileMessageRequestBody.prototype['volume'] = undefined; +// Implement SendAdminMessageRequestBody interface: +/** + * @member {String} apns_bundle_id + */ +SendAdminMessageRequestBody.prototype['apns_bundle_id'] = undefined; +/** + * @member {String} custom_type + */ +SendAdminMessageRequestBody.prototype['custom_type'] = undefined; +/** + * @member {String} data + */ +SendAdminMessageRequestBody.prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +SendAdminMessageRequestBody.prototype['dedup_id'] = undefined; +/** + * @member {Boolean} is_silent + */ +SendAdminMessageRequestBody.prototype['is_silent'] = undefined; +/** + * @member {module:model/SendAdminMessageRequestBody.MentionTypeEnum} mention_type + */ +SendAdminMessageRequestBody.prototype['mention_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +SendAdminMessageRequestBody.prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} message + */ +SendAdminMessageRequestBody.prototype['message'] = undefined; +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAdminMessageRequestBody.MessageTypeEnum} message_type + */ +SendAdminMessageRequestBody.prototype['message_type'] = undefined; +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendAdminMessageRequestBody.prototype['push_message_template'] = undefined; +/** + * @member {Boolean} send_push + */ +SendAdminMessageRequestBody.prototype['send_push'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +SendAdminMessageRequestBody.prototype['sorted_metaarray'] = undefined; + + + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendAMessageRequest['MentionTypeEnum'] = { + + /** + * value: "users" + * @const + */ + "users": "users", + + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendAMessageRequest['MessageTypeEnum'] = { + + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; + + + +export default SendAMessageRequest; + diff --git a/src/model/SendAdminMessageRequestBody.js b/src/model/SendAdminMessageRequestBody.js new file mode 100644 index 0000000..91ed026 --- /dev/null +++ b/src/model/SendAdminMessageRequestBody.js @@ -0,0 +1,202 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendTextMessageRequestBodyPushMessageTemplate from './SendTextMessageRequestBodyPushMessageTemplate'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The SendAdminMessageRequestBody model module. + * @module model/SendAdminMessageRequestBody + * @version 2.0.0 + */ +class SendAdminMessageRequestBody { + /** + * Constructs a new SendAdminMessageRequestBody. + * @alias module:model/SendAdminMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendAdminMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of ADMM represents an admin message. + */ + constructor(message, messageType) { + + SendAdminMessageRequestBody.initialize(this, message, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, message, messageType) { + obj['message'] = message; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendAdminMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendAdminMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendAdminMessageRequestBody} The populated SendAdminMessageRequestBody instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendAdminMessageRequestBody(); + + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = ApiClient.convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = ApiClient.convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = SendTextMessageRequestBodyPushMessageTemplate.constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + } + return obj; + } + + +} + +/** + * @member {String} apns_bundle_id + */ +SendAdminMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {String} custom_type + */ +SendAdminMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendAdminMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendAdminMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendAdminMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {module:model/SendAdminMessageRequestBody.MentionTypeEnum} mention_type + */ +SendAdminMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendAdminMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendAdminMessageRequestBody.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of ADMM represents an admin message. + * @member {module:model/SendAdminMessageRequestBody.MessageTypeEnum} message_type + */ +SendAdminMessageRequestBody.prototype['message_type'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendAdminMessageRequestBody.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendAdminMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendAdminMessageRequestBody.prototype['sorted_metaarray'] = undefined; + + + + + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendAdminMessageRequestBody['MentionTypeEnum'] = { + + /** + * value: "users" + * @const + */ + "users": "users", + + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendAdminMessageRequestBody['MessageTypeEnum'] = { + + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; + + + +export default SendAdminMessageRequestBody; + diff --git a/src/model/SendBirdAdminMessage.js b/src/model/SendBirdAdminMessage.js deleted file mode 100644 index 3c83db0..0000000 --- a/src/model/SendBirdAdminMessage.js +++ /dev/null @@ -1,329 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SBObject from './SBObject'; -import SendBirdAppleCriticalAlertOptions from './SendBirdAppleCriticalAlertOptions'; -import SendBirdMessageMetaArray from './SendBirdMessageMetaArray'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdOGMetaData from './SendBirdOGMetaData'; -import SendBirdReaction from './SendBirdReaction'; -import SendBirdThreadInfo from './SendBirdThreadInfo'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdAdminMessage model module. - * @module model/SendBirdAdminMessage - * @version 0.0.16 - */ -class SendBirdAdminMessage { - /** - * Constructs a new SendBirdAdminMessage. - * @alias module:model/SendBirdAdminMessage - */ - constructor() { - - SendBirdAdminMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdAdminMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAdminMessage} obj Optional instance to populate. - * @return {module:model/SendBirdAdminMessage} The populated SendBirdAdminMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAdminMessage(); - - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = SendBirdAppleCriticalAlertOptions.constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdUser]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('meta_array')) { - obj['meta_array'] = SBObject.constructFromObject(data['meta_array']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = ApiClient.convertToType(data['meta_arrays'], [SendBirdMessageMetaArray]); - } - if (data.hasOwnProperty('og_meta_data')) { - obj['og_meta_data'] = SendBirdOGMetaData.constructFromObject(data['og_meta_data']); - } - if (data.hasOwnProperty('parent_message')) { - obj['parent_message'] = SendBirdMessageResponse.constructFromObject(data['parent_message']); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_text')) { - obj['parent_message_text'] = ApiClient.convertToType(data['parent_message_text'], 'String'); - } - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = ApiClient.convertToType(data['reactions'], [SendBirdReaction]); - } - if (data.hasOwnProperty('sending_status')) { - obj['sending_status'] = ApiClient.convertToType(data['sending_status'], 'String'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = SendBirdThreadInfo.constructFromObject(data['thread_info']); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = SBObject.constructFromObject(data['translations']); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdAdminMessage.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdAdminMessage.prototype['channel_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdAdminMessage.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdAdminMessage.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdAdminMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdAdminMessage.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdAdminMessage.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdAdminMessage.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdAdminMessage.prototype['mentioned_users'] = undefined; - -/** - * @member {String} message - */ -SendBirdAdminMessage.prototype['message'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdAdminMessage.prototype['message_id'] = undefined; - -/** - * @member {module:model/SendBirdAdminMessage.MessageTypeEnum} message_type - */ -SendBirdAdminMessage.prototype['message_type'] = undefined; - -/** - * @member {module:model/SBObject} meta_array - */ -SendBirdAdminMessage.prototype['meta_array'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdAdminMessage.prototype['meta_arrays'] = undefined; - -/** - * @member {module:model/SendBirdOGMetaData} og_meta_data - */ -SendBirdAdminMessage.prototype['og_meta_data'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} parent_message - */ -SendBirdAdminMessage.prototype['parent_message'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdAdminMessage.prototype['parent_message_id'] = undefined; - -/** - * @member {String} parent_message_text - */ -SendBirdAdminMessage.prototype['parent_message_text'] = undefined; - -/** - * @member {Array.} reactions - */ -SendBirdAdminMessage.prototype['reactions'] = undefined; - -/** - * @member {module:model/SendBirdAdminMessage.SendingStatusEnum} sending_status - */ -SendBirdAdminMessage.prototype['sending_status'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdAdminMessage.prototype['silent'] = undefined; - -/** - * @member {module:model/SendBirdThreadInfo} thread_info - */ -SendBirdAdminMessage.prototype['thread_info'] = undefined; - -/** - * @member {module:model/SBObject} translations - */ -SendBirdAdminMessage.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdAdminMessage.prototype['updated_at'] = undefined; - - - - - -/** - * Allowed values for the message_type property. - * @enum {String} - * @readonly - */ -SendBirdAdminMessage['MessageTypeEnum'] = { - - /** - * value: "MESG" - * @const - */ - "MESG": "MESG", - - /** - * value: "ADMM" - * @const - */ - "ADMM": "ADMM", - - /** - * value: "FILE" - * @const - */ - "FILE": "FILE" -}; - - -/** - * Allowed values for the sending_status property. - * @enum {String} - * @readonly - */ -SendBirdAdminMessage['SendingStatusEnum'] = { - - /** - * value: "canceled" - * @const - */ - "canceled": "canceled", - - /** - * value: "failed" - * @const - */ - "failed": "failed", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "pending" - * @const - */ - "pending": "pending", - - /** - * value: "succeeded" - * @const - */ - "succeeded": "succeeded" -}; - - - -export default SendBirdAdminMessage; - diff --git a/src/model/SendBirdAppleCriticalAlertOptions.js b/src/model/SendBirdAppleCriticalAlertOptions.js deleted file mode 100644 index b7f5fa4..0000000 --- a/src/model/SendBirdAppleCriticalAlertOptions.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdAppleCriticalAlertOptions model module. - * @module model/SendBirdAppleCriticalAlertOptions - * @version 0.0.16 - */ -class SendBirdAppleCriticalAlertOptions { - /** - * Constructs a new SendBirdAppleCriticalAlertOptions. - * @alias module:model/SendBirdAppleCriticalAlertOptions - */ - constructor() { - - SendBirdAppleCriticalAlertOptions.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdAppleCriticalAlertOptions from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAppleCriticalAlertOptions} obj Optional instance to populate. - * @return {module:model/SendBirdAppleCriticalAlertOptions} The populated SendBirdAppleCriticalAlertOptions instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAppleCriticalAlertOptions(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = ApiClient.convertToType(data['volume'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} name - */ -SendBirdAppleCriticalAlertOptions.prototype['name'] = undefined; - -/** - * @member {Number} volume - */ -SendBirdAppleCriticalAlertOptions.prototype['volume'] = undefined; - - - - - - -export default SendBirdAppleCriticalAlertOptions; - diff --git a/src/model/SendBirdAutoEventMessageSettings.js b/src/model/SendBirdAutoEventMessageSettings.js deleted file mode 100644 index 1a48fd1..0000000 --- a/src/model/SendBirdAutoEventMessageSettings.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ConfigureAutoEventDataAutoEventMessage from './ConfigureAutoEventDataAutoEventMessage'; - -/** - * The SendBirdAutoEventMessageSettings model module. - * @module model/SendBirdAutoEventMessageSettings - * @version 0.0.16 - */ -class SendBirdAutoEventMessageSettings { - /** - * Constructs a new SendBirdAutoEventMessageSettings. - * @alias module:model/SendBirdAutoEventMessageSettings - */ - constructor() { - - SendBirdAutoEventMessageSettings.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdAutoEventMessageSettings from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdAutoEventMessageSettings} obj Optional instance to populate. - * @return {module:model/SendBirdAutoEventMessageSettings} The populated SendBirdAutoEventMessageSettings instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdAutoEventMessageSettings(); - - if (data.hasOwnProperty('auto_event_message')) { - obj['auto_event_message'] = ConfigureAutoEventDataAutoEventMessage.constructFromObject(data['auto_event_message']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/ConfigureAutoEventDataAutoEventMessage} auto_event_message - */ -SendBirdAutoEventMessageSettings.prototype['auto_event_message'] = undefined; - - - - - - -export default SendBirdAutoEventMessageSettings; - diff --git a/src/model/SendBirdBaseChannel.js b/src/model/SendBirdBaseChannel.js deleted file mode 100644 index 962b9da..0000000 --- a/src/model/SendBirdBaseChannel.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdBaseChannel model module. - * @module model/SendBirdBaseChannel - * @version 0.0.16 - */ -class SendBirdBaseChannel { - /** - * Constructs a new SendBirdBaseChannel. - * @alias module:model/SendBirdBaseChannel - */ - constructor() { - - SendBirdBaseChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdBaseChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdBaseChannel} obj Optional instance to populate. - * @return {module:model/SendBirdBaseChannel} The populated SendBirdBaseChannel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdBaseChannel(); - - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = SendBirdUser.constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = ApiClient.convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} cover_url - */ -SendBirdBaseChannel.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdBaseChannel.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdBaseChannel.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdBaseChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdBaseChannel.prototype['data'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdBaseChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdBaseChannel.prototype['is_frozen'] = undefined; - -/** - * @member {String} name - */ -SendBirdBaseChannel.prototype['name'] = undefined; - -/** - * @member {String} url - */ -SendBirdBaseChannel.prototype['url'] = undefined; - - - - - - -export default SendBirdBaseChannel; - diff --git a/src/model/SendBirdBaseMessageInstance.js b/src/model/SendBirdBaseMessageInstance.js deleted file mode 100644 index c3b03bc..0000000 --- a/src/model/SendBirdBaseMessageInstance.js +++ /dev/null @@ -1,320 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SBObject from './SBObject'; -import SendBirdAppleCriticalAlertOptions from './SendBirdAppleCriticalAlertOptions'; -import SendBirdMessageMetaArray from './SendBirdMessageMetaArray'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdOGMetaData from './SendBirdOGMetaData'; -import SendBirdReaction from './SendBirdReaction'; -import SendBirdThreadInfo from './SendBirdThreadInfo'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdBaseMessageInstance model module. - * @module model/SendBirdBaseMessageInstance - * @version 0.0.16 - */ -class SendBirdBaseMessageInstance { - /** - * Constructs a new SendBirdBaseMessageInstance. - * Message - * @alias module:model/SendBirdBaseMessageInstance - */ - constructor() { - - SendBirdBaseMessageInstance.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdBaseMessageInstance from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdBaseMessageInstance} obj Optional instance to populate. - * @return {module:model/SendBirdBaseMessageInstance} The populated SendBirdBaseMessageInstance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdBaseMessageInstance(); - - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = SendBirdAppleCriticalAlertOptions.constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdUser]); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('meta_array')) { - obj['meta_array'] = SBObject.constructFromObject(data['meta_array']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = ApiClient.convertToType(data['meta_arrays'], [SendBirdMessageMetaArray]); - } - if (data.hasOwnProperty('og_meta_data')) { - obj['og_meta_data'] = SendBirdOGMetaData.constructFromObject(data['og_meta_data']); - } - if (data.hasOwnProperty('parent_message')) { - obj['parent_message'] = SendBirdMessageResponse.constructFromObject(data['parent_message']); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_text')) { - obj['parent_message_text'] = ApiClient.convertToType(data['parent_message_text'], 'String'); - } - if (data.hasOwnProperty('reactions')) { - obj['reactions'] = ApiClient.convertToType(data['reactions'], [SendBirdReaction]); - } - if (data.hasOwnProperty('sending_status')) { - obj['sending_status'] = ApiClient.convertToType(data['sending_status'], 'String'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = SendBirdThreadInfo.constructFromObject(data['thread_info']); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdBaseMessageInstance.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdBaseMessageInstance.prototype['channel_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdBaseMessageInstance.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdBaseMessageInstance.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdBaseMessageInstance.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdBaseMessageInstance.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdBaseMessageInstance.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdBaseMessageInstance.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdBaseMessageInstance.prototype['mentioned_users'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdBaseMessageInstance.prototype['message_id'] = undefined; - -/** - * @member {module:model/SendBirdBaseMessageInstance.MessageTypeEnum} message_type - */ -SendBirdBaseMessageInstance.prototype['message_type'] = undefined; - -/** - * @member {module:model/SBObject} meta_array - */ -SendBirdBaseMessageInstance.prototype['meta_array'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdBaseMessageInstance.prototype['meta_arrays'] = undefined; - -/** - * @member {module:model/SendBirdOGMetaData} og_meta_data - */ -SendBirdBaseMessageInstance.prototype['og_meta_data'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponse} parent_message - */ -SendBirdBaseMessageInstance.prototype['parent_message'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdBaseMessageInstance.prototype['parent_message_id'] = undefined; - -/** - * @member {String} parent_message_text - */ -SendBirdBaseMessageInstance.prototype['parent_message_text'] = undefined; - -/** - * @member {Array.} reactions - */ -SendBirdBaseMessageInstance.prototype['reactions'] = undefined; - -/** - * @member {module:model/SendBirdBaseMessageInstance.SendingStatusEnum} sending_status - */ -SendBirdBaseMessageInstance.prototype['sending_status'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdBaseMessageInstance.prototype['silent'] = undefined; - -/** - * @member {module:model/SendBirdThreadInfo} thread_info - */ -SendBirdBaseMessageInstance.prototype['thread_info'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdBaseMessageInstance.prototype['updated_at'] = undefined; - - - - - -/** - * Allowed values for the message_type property. - * @enum {String} - * @readonly - */ -SendBirdBaseMessageInstance['MessageTypeEnum'] = { - - /** - * value: "admin" - * @const - */ - "admin": "admin", - - /** - * value: "base" - * @const - */ - "base": "base", - - /** - * value: "file" - * @const - */ - "file": "file", - - /** - * value: "user" - * @const - */ - "user": "user" -}; - - -/** - * Allowed values for the sending_status property. - * @enum {String} - * @readonly - */ -SendBirdBaseMessageInstance['SendingStatusEnum'] = { - - /** - * value: "canceled" - * @const - */ - "canceled": "canceled", - - /** - * value: "failed" - * @const - */ - "failed": "failed", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "pending" - * @const - */ - "pending": "pending", - - /** - * value: "succeeded" - * @const - */ - "succeeded": "succeeded" -}; - - - -export default SendBirdBaseMessageInstance; - diff --git a/src/model/SendBirdChannelResponse.js b/src/model/SendBirdChannelResponse.js deleted file mode 100644 index 9b7874b..0000000 --- a/src/model/SendBirdChannelResponse.js +++ /dev/null @@ -1,814 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdGroupChannel from './SendBirdGroupChannel'; -import SendBirdGroupChannelChannel from './SendBirdGroupChannelChannel'; -import SendBirdGroupChannelCreatedBy from './SendBirdGroupChannelCreatedBy'; -import SendBirdGroupChannelDisappearingMessage from './SendBirdGroupChannelDisappearingMessage'; -import SendBirdGroupChannelInviter from './SendBirdGroupChannelInviter'; -import SendBirdGroupChannelLastMessage from './SendBirdGroupChannelLastMessage'; -import SendBirdGroupChannelSmsFallback from './SendBirdGroupChannelSmsFallback'; -import SendBirdMember from './SendBirdMember'; -import SendBirdOpenChannel from './SendBirdOpenChannel'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdChannelResponse model module. - * @module model/SendBirdChannelResponse - * @version 0.0.16 - */ -class SendBirdChannelResponse { - /** - * Constructs a new SendBirdChannelResponse. - * @alias module:model/SendBirdChannelResponse - * @implements module:model/SendBirdGroupChannel - * @implements module:model/SendBirdOpenChannel - */ - constructor() { - SendBirdGroupChannel.initialize(this);SendBirdOpenChannel.initialize(this); - SendBirdChannelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdChannelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdChannelResponse} obj Optional instance to populate. - * @return {module:model/SendBirdChannelResponse} The populated SendBirdChannelResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdChannelResponse(); - SendBirdGroupChannel.constructFromObject(data, obj); - SendBirdOpenChannel.constructFromObject(data, obj); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = SendBirdGroupChannelCreatedBy.constructFromObject(data['created_by']); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = SendBirdUser.constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('disappearing_message')) { - obj['disappearing_message'] = SendBirdGroupChannelDisappearingMessage.constructFromObject(data['disappearing_message']); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); - } - if (data.hasOwnProperty('ignore_profanity_filter')) { - obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); - } - if (data.hasOwnProperty('hidden_state')) { - obj['hidden_state'] = ApiClient.convertToType(data['hidden_state'], 'String'); - } - if (data.hasOwnProperty('invited_at')) { - obj['invited_at'] = ApiClient.convertToType(data['invited_at'], 'Number'); - } - if (data.hasOwnProperty('inviter')) { - obj['inviter'] = SendBirdGroupChannelInviter.constructFromObject(data['inviter']); - } - if (data.hasOwnProperty('is_access_code_required')) { - obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); - } - if (data.hasOwnProperty('is_broadcast')) { - obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = ApiClient.convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('is_discoverable')) { - obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = ApiClient.convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('is_hidden')) { - obj['is_hidden'] = ApiClient.convertToType(data['is_hidden'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_push_enabled')) { - obj['is_push_enabled'] = ApiClient.convertToType(data['is_push_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('joined_at')) { - obj['joined_at'] = ApiClient.convertToType(data['joined_at'], 'Number'); - } - if (data.hasOwnProperty('joined_member_count')) { - obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); - } - if (data.hasOwnProperty('last_message')) { - obj['last_message'] = SendBirdGroupChannelLastMessage.constructFromObject(data['last_message']); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); - } - if (data.hasOwnProperty('members')) { - obj['members'] = ApiClient.convertToType(data['members'], [SendBirdMember]); - } - if (data.hasOwnProperty('message_offset_timestamp')) { - obj['message_offset_timestamp'] = ApiClient.convertToType(data['message_offset_timestamp'], 'Number'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('my_count_preference')) { - obj['my_count_preference'] = ApiClient.convertToType(data['my_count_preference'], 'String'); - } - if (data.hasOwnProperty('my_last_read')) { - obj['my_last_read'] = ApiClient.convertToType(data['my_last_read'], 'Number'); - } - if (data.hasOwnProperty('my_member_state')) { - obj['my_member_state'] = ApiClient.convertToType(data['my_member_state'], 'String'); - } - if (data.hasOwnProperty('my_muted_state')) { - obj['my_muted_state'] = ApiClient.convertToType(data['my_muted_state'], 'String'); - } - if (data.hasOwnProperty('my_push_trigger_option')) { - obj['my_push_trigger_option'] = ApiClient.convertToType(data['my_push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('my_role')) { - obj['my_role'] = ApiClient.convertToType(data['my_role'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], [SendBirdUser]); - } - if (data.hasOwnProperty('sms_fallback')) { - obj['sms_fallback'] = SendBirdGroupChannelSmsFallback.constructFromObject(data['sms_fallback']); - } - if (data.hasOwnProperty('unread_mention_count')) { - obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('unread_message_count')) { - obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdGroupChannelChannel.constructFromObject(data['channel']); - } - if (data.hasOwnProperty('is_dynamic_partitioned')) { - obj['is_dynamic_partitioned'] = ApiClient.convertToType(data['is_dynamic_partitioned'], 'Boolean'); - } - if (data.hasOwnProperty('participant_count')) { - obj['participant_count'] = ApiClient.convertToType(data['participant_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} channel_url - */ -SendBirdChannelResponse.prototype['channel_url'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdChannelResponse.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdChannelResponse.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -SendBirdChannelResponse.prototype['created_by'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdChannelResponse.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdChannelResponse.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdChannelResponse.prototype['data'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -SendBirdChannelResponse.prototype['disappearing_message'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdChannelResponse.prototype['freeze'] = undefined; - -/** - * @member {Boolean} ignore_profanity_filter - */ -SendBirdChannelResponse.prototype['ignore_profanity_filter'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.HiddenStateEnum} hidden_state - */ -SendBirdChannelResponse.prototype['hidden_state'] = undefined; - -/** - * @member {Number} invited_at - */ -SendBirdChannelResponse.prototype['invited_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -SendBirdChannelResponse.prototype['inviter'] = undefined; - -/** - * @member {Boolean} is_access_code_required - */ -SendBirdChannelResponse.prototype['is_access_code_required'] = undefined; - -/** - * @member {Boolean} is_broadcast - */ -SendBirdChannelResponse.prototype['is_broadcast'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdChannelResponse.prototype['is_created'] = undefined; - -/** - * @member {Boolean} is_discoverable - */ -SendBirdChannelResponse.prototype['is_discoverable'] = undefined; - -/** - * @member {Boolean} is_distinct - */ -SendBirdChannelResponse.prototype['is_distinct'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdChannelResponse.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdChannelResponse.prototype['is_frozen'] = undefined; - -/** - * @member {Boolean} is_hidden - */ -SendBirdChannelResponse.prototype['is_hidden'] = undefined; - -/** - * @member {Boolean} is_public - */ -SendBirdChannelResponse.prototype['is_public'] = undefined; - -/** - * @member {Boolean} is_push_enabled - */ -SendBirdChannelResponse.prototype['is_push_enabled'] = undefined; - -/** - * @member {Boolean} is_super - */ -SendBirdChannelResponse.prototype['is_super'] = undefined; - -/** - * @member {Number} joined_at - */ -SendBirdChannelResponse.prototype['joined_at'] = undefined; - -/** - * @member {Number} joined_member_count - */ -SendBirdChannelResponse.prototype['joined_member_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -SendBirdChannelResponse.prototype['last_message'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdChannelResponse.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdChannelResponse.prototype['member_count'] = undefined; - -/** - * @member {Array.} members - */ -SendBirdChannelResponse.prototype['members'] = undefined; - -/** - * @member {Number} message_offset_timestamp - */ -SendBirdChannelResponse.prototype['message_offset_timestamp'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdChannelResponse.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} my_count_preference - */ -SendBirdChannelResponse.prototype['my_count_preference'] = undefined; - -/** - * @member {Number} my_last_read - */ -SendBirdChannelResponse.prototype['my_last_read'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyMemberStateEnum} my_member_state - */ -SendBirdChannelResponse.prototype['my_member_state'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyMutedStateEnum} my_muted_state - */ -SendBirdChannelResponse.prototype['my_muted_state'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyPushTriggerOptionEnum} my_push_trigger_option - */ -SendBirdChannelResponse.prototype['my_push_trigger_option'] = undefined; - -/** - * @member {module:model/SendBirdChannelResponse.MyRoleEnum} my_role - */ -SendBirdChannelResponse.prototype['my_role'] = undefined; - -/** - * @member {String} name - */ -SendBirdChannelResponse.prototype['name'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdChannelResponse.prototype['operators'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -SendBirdChannelResponse.prototype['sms_fallback'] = undefined; - -/** - * @member {Number} unread_mention_count - */ -SendBirdChannelResponse.prototype['unread_mention_count'] = undefined; - -/** - * @member {Number} unread_message_count - */ -SendBirdChannelResponse.prototype['unread_message_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -SendBirdChannelResponse.prototype['channel'] = undefined; - -/** - * @member {Boolean} is_dynamic_partitioned - */ -SendBirdChannelResponse.prototype['is_dynamic_partitioned'] = undefined; - -/** - * @member {Number} participant_count - */ -SendBirdChannelResponse.prototype['participant_count'] = undefined; - - -// Implement SendBirdGroupChannel interface: -/** - * @member {String} channel_url - */ -SendBirdGroupChannel.prototype['channel_url'] = undefined; -/** - * @member {String} cover_url - */ -SendBirdGroupChannel.prototype['cover_url'] = undefined; -/** - * @member {Number} created_at - */ -SendBirdGroupChannel.prototype['created_at'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -SendBirdGroupChannel.prototype['created_by'] = undefined; -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdGroupChannel.prototype['creator'] = undefined; -/** - * @member {String} custom_type - */ -SendBirdGroupChannel.prototype['custom_type'] = undefined; -/** - * @member {String} data - */ -SendBirdGroupChannel.prototype['data'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -SendBirdGroupChannel.prototype['disappearing_message'] = undefined; -/** - * @member {Boolean} freeze - */ -SendBirdGroupChannel.prototype['freeze'] = undefined; -/** - * @member {Boolean} ignore_profanity_filter - */ -SendBirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.HiddenStateEnum} hidden_state - */ -SendBirdGroupChannel.prototype['hidden_state'] = undefined; -/** - * @member {Number} invited_at - */ -SendBirdGroupChannel.prototype['invited_at'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -SendBirdGroupChannel.prototype['inviter'] = undefined; -/** - * @member {Boolean} is_access_code_required - */ -SendBirdGroupChannel.prototype['is_access_code_required'] = undefined; -/** - * @member {Boolean} is_broadcast - */ -SendBirdGroupChannel.prototype['is_broadcast'] = undefined; -/** - * @member {Boolean} is_created - */ -SendBirdGroupChannel.prototype['is_created'] = undefined; -/** - * @member {Boolean} is_discoverable - */ -SendBirdGroupChannel.prototype['is_discoverable'] = undefined; -/** - * @member {Boolean} is_distinct - */ -SendBirdGroupChannel.prototype['is_distinct'] = undefined; -/** - * @member {Boolean} is_ephemeral - */ -SendBirdGroupChannel.prototype['is_ephemeral'] = undefined; -/** - * @member {Boolean} is_frozen - */ -SendBirdGroupChannel.prototype['is_frozen'] = undefined; -/** - * @member {Boolean} is_hidden - */ -SendBirdGroupChannel.prototype['is_hidden'] = undefined; -/** - * @member {Boolean} is_public - */ -SendBirdGroupChannel.prototype['is_public'] = undefined; -/** - * @member {Boolean} is_push_enabled - */ -SendBirdGroupChannel.prototype['is_push_enabled'] = undefined; -/** - * @member {Boolean} is_super - */ -SendBirdGroupChannel.prototype['is_super'] = undefined; -/** - * @member {Number} joined_at - */ -SendBirdGroupChannel.prototype['joined_at'] = undefined; -/** - * @member {Number} joined_member_count - */ -SendBirdGroupChannel.prototype['joined_member_count'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -SendBirdGroupChannel.prototype['last_message'] = undefined; -/** - * @member {Number} max_length_message - */ -SendBirdGroupChannel.prototype['max_length_message'] = undefined; -/** - * @member {Number} member_count - */ -SendBirdGroupChannel.prototype['member_count'] = undefined; -/** - * @member {Array.} members - */ -SendBirdGroupChannel.prototype['members'] = undefined; -/** - * @member {Number} message_offset_timestamp - */ -SendBirdGroupChannel.prototype['message_offset_timestamp'] = undefined; -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannel.prototype['message_survival_seconds'] = undefined; -/** - * @member {String} my_count_preference - */ -SendBirdGroupChannel.prototype['my_count_preference'] = undefined; -/** - * @member {Number} my_last_read - */ -SendBirdGroupChannel.prototype['my_last_read'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyMemberStateEnum} my_member_state - */ -SendBirdGroupChannel.prototype['my_member_state'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyMutedStateEnum} my_muted_state - */ -SendBirdGroupChannel.prototype['my_muted_state'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyPushTriggerOptionEnum} my_push_trigger_option - */ -SendBirdGroupChannel.prototype['my_push_trigger_option'] = undefined; -/** - * @member {module:model/SendBirdGroupChannel.MyRoleEnum} my_role - */ -SendBirdGroupChannel.prototype['my_role'] = undefined; -/** - * @member {String} name - */ -SendBirdGroupChannel.prototype['name'] = undefined; -/** - * @member {Array.} operators - */ -SendBirdGroupChannel.prototype['operators'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -SendBirdGroupChannel.prototype['sms_fallback'] = undefined; -/** - * @member {Number} unread_mention_count - */ -SendBirdGroupChannel.prototype['unread_mention_count'] = undefined; -/** - * @member {Number} unread_message_count - */ -SendBirdGroupChannel.prototype['unread_message_count'] = undefined; -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -SendBirdGroupChannel.prototype['channel'] = undefined; -// Implement SendBirdOpenChannel interface: -/** - * @member {String} name - */ -SendBirdOpenChannel.prototype['name'] = undefined; -/** - * @member {String} custom_type - */ -SendBirdOpenChannel.prototype['custom_type'] = undefined; -/** - * @member {String} channel_url - */ -SendBirdOpenChannel.prototype['channel_url'] = undefined; -/** - * @member {Number} created_at - */ -SendBirdOpenChannel.prototype['created_at'] = undefined; -/** - * @member {String} cover_url - */ -SendBirdOpenChannel.prototype['cover_url'] = undefined; -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdOpenChannel.prototype['creator'] = undefined; -/** - * @member {String} data - */ -SendBirdOpenChannel.prototype['data'] = undefined; -/** - * @member {Boolean} is_dynamic_partitioned - */ -SendBirdOpenChannel.prototype['is_dynamic_partitioned'] = undefined; -/** - * @member {Boolean} is_ephemeral - */ -SendBirdOpenChannel.prototype['is_ephemeral'] = undefined; -/** - * @member {Boolean} is_frozen - */ -SendBirdOpenChannel.prototype['is_frozen'] = undefined; -/** - * @member {Number} max_length_message - */ -SendBirdOpenChannel.prototype['max_length_message'] = undefined; -/** - * @member {Array.} operators - */ -SendBirdOpenChannel.prototype['operators'] = undefined; -/** - * @member {Number} participant_count - */ -SendBirdOpenChannel.prototype['participant_count'] = undefined; -/** - * @member {Boolean} freeze - */ -SendBirdOpenChannel.prototype['freeze'] = undefined; - - - -/** - * Allowed values for the hidden_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['HiddenStateEnum'] = { - - /** - * value: "hidden_allow_auto_unhide" - * @const - */ - "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", - - /** - * value: "hidden_prevent_auto_unhide" - * @const - */ - "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", - - /** - * value: "unhidden" - * @const - */ - "unhidden": "unhidden" -}; - - -/** - * Allowed values for the my_member_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyMemberStateEnum'] = { - - /** - * value: "invited" - * @const - */ - "invited": "invited", - - /** - * value: "joined" - * @const - */ - "joined": "joined", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - -/** - * Allowed values for the my_muted_state property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyMutedStateEnum'] = { - - /** - * value: "muted" - * @const - */ - "muted": "muted", - - /** - * value: "unmuted" - * @const - */ - "unmuted": "unmuted" -}; - - -/** - * Allowed values for the my_push_trigger_option property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyPushTriggerOptionEnum'] = { - - /** - * value: "all" - * @const - */ - "all": "all", - - /** - * value: "default" - * @const - */ - "default": "default", - - /** - * value: "mention_only" - * @const - */ - "mention_only": "mention_only", - - /** - * value: "false" - * @const - */ - "false": "false" -}; - - -/** - * Allowed values for the my_role property. - * @enum {String} - * @readonly - */ -SendBirdChannelResponse['MyRoleEnum'] = { - - /** - * value: "" - * @const - */ - "empty": "", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; - - - -export default SendBirdChannelResponse; - diff --git a/src/model/SendBirdEmoji.js b/src/model/SendBirdEmoji.js deleted file mode 100644 index 938171a..0000000 --- a/src/model/SendBirdEmoji.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdEmoji model module. - * @module model/SendBirdEmoji - * @version 0.0.16 - */ -class SendBirdEmoji { - /** - * Constructs a new SendBirdEmoji. - * @alias module:model/SendBirdEmoji - */ - constructor() { - - SendBirdEmoji.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdEmoji from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdEmoji} obj Optional instance to populate. - * @return {module:model/SendBirdEmoji} The populated SendBirdEmoji instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdEmoji(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} key - */ -SendBirdEmoji.prototype['key'] = undefined; - -/** - * @member {String} url - */ -SendBirdEmoji.prototype['url'] = undefined; - - - - - - -export default SendBirdEmoji; - diff --git a/src/model/SendBirdEmojiCategory.js b/src/model/SendBirdEmojiCategory.js deleted file mode 100644 index b62462e..0000000 --- a/src/model/SendBirdEmojiCategory.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdEmoji from './SendBirdEmoji'; - -/** - * The SendBirdEmojiCategory model module. - * @module model/SendBirdEmojiCategory - * @version 0.0.16 - */ -class SendBirdEmojiCategory { - /** - * Constructs a new SendBirdEmojiCategory. - * @alias module:model/SendBirdEmojiCategory - */ - constructor() { - - SendBirdEmojiCategory.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdEmojiCategory from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdEmojiCategory} obj Optional instance to populate. - * @return {module:model/SendBirdEmojiCategory} The populated SendBirdEmojiCategory instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdEmojiCategory(); - - if (data.hasOwnProperty('emojis')) { - obj['emojis'] = ApiClient.convertToType(data['emojis'], [SendBirdEmoji]); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} emojis - */ -SendBirdEmojiCategory.prototype['emojis'] = undefined; - -/** - * @member {Number} id - */ -SendBirdEmojiCategory.prototype['id'] = undefined; - -/** - * @member {String} name - */ -SendBirdEmojiCategory.prototype['name'] = undefined; - -/** - * @member {String} url - */ -SendBirdEmojiCategory.prototype['url'] = undefined; - - - - - - -export default SendBirdEmojiCategory; - diff --git a/src/model/SendBirdFileMessageParams.js b/src/model/SendBirdFileMessageParams.js deleted file mode 100644 index 3022ec7..0000000 --- a/src/model/SendBirdFileMessageParams.js +++ /dev/null @@ -1,245 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdAppleCriticalAlertOptions from './SendBirdAppleCriticalAlertOptions'; -import SendBirdMessageMetaArray from './SendBirdMessageMetaArray'; -import SendBirdThumbnailSize from './SendBirdThumbnailSize'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdFileMessageParams model module. - * @module model/SendBirdFileMessageParams - * @version 0.0.16 - */ -class SendBirdFileMessageParams { - /** - * Constructs a new SendBirdFileMessageParams. - * @alias module:model/SendBirdFileMessageParams - */ - constructor() { - - SendBirdFileMessageParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdFileMessageParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdFileMessageParams} obj Optional instance to populate. - * @return {module:model/SendBirdFileMessageParams} The populated SendBirdFileMessageParams instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdFileMessageParams(); - - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = SendBirdAppleCriticalAlertOptions.constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('file')) { - obj['file'] = 'Blob'.constructFromObject(data['file']); - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); - } - if (data.hasOwnProperty('file_url')) { - obj['file_url'] = ApiClient.convertToType(data['file_url'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdUser]); - } - if (data.hasOwnProperty('meta_array_keys')) { - obj['meta_array_keys'] = ApiClient.convertToType(data['meta_array_keys'], ['String']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = ApiClient.convertToType(data['meta_arrays'], [SendBirdMessageMetaArray]); - } - if (data.hasOwnProperty('mime_type')) { - obj['mime_type'] = ApiClient.convertToType(data['mime_type'], 'String'); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('push_notification_delivery_option')) { - obj['push_notification_delivery_option'] = ApiClient.convertToType(data['push_notification_delivery_option'], 'String'); - } - if (data.hasOwnProperty('thumbnail_sizes')) { - obj['thumbnail_sizes'] = ApiClient.convertToType(data['thumbnail_sizes'], [SendBirdThumbnailSize]); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdFileMessageParams.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdFileMessageParams.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdFileMessageParams.prototype['data'] = undefined; - -/** - * @member {Blob} file - */ -SendBirdFileMessageParams.prototype['file'] = undefined; - -/** - * @member {String} file_name - */ -SendBirdFileMessageParams.prototype['file_name'] = undefined; - -/** - * @member {Number} file_size - */ -SendBirdFileMessageParams.prototype['file_size'] = undefined; - -/** - * @member {String} file_url - */ -SendBirdFileMessageParams.prototype['file_url'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdFileMessageParams.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {module:model/SendBirdFileMessageParams.MentionTypeEnum} mention_type - */ -SendBirdFileMessageParams.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_user_ids - */ -SendBirdFileMessageParams.prototype['mentioned_user_ids'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdFileMessageParams.prototype['mentioned_users'] = undefined; - -/** - * @member {Array.} meta_array_keys - */ -SendBirdFileMessageParams.prototype['meta_array_keys'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdFileMessageParams.prototype['meta_arrays'] = undefined; - -/** - * @member {String} mime_type - */ -SendBirdFileMessageParams.prototype['mime_type'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdFileMessageParams.prototype['parent_message_id'] = undefined; - -/** - * @member {module:model/SendBirdFileMessageParams.PushNotificationDeliveryOptionEnum} push_notification_delivery_option - */ -SendBirdFileMessageParams.prototype['push_notification_delivery_option'] = undefined; - -/** - * @member {Array.} thumbnail_sizes - */ -SendBirdFileMessageParams.prototype['thumbnail_sizes'] = undefined; - - - - - -/** - * Allowed values for the mention_type property. - * @enum {String} - * @readonly - */ -SendBirdFileMessageParams['MentionTypeEnum'] = { - - /** - * value: "channel" - * @const - */ - "channel": "channel", - - /** - * value: "users" - * @const - */ - "users": "users" -}; - - -/** - * Allowed values for the push_notification_delivery_option property. - * @enum {String} - * @readonly - */ -SendBirdFileMessageParams['PushNotificationDeliveryOptionEnum'] = { - - /** - * value: "default" - * @const - */ - "default": "default", - - /** - * value: "suppress" - * @const - */ - "suppress": "suppress" -}; - - - -export default SendBirdFileMessageParams; - diff --git a/src/model/SendBirdGroupChannel.js b/src/model/SendBirdGroupChannel.js deleted file mode 100644 index 6f8dbba..0000000 --- a/src/model/SendBirdGroupChannel.js +++ /dev/null @@ -1,558 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdGroupChannelChannel from './SendBirdGroupChannelChannel'; -import SendBirdGroupChannelCreatedBy from './SendBirdGroupChannelCreatedBy'; -import SendBirdGroupChannelDisappearingMessage from './SendBirdGroupChannelDisappearingMessage'; -import SendBirdGroupChannelInviter from './SendBirdGroupChannelInviter'; -import SendBirdGroupChannelLastMessage from './SendBirdGroupChannelLastMessage'; -import SendBirdGroupChannelSmsFallback from './SendBirdGroupChannelSmsFallback'; -import SendBirdMember from './SendBirdMember'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdGroupChannel model module. - * @module model/SendBirdGroupChannel - * @version 0.0.16 - */ -class SendBirdGroupChannel { - /** - * Constructs a new SendBirdGroupChannel. - * @alias module:model/SendBirdGroupChannel - */ - constructor() { - - SendBirdGroupChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannel} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannel} The populated SendBirdGroupChannel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannel(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = SendBirdGroupChannelCreatedBy.constructFromObject(data['created_by']); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = SendBirdUser.constructFromObject(data['creator']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('disappearing_message')) { - obj['disappearing_message'] = SendBirdGroupChannelDisappearingMessage.constructFromObject(data['disappearing_message']); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); - } - if (data.hasOwnProperty('ignore_profanity_filter')) { - obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); - } - if (data.hasOwnProperty('hidden_state')) { - obj['hidden_state'] = ApiClient.convertToType(data['hidden_state'], 'String'); - } - if (data.hasOwnProperty('invited_at')) { - obj['invited_at'] = ApiClient.convertToType(data['invited_at'], 'Number'); - } - if (data.hasOwnProperty('inviter')) { - obj['inviter'] = SendBirdGroupChannelInviter.constructFromObject(data['inviter']); - } - if (data.hasOwnProperty('is_access_code_required')) { - obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); - } - if (data.hasOwnProperty('is_broadcast')) { - obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = ApiClient.convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('is_discoverable')) { - obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); - } - if (data.hasOwnProperty('is_distinct')) { - obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = ApiClient.convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('is_hidden')) { - obj['is_hidden'] = ApiClient.convertToType(data['is_hidden'], 'Boolean'); - } - if (data.hasOwnProperty('is_public')) { - obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); - } - if (data.hasOwnProperty('is_push_enabled')) { - obj['is_push_enabled'] = ApiClient.convertToType(data['is_push_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('is_super')) { - obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); - } - if (data.hasOwnProperty('joined_at')) { - obj['joined_at'] = ApiClient.convertToType(data['joined_at'], 'Number'); - } - if (data.hasOwnProperty('joined_member_count')) { - obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); - } - if (data.hasOwnProperty('last_message')) { - obj['last_message'] = SendBirdGroupChannelLastMessage.constructFromObject(data['last_message']); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); - } - if (data.hasOwnProperty('members')) { - obj['members'] = ApiClient.convertToType(data['members'], [SendBirdMember]); - } - if (data.hasOwnProperty('message_offset_timestamp')) { - obj['message_offset_timestamp'] = ApiClient.convertToType(data['message_offset_timestamp'], 'Number'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('my_count_preference')) { - obj['my_count_preference'] = ApiClient.convertToType(data['my_count_preference'], 'String'); - } - if (data.hasOwnProperty('my_last_read')) { - obj['my_last_read'] = ApiClient.convertToType(data['my_last_read'], 'Number'); - } - if (data.hasOwnProperty('my_member_state')) { - obj['my_member_state'] = ApiClient.convertToType(data['my_member_state'], 'String'); - } - if (data.hasOwnProperty('my_muted_state')) { - obj['my_muted_state'] = ApiClient.convertToType(data['my_muted_state'], 'String'); - } - if (data.hasOwnProperty('my_push_trigger_option')) { - obj['my_push_trigger_option'] = ApiClient.convertToType(data['my_push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('my_role')) { - obj['my_role'] = ApiClient.convertToType(data['my_role'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], [Object]); - } - if (data.hasOwnProperty('sms_fallback')) { - obj['sms_fallback'] = SendBirdGroupChannelSmsFallback.constructFromObject(data['sms_fallback']); - } - if (data.hasOwnProperty('unread_mention_count')) { - obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('unread_message_count')) { - obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('channel')) { - obj['channel'] = SendBirdGroupChannelChannel.constructFromObject(data['channel']); - } - } - return obj; - } - - -} - -/** - * @member {String} channel_url - */ -SendBirdGroupChannel.prototype['channel_url'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdGroupChannel.prototype['cover_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannel.prototype['created_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelCreatedBy} created_by - */ -SendBirdGroupChannel.prototype['created_by'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdGroupChannel.prototype['creator'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannel.prototype['data'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelDisappearingMessage} disappearing_message - */ -SendBirdGroupChannel.prototype['disappearing_message'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdGroupChannel.prototype['freeze'] = undefined; - -/** - * @member {Boolean} ignore_profanity_filter - */ -SendBirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.HiddenStateEnum} hidden_state - */ -SendBirdGroupChannel.prototype['hidden_state'] = undefined; - -/** - * @member {Number} invited_at - */ -SendBirdGroupChannel.prototype['invited_at'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelInviter} inviter - */ -SendBirdGroupChannel.prototype['inviter'] = undefined; - -/** - * @member {Boolean} is_access_code_required - */ -SendBirdGroupChannel.prototype['is_access_code_required'] = undefined; - -/** - * @member {Boolean} is_broadcast - */ -SendBirdGroupChannel.prototype['is_broadcast'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdGroupChannel.prototype['is_created'] = undefined; - -/** - * @member {Boolean} is_discoverable - */ -SendBirdGroupChannel.prototype['is_discoverable'] = undefined; - -/** - * @member {Boolean} is_distinct - */ -SendBirdGroupChannel.prototype['is_distinct'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdGroupChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdGroupChannel.prototype['is_frozen'] = undefined; - -/** - * @member {Boolean} is_hidden - */ -SendBirdGroupChannel.prototype['is_hidden'] = undefined; - -/** - * @member {Boolean} is_public - */ -SendBirdGroupChannel.prototype['is_public'] = undefined; - -/** - * @member {Boolean} is_push_enabled - */ -SendBirdGroupChannel.prototype['is_push_enabled'] = undefined; - -/** - * @member {Boolean} is_super - */ -SendBirdGroupChannel.prototype['is_super'] = undefined; - -/** - * @member {Number} joined_at - */ -SendBirdGroupChannel.prototype['joined_at'] = undefined; - -/** - * @member {Number} joined_member_count - */ -SendBirdGroupChannel.prototype['joined_member_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelLastMessage} last_message - */ -SendBirdGroupChannel.prototype['last_message'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdGroupChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdGroupChannel.prototype['member_count'] = undefined; - -/** - * @member {Array.} members - */ -SendBirdGroupChannel.prototype['members'] = undefined; - -/** - * @member {Number} message_offset_timestamp - */ -SendBirdGroupChannel.prototype['message_offset_timestamp'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannel.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} my_count_preference - */ -SendBirdGroupChannel.prototype['my_count_preference'] = undefined; - -/** - * @member {Number} my_last_read - */ -SendBirdGroupChannel.prototype['my_last_read'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyMemberStateEnum} my_member_state - */ -SendBirdGroupChannel.prototype['my_member_state'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyMutedStateEnum} my_muted_state - */ -SendBirdGroupChannel.prototype['my_muted_state'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyPushTriggerOptionEnum} my_push_trigger_option - */ -SendBirdGroupChannel.prototype['my_push_trigger_option'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannel.MyRoleEnum} my_role - */ -SendBirdGroupChannel.prototype['my_role'] = undefined; - -/** - * @member {String} name - */ -SendBirdGroupChannel.prototype['name'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdGroupChannel.prototype['operators'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelSmsFallback} sms_fallback - */ -SendBirdGroupChannel.prototype['sms_fallback'] = undefined; - -/** - * @member {Number} unread_mention_count - */ -SendBirdGroupChannel.prototype['unread_mention_count'] = undefined; - -/** - * @member {Number} unread_message_count - */ -SendBirdGroupChannel.prototype['unread_message_count'] = undefined; - -/** - * @member {module:model/SendBirdGroupChannelChannel} channel - */ -SendBirdGroupChannel.prototype['channel'] = undefined; - - - - - -/** - * Allowed values for the hidden_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['HiddenStateEnum'] = { - - /** - * value: "hidden_allow_auto_unhide" - * @const - */ - "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", - - /** - * value: "hidden_prevent_auto_unhide" - * @const - */ - "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", - - /** - * value: "unhidden" - * @const - */ - "unhidden": "unhidden" -}; - - -/** - * Allowed values for the my_member_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyMemberStateEnum'] = { - - /** - * value: "invited" - * @const - */ - "invited": "invited", - - /** - * value: "joined" - * @const - */ - "joined": "joined", - - /** - * value: "none" - * @const - */ - "none": "none" -}; - - -/** - * Allowed values for the my_muted_state property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyMutedStateEnum'] = { - - /** - * value: "muted" - * @const - */ - "muted": "muted", - - /** - * value: "unmuted" - * @const - */ - "unmuted": "unmuted" -}; - - -/** - * Allowed values for the my_push_trigger_option property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyPushTriggerOptionEnum'] = { - - /** - * value: "all" - * @const - */ - "all": "all", - - /** - * value: "default" - * @const - */ - "default": "default", - - /** - * value: "mention_only" - * @const - */ - "mention_only": "mention_only", - - /** - * value: "false" - * @const - */ - "false": "false" -}; - - -/** - * Allowed values for the my_role property. - * @enum {String} - * @readonly - */ -SendBirdGroupChannel['MyRoleEnum'] = { - - /** - * value: "" - * @const - */ - "empty": "", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; - - - -export default SendBirdGroupChannel; - diff --git a/src/model/SendBirdGroupChannelChannel.js b/src/model/SendBirdGroupChannelChannel.js deleted file mode 100644 index 9acac14..0000000 --- a/src/model/SendBirdGroupChannelChannel.js +++ /dev/null @@ -1,127 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdGroupChannelChannel model module. - * @module model/SendBirdGroupChannelChannel - * @version 0.0.16 - */ -class SendBirdGroupChannelChannel { - /** - * Constructs a new SendBirdGroupChannelChannel. - * @alias module:model/SendBirdGroupChannelChannel - */ - constructor() { - - SendBirdGroupChannelChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelChannel} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelChannel} The populated SendBirdGroupChannelChannel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelChannel(); - - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('member_count')) { - obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} channel_url - */ -SendBirdGroupChannelChannel.prototype['channel_url'] = undefined; - -/** - * @member {String} name - */ -SendBirdGroupChannelChannel.prototype['name'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdGroupChannelChannel.prototype['cover_url'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannelChannel.prototype['data'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelChannel.prototype['created_at'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannelChannel.prototype['custom_type'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdGroupChannelChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Number} member_count - */ -SendBirdGroupChannelChannel.prototype['member_count'] = undefined; - - - - - - -export default SendBirdGroupChannelChannel; - diff --git a/src/model/SendBirdGroupChannelCollection.js b/src/model/SendBirdGroupChannelCollection.js deleted file mode 100644 index 7d36bbf..0000000 --- a/src/model/SendBirdGroupChannelCollection.js +++ /dev/null @@ -1,80 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdGroupChannel from './SendBirdGroupChannel'; - -/** - * The SendBirdGroupChannelCollection model module. - * @module model/SendBirdGroupChannelCollection - * @version 0.0.16 - */ -class SendBirdGroupChannelCollection { - /** - * Constructs a new SendBirdGroupChannelCollection. - * @alias module:model/SendBirdGroupChannelCollection - */ - constructor() { - - SendBirdGroupChannelCollection.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelCollection from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelCollection} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelCollection} The populated SendBirdGroupChannelCollection instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelCollection(); - - if (data.hasOwnProperty('channel_list')) { - obj['channel_list'] = ApiClient.convertToType(data['channel_list'], [SendBirdGroupChannel]); - } - if (data.hasOwnProperty('has_more')) { - obj['has_more'] = ApiClient.convertToType(data['has_more'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} channel_list - */ -SendBirdGroupChannelCollection.prototype['channel_list'] = undefined; - -/** - * @member {Boolean} has_more - */ -SendBirdGroupChannelCollection.prototype['has_more'] = undefined; - - - - - - -export default SendBirdGroupChannelCollection; - diff --git a/src/model/SendBirdGroupChannelCreatedBy.js b/src/model/SendBirdGroupChannelCreatedBy.js deleted file mode 100644 index cd758a9..0000000 --- a/src/model/SendBirdGroupChannelCreatedBy.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdGroupChannelCreatedBy model module. - * @module model/SendBirdGroupChannelCreatedBy - * @version 0.0.16 - */ -class SendBirdGroupChannelCreatedBy { - /** - * Constructs a new SendBirdGroupChannelCreatedBy. - * @alias module:model/SendBirdGroupChannelCreatedBy - */ - constructor() { - - SendBirdGroupChannelCreatedBy.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelCreatedBy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelCreatedBy} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelCreatedBy} The populated SendBirdGroupChannelCreatedBy instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelCreatedBy(); - - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdGroupChannelCreatedBy.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdGroupChannelCreatedBy.prototype['nickname'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdGroupChannelCreatedBy.prototype['user_id'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdGroupChannelCreatedBy.prototype['profile_url'] = undefined; - - - - - - -export default SendBirdGroupChannelCreatedBy; - diff --git a/src/model/SendBirdGroupChannelDisappearingMessage.js b/src/model/SendBirdGroupChannelDisappearingMessage.js deleted file mode 100644 index f841bf2..0000000 --- a/src/model/SendBirdGroupChannelDisappearingMessage.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdGroupChannelDisappearingMessage model module. - * @module model/SendBirdGroupChannelDisappearingMessage - * @version 0.0.16 - */ -class SendBirdGroupChannelDisappearingMessage { - /** - * Constructs a new SendBirdGroupChannelDisappearingMessage. - * @alias module:model/SendBirdGroupChannelDisappearingMessage - */ - constructor() { - - SendBirdGroupChannelDisappearingMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelDisappearingMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelDisappearingMessage} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelDisappearingMessage} The populated SendBirdGroupChannelDisappearingMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelDisappearingMessage(); - - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('is_triggered_by_message_read')) { - obj['is_triggered_by_message_read'] = ApiClient.convertToType(data['is_triggered_by_message_read'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannelDisappearingMessage.prototype['message_survival_seconds'] = undefined; - -/** - * @member {Boolean} is_triggered_by_message_read - */ -SendBirdGroupChannelDisappearingMessage.prototype['is_triggered_by_message_read'] = undefined; - - - - - - -export default SendBirdGroupChannelDisappearingMessage; - diff --git a/src/model/SendBirdGroupChannelInviter.js b/src/model/SendBirdGroupChannelInviter.js deleted file mode 100644 index bfe6c1c..0000000 --- a/src/model/SendBirdGroupChannelInviter.js +++ /dev/null @@ -1,343 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdGroupChannelInviter model module. - * @module model/SendBirdGroupChannelInviter - * @version 0.0.16 - */ -class SendBirdGroupChannelInviter { - /** - * Constructs a new SendBirdGroupChannelInviter. - * @alias module:model/SendBirdGroupChannelInviter - * @implements module:model/SendBirdUser - */ - constructor() { - SendBirdUser.initialize(this); - SendBirdGroupChannelInviter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelInviter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelInviter} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelInviter} The populated SendBirdGroupChannelInviter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelInviter(); - SendBirdUser.constructFromObject(data, obj); - - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = ApiClient.convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('has_ever_logged_in')) { - obj['has_ever_logged_in'] = ApiClient.convertToType(data['has_ever_logged_in'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('session_tokens')) { - obj['session_tokens'] = ApiClient.convertToType(data['session_tokens'], [Object]); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('phone_number')) { - obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String'); - } - if (data.hasOwnProperty('local')) { - obj['local'] = ApiClient.convertToType(data['local'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('is_hide_me_from_friends')) { - obj['is_hide_me_from_friends'] = ApiClient.convertToType(data['is_hide_me_from_friends'], 'Boolean'); - } - if (data.hasOwnProperty('is_shadow_blocked')) { - obj['is_shadow_blocked'] = ApiClient.convertToType(data['is_shadow_blocked'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = ApiClient.convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdGroupChannelInviter.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdGroupChannelInviter.prototype['is_online'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdGroupChannelInviter.prototype['user_id'] = undefined; - -/** - * @member {String} access_token - */ -SendBirdGroupChannelInviter.prototype['access_token'] = undefined; - -/** - * @member {Boolean} has_ever_logged_in - */ -SendBirdGroupChannelInviter.prototype['has_ever_logged_in'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdGroupChannelInviter.prototype['is_active'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdGroupChannelInviter.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdGroupChannelInviter.prototype['nickname'] = undefined; - -/** - * @member {Array.} discovery_keys - */ -SendBirdGroupChannelInviter.prototype['discovery_keys'] = undefined; - -/** - * @member {Array.} session_tokens - */ -SendBirdGroupChannelInviter.prototype['session_tokens'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdGroupChannelInviter.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdGroupChannelInviter.prototype['profile_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelInviter.prototype['created_at'] = undefined; - -/** - * @member {String} phone_number - */ -SendBirdGroupChannelInviter.prototype['phone_number'] = undefined; - -/** - * @member {String} local - */ -SendBirdGroupChannelInviter.prototype['local'] = undefined; - -/** - * @member {String} locale - */ -SendBirdGroupChannelInviter.prototype['locale'] = undefined; - -/** - * @member {Boolean} is_hide_me_from_friends - */ -SendBirdGroupChannelInviter.prototype['is_hide_me_from_friends'] = undefined; - -/** - * @member {Boolean} is_shadow_blocked - */ -SendBirdGroupChannelInviter.prototype['is_shadow_blocked'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdGroupChannelInviter.prototype['is_created'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdGroupChannelInviter.prototype['metadata'] = undefined; - -/** - * @member {String} description - */ -SendBirdGroupChannelInviter.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdGroupChannelInviter.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -SendBirdGroupChannelInviter.prototype['start_at'] = undefined; - - -// Implement SendBirdUser interface: -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdUser.prototype['require_auth_for_profile_image'] = undefined; -/** - * @member {Boolean} is_online - */ -SendBirdUser.prototype['is_online'] = undefined; -/** - * @member {String} user_id - */ -SendBirdUser.prototype['user_id'] = undefined; -/** - * @member {String} access_token - */ -SendBirdUser.prototype['access_token'] = undefined; -/** - * @member {Boolean} has_ever_logged_in - */ -SendBirdUser.prototype['has_ever_logged_in'] = undefined; -/** - * @member {Boolean} is_active - */ -SendBirdUser.prototype['is_active'] = undefined; -/** - * @member {Number} last_seen_at - */ -SendBirdUser.prototype['last_seen_at'] = undefined; -/** - * @member {String} nickname - */ -SendBirdUser.prototype['nickname'] = undefined; -/** - * @member {Array.} discovery_keys - */ -SendBirdUser.prototype['discovery_keys'] = undefined; -/** - * @member {Array.} session_tokens - */ -SendBirdUser.prototype['session_tokens'] = undefined; -/** - * @member {Array.} preferred_languages - */ -SendBirdUser.prototype['preferred_languages'] = undefined; -/** - * @member {String} profile_url - */ -SendBirdUser.prototype['profile_url'] = undefined; -/** - * @member {Number} created_at - */ -SendBirdUser.prototype['created_at'] = undefined; -/** - * @member {String} phone_number - */ -SendBirdUser.prototype['phone_number'] = undefined; -/** - * @member {String} local - */ -SendBirdUser.prototype['local'] = undefined; -/** - * @member {String} locale - */ -SendBirdUser.prototype['locale'] = undefined; -/** - * @member {Boolean} is_hide_me_from_friends - */ -SendBirdUser.prototype['is_hide_me_from_friends'] = undefined; -/** - * @member {Boolean} is_shadow_blocked - */ -SendBirdUser.prototype['is_shadow_blocked'] = undefined; -/** - * @member {Boolean} is_created - */ -SendBirdUser.prototype['is_created'] = undefined; -/** - * @member {Object} metadata - */ -SendBirdUser.prototype['metadata'] = undefined; -/** - * @member {String} description - */ -SendBirdUser.prototype['description'] = undefined; -/** - * @member {Number} end_at - */ -SendBirdUser.prototype['end_at'] = undefined; -/** - * @member {Number} start_at - */ -SendBirdUser.prototype['start_at'] = undefined; - - - - -export default SendBirdGroupChannelInviter; - diff --git a/src/model/SendBirdGroupChannelLastMessage.js b/src/model/SendBirdGroupChannelLastMessage.js deleted file mode 100644 index 1bfafe8..0000000 --- a/src/model/SendBirdGroupChannelLastMessage.js +++ /dev/null @@ -1,393 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdMessageResponse from './SendBirdMessageResponse'; -import SendBirdMessageResponseMentionedUsersInner from './SendBirdMessageResponseMentionedUsersInner'; -import SendBirdMessageResponseUser from './SendBirdMessageResponseUser'; - -/** - * The SendBirdGroupChannelLastMessage model module. - * @module model/SendBirdGroupChannelLastMessage - * @version 0.0.16 - */ -class SendBirdGroupChannelLastMessage { - /** - * Constructs a new SendBirdGroupChannelLastMessage. - * @alias module:model/SendBirdGroupChannelLastMessage - * @implements module:model/SendBirdMessageResponse - */ - constructor() { - SendBirdMessageResponse.initialize(this); - SendBirdGroupChannelLastMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelLastMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelLastMessage} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelLastMessage} The populated SendBirdGroupChannelLastMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelLastMessage(); - SendBirdMessageResponse.constructFromObject(data, obj); - - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdMessageResponseMentionedUsersInner]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = ApiClient.convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = ApiClient.convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = ApiClient.convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdMessageResponseUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = ApiClient.convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = ApiClient.convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [Object]); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = ApiClient.convertToType(data['thread_info'], Object); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_info')) { - obj['parent_message_info'] = ApiClient.convertToType(data['parent_message_info'], Object); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth - */ -SendBirdGroupChannelLastMessage.prototype['require_auth'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdGroupChannelLastMessage.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdGroupChannelLastMessage.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdGroupChannelLastMessage.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -SendBirdGroupChannelLastMessage.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdGroupChannelLastMessage.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -SendBirdGroupChannelLastMessage.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -SendBirdGroupChannelLastMessage.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -SendBirdGroupChannelLastMessage.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -SendBirdGroupChannelLastMessage.prototype['file'] = undefined; - -/** - * @member {String} message - */ -SendBirdGroupChannelLastMessage.prototype['message'] = undefined; - -/** - * @member {String} data - */ -SendBirdGroupChannelLastMessage.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -SendBirdGroupChannelLastMessage.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdGroupChannelLastMessage.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -SendBirdGroupChannelLastMessage.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdGroupChannelLastMessage.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdGroupChannelLastMessage.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -SendBirdGroupChannelLastMessage.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdGroupChannelLastMessage.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdGroupChannelLastMessage.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdGroupChannelLastMessage.prototype['message_id'] = undefined; - -/** - * @member {Number} size - */ -SendBirdGroupChannelLastMessage.prototype['size'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -SendBirdGroupChannelLastMessage.prototype['sorted_metaarray'] = undefined; - -/** - * @member {Object} thread_info - */ -SendBirdGroupChannelLastMessage.prototype['thread_info'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdGroupChannelLastMessage.prototype['parent_message_id'] = undefined; - -/** - * @member {Object} parent_message_info - */ -SendBirdGroupChannelLastMessage.prototype['parent_message_info'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdGroupChannelLastMessage.prototype['is_reply_to_channel'] = undefined; - - -// Implement SendBirdMessageResponse interface: -/** - * @member {Boolean} require_auth - */ -SendBirdMessageResponse.prototype['require_auth'] = undefined; -/** - * @member {Number} message_survival_seconds - */ -SendBirdMessageResponse.prototype['message_survival_seconds'] = undefined; -/** - * @member {String} custom_type - */ -SendBirdMessageResponse.prototype['custom_type'] = undefined; -/** - * @member {Array.} mentioned_users - */ -SendBirdMessageResponse.prototype['mentioned_users'] = undefined; -/** - * @member {Object} translations - */ -SendBirdMessageResponse.prototype['translations'] = undefined; -/** - * @member {Number} updated_at - */ -SendBirdMessageResponse.prototype['updated_at'] = undefined; -/** - * @member {Boolean} is_op_msg - */ -SendBirdMessageResponse.prototype['is_op_msg'] = undefined; -/** - * @member {Boolean} is_removed - */ -SendBirdMessageResponse.prototype['is_removed'] = undefined; -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -SendBirdMessageResponse.prototype['user'] = undefined; -/** - * @member {Object} file - */ -SendBirdMessageResponse.prototype['file'] = undefined; -/** - * @member {String} message - */ -SendBirdMessageResponse.prototype['message'] = undefined; -/** - * @member {String} data - */ -SendBirdMessageResponse.prototype['data'] = undefined; -/** - * @member {Number} message_retention_hour - */ -SendBirdMessageResponse.prototype['message_retention_hour'] = undefined; -/** - * @member {Boolean} silent - */ -SendBirdMessageResponse.prototype['silent'] = undefined; -/** - * @member {String} type - */ -SendBirdMessageResponse.prototype['type'] = undefined; -/** - * @member {Number} created_at - */ -SendBirdMessageResponse.prototype['created_at'] = undefined; -/** - * @member {String} channel_type - */ -SendBirdMessageResponse.prototype['channel_type'] = undefined; -/** - * @member {String} req_id - */ -SendBirdMessageResponse.prototype['req_id'] = undefined; -/** - * @member {String} mention_type - */ -SendBirdMessageResponse.prototype['mention_type'] = undefined; -/** - * @member {String} channel_url - */ -SendBirdMessageResponse.prototype['channel_url'] = undefined; -/** - * @member {Number} message_id - */ -SendBirdMessageResponse.prototype['message_id'] = undefined; -/** - * @member {Number} size - */ -SendBirdMessageResponse.prototype['size'] = undefined; -/** - * @member {Array.} sorted_metaarray - */ -SendBirdMessageResponse.prototype['sorted_metaarray'] = undefined; -/** - * @member {Object} thread_info - */ -SendBirdMessageResponse.prototype['thread_info'] = undefined; -/** - * @member {Number} parent_message_id - */ -SendBirdMessageResponse.prototype['parent_message_id'] = undefined; -/** - * @member {Object} parent_message_info - */ -SendBirdMessageResponse.prototype['parent_message_info'] = undefined; -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdMessageResponse.prototype['is_reply_to_channel'] = undefined; - - - - -export default SendBirdGroupChannelLastMessage; - diff --git a/src/model/SendBirdGroupChannelSmsFallback.js b/src/model/SendBirdGroupChannelSmsFallback.js deleted file mode 100644 index bdf2aa1..0000000 --- a/src/model/SendBirdGroupChannelSmsFallback.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdGroupChannelSmsFallback model module. - * @module model/SendBirdGroupChannelSmsFallback - * @version 0.0.16 - */ -class SendBirdGroupChannelSmsFallback { - /** - * Constructs a new SendBirdGroupChannelSmsFallback. - * @alias module:model/SendBirdGroupChannelSmsFallback - */ - constructor() { - - SendBirdGroupChannelSmsFallback.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdGroupChannelSmsFallback from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdGroupChannelSmsFallback} obj Optional instance to populate. - * @return {module:model/SendBirdGroupChannelSmsFallback} The populated SendBirdGroupChannelSmsFallback instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdGroupChannelSmsFallback(); - - if (data.hasOwnProperty('wait_seconds')) { - obj['wait_seconds'] = ApiClient.convertToType(data['wait_seconds'], 'Number'); - } - if (data.hasOwnProperty('exclude_user_ids')) { - obj['exclude_user_ids'] = ApiClient.convertToType(data['exclude_user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {Number} wait_seconds - */ -SendBirdGroupChannelSmsFallback.prototype['wait_seconds'] = undefined; - -/** - * @member {Array.} exclude_user_ids - */ -SendBirdGroupChannelSmsFallback.prototype['exclude_user_ids'] = undefined; - - - - - - -export default SendBirdGroupChannelSmsFallback; - diff --git a/src/model/SendBirdMember.js b/src/model/SendBirdMember.js deleted file mode 100644 index 5e7d46a..0000000 --- a/src/model/SendBirdMember.js +++ /dev/null @@ -1,278 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdRestrictionInfo from './SendBirdRestrictionInfo'; - -/** - * The SendBirdMember model module. - * @module model/SendBirdMember - * @version 0.0.16 - */ -class SendBirdMember { - /** - * Constructs a new SendBirdMember. - * @alias module:model/SendBirdMember - */ - constructor() { - - SendBirdMember.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdMember from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMember} obj Optional instance to populate. - * @return {module:model/SendBirdMember} The populated SendBirdMember instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMember(); - - if (data.hasOwnProperty('connection_status')) { - obj['connection_status'] = ApiClient.convertToType(data['connection_status'], 'String'); - } - if (data.hasOwnProperty('friend_discovery_key')) { - obj['friend_discovery_key'] = ApiClient.convertToType(data['friend_discovery_key'], 'String'); - } - if (data.hasOwnProperty('friend_name')) { - obj['friend_name'] = ApiClient.convertToType(data['friend_name'], 'String'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('is_muted')) { - obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('plain_profile_url')) { - obj['plain_profile_url'] = ApiClient.convertToType(data['plain_profile_url'], 'String'); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = ApiClient.convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('muted_end_at')) { - obj['muted_end_at'] = ApiClient.convertToType(data['muted_end_at'], 'Number'); - } - if (data.hasOwnProperty('muted_description')) { - obj['muted_description'] = ApiClient.convertToType(data['muted_description'], 'String'); - } - if (data.hasOwnProperty('restriction_info')) { - obj['restriction_info'] = SendBirdRestrictionInfo.constructFromObject(data['restriction_info']); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} connection_status - */ -SendBirdMember.prototype['connection_status'] = undefined; - -/** - * @member {String} friend_discovery_key - */ -SendBirdMember.prototype['friend_discovery_key'] = undefined; - -/** - * @member {String} friend_name - */ -SendBirdMember.prototype['friend_name'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdMember.prototype['is_active'] = undefined; - -/** - * @member {Boolean} is_muted - */ -SendBirdMember.prototype['is_muted'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdMember.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMember.prototype['nickname'] = undefined; - -/** - * @member {String} plain_profile_url - */ -SendBirdMember.prototype['plain_profile_url'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdMember.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMember.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth - */ -SendBirdMember.prototype['require_auth'] = undefined; - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdMember.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdMember.prototype['metadata'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdMember.prototype['is_online'] = undefined; - -/** - * @member {Number} muted_end_at - */ -SendBirdMember.prototype['muted_end_at'] = undefined; - -/** - * @member {String} muted_description - */ -SendBirdMember.prototype['muted_description'] = undefined; - -/** - * @member {module:model/SendBirdRestrictionInfo} restriction_info - */ -SendBirdMember.prototype['restriction_info'] = undefined; - -/** - * @member {module:model/SendBirdMember.RoleEnum} role - */ -SendBirdMember.prototype['role'] = undefined; - -/** - * @member {module:model/SendBirdMember.StateEnum} state - */ -SendBirdMember.prototype['state'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdMember.prototype['user_id'] = undefined; - - - - - -/** - * Allowed values for the role property. - * @enum {String} - * @readonly - */ -SendBirdMember['RoleEnum'] = { - - /** - * value: "" - * @const - */ - "empty": "", - - /** - * value: "none" - * @const - */ - "none": "none", - - /** - * value: "operator" - * @const - */ - "operator": "operator" -}; - - -/** - * Allowed values for the state property. - * @enum {String} - * @readonly - */ -SendBirdMember['StateEnum'] = { - - /** - * value: "" - * @const - */ - "empty": "", - - /** - * value: "invited" - * @const - */ - "invited": "invited", - - /** - * value: "joined" - * @const - */ - "joined": "joined" -}; - - - -export default SendBirdMember; - diff --git a/src/model/SendBirdMessageMetaArray.js b/src/model/SendBirdMessageMetaArray.js deleted file mode 100644 index ec5fa2e..0000000 --- a/src/model/SendBirdMessageMetaArray.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdMessageMetaArray model module. - * @module model/SendBirdMessageMetaArray - * @version 0.0.16 - */ -class SendBirdMessageMetaArray { - /** - * Constructs a new SendBirdMessageMetaArray. - * @alias module:model/SendBirdMessageMetaArray - */ - constructor() { - - SendBirdMessageMetaArray.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdMessageMetaArray from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageMetaArray} obj Optional instance to populate. - * @return {module:model/SendBirdMessageMetaArray} The populated SendBirdMessageMetaArray instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageMetaArray(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {String} key - */ -SendBirdMessageMetaArray.prototype['key'] = undefined; - -/** - * @member {Array.} value - */ -SendBirdMessageMetaArray.prototype['value'] = undefined; - - - - - - -export default SendBirdMessageMetaArray; - diff --git a/src/model/SendBirdMessageResponse.js b/src/model/SendBirdMessageResponse.js deleted file mode 100644 index ceac2e8..0000000 --- a/src/model/SendBirdMessageResponse.js +++ /dev/null @@ -1,281 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdMessageResponseMentionedUsersInner from './SendBirdMessageResponseMentionedUsersInner'; -import SendBirdMessageResponseUser from './SendBirdMessageResponseUser'; - -/** - * The SendBirdMessageResponse model module. - * @module model/SendBirdMessageResponse - * @version 0.0.16 - */ -class SendBirdMessageResponse { - /** - * Constructs a new SendBirdMessageResponse. - * @alias module:model/SendBirdMessageResponse - */ - constructor() { - - SendBirdMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponse} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponse} The populated SendBirdMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponse(); - - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('message_survival_seconds')) { - obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdMessageResponseMentionedUsersInner]); - } - if (data.hasOwnProperty('translations')) { - obj['translations'] = ApiClient.convertToType(data['translations'], Object); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('is_op_msg')) { - obj['is_op_msg'] = ApiClient.convertToType(data['is_op_msg'], 'Boolean'); - } - if (data.hasOwnProperty('is_removed')) { - obj['is_removed'] = ApiClient.convertToType(data['is_removed'], 'Boolean'); - } - if (data.hasOwnProperty('user')) { - obj['user'] = SendBirdMessageResponseUser.constructFromObject(data['user']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], Object); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('message_retention_hour')) { - obj['message_retention_hour'] = ApiClient.convertToType(data['message_retention_hour'], 'Number'); - } - if (data.hasOwnProperty('silent')) { - obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('req_id')) { - obj['req_id'] = ApiClient.convertToType(data['req_id'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('size')) { - obj['size'] = ApiClient.convertToType(data['size'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [Object]); - } - if (data.hasOwnProperty('thread_info')) { - obj['thread_info'] = ApiClient.convertToType(data['thread_info'], Object); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('parent_message_info')) { - obj['parent_message_info'] = ApiClient.convertToType(data['parent_message_info'], Object); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth - */ -SendBirdMessageResponse.prototype['require_auth'] = undefined; - -/** - * @member {Number} message_survival_seconds - */ -SendBirdMessageResponse.prototype['message_survival_seconds'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdMessageResponse.prototype['custom_type'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdMessageResponse.prototype['mentioned_users'] = undefined; - -/** - * @member {Object} translations - */ -SendBirdMessageResponse.prototype['translations'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdMessageResponse.prototype['updated_at'] = undefined; - -/** - * @member {Boolean} is_op_msg - */ -SendBirdMessageResponse.prototype['is_op_msg'] = undefined; - -/** - * @member {Boolean} is_removed - */ -SendBirdMessageResponse.prototype['is_removed'] = undefined; - -/** - * @member {module:model/SendBirdMessageResponseUser} user - */ -SendBirdMessageResponse.prototype['user'] = undefined; - -/** - * @member {Object} file - */ -SendBirdMessageResponse.prototype['file'] = undefined; - -/** - * @member {String} message - */ -SendBirdMessageResponse.prototype['message'] = undefined; - -/** - * @member {String} data - */ -SendBirdMessageResponse.prototype['data'] = undefined; - -/** - * @member {Number} message_retention_hour - */ -SendBirdMessageResponse.prototype['message_retention_hour'] = undefined; - -/** - * @member {Boolean} silent - */ -SendBirdMessageResponse.prototype['silent'] = undefined; - -/** - * @member {String} type - */ -SendBirdMessageResponse.prototype['type'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdMessageResponse.prototype['created_at'] = undefined; - -/** - * @member {String} channel_type - */ -SendBirdMessageResponse.prototype['channel_type'] = undefined; - -/** - * @member {String} req_id - */ -SendBirdMessageResponse.prototype['req_id'] = undefined; - -/** - * @member {String} mention_type - */ -SendBirdMessageResponse.prototype['mention_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdMessageResponse.prototype['channel_url'] = undefined; - -/** - * @member {Number} message_id - */ -SendBirdMessageResponse.prototype['message_id'] = undefined; - -/** - * @member {Number} size - */ -SendBirdMessageResponse.prototype['size'] = undefined; - -/** - * @member {Array.} sorted_metaarray - */ -SendBirdMessageResponse.prototype['sorted_metaarray'] = undefined; - -/** - * @member {Object} thread_info - */ -SendBirdMessageResponse.prototype['thread_info'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdMessageResponse.prototype['parent_message_id'] = undefined; - -/** - * @member {Object} parent_message_info - */ -SendBirdMessageResponse.prototype['parent_message_info'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdMessageResponse.prototype['is_reply_to_channel'] = undefined; - - - - - - -export default SendBirdMessageResponse; - diff --git a/src/model/SendBirdMessageResponseMentionedUsersInner.js b/src/model/SendBirdMessageResponseMentionedUsersInner.js deleted file mode 100644 index ac845a8..0000000 --- a/src/model/SendBirdMessageResponseMentionedUsersInner.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcDeleteChannelByUrl200Response from './OcDeleteChannelByUrl200Response'; - -/** - * The SendBirdMessageResponseMentionedUsersInner model module. - * @module model/SendBirdMessageResponseMentionedUsersInner - * @version 0.0.16 - */ -class SendBirdMessageResponseMentionedUsersInner { - /** - * Constructs a new SendBirdMessageResponseMentionedUsersInner. - * @alias module:model/SendBirdMessageResponseMentionedUsersInner - */ - constructor() { - - SendBirdMessageResponseMentionedUsersInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdMessageResponseMentionedUsersInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponseMentionedUsersInner} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponseMentionedUsersInner} The populated SendBirdMessageResponseMentionedUsersInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponseMentionedUsersInner(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = OcDeleteChannelByUrl200Response.constructFromObject(data['metadata']); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -SendBirdMessageResponseMentionedUsersInner.prototype['user_id'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMessageResponseMentionedUsersInner.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMessageResponseMentionedUsersInner.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -SendBirdMessageResponseMentionedUsersInner.prototype['metadata'] = undefined; - - - - - - -export default SendBirdMessageResponseMentionedUsersInner; - diff --git a/src/model/SendBirdMessageResponseUser.js b/src/model/SendBirdMessageResponseUser.js deleted file mode 100644 index 2044ecc..0000000 --- a/src/model/SendBirdMessageResponseUser.js +++ /dev/null @@ -1,120 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import OcDeleteChannelByUrl200Response from './OcDeleteChannelByUrl200Response'; - -/** - * The SendBirdMessageResponseUser model module. - * @module model/SendBirdMessageResponseUser - * @version 0.0.16 - */ -class SendBirdMessageResponseUser { - /** - * Constructs a new SendBirdMessageResponseUser. - * @alias module:model/SendBirdMessageResponseUser - */ - constructor() { - - SendBirdMessageResponseUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdMessageResponseUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdMessageResponseUser} obj Optional instance to populate. - * @return {module:model/SendBirdMessageResponseUser} The populated SendBirdMessageResponseUser instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdMessageResponseUser(); - - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = OcDeleteChannelByUrl200Response.constructFromObject(data['metadata']); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdMessageResponseUser.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdMessageResponseUser.prototype['is_active'] = undefined; - -/** - * @member {String} role - */ -SendBirdMessageResponseUser.prototype['role'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdMessageResponseUser.prototype['user_id'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdMessageResponseUser.prototype['nickname'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdMessageResponseUser.prototype['profile_url'] = undefined; - -/** - * @member {module:model/OcDeleteChannelByUrl200Response} metadata - */ -SendBirdMessageResponseUser.prototype['metadata'] = undefined; - - - - - - -export default SendBirdMessageResponseUser; - diff --git a/src/model/SendBirdOGImage.js b/src/model/SendBirdOGImage.js deleted file mode 100644 index c1908a5..0000000 --- a/src/model/SendBirdOGImage.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdOGImage model module. - * @module model/SendBirdOGImage - * @version 0.0.16 - */ -class SendBirdOGImage { - /** - * Constructs a new SendBirdOGImage. - * @alias module:model/SendBirdOGImage - */ - constructor() { - - SendBirdOGImage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdOGImage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOGImage} obj Optional instance to populate. - * @return {module:model/SendBirdOGImage} The populated SendBirdOGImage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOGImage(); - - if (data.hasOwnProperty('alt')) { - obj['alt'] = ApiClient.convertToType(data['alt'], 'String'); - } - if (data.hasOwnProperty('height')) { - obj['height'] = ApiClient.convertToType(data['height'], 'Number'); - } - if (data.hasOwnProperty('secure_url')) { - obj['secure_url'] = ApiClient.convertToType(data['secure_url'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = ApiClient.convertToType(data['width'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} alt - */ -SendBirdOGImage.prototype['alt'] = undefined; - -/** - * @member {Number} height - */ -SendBirdOGImage.prototype['height'] = undefined; - -/** - * @member {String} secure_url - */ -SendBirdOGImage.prototype['secure_url'] = undefined; - -/** - * @member {String} type - */ -SendBirdOGImage.prototype['type'] = undefined; - -/** - * @member {String} url - */ -SendBirdOGImage.prototype['url'] = undefined; - -/** - * @member {Number} width - */ -SendBirdOGImage.prototype['width'] = undefined; - - - - - - -export default SendBirdOGImage; - diff --git a/src/model/SendBirdOGMetaData.js b/src/model/SendBirdOGMetaData.js deleted file mode 100644 index 4073fcf..0000000 --- a/src/model/SendBirdOGMetaData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdOGImage from './SendBirdOGImage'; - -/** - * The SendBirdOGMetaData model module. - * @module model/SendBirdOGMetaData - * @version 0.0.16 - */ -class SendBirdOGMetaData { - /** - * Constructs a new SendBirdOGMetaData. - * @alias module:model/SendBirdOGMetaData - */ - constructor() { - - SendBirdOGMetaData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdOGMetaData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOGMetaData} obj Optional instance to populate. - * @return {module:model/SendBirdOGMetaData} The populated SendBirdOGMetaData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOGMetaData(); - - if (data.hasOwnProperty('default_image')) { - obj['default_image'] = SendBirdOGImage.constructFromObject(data['default_image']); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdOGImage} default_image - */ -SendBirdOGMetaData.prototype['default_image'] = undefined; - -/** - * @member {String} description - */ -SendBirdOGMetaData.prototype['description'] = undefined; - -/** - * @member {String} title - */ -SendBirdOGMetaData.prototype['title'] = undefined; - -/** - * @member {String} url - */ -SendBirdOGMetaData.prototype['url'] = undefined; - - - - - - -export default SendBirdOGMetaData; - diff --git a/src/model/SendBirdOpenChannel.js b/src/model/SendBirdOpenChannel.js deleted file mode 100644 index f2e83fd..0000000 --- a/src/model/SendBirdOpenChannel.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdOpenChannel model module. - * @module model/SendBirdOpenChannel - * @version 0.0.16 - */ -class SendBirdOpenChannel { - /** - * Constructs a new SendBirdOpenChannel. - * @alias module:model/SendBirdOpenChannel - */ - constructor() { - - SendBirdOpenChannel.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdOpenChannel from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdOpenChannel} obj Optional instance to populate. - * @return {module:model/SendBirdOpenChannel} The populated SendBirdOpenChannel instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdOpenChannel(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('cover_url')) { - obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); - } - if (data.hasOwnProperty('creator')) { - obj['creator'] = SendBirdUser.constructFromObject(data['creator']); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_dynamic_partitioned')) { - obj['is_dynamic_partitioned'] = ApiClient.convertToType(data['is_dynamic_partitioned'], 'Boolean'); - } - if (data.hasOwnProperty('is_ephemeral')) { - obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); - } - if (data.hasOwnProperty('is_frozen')) { - obj['is_frozen'] = ApiClient.convertToType(data['is_frozen'], 'Boolean'); - } - if (data.hasOwnProperty('max_length_message')) { - obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); - } - if (data.hasOwnProperty('operators')) { - obj['operators'] = ApiClient.convertToType(data['operators'], [SendBirdUser]); - } - if (data.hasOwnProperty('participant_count')) { - obj['participant_count'] = ApiClient.convertToType(data['participant_count'], 'Number'); - } - if (data.hasOwnProperty('freeze')) { - obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {String} name - */ -SendBirdOpenChannel.prototype['name'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdOpenChannel.prototype['custom_type'] = undefined; - -/** - * @member {String} channel_url - */ -SendBirdOpenChannel.prototype['channel_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdOpenChannel.prototype['created_at'] = undefined; - -/** - * @member {String} cover_url - */ -SendBirdOpenChannel.prototype['cover_url'] = undefined; - -/** - * @member {module:model/SendBirdUser} creator - */ -SendBirdOpenChannel.prototype['creator'] = undefined; - -/** - * @member {String} data - */ -SendBirdOpenChannel.prototype['data'] = undefined; - -/** - * @member {Boolean} is_dynamic_partitioned - */ -SendBirdOpenChannel.prototype['is_dynamic_partitioned'] = undefined; - -/** - * @member {Boolean} is_ephemeral - */ -SendBirdOpenChannel.prototype['is_ephemeral'] = undefined; - -/** - * @member {Boolean} is_frozen - */ -SendBirdOpenChannel.prototype['is_frozen'] = undefined; - -/** - * @member {Number} max_length_message - */ -SendBirdOpenChannel.prototype['max_length_message'] = undefined; - -/** - * @member {Array.} operators - */ -SendBirdOpenChannel.prototype['operators'] = undefined; - -/** - * @member {Number} participant_count - */ -SendBirdOpenChannel.prototype['participant_count'] = undefined; - -/** - * @member {Boolean} freeze - */ -SendBirdOpenChannel.prototype['freeze'] = undefined; - - - - - - -export default SendBirdOpenChannel; - diff --git a/src/model/SendBirdPlugin.js b/src/model/SendBirdPlugin.js deleted file mode 100644 index a383972..0000000 --- a/src/model/SendBirdPlugin.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdPlugin model module. - * @module model/SendBirdPlugin - * @version 0.0.16 - */ -class SendBirdPlugin { - /** - * Constructs a new SendBirdPlugin. - * @alias module:model/SendBirdPlugin - */ - constructor() { - - SendBirdPlugin.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdPlugin from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPlugin} obj Optional instance to populate. - * @return {module:model/SendBirdPlugin} The populated SendBirdPlugin instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPlugin(); - - if (data.hasOwnProperty('detail')) { - obj['detail'] = ApiClient.convertToType(data['detail'], Object); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('vendor')) { - obj['vendor'] = ApiClient.convertToType(data['vendor'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Object} detail - */ -SendBirdPlugin.prototype['detail'] = undefined; - -/** - * @member {String} type - */ -SendBirdPlugin.prototype['type'] = undefined; - -/** - * @member {String} vendor - */ -SendBirdPlugin.prototype['vendor'] = undefined; - - - - - - -export default SendBirdPlugin; - diff --git a/src/model/SendBirdPoll.js b/src/model/SendBirdPoll.js deleted file mode 100644 index 8eef095..0000000 --- a/src/model/SendBirdPoll.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdPollDetails from './SendBirdPollDetails'; - -/** - * The SendBirdPoll model module. - * @module model/SendBirdPoll - * @version 0.0.16 - */ -class SendBirdPoll { - /** - * Constructs a new SendBirdPoll. - * @alias module:model/SendBirdPoll - */ - constructor() { - - SendBirdPoll.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdPoll from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPoll} obj Optional instance to populate. - * @return {module:model/SendBirdPoll} The populated SendBirdPoll instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPoll(); - - if (data.hasOwnProperty('details')) { - obj['details'] = SendBirdPollDetails.constructFromObject(data['details']); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('title')) { - obj['title'] = ApiClient.convertToType(data['title'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdPollDetails} details - */ -SendBirdPoll.prototype['details'] = undefined; - -/** - * @member {Number} id - */ -SendBirdPoll.prototype['id'] = undefined; - -/** - * @member {String} title - */ -SendBirdPoll.prototype['title'] = undefined; - - - - - - -export default SendBirdPoll; - diff --git a/src/model/SendBirdPollDetails.js b/src/model/SendBirdPollDetails.js deleted file mode 100644 index 54cc54d..0000000 --- a/src/model/SendBirdPollDetails.js +++ /dev/null @@ -1,171 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdPollOption from './SendBirdPollOption'; - -/** - * The SendBirdPollDetails model module. - * @module model/SendBirdPollDetails - * @version 0.0.16 - */ -class SendBirdPollDetails { - /** - * Constructs a new SendBirdPollDetails. - * @alias module:model/SendBirdPollDetails - */ - constructor() { - - SendBirdPollDetails.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdPollDetails from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollDetails} obj Optional instance to populate. - * @return {module:model/SendBirdPollDetails} The populated SendBirdPollDetails instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollDetails(); - - if (data.hasOwnProperty('allow_multiple_votes')) { - obj['allow_multiple_votes'] = ApiClient.convertToType(data['allow_multiple_votes'], 'Boolean'); - } - if (data.hasOwnProperty('allow_user_suggestion')) { - obj['allow_user_suggestion'] = ApiClient.convertToType(data['allow_user_suggestion'], 'Boolean'); - } - if (data.hasOwnProperty('close_at')) { - obj['close_at'] = ApiClient.convertToType(data['close_at'], 'Number'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String'); - } - if (data.hasOwnProperty('is_anonymous')) { - obj['is_anonymous'] = ApiClient.convertToType(data['is_anonymous'], 'Boolean'); - } - if (data.hasOwnProperty('options')) { - obj['options'] = ApiClient.convertToType(data['options'], [SendBirdPollOption]); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('voter_count')) { - obj['voter_count'] = ApiClient.convertToType(data['voter_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} allow_multiple_votes - */ -SendBirdPollDetails.prototype['allow_multiple_votes'] = undefined; - -/** - * @member {Boolean} allow_user_suggestion - */ -SendBirdPollDetails.prototype['allow_user_suggestion'] = undefined; - -/** - * @member {Number} close_at - */ -SendBirdPollDetails.prototype['close_at'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdPollDetails.prototype['created_at'] = undefined; - -/** - * @member {String} created_by - */ -SendBirdPollDetails.prototype['created_by'] = undefined; - -/** - * @member {Boolean} is_anonymous - */ -SendBirdPollDetails.prototype['is_anonymous'] = undefined; - -/** - * @member {Array.} options - */ -SendBirdPollDetails.prototype['options'] = undefined; - -/** - * @member {module:model/SendBirdPollDetails.StatusEnum} status - */ -SendBirdPollDetails.prototype['status'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdPollDetails.prototype['updated_at'] = undefined; - -/** - * @member {Number} voter_count - */ -SendBirdPollDetails.prototype['voter_count'] = undefined; - - - - - -/** - * Allowed values for the status property. - * @enum {String} - * @readonly - */ -SendBirdPollDetails['StatusEnum'] = { - - /** - * value: "closed" - * @const - */ - "closed": "closed", - - /** - * value: "open" - * @const - */ - "open": "open", - - /** - * value: "removed" - * @const - */ - "removed": "removed" -}; - - - -export default SendBirdPollDetails; - diff --git a/src/model/SendBirdPollOption.js b/src/model/SendBirdPollOption.js deleted file mode 100644 index 7c5f726..0000000 --- a/src/model/SendBirdPollOption.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdPollOption model module. - * @module model/SendBirdPollOption - * @version 0.0.16 - */ -class SendBirdPollOption { - /** - * Constructs a new SendBirdPollOption. - * @alias module:model/SendBirdPollOption - */ - constructor() { - - SendBirdPollOption.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdPollOption from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollOption} obj Optional instance to populate. - * @return {module:model/SendBirdPollOption} The populated SendBirdPollOption instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollOption(); - - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('created_by')) { - obj['created_by'] = ApiClient.convertToType(data['created_by'], 'String'); - } - if (data.hasOwnProperty('id')) { - obj['id'] = ApiClient.convertToType(data['id'], 'Number'); - } - if (data.hasOwnProperty('partial_voters')) { - obj['partial_voters'] = ApiClient.convertToType(data['partial_voters'], [SendBirdUser]); - } - if (data.hasOwnProperty('poll_id')) { - obj['poll_id'] = ApiClient.convertToType(data['poll_id'], 'Number'); - } - if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('vote_count')) { - obj['vote_count'] = ApiClient.convertToType(data['vote_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} created_at - */ -SendBirdPollOption.prototype['created_at'] = undefined; - -/** - * @member {String} created_by - */ -SendBirdPollOption.prototype['created_by'] = undefined; - -/** - * @member {Number} id - */ -SendBirdPollOption.prototype['id'] = undefined; - -/** - * @member {Array.} partial_voters - */ -SendBirdPollOption.prototype['partial_voters'] = undefined; - -/** - * @member {Number} poll_id - */ -SendBirdPollOption.prototype['poll_id'] = undefined; - -/** - * @member {String} text - */ -SendBirdPollOption.prototype['text'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdPollOption.prototype['updated_at'] = undefined; - -/** - * @member {Number} vote_count - */ -SendBirdPollOption.prototype['vote_count'] = undefined; - - - - - - -export default SendBirdPollOption; - diff --git a/src/model/SendBirdPollUpdatedVoteCount.js b/src/model/SendBirdPollUpdatedVoteCount.js deleted file mode 100644 index 308340a..0000000 --- a/src/model/SendBirdPollUpdatedVoteCount.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdPollUpdatedVoteCount model module. - * @module model/SendBirdPollUpdatedVoteCount - * @version 0.0.16 - */ -class SendBirdPollUpdatedVoteCount { - /** - * Constructs a new SendBirdPollUpdatedVoteCount. - * @alias module:model/SendBirdPollUpdatedVoteCount - */ - constructor() { - - SendBirdPollUpdatedVoteCount.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdPollUpdatedVoteCount from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdPollUpdatedVoteCount} obj Optional instance to populate. - * @return {module:model/SendBirdPollUpdatedVoteCount} The populated SendBirdPollUpdatedVoteCount instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdPollUpdatedVoteCount(); - - if (data.hasOwnProperty('option_id')) { - obj['option_id'] = ApiClient.convertToType(data['option_id'], 'Number'); - } - if (data.hasOwnProperty('vote_count')) { - obj['vote_count'] = ApiClient.convertToType(data['vote_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} option_id - */ -SendBirdPollUpdatedVoteCount.prototype['option_id'] = undefined; - -/** - * @member {Number} vote_count - */ -SendBirdPollUpdatedVoteCount.prototype['vote_count'] = undefined; - - - - - - -export default SendBirdPollUpdatedVoteCount; - diff --git a/src/model/SendBirdReaction.js b/src/model/SendBirdReaction.js deleted file mode 100644 index 7b38ece..0000000 --- a/src/model/SendBirdReaction.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdReaction model module. - * @module model/SendBirdReaction - * @version 0.0.16 - */ -class SendBirdReaction { - /** - * Constructs a new SendBirdReaction. - * @alias module:model/SendBirdReaction - */ - constructor() { - - SendBirdReaction.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdReaction from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdReaction} obj Optional instance to populate. - * @return {module:model/SendBirdReaction} The populated SendBirdReaction instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdReaction(); - - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {String} key - */ -SendBirdReaction.prototype['key'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdReaction.prototype['updated_at'] = undefined; - -/** - * @member {Array.} user_ids - */ -SendBirdReaction.prototype['user_ids'] = undefined; - - - - - - -export default SendBirdReaction; - diff --git a/src/model/SendBirdRestrictionInfo.js b/src/model/SendBirdRestrictionInfo.js deleted file mode 100644 index 34851c2..0000000 --- a/src/model/SendBirdRestrictionInfo.js +++ /dev/null @@ -1,108 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdRestrictionInfo model module. - * @module model/SendBirdRestrictionInfo - * @version 0.0.16 - */ -class SendBirdRestrictionInfo { - /** - * Constructs a new SendBirdRestrictionInfo. - * @alias module:model/SendBirdRestrictionInfo - */ - constructor() { - - SendBirdRestrictionInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdRestrictionInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdRestrictionInfo} obj Optional instance to populate. - * @return {module:model/SendBirdRestrictionInfo} The populated SendBirdRestrictionInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdRestrictionInfo(); - - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('restriction_type')) { - obj['restriction_type'] = ApiClient.convertToType(data['restriction_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} description - */ -SendBirdRestrictionInfo.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdRestrictionInfo.prototype['end_at'] = undefined; - -/** - * @member {module:model/SendBirdRestrictionInfo.RestrictionTypeEnum} restriction_type - */ -SendBirdRestrictionInfo.prototype['restriction_type'] = undefined; - - - - - -/** - * Allowed values for the restriction_type property. - * @enum {String} - * @readonly - */ -SendBirdRestrictionInfo['RestrictionTypeEnum'] = { - - /** - * value: "banned" - * @const - */ - "banned": "banned", - - /** - * value: "muted" - * @const - */ - "muted": "muted" -}; - - - -export default SendBirdRestrictionInfo; - diff --git a/src/model/SendBirdSender.js b/src/model/SendBirdSender.js deleted file mode 100644 index 6ac45be..0000000 --- a/src/model/SendBirdSender.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdSender model module. - * @module model/SendBirdSender - * @version 0.0.16 - */ -class SendBirdSender { - /** - * Constructs a new SendBirdSender. - * @alias module:model/SendBirdSender - */ - constructor() { - - SendBirdSender.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdSender from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdSender} obj Optional instance to populate. - * @return {module:model/SendBirdSender} The populated SendBirdSender instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdSender(); - - if (data.hasOwnProperty('connection_status')) { - obj['connection_status'] = ApiClient.convertToType(data['connection_status'], 'String'); - } - if (data.hasOwnProperty('friend_discovery_key')) { - obj['friend_discovery_key'] = ApiClient.convertToType(data['friend_discovery_key'], 'String'); - } - if (data.hasOwnProperty('friend_name')) { - obj['friend_name'] = ApiClient.convertToType(data['friend_name'], 'String'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('is_blocked_by_me')) { - obj['is_blocked_by_me'] = ApiClient.convertToType(data['is_blocked_by_me'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('plain_profile_url')) { - obj['plain_profile_url'] = ApiClient.convertToType(data['plain_profile_url'], 'String'); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('require_auth')) { - obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} connection_status - */ -SendBirdSender.prototype['connection_status'] = undefined; - -/** - * @member {String} friend_discovery_key - */ -SendBirdSender.prototype['friend_discovery_key'] = undefined; - -/** - * @member {String} friend_name - */ -SendBirdSender.prototype['friend_name'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdSender.prototype['is_active'] = undefined; - -/** - * @member {Boolean} is_blocked_by_me - */ -SendBirdSender.prototype['is_blocked_by_me'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdSender.prototype['last_seen_at'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdSender.prototype['metadata'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdSender.prototype['nickname'] = undefined; - -/** - * @member {String} plain_profile_url - */ -SendBirdSender.prototype['plain_profile_url'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdSender.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdSender.prototype['profile_url'] = undefined; - -/** - * @member {Boolean} require_auth - */ -SendBirdSender.prototype['require_auth'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdSender.prototype['user_id'] = undefined; - - - - - - -export default SendBirdSender; - diff --git a/src/model/SendBirdThreadInfo.js b/src/model/SendBirdThreadInfo.js deleted file mode 100644 index ff0399f..0000000 --- a/src/model/SendBirdThreadInfo.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdThreadInfo model module. - * @module model/SendBirdThreadInfo - * @version 0.0.16 - */ -class SendBirdThreadInfo { - /** - * Constructs a new SendBirdThreadInfo. - * @alias module:model/SendBirdThreadInfo - */ - constructor() { - - SendBirdThreadInfo.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdThreadInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThreadInfo} obj Optional instance to populate. - * @return {module:model/SendBirdThreadInfo} The populated SendBirdThreadInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThreadInfo(); - - if (data.hasOwnProperty('last_replied_at')) { - obj['last_replied_at'] = ApiClient.convertToType(data['last_replied_at'], 'Number'); - } - if (data.hasOwnProperty('most_replied_users')) { - obj['most_replied_users'] = ApiClient.convertToType(data['most_replied_users'], [SendBirdUser]); - } - if (data.hasOwnProperty('reply_count')) { - obj['reply_count'] = ApiClient.convertToType(data['reply_count'], 'Number'); - } - if (data.hasOwnProperty('updated_at')) { - obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} last_replied_at - */ -SendBirdThreadInfo.prototype['last_replied_at'] = undefined; - -/** - * @member {Array.} most_replied_users - */ -SendBirdThreadInfo.prototype['most_replied_users'] = undefined; - -/** - * @member {Number} reply_count - */ -SendBirdThreadInfo.prototype['reply_count'] = undefined; - -/** - * @member {Number} updated_at - */ -SendBirdThreadInfo.prototype['updated_at'] = undefined; - - - - - - -export default SendBirdThreadInfo; - diff --git a/src/model/SendBirdThumbnailSBObject.js b/src/model/SendBirdThumbnailSBObject.js deleted file mode 100644 index 1bb2939..0000000 --- a/src/model/SendBirdThumbnailSBObject.js +++ /dev/null @@ -1,111 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdThumbnailSBObject model module. - * @module model/SendBirdThumbnailSBObject - * @version 0.0.16 - */ -class SendBirdThumbnailSBObject { - /** - * Constructs a new SendBirdThumbnailSBObject. - * @alias module:model/SendBirdThumbnailSBObject - */ - constructor() { - - SendBirdThumbnailSBObject.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdThumbnailSBObject from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThumbnailSBObject} obj Optional instance to populate. - * @return {module:model/SendBirdThumbnailSBObject} The populated SendBirdThumbnailSBObject instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThumbnailSBObject(); - - if (data.hasOwnProperty('height')) { - obj['height'] = ApiClient.convertToType(data['height'], 'Number'); - } - if (data.hasOwnProperty('plain_url')) { - obj['plain_url'] = ApiClient.convertToType(data['plain_url'], 'String'); - } - if (data.hasOwnProperty('real_height')) { - obj['real_height'] = ApiClient.convertToType(data['real_height'], 'Number'); - } - if (data.hasOwnProperty('real_width')) { - obj['real_width'] = ApiClient.convertToType(data['real_width'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('width')) { - obj['width'] = ApiClient.convertToType(data['width'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} height - */ -SendBirdThumbnailSBObject.prototype['height'] = undefined; - -/** - * @member {String} plain_url - */ -SendBirdThumbnailSBObject.prototype['plain_url'] = undefined; - -/** - * @member {Number} real_height - */ -SendBirdThumbnailSBObject.prototype['real_height'] = undefined; - -/** - * @member {Number} real_width - */ -SendBirdThumbnailSBObject.prototype['real_width'] = undefined; - -/** - * @member {String} url - */ -SendBirdThumbnailSBObject.prototype['url'] = undefined; - -/** - * @member {Number} width - */ -SendBirdThumbnailSBObject.prototype['width'] = undefined; - - - - - - -export default SendBirdThumbnailSBObject; - diff --git a/src/model/SendBirdThumbnailSize.js b/src/model/SendBirdThumbnailSize.js deleted file mode 100644 index 948d7b2..0000000 --- a/src/model/SendBirdThumbnailSize.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdThumbnailSize model module. - * @module model/SendBirdThumbnailSize - * @version 0.0.16 - */ -class SendBirdThumbnailSize { - /** - * Constructs a new SendBirdThumbnailSize. - * @alias module:model/SendBirdThumbnailSize - */ - constructor() { - - SendBirdThumbnailSize.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdThumbnailSize from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdThumbnailSize} obj Optional instance to populate. - * @return {module:model/SendBirdThumbnailSize} The populated SendBirdThumbnailSize instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdThumbnailSize(); - - if (data.hasOwnProperty('max_height')) { - obj['max_height'] = ApiClient.convertToType(data['max_height'], 'Number'); - } - if (data.hasOwnProperty('max_width')) { - obj['max_width'] = ApiClient.convertToType(data['max_width'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} max_height - */ -SendBirdThumbnailSize.prototype['max_height'] = undefined; - -/** - * @member {Number} max_width - */ -SendBirdThumbnailSize.prototype['max_width'] = undefined; - - - - - - -export default SendBirdThumbnailSize; - diff --git a/src/model/SendBirdUser.js b/src/model/SendBirdUser.js deleted file mode 100644 index 6e85662..0000000 --- a/src/model/SendBirdUser.js +++ /dev/null @@ -1,248 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBirdUser model module. - * @module model/SendBirdUser - * @version 0.0.16 - */ -class SendBirdUser { - /** - * Constructs a new SendBirdUser. - * User - * @alias module:model/SendBirdUser - */ - constructor() { - - SendBirdUser.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdUser from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdUser} obj Optional instance to populate. - * @return {module:model/SendBirdUser} The populated SendBirdUser instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdUser(); - - if (data.hasOwnProperty('require_auth_for_profile_image')) { - obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); - } - if (data.hasOwnProperty('is_online')) { - obj['is_online'] = ApiClient.convertToType(data['is_online'], 'Boolean'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('access_token')) { - obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); - } - if (data.hasOwnProperty('has_ever_logged_in')) { - obj['has_ever_logged_in'] = ApiClient.convertToType(data['has_ever_logged_in'], 'Boolean'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('session_tokens')) { - obj['session_tokens'] = ApiClient.convertToType(data['session_tokens'], [Object]); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('phone_number')) { - obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String'); - } - if (data.hasOwnProperty('local')) { - obj['local'] = ApiClient.convertToType(data['local'], 'String'); - } - if (data.hasOwnProperty('locale')) { - obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); - } - if (data.hasOwnProperty('is_hide_me_from_friends')) { - obj['is_hide_me_from_friends'] = ApiClient.convertToType(data['is_hide_me_from_friends'], 'Boolean'); - } - if (data.hasOwnProperty('is_shadow_blocked')) { - obj['is_shadow_blocked'] = ApiClient.convertToType(data['is_shadow_blocked'], 'Boolean'); - } - if (data.hasOwnProperty('is_created')) { - obj['is_created'] = ApiClient.convertToType(data['is_created'], 'Boolean'); - } - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('description')) { - obj['description'] = ApiClient.convertToType(data['description'], 'String'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('start_at')) { - obj['start_at'] = ApiClient.convertToType(data['start_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} require_auth_for_profile_image - */ -SendBirdUser.prototype['require_auth_for_profile_image'] = undefined; - -/** - * @member {Boolean} is_online - */ -SendBirdUser.prototype['is_online'] = undefined; - -/** - * @member {String} user_id - */ -SendBirdUser.prototype['user_id'] = undefined; - -/** - * @member {String} access_token - */ -SendBirdUser.prototype['access_token'] = undefined; - -/** - * @member {Boolean} has_ever_logged_in - */ -SendBirdUser.prototype['has_ever_logged_in'] = undefined; - -/** - * @member {Boolean} is_active - */ -SendBirdUser.prototype['is_active'] = undefined; - -/** - * @member {Number} last_seen_at - */ -SendBirdUser.prototype['last_seen_at'] = undefined; - -/** - * @member {String} nickname - */ -SendBirdUser.prototype['nickname'] = undefined; - -/** - * @member {Array.} discovery_keys - */ -SendBirdUser.prototype['discovery_keys'] = undefined; - -/** - * @member {Array.} session_tokens - */ -SendBirdUser.prototype['session_tokens'] = undefined; - -/** - * @member {Array.} preferred_languages - */ -SendBirdUser.prototype['preferred_languages'] = undefined; - -/** - * @member {String} profile_url - */ -SendBirdUser.prototype['profile_url'] = undefined; - -/** - * @member {Number} created_at - */ -SendBirdUser.prototype['created_at'] = undefined; - -/** - * @member {String} phone_number - */ -SendBirdUser.prototype['phone_number'] = undefined; - -/** - * @member {String} local - */ -SendBirdUser.prototype['local'] = undefined; - -/** - * @member {String} locale - */ -SendBirdUser.prototype['locale'] = undefined; - -/** - * @member {Boolean} is_hide_me_from_friends - */ -SendBirdUser.prototype['is_hide_me_from_friends'] = undefined; - -/** - * @member {Boolean} is_shadow_blocked - */ -SendBirdUser.prototype['is_shadow_blocked'] = undefined; - -/** - * @member {Boolean} is_created - */ -SendBirdUser.prototype['is_created'] = undefined; - -/** - * @member {Object} metadata - */ -SendBirdUser.prototype['metadata'] = undefined; - -/** - * @member {String} description - */ -SendBirdUser.prototype['description'] = undefined; - -/** - * @member {Number} end_at - */ -SendBirdUser.prototype['end_at'] = undefined; - -/** - * @member {Number} start_at - */ -SendBirdUser.prototype['start_at'] = undefined; - - - - - - -export default SendBirdUser; - diff --git a/src/model/SendBirdUserMessageParams.js b/src/model/SendBirdUserMessageParams.js deleted file mode 100644 index e1c2562..0000000 --- a/src/model/SendBirdUserMessageParams.js +++ /dev/null @@ -1,228 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SendBirdAppleCriticalAlertOptions from './SendBirdAppleCriticalAlertOptions'; -import SendBirdMessageMetaArray from './SendBirdMessageMetaArray'; -import SendBirdUser from './SendBirdUser'; - -/** - * The SendBirdUserMessageParams model module. - * @module model/SendBirdUserMessageParams - * @version 0.0.16 - */ -class SendBirdUserMessageParams { - /** - * Constructs a new SendBirdUserMessageParams. - * @alias module:model/SendBirdUserMessageParams - */ - constructor() { - - SendBirdUserMessageParams.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SendBirdUserMessageParams from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBirdUserMessageParams} obj Optional instance to populate. - * @return {module:model/SendBirdUserMessageParams} The populated SendBirdUserMessageParams instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBirdUserMessageParams(); - - if (data.hasOwnProperty('apple_critical_alert_options')) { - obj['apple_critical_alert_options'] = SendBirdAppleCriticalAlertOptions.constructFromObject(data['apple_critical_alert_options']); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('is_reply_to_channel')) { - obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('mentioned_users')) { - obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendBirdUser]); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('meta_array_keys')) { - obj['meta_array_keys'] = ApiClient.convertToType(data['meta_array_keys'], ['String']); - } - if (data.hasOwnProperty('meta_arrays')) { - obj['meta_arrays'] = ApiClient.convertToType(data['meta_arrays'], [SendBirdMessageMetaArray]); - } - if (data.hasOwnProperty('parent_message_id')) { - obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); - } - if (data.hasOwnProperty('poll_id')) { - obj['poll_id'] = ApiClient.convertToType(data['poll_id'], 'Number'); - } - if (data.hasOwnProperty('push_notification_delivery_option')) { - obj['push_notification_delivery_option'] = ApiClient.convertToType(data['push_notification_delivery_option'], 'String'); - } - if (data.hasOwnProperty('target_languages')) { - obj['target_languages'] = ApiClient.convertToType(data['target_languages'], ['String']); - } - if (data.hasOwnProperty('translation_target_languages')) { - obj['translation_target_languages'] = ApiClient.convertToType(data['translation_target_languages'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SendBirdAppleCriticalAlertOptions} apple_critical_alert_options - */ -SendBirdUserMessageParams.prototype['apple_critical_alert_options'] = undefined; - -/** - * @member {String} custom_type - */ -SendBirdUserMessageParams.prototype['custom_type'] = undefined; - -/** - * @member {String} data - */ -SendBirdUserMessageParams.prototype['data'] = undefined; - -/** - * @member {Boolean} is_reply_to_channel - */ -SendBirdUserMessageParams.prototype['is_reply_to_channel'] = undefined; - -/** - * @member {module:model/SendBirdUserMessageParams.MentionTypeEnum} mention_type - */ -SendBirdUserMessageParams.prototype['mention_type'] = undefined; - -/** - * @member {Array.} mentioned_user_ids - */ -SendBirdUserMessageParams.prototype['mentioned_user_ids'] = undefined; - -/** - * @member {Array.} mentioned_users - */ -SendBirdUserMessageParams.prototype['mentioned_users'] = undefined; - -/** - * @member {String} message - */ -SendBirdUserMessageParams.prototype['message'] = undefined; - -/** - * @member {Array.} meta_array_keys - */ -SendBirdUserMessageParams.prototype['meta_array_keys'] = undefined; - -/** - * @member {Array.} meta_arrays - */ -SendBirdUserMessageParams.prototype['meta_arrays'] = undefined; - -/** - * @member {Number} parent_message_id - */ -SendBirdUserMessageParams.prototype['parent_message_id'] = undefined; - -/** - * @member {Number} poll_id - */ -SendBirdUserMessageParams.prototype['poll_id'] = undefined; - -/** - * @member {module:model/SendBirdUserMessageParams.PushNotificationDeliveryOptionEnum} push_notification_delivery_option - */ -SendBirdUserMessageParams.prototype['push_notification_delivery_option'] = undefined; - -/** - * @member {Array.} target_languages - */ -SendBirdUserMessageParams.prototype['target_languages'] = undefined; - -/** - * @member {Array.} translation_target_languages - */ -SendBirdUserMessageParams.prototype['translation_target_languages'] = undefined; - - - - - -/** - * Allowed values for the mention_type property. - * @enum {String} - * @readonly - */ -SendBirdUserMessageParams['MentionTypeEnum'] = { - - /** - * value: "channel" - * @const - */ - "channel": "channel", - - /** - * value: "users" - * @const - */ - "users": "users" -}; - - -/** - * Allowed values for the push_notification_delivery_option property. - * @enum {String} - * @readonly - */ -SendBirdUserMessageParams['PushNotificationDeliveryOptionEnum'] = { - - /** - * value: "default" - * @const - */ - "default": "default", - - /** - * value: "suppress" - * @const - */ - "suppress": "suppress" -}; - - - -export default SendBirdUserMessageParams; - diff --git a/src/model/SendBotSMessageData.js b/src/model/SendBotSMessageData.js deleted file mode 100644 index 1ee754b..0000000 --- a/src/model/SendBotSMessageData.js +++ /dev/null @@ -1,148 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendBotSMessageData model module. - * @module model/SendBotSMessageData - * @version 0.0.16 - */ -class SendBotSMessageData { - /** - * Constructs a new SendBotSMessageData. - * @alias module:model/SendBotSMessageData - * @param message {String} Specifies the content of the message sent by the bot. - * @param channelUrl {String} Specifies the URL of the channel where the message is sent to. - */ - constructor(message, channelUrl) { - - SendBotSMessageData.initialize(this, message, channelUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, message, channelUrl) { - obj['message'] = message; - obj['channel_url'] = channelUrl; - } - - /** - * Constructs a SendBotSMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendBotSMessageData} obj Optional instance to populate. - * @return {module:model/SendBotSMessageData} The populated SendBotSMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendBotSMessageData(); - - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('send_push')) { - obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); - } - if (data.hasOwnProperty('mentioned')) { - obj['mentioned'] = ApiClient.convertToType(data['mentioned'], ['String']); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('dedup_id')) { - obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the content of the message sent by the bot. - * @member {String} message - */ -SendBotSMessageData.prototype['message'] = undefined; - -/** - * Specifies the URL of the channel where the message is sent to. - * @member {String} channel_url - */ -SendBotSMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters. - * @member {String} custom_type - */ -SendBotSMessageData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -SendBotSMessageData.prototype['data'] = undefined; - -/** - * Determines whether to send a push notification for the message to the members of the channel (Default: true) - * @member {Boolean} send_push - */ -SendBotSMessageData.prototype['send_push'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who get a notification for the message. - * @member {Array.} mentioned - */ -SendBotSMessageData.prototype['mentioned'] = undefined; - -/** - * Determines whether to mark the message as read for the bot. If set to false, the bot's unread_count and read_receipt remain unchanged after the message is sent. (Default: true) - * @member {Boolean} mark_as_read - */ -SendBotSMessageData.prototype['mark_as_read'] = undefined; - -/** - * Specifies the unique ID for the message to prevent the same message data from getting sent to the channel. - * @member {String} dedup_id - */ -SendBotSMessageData.prototype['dedup_id'] = undefined; - -/** - * Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. - * @member {Number} created_at - */ -SendBotSMessageData.prototype['created_at'] = undefined; - - - - - - -export default SendBotSMessageData; - diff --git a/src/model/SendFileMessageRequestBody.js b/src/model/SendFileMessageRequestBody.js new file mode 100644 index 0000000..7afb30e --- /dev/null +++ b/src/model/SendFileMessageRequestBody.js @@ -0,0 +1,275 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdFile from './SendbirdFile'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The SendFileMessageRequestBody model module. + * @module model/SendFileMessageRequestBody + * @version 2.0.0 + */ +class SendFileMessageRequestBody { + /** + * Constructs a new SendFileMessageRequestBody. + * @alias module:model/SendFileMessageRequestBody + * @param files {module:model/SendbirdFile} + * @param messageType {module:model/SendFileMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of FILE represents a file message. + */ + constructor(files, messageType) { + + SendFileMessageRequestBody.initialize(this, files, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, files, messageType) { + obj['files'] = files; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendFileMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendFileMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendFileMessageRequestBody} The populated SendFileMessageRequestBody instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendFileMessageRequestBody(); + + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = ApiClient.convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = ApiClient.convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('files')) { + obj['files'] = SendbirdFile.constructFromObject(data['files']); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = ApiClient.convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = ApiClient.convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('thumbnail1')) { + obj['thumbnail1'] = ApiClient.convertToType(data['thumbnail1'], 'String'); + } + if (data.hasOwnProperty('thumbnail2')) { + obj['thumbnail2'] = ApiClient.convertToType(data['thumbnail2'], 'String'); + } + if (data.hasOwnProperty('thumbnail3')) { + obj['thumbnail3'] = ApiClient.convertToType(data['thumbnail3'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = ApiClient.convertToType(data['thumbnails'], ['String']); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = ApiClient.convertToType(data['volume'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} apns_bundle_id + */ +SendFileMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendFileMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendFileMessageRequestBody.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendFileMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendFileMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendFileMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {module:model/SendbirdFile} files + */ +SendFileMessageRequestBody.prototype['files'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendFileMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendFileMessageRequestBody.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendFileMessageRequestBody.MentionTypeEnum} mention_type + */ +SendFileMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendFileMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * Specifies the type of the message. The value of FILE represents a file message. + * @member {module:model/SendFileMessageRequestBody.MessageTypeEnum} message_type + */ +SendFileMessageRequestBody.prototype['message_type'] = undefined; + +/** + * Determines whether to require an authentication key to verify if the file is being properly accessed. Only the user who uploaded the file or users who are in the channel where the file was uploaded should have access. The authentication key managed internally by the Sendbird system is generated every time a user logs in to the Sendbird server and is valid for three days starting from the last login. If set to false, Sendbird tries to access a file without any key. To access encrypted files, such as the files in the Sendbird server which are by default encrypted, the property must be set to true. (Default: false) The require_auth parameter only works if the file or URL is managed by Sendbird, which means that when you upload files using multipart format or provide URLs that point to the files hosted on the Sendbird server. However, if the file is hosted on a server or service that is not managed by Sendbird, access control and authentication for the file should be handled by the respective server or service hosting the file. + * @member {Boolean} require_auth + */ +SendFileMessageRequestBody.prototype['require_auth'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendFileMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendFileMessageRequestBody.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendFileMessageRequestBody.prototype['sound'] = undefined; + +/** + * @member {String} thumbnail1 + */ +SendFileMessageRequestBody.prototype['thumbnail1'] = undefined; + +/** + * @member {String} thumbnail2 + */ +SendFileMessageRequestBody.prototype['thumbnail2'] = undefined; + +/** + * @member {String} thumbnail3 + */ +SendFileMessageRequestBody.prototype['thumbnail3'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendFileMessageRequestBody.prototype['thumbnails'] = undefined; + +/** + * @member {Number} volume + */ +SendFileMessageRequestBody.prototype['volume'] = undefined; + + + + + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendFileMessageRequestBody['MentionTypeEnum'] = { + + /** + * value: "users" + * @const + */ + "users": "users", + + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendFileMessageRequestBody['MessageTypeEnum'] = { + + /** + * value: "FILE" + * @const + */ + "FILE": "FILE" +}; + + + +export default SendFileMessageRequestBody; + diff --git a/src/model/SendMessageData.js b/src/model/SendMessageData.js deleted file mode 100644 index 6f078d4..0000000 --- a/src/model/SendMessageData.js +++ /dev/null @@ -1,294 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SendMessageData model module. - * @module model/SendMessageData - * @version 0.0.16 - */ -class SendMessageData { - /** - * Constructs a new SendMessageData. - * @alias module:model/SendMessageData - * @param userId {String} Specifies the user ID of the sender. - * @param messageType {String} Specifies the type of the message as MESG, FILE or ADMM - * @param message {String} Specifies the content of the message. - */ - constructor(userId, messageType, message) { - - SendMessageData.initialize(this, userId, messageType, message); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId, messageType, message) { - obj['user_id'] = userId; - obj['message_type'] = messageType; - obj['message'] = message; - } - - /** - * Constructs a SendMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SendMessageData} obj Optional instance to populate. - * @return {module:model/SendMessageData} The populated SendMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SendMessageData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('send_push')) { - obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); - } - if (data.hasOwnProperty('is_silent')) { - obj['is_silent'] = ApiClient.convertToType(data['is_silent'], 'Boolean'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('dedup_id')) { - obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); - } - if (data.hasOwnProperty('apns_bundle_id')) { - obj['apns_bundle_id'] = ApiClient.convertToType(data['apns_bundle_id'], 'String'); - } - if (data.hasOwnProperty('sound')) { - obj['sound'] = ApiClient.convertToType(data['sound'], 'String'); - } - if (data.hasOwnProperty('volume')) { - obj['volume'] = ApiClient.convertToType(data['volume'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ApiClient.convertToType(data['file'], 'String'); - } - if (data.hasOwnProperty('file_name')) { - obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); - } - if (data.hasOwnProperty('file_size')) { - obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); - } - if (data.hasOwnProperty('file_type')) { - obj['file_type'] = ApiClient.convertToType(data['file_type'], 'String'); - } - if (data.hasOwnProperty('thumbnails')) { - obj['thumbnails'] = ApiClient.convertToType(data['thumbnails'], ['String']); - } - if (data.hasOwnProperty('thumbnail1')) { - obj['thumbnail1'] = ApiClient.convertToType(data['thumbnail1'], 'String'); - } - if (data.hasOwnProperty('thumbnail2')) { - obj['thumbnail2'] = ApiClient.convertToType(data['thumbnail2'], 'String'); - } - if (data.hasOwnProperty('thumbnail3')) { - obj['thumbnail3'] = ApiClient.convertToType(data['thumbnail3'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the user ID of the sender. - * @member {String} user_id - */ -SendMessageData.prototype['user_id'] = undefined; - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -SendMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the channel to send a message to. - * @member {String} channel_url - */ -SendMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the type of the message as MESG, FILE or ADMM - * @member {String} message_type - */ -SendMessageData.prototype['message_type'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message - */ -SendMessageData.prototype['message'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -SendMessageData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -SendMessageData.prototype['data'] = undefined; - -/** - * Determines whether to send a push notification for the message to the members of the channel (applicable to group channels only). Unlike text and file messages, a push notification for an admin message is not sent by default. (Default: true) - * @member {Boolean} send_push - */ -SendMessageData.prototype['send_push'] = undefined; - -/** - * Specifies the mentioning type which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) - * @member {String} mention_type - */ -SendMessageData.prototype['mention_type'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who will get a notification for the message. - * @member {Array.} mentioned_user_ids - */ -SendMessageData.prototype['mentioned_user_ids'] = undefined; - -/** - * Determines whether to send a message without updating some of the channel properties. If a message is sent in a channel, with this property set to true, the channel's last_message is updated only for the sender while its unread_message_count remains unchanged for all channel members. Also, the message doesn't send a push notification to message receivers. If the message is sent to a hidden channel, the channel still remains hidden. (Default: false)

Once the value of this property is set, it can't be reverted. - * @member {Boolean} is_silent - */ -SendMessageData.prototype['is_silent'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -SendMessageData.prototype['sorted_metaarray'] = undefined; - -/** - * Specifies the time that the message was sent, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. This property can be used when migrating the messages of other system to Sendbird server. If specified, the server sets the message's creation time as the property value. - * @member {Number} created_at - */ -SendMessageData.prototype['created_at'] = undefined; - -/** - * Specifies the unique message ID created by other system. In general, this property is used to prevent the same message data from getting inserted when migrating the messages of the other system to Sendbird server. If specified, the server performs a duplicate check using the property value. - * @member {String} dedup_id - */ -SendMessageData.prototype['dedup_id'] = undefined; - -/** - * Specifies the bundle ID of the client app in order to send a push notification to iOS devices. You can find this in Settings > Chat > Notifications > Push notification services - * @member {String} apns_bundle_id - */ -SendMessageData.prototype['apns_bundle_id'] = undefined; - -/** - * Specifies the name of the file that sounds for critical alerts. - * @member {String} sound - */ -SendMessageData.prototype['sound'] = undefined; - -/** - * Specifies the volume of the critical alert sound. The volume ranges from 0.0 to 1.0, which indicates silent and full volume, respectively. (Default 1.0) - * @member {Number} volume - */ -SendMessageData.prototype['volume'] = undefined; - -/** - * @member {String} url - */ -SendMessageData.prototype['url'] = undefined; - -/** - * @member {String} file - */ -SendMessageData.prototype['file'] = undefined; - -/** - * @member {String} file_name - */ -SendMessageData.prototype['file_name'] = undefined; - -/** - * @member {Number} file_size - */ -SendMessageData.prototype['file_size'] = undefined; - -/** - * @member {String} file_type - */ -SendMessageData.prototype['file_type'] = undefined; - -/** - * @member {Array.} thumbnails - */ -SendMessageData.prototype['thumbnails'] = undefined; - -/** - * @member {String} thumbnail1 - */ -SendMessageData.prototype['thumbnail1'] = undefined; - -/** - * @member {String} thumbnail2 - */ -SendMessageData.prototype['thumbnail2'] = undefined; - -/** - * @member {String} thumbnail3 - */ -SendMessageData.prototype['thumbnail3'] = undefined; - - - - - - -export default SendMessageData; - diff --git a/src/model/SendTextMessageRequestBody.js b/src/model/SendTextMessageRequestBody.js new file mode 100644 index 0000000..cbbecc3 --- /dev/null +++ b/src/model/SendTextMessageRequestBody.js @@ -0,0 +1,258 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendTextMessageRequestBodyPushMessageTemplate from './SendTextMessageRequestBodyPushMessageTemplate'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The SendTextMessageRequestBody model module. + * @module model/SendTextMessageRequestBody + * @version 2.0.0 + */ +class SendTextMessageRequestBody { + /** + * Constructs a new SendTextMessageRequestBody. + * @alias module:model/SendTextMessageRequestBody + * @param message {String} + * @param messageType {module:model/SendTextMessageRequestBody.MessageTypeEnum} Specifies the type of the message. The value of MESG represents a text message. + */ + constructor(message, messageType) { + + SendTextMessageRequestBody.initialize(this, message, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, message, messageType) { + obj['message'] = message; + obj['message_type'] = messageType; + } + + /** + * Constructs a SendTextMessageRequestBody from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBody} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBody} The populated SendTextMessageRequestBody instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBody(); + + if (data.hasOwnProperty('apns_bundle_id')) { + obj['apns_bundle_id'] = ApiClient.convertToType(data['apns_bundle_id'], 'String'); + } + if (data.hasOwnProperty('apple_critical_alert_options')) { + obj['apple_critical_alert_options'] = ApiClient.convertToType(data['apple_critical_alert_options'], Object); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = ApiClient.convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('include_poll_details')) { + obj['include_poll_details'] = ApiClient.convertToType(data['include_poll_details'], 'Boolean'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = ApiClient.convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mark_as_read')) { + obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('poll_id')) { + obj['poll_id'] = ApiClient.convertToType(data['poll_id'], 'Number'); + } + if (data.hasOwnProperty('push_message_template')) { + obj['push_message_template'] = SendTextMessageRequestBodyPushMessageTemplate.constructFromObject(data['push_message_template']); + } + if (data.hasOwnProperty('send_push')) { + obj['send_push'] = ApiClient.convertToType(data['send_push'], 'Boolean'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + if (data.hasOwnProperty('sound')) { + obj['sound'] = ApiClient.convertToType(data['sound'], 'String'); + } + if (data.hasOwnProperty('volume')) { + obj['volume'] = ApiClient.convertToType(data['volume'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} apns_bundle_id + */ +SendTextMessageRequestBody.prototype['apns_bundle_id'] = undefined; + +/** + * @member {Object} apple_critical_alert_options + */ +SendTextMessageRequestBody.prototype['apple_critical_alert_options'] = undefined; + +/** + * @member {Number} created_at + */ +SendTextMessageRequestBody.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendTextMessageRequestBody.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendTextMessageRequestBody.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +SendTextMessageRequestBody.prototype['dedup_id'] = undefined; + +/** + * @member {Boolean} include_poll_details + */ +SendTextMessageRequestBody.prototype['include_poll_details'] = undefined; + +/** + * @member {Boolean} is_silent + */ +SendTextMessageRequestBody.prototype['is_silent'] = undefined; + +/** + * @member {Boolean} mark_as_read + */ +SendTextMessageRequestBody.prototype['mark_as_read'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBody.MentionTypeEnum} mention_type + */ +SendTextMessageRequestBody.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +SendTextMessageRequestBody.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +SendTextMessageRequestBody.prototype['message'] = undefined; + +/** + * Specifies the type of the message. The value of MESG represents a text message. + * @member {module:model/SendTextMessageRequestBody.MessageTypeEnum} message_type + */ +SendTextMessageRequestBody.prototype['message_type'] = undefined; + +/** + * @member {Number} poll_id + */ +SendTextMessageRequestBody.prototype['poll_id'] = undefined; + +/** + * @member {module:model/SendTextMessageRequestBodyPushMessageTemplate} push_message_template + */ +SendTextMessageRequestBody.prototype['push_message_template'] = undefined; + +/** + * @member {Boolean} send_push + */ +SendTextMessageRequestBody.prototype['send_push'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendTextMessageRequestBody.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} sound + */ +SendTextMessageRequestBody.prototype['sound'] = undefined; + +/** + * @member {Number} volume + */ +SendTextMessageRequestBody.prototype['volume'] = undefined; + + + + + +/** + * Allowed values for the mention_type property. + * @enum {String} + * @readonly + */ +SendTextMessageRequestBody['MentionTypeEnum'] = { + + /** + * value: "users" + * @const + */ + "users": "users", + + /** + * value: "channel" + * @const + */ + "channel": "channel" +}; + + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +SendTextMessageRequestBody['MessageTypeEnum'] = { + + /** + * value: "MESG" + * @const + */ + "MESG": "MESG" +}; + + + +export default SendTextMessageRequestBody; + diff --git a/src/model/SendTextMessageRequestBodyPushMessageTemplate.js b/src/model/SendTextMessageRequestBodyPushMessageTemplate.js new file mode 100644 index 0000000..0ee6288 --- /dev/null +++ b/src/model/SendTextMessageRequestBodyPushMessageTemplate.js @@ -0,0 +1,96 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendTextMessageRequestBodyPushMessageTemplateOneOf from './SendTextMessageRequestBodyPushMessageTemplateOneOf'; + +/** + * The SendTextMessageRequestBodyPushMessageTemplate model module. + * @module model/SendTextMessageRequestBodyPushMessageTemplate + * @version 2.0.0 + */ +class SendTextMessageRequestBodyPushMessageTemplate { + /** + * Constructs a new SendTextMessageRequestBodyPushMessageTemplate. + * Specifies the content of a push notification customized for the message. This property only applies to group channels. To choose from a push notification content template within your Sendbird application, specify a string value of default or alternative. To create a new push notification content tailored to the message being sent, use the properties listed below to specify its title and body in a nested object format. * This property overrides the application's default push notification content template or the preference chosen by the user. + * @alias module:model/SendTextMessageRequestBodyPushMessageTemplate + * @implements module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf + */ + constructor() { + SendTextMessageRequestBodyPushMessageTemplateOneOf.initialize(this); + SendTextMessageRequestBodyPushMessageTemplate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendTextMessageRequestBodyPushMessageTemplate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBodyPushMessageTemplate} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBodyPushMessageTemplate} The populated SendTextMessageRequestBodyPushMessageTemplate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBodyPushMessageTemplate(); + SendTextMessageRequestBodyPushMessageTemplateOneOf.constructFromObject(data, obj); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('body')) { + obj['body'] = ApiClient.convertToType(data['body'], 'String'); + } + } + return obj; + } + + +} + +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +SendTextMessageRequestBodyPushMessageTemplate.prototype['title'] = undefined; + +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +SendTextMessageRequestBodyPushMessageTemplate.prototype['body'] = undefined; + + +// Implement SendTextMessageRequestBodyPushMessageTemplateOneOf interface: +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['title'] = undefined; +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['body'] = undefined; + + + + +export default SendTextMessageRequestBodyPushMessageTemplate; + diff --git a/src/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js b/src/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js new file mode 100644 index 0000000..c52e30f --- /dev/null +++ b/src/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.js @@ -0,0 +1,81 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendTextMessageRequestBodyPushMessageTemplateOneOf model module. + * @module model/SendTextMessageRequestBodyPushMessageTemplateOneOf + * @version 2.0.0 + */ +class SendTextMessageRequestBodyPushMessageTemplateOneOf { + /** + * Constructs a new SendTextMessageRequestBodyPushMessageTemplateOneOf. + * @alias module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf + */ + constructor() { + + SendTextMessageRequestBodyPushMessageTemplateOneOf.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendTextMessageRequestBodyPushMessageTemplateOneOf from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf} obj Optional instance to populate. + * @return {module:model/SendTextMessageRequestBodyPushMessageTemplateOneOf} The populated SendTextMessageRequestBodyPushMessageTemplateOneOf instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendTextMessageRequestBodyPushMessageTemplateOneOf(); + + if (data.hasOwnProperty('title')) { + obj['title'] = ApiClient.convertToType(data['title'], 'String'); + } + if (data.hasOwnProperty('body')) { + obj['body'] = ApiClient.convertToType(data['body'], 'String'); + } + } + return obj; + } + + +} + +/** + * Specifies the title of the custom push notification template. You can customize the title using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. + * @member {String} title + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['title'] = undefined; + +/** + * Specifies the body of the custom push notification template. You can customize the body using the variables sender_name and message, which can be later replaced with corresponding real values when the template is sent out as a notification request to FCM, HMS, or APNs. If not specified, the body by default contains the message content inside the message property. + * @member {String} body + */ +SendTextMessageRequestBodyPushMessageTemplateOneOf.prototype['body'] = undefined; + + + + + + +export default SendTextMessageRequestBodyPushMessageTemplateOneOf; + diff --git a/src/model/SendbirdBasicUserInfo.js b/src/model/SendbirdBasicUserInfo.js new file mode 100644 index 0000000..79e7c3f --- /dev/null +++ b/src/model/SendbirdBasicUserInfo.js @@ -0,0 +1,156 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdBasicUserInfo model module. + * @module model/SendbirdBasicUserInfo + * @version 2.0.0 + */ +class SendbirdBasicUserInfo { + /** + * Constructs a new SendbirdBasicUserInfo. + * @alias module:model/SendbirdBasicUserInfo + * @param userId {String} + */ + constructor(userId) { + + SendbirdBasicUserInfo.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdBasicUserInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdBasicUserInfo} obj Optional instance to populate. + * @return {module:model/SendbirdBasicUserInfo} The populated SendbirdBasicUserInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdBasicUserInfo(); + + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocked_by_me')) { + obj['is_blocked_by_me'] = ApiClient.convertToType(data['is_blocked_by_me'], 'Boolean'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = ApiClient.convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdBasicUserInfo.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdBasicUserInfo.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_blocked_by_me + */ +SendbirdBasicUserInfo.prototype['is_blocked_by_me'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo.RoleEnum} role + */ +SendbirdBasicUserInfo.prototype['role'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdBasicUserInfo.prototype['nickname'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdBasicUserInfo.prototype['user_id'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdBasicUserInfo.prototype['profile_url'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdBasicUserInfo.prototype['metadata'] = undefined; + + + + + +/** + * Allowed values for the role property. + * @enum {String} + * @readonly + */ +SendbirdBasicUserInfo['RoleEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + + + +export default SendbirdBasicUserInfo; + diff --git a/src/model/SendbirdDisappearingMessage.js b/src/model/SendbirdDisappearingMessage.js new file mode 100644 index 0000000..d731be3 --- /dev/null +++ b/src/model/SendbirdDisappearingMessage.js @@ -0,0 +1,79 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdDisappearingMessage model module. + * @module model/SendbirdDisappearingMessage + * @version 2.0.0 + */ +class SendbirdDisappearingMessage { + /** + * Constructs a new SendbirdDisappearingMessage. + * @alias module:model/SendbirdDisappearingMessage + */ + constructor() { + + SendbirdDisappearingMessage.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdDisappearingMessage from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdDisappearingMessage} obj Optional instance to populate. + * @return {module:model/SendbirdDisappearingMessage} The populated SendbirdDisappearingMessage instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdDisappearingMessage(); + + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('is_triggered_by_message_read')) { + obj['is_triggered_by_message_read'] = ApiClient.convertToType(data['is_triggered_by_message_read'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Number} message_survival_seconds + */ +SendbirdDisappearingMessage.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Boolean} is_triggered_by_message_read + */ +SendbirdDisappearingMessage.prototype['is_triggered_by_message_read'] = undefined; + + + + + + +export default SendbirdDisappearingMessage; + diff --git a/src/model/SendbirdExtendedMessagePayload.js b/src/model/SendbirdExtendedMessagePayload.js new file mode 100644 index 0000000..5869499 --- /dev/null +++ b/src/model/SendbirdExtendedMessagePayload.js @@ -0,0 +1,82 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdExtendedMessagePayload model module. + * @module model/SendbirdExtendedMessagePayload + * @version 2.0.0 + */ +class SendbirdExtendedMessagePayload { + /** + * Constructs a new SendbirdExtendedMessagePayload. + * Specifies the extended message payload which is used to send a message with a custom message type. + * @alias module:model/SendbirdExtendedMessagePayload + */ + constructor() { + + SendbirdExtendedMessagePayload.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdExtendedMessagePayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdExtendedMessagePayload} obj Optional instance to populate. + * @return {module:model/SendbirdExtendedMessagePayload} The populated SendbirdExtendedMessagePayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdExtendedMessagePayload(); + + if (data.hasOwnProperty('custom_view')) { + obj['custom_view'] = ApiClient.convertToType(data['custom_view'], Object); + } + if (data.hasOwnProperty('suggested_replies')) { + obj['suggested_replies'] = ApiClient.convertToType(data['suggested_replies'], ['String']); + } + } + return obj; + } + + +} + +/** + * JSON format you want to embed in message, eq : {\"title\": \"title\", \"image\": \"https://link.to/image.jpg\"} + * @member {Object} custom_view + */ +SendbirdExtendedMessagePayload.prototype['custom_view'] = undefined; + +/** + * Specifies an array of suggested replies to be sent with the message. + * @member {Array.} suggested_replies + */ +SendbirdExtendedMessagePayload.prototype['suggested_replies'] = undefined; + + + + + + +export default SendbirdExtendedMessagePayload; + diff --git a/src/model/SendbirdFile.js b/src/model/SendbirdFile.js new file mode 100644 index 0000000..6259f55 --- /dev/null +++ b/src/model/SendbirdFile.js @@ -0,0 +1,112 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdThumbnail from './SendbirdThumbnail'; + +/** + * The SendbirdFile model module. + * @module model/SendbirdFile + * @version 2.0.0 + */ +class SendbirdFile { + /** + * Constructs a new SendbirdFile. + * @alias module:model/SendbirdFile + */ + constructor() { + + SendbirdFile.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdFile from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdFile} obj Optional instance to populate. + * @return {module:model/SendbirdFile} The populated SendbirdFile instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdFile(); + + if (data.hasOwnProperty('url')) { + obj['url'] = ApiClient.convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('file_name')) { + obj['file_name'] = ApiClient.convertToType(data['file_name'], 'String'); + } + if (data.hasOwnProperty('file_size')) { + obj['file_size'] = ApiClient.convertToType(data['file_size'], 'Number'); + } + if (data.hasOwnProperty('file_type')) { + obj['file_type'] = ApiClient.convertToType(data['file_type'], 'String'); + } + if (data.hasOwnProperty('thumbnails')) { + obj['thumbnails'] = ApiClient.convertToType(data['thumbnails'], [SendbirdThumbnail]); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} url + */ +SendbirdFile.prototype['url'] = undefined; + +/** + * @member {String} file_name + */ +SendbirdFile.prototype['file_name'] = undefined; + +/** + * @member {Number} file_size + */ +SendbirdFile.prototype['file_size'] = undefined; + +/** + * @member {String} file_type + */ +SendbirdFile.prototype['file_type'] = undefined; + +/** + * @member {Array.} thumbnails + */ +SendbirdFile.prototype['thumbnails'] = undefined; + +/** + * @member {Boolean} require_auth + */ +SendbirdFile.prototype['require_auth'] = undefined; + + + + + + +export default SendbirdFile; + diff --git a/src/model/SendbirdGroupChannel.js b/src/model/SendbirdGroupChannel.js new file mode 100644 index 0000000..e31a2fb --- /dev/null +++ b/src/model/SendbirdGroupChannel.js @@ -0,0 +1,545 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; +import SendbirdDisappearingMessage from './SendbirdDisappearingMessage'; +import SendbirdMember from './SendbirdMember'; +import SendbirdMessageResponse from './SendbirdMessageResponse'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; +import SendbirdSmsFallback from './SendbirdSmsFallback'; + +/** + * The SendbirdGroupChannel model module. + * @module model/SendbirdGroupChannel + * @version 2.0.0 + */ +class SendbirdGroupChannel { + /** + * Constructs a new SendbirdGroupChannel. + * @alias module:model/SendbirdGroupChannel + * @param channelUrl {String} + */ + constructor(channelUrl) { + + SendbirdGroupChannel.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdGroupChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannel} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannel} The populated SendbirdGroupChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannel(); + + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = SendbirdBasicUserInfo.constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = ApiClient.convertToType(data['delivery_receipt'], Object); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = SendbirdDisappearingMessage.constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = ApiClient.convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = ApiClient.convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('hidden_state')) { + obj['hidden_state'] = ApiClient.convertToType(data['hidden_state'], 'String'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('invited_at')) { + obj['invited_at'] = ApiClient.convertToType(data['invited_at'], 'Number'); + } + if (data.hasOwnProperty('inviter')) { + obj['inviter'] = SendbirdBasicUserInfo.constructFromObject(data['inviter']); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_exclusive')) { + obj['is_exclusive'] = ApiClient.convertToType(data['is_exclusive'], 'Boolean'); + } + if (data.hasOwnProperty('is_hidden')) { + obj['is_hidden'] = ApiClient.convertToType(data['is_hidden'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_push_enabled')) { + obj['is_push_enabled'] = ApiClient.convertToType(data['is_push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('joined_ts')) { + obj['joined_ts'] = ApiClient.convertToType(data['joined_ts'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = SendbirdMessageResponse.constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('member_state')) { + obj['member_state'] = ApiClient.convertToType(data['member_state'], 'String'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = ApiClient.convertToType(data['members'], [SendbirdMember]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('my_role')) { + obj['my_role'] = ApiClient.convertToType(data['my_role'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = ApiClient.convertToType(data['read_receipt'], {'String': 'Number'}); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = SendbirdSmsFallback.constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('ts_message_offset')) { + obj['ts_message_offset'] = ApiClient.convertToType(data['ts_message_offset'], 'Number'); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('user_last_read')) { + obj['user_last_read'] = ApiClient.convertToType(data['user_last_read'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {String} channel_url + */ +SendbirdGroupChannel.prototype['channel_url'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.CountPreferenceEnum} count_preference + */ +SendbirdGroupChannel.prototype['count_preference'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannel.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannel.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannel.prototype['data'] = undefined; + +/** + * @member {Object} delivery_receipt + */ +SendbirdGroupChannel.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannel.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannel.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannel.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannel.prototype['has_bot'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.HiddenStateEnum} hidden_state + */ +SendbirdGroupChannel.prototype['hidden_state'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannel.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Number} invited_at + */ +SendbirdGroupChannel.prototype['invited_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} inviter + */ +SendbirdGroupChannel.prototype['inviter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannel.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannel.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannel.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannel.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannel.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_exclusive + */ +SendbirdGroupChannel.prototype['is_exclusive'] = undefined; + +/** + * @member {Boolean} is_hidden + */ +SendbirdGroupChannel.prototype['is_hidden'] = undefined; + +/** + * @member {Boolean} is_muted + */ +SendbirdGroupChannel.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannel.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_push_enabled + */ +SendbirdGroupChannel.prototype['is_push_enabled'] = undefined; + +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannel.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannel.prototype['joined_member_count'] = undefined; + +/** + * @member {Number} joined_ts + */ +SendbirdGroupChannel.prototype['joined_ts'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannel.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannel.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannel.prototype['member_count'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.MemberStateEnum} member_state + */ +SendbirdGroupChannel.prototype['member_state'] = undefined; + +/** + * @member {Array.} members + */ +SendbirdGroupChannel.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannel.prototype['message_survival_seconds'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdGroupChannel.prototype['metadata'] = undefined; + +/** + * @member {module:model/SendbirdGroupChannel.MyRoleEnum} my_role + */ +SendbirdGroupChannel.prototype['my_role'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannel.prototype['name'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdGroupChannel.prototype['push_trigger_option'] = undefined; + +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannel.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannel.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} ts_message_offset + */ +SendbirdGroupChannel.prototype['ts_message_offset'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannel.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannel.prototype['unread_message_count'] = undefined; + +/** + * @member {Number} user_last_read + */ +SendbirdGroupChannel.prototype['user_last_read'] = undefined; + + + + + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + +/** + * Allowed values for the hidden_state property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['HiddenStateEnum'] = { + + /** + * value: "hidden_allow_auto_unhide" + * @const + */ + "hidden_allow_auto_unhide": "hidden_allow_auto_unhide", + + /** + * value: "hidden_prevent_auto_unhide" + * @const + */ + "hidden_prevent_auto_unhide": "hidden_prevent_auto_unhide", + + /** + * value: "unhidden" + * @const + */ + "unhidden": "unhidden" +}; + + +/** + * Allowed values for the member_state property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['MemberStateEnum'] = { + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined", + + /** + * value: "none" + * @const + */ + "none": "none" +}; + + +/** + * Allowed values for the my_role property. + * @enum {String} + * @readonly + */ +SendbirdGroupChannel['MyRoleEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + + + +export default SendbirdGroupChannel; + diff --git a/src/model/SendbirdGroupChannelDetail.js b/src/model/SendbirdGroupChannelDetail.js new file mode 100644 index 0000000..21c08c7 --- /dev/null +++ b/src/model/SendbirdGroupChannelDetail.js @@ -0,0 +1,336 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; +import SendbirdDisappearingMessage from './SendbirdDisappearingMessage'; +import SendbirdGroupChannelDetailChannel from './SendbirdGroupChannelDetailChannel'; +import SendbirdMember from './SendbirdMember'; +import SendbirdMessageResponse from './SendbirdMessageResponse'; +import SendbirdSmsFallback from './SendbirdSmsFallback'; +import SendbirdUser from './SendbirdUser'; + +/** + * The SendbirdGroupChannelDetail model module. + * @module model/SendbirdGroupChannelDetail + * @version 2.0.0 + */ +class SendbirdGroupChannelDetail { + /** + * Constructs a new SendbirdGroupChannelDetail. + * @alias module:model/SendbirdGroupChannelDetail + * @param channelUrl {String} + */ + constructor(channelUrl) { + + SendbirdGroupChannelDetail.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdGroupChannelDetail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannelDetail} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannelDetail} The populated SendbirdGroupChannelDetail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannelDetail(); + + if (data.hasOwnProperty('channel')) { + obj['channel'] = SendbirdGroupChannelDetailChannel.constructFromObject(data['channel']); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('created_by')) { + obj['created_by'] = SendbirdBasicUserInfo.constructFromObject(data['created_by']); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('delivery_receipt')) { + obj['delivery_receipt'] = ApiClient.convertToType(data['delivery_receipt'], {'String': 'Number'}); + } + if (data.hasOwnProperty('disappearing_message')) { + obj['disappearing_message'] = SendbirdDisappearingMessage.constructFromObject(data['disappearing_message']); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('has_ai_bot')) { + obj['has_ai_bot'] = ApiClient.convertToType(data['has_ai_bot'], 'Boolean'); + } + if (data.hasOwnProperty('has_bot')) { + obj['has_bot'] = ApiClient.convertToType(data['has_bot'], 'Boolean'); + } + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'Number'); + } + if (data.hasOwnProperty('ignore_profanity_filter')) { + obj['ignore_profanity_filter'] = ApiClient.convertToType(data['ignore_profanity_filter'], 'Boolean'); + } + if (data.hasOwnProperty('is_access_code_required')) { + obj['is_access_code_required'] = ApiClient.convertToType(data['is_access_code_required'], 'Boolean'); + } + if (data.hasOwnProperty('is_broadcast')) { + obj['is_broadcast'] = ApiClient.convertToType(data['is_broadcast'], 'Boolean'); + } + if (data.hasOwnProperty('is_discoverable')) { + obj['is_discoverable'] = ApiClient.convertToType(data['is_discoverable'], 'Boolean'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('joined_member_count')) { + obj['joined_member_count'] = ApiClient.convertToType(data['joined_member_count'], 'Number'); + } + if (data.hasOwnProperty('last_message')) { + obj['last_message'] = SendbirdMessageResponse.constructFromObject(data['last_message']); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('members')) { + obj['members'] = ApiClient.convertToType(data['members'], [SendbirdMember]); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = ApiClient.convertToType(data['operators'], [SendbirdUser]); + } + if (data.hasOwnProperty('read_receipt')) { + obj['read_receipt'] = ApiClient.convertToType(data['read_receipt'], {'String': 'Number'}); + } + if (data.hasOwnProperty('sms_fallback')) { + obj['sms_fallback'] = SendbirdSmsFallback.constructFromObject(data['sms_fallback']); + } + if (data.hasOwnProperty('unread_mention_count')) { + obj['unread_mention_count'] = ApiClient.convertToType(data['unread_mention_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/SendbirdGroupChannelDetailChannel} channel + */ +SendbirdGroupChannelDetail.prototype['channel'] = undefined; + +/** + * @member {String} channel_url + */ +SendbirdGroupChannelDetail.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannelDetail.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannelDetail.prototype['created_at'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} created_by + */ +SendbirdGroupChannelDetail.prototype['created_by'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannelDetail.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannelDetail.prototype['data'] = undefined; + +/** + * @member {Object.} delivery_receipt + */ +SendbirdGroupChannelDetail.prototype['delivery_receipt'] = undefined; + +/** + * @member {module:model/SendbirdDisappearingMessage} disappearing_message + */ +SendbirdGroupChannelDetail.prototype['disappearing_message'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdGroupChannelDetail.prototype['freeze'] = undefined; + +/** + * @member {Boolean} has_ai_bot + */ +SendbirdGroupChannelDetail.prototype['has_ai_bot'] = undefined; + +/** + * @member {Boolean} has_bot + */ +SendbirdGroupChannelDetail.prototype['has_bot'] = undefined; + +/** + * @member {Number} id + */ +SendbirdGroupChannelDetail.prototype['id'] = undefined; + +/** + * @member {Boolean} ignore_profanity_filter + */ +SendbirdGroupChannelDetail.prototype['ignore_profanity_filter'] = undefined; + +/** + * @member {Boolean} is_access_code_required + */ +SendbirdGroupChannelDetail.prototype['is_access_code_required'] = undefined; + +/** + * @member {Boolean} is_broadcast + */ +SendbirdGroupChannelDetail.prototype['is_broadcast'] = undefined; + +/** + * @member {Boolean} is_discoverable + */ +SendbirdGroupChannelDetail.prototype['is_discoverable'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +SendbirdGroupChannelDetail.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdGroupChannelDetail.prototype['is_ephemeral'] = undefined; + +/** + * @member {Boolean} is_public + */ +SendbirdGroupChannelDetail.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +SendbirdGroupChannelDetail.prototype['is_super'] = undefined; + +/** + * @member {Number} joined_member_count + */ +SendbirdGroupChannelDetail.prototype['joined_member_count'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponse} last_message + */ +SendbirdGroupChannelDetail.prototype['last_message'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannelDetail.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannelDetail.prototype['member_count'] = undefined; + +/** + * @member {Array.} members + */ +SendbirdGroupChannelDetail.prototype['members'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdGroupChannelDetail.prototype['message_survival_seconds'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannelDetail.prototype['name'] = undefined; + +/** + * @member {Array.} operators + */ +SendbirdGroupChannelDetail.prototype['operators'] = undefined; + +/** + * @member {Object.} read_receipt + */ +SendbirdGroupChannelDetail.prototype['read_receipt'] = undefined; + +/** + * @member {module:model/SendbirdSmsFallback} sms_fallback + */ +SendbirdGroupChannelDetail.prototype['sms_fallback'] = undefined; + +/** + * @member {Number} unread_mention_count + */ +SendbirdGroupChannelDetail.prototype['unread_mention_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdGroupChannelDetail.prototype['unread_message_count'] = undefined; + + + + + + +export default SendbirdGroupChannelDetail; + diff --git a/src/model/SendbirdGroupChannelDetailChannel.js b/src/model/SendbirdGroupChannelDetailChannel.js new file mode 100644 index 0000000..984fd25 --- /dev/null +++ b/src/model/SendbirdGroupChannelDetailChannel.js @@ -0,0 +1,127 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdGroupChannelDetailChannel model module. + * @module model/SendbirdGroupChannelDetailChannel + * @version 2.0.0 + */ +class SendbirdGroupChannelDetailChannel { + /** + * Constructs a new SendbirdGroupChannelDetailChannel. + * @alias module:model/SendbirdGroupChannelDetailChannel + */ + constructor() { + + SendbirdGroupChannelDetailChannel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdGroupChannelDetailChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdGroupChannelDetailChannel} obj Optional instance to populate. + * @return {module:model/SendbirdGroupChannelDetailChannel} The populated SendbirdGroupChannelDetailChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdGroupChannelDetailChannel(); + + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('member_count')) { + obj['member_count'] = ApiClient.convertToType(data['member_count'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} channel_url + */ +SendbirdGroupChannelDetailChannel.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdGroupChannelDetailChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdGroupChannelDetailChannel.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdGroupChannelDetailChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdGroupChannelDetailChannel.prototype['data'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdGroupChannelDetailChannel.prototype['max_length_message'] = undefined; + +/** + * @member {Number} member_count + */ +SendbirdGroupChannelDetailChannel.prototype['member_count'] = undefined; + +/** + * @member {String} name + */ +SendbirdGroupChannelDetailChannel.prototype['name'] = undefined; + + + + + + +export default SendbirdGroupChannelDetailChannel; + diff --git a/src/model/SendbirdMember.js b/src/model/SendbirdMember.js new file mode 100644 index 0000000..562bc8f --- /dev/null +++ b/src/model/SendbirdMember.js @@ -0,0 +1,296 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; + +/** + * The SendbirdMember model module. + * @module model/SendbirdMember + * @version 2.0.0 + */ +class SendbirdMember { + /** + * Constructs a new SendbirdMember. + * @alias module:model/SendbirdMember + * @param userId {String} + */ + constructor(userId) { + + SendbirdMember.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdMember from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMember} obj Optional instance to populate. + * @return {module:model/SendbirdMember} The populated SendbirdMember instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMember(); + + if (data.hasOwnProperty('delivered_ts')) { + obj['delivered_ts'] = ApiClient.convertToType(data['delivered_ts'], 'Number'); + } + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); + } + if (data.hasOwnProperty('friend_discovery_key')) { + obj['friend_discovery_key'] = ApiClient.convertToType(data['friend_discovery_key'], ['String']); + } + if (data.hasOwnProperty('friend_name')) { + obj['friend_name'] = ApiClient.convertToType(data['friend_name'], 'String'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocked_by_me')) { + obj['is_blocked_by_me'] = ApiClient.convertToType(data['is_blocked_by_me'], 'Boolean'); + } + if (data.hasOwnProperty('is_blocking_me')) { + obj['is_blocking_me'] = ApiClient.convertToType(data['is_blocking_me'], 'Boolean'); + } + if (data.hasOwnProperty('is_muted')) { + obj['is_muted'] = ApiClient.convertToType(data['is_muted'], 'Boolean'); + } + if (data.hasOwnProperty('is_online')) { + obj['is_online'] = ApiClient.convertToType(data['is_online'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('muted_description')) { + obj['muted_description'] = ApiClient.convertToType(data['muted_description'], 'String'); + } + if (data.hasOwnProperty('muted_end_at')) { + obj['muted_end_at'] = ApiClient.convertToType(data['muted_end_at'], 'Number'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('push_enabled')) { + obj['push_enabled'] = ApiClient.convertToType(data['push_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('read_ts')) { + obj['read_ts'] = ApiClient.convertToType(data['read_ts'], 'Number'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = ApiClient.convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = ApiClient.convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Number} delivered_ts + */ +SendbirdMember.prototype['delivered_ts'] = undefined; + +/** + * @member {Boolean} do_not_disturb + */ +SendbirdMember.prototype['do_not_disturb'] = undefined; + +/** + * @member {Array.} friend_discovery_key + */ +SendbirdMember.prototype['friend_discovery_key'] = undefined; + +/** + * @member {String} friend_name + */ +SendbirdMember.prototype['friend_name'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdMember.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_blocked_by_me + */ +SendbirdMember.prototype['is_blocked_by_me'] = undefined; + +/** + * @member {Boolean} is_blocking_me + */ +SendbirdMember.prototype['is_blocking_me'] = undefined; + +/** + * @member {Boolean} is_muted + */ +SendbirdMember.prototype['is_muted'] = undefined; + +/** + * @member {Boolean} is_online + */ +SendbirdMember.prototype['is_online'] = undefined; + +/** + * @member {Number} last_seen_at + */ +SendbirdMember.prototype['last_seen_at'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdMember.prototype['metadata'] = undefined; + +/** + * @member {String} muted_description + */ +SendbirdMember.prototype['muted_description'] = undefined; + +/** + * @member {Number} muted_end_at + */ +SendbirdMember.prototype['muted_end_at'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdMember.prototype['nickname'] = undefined; + +/** + * @member {Boolean} push_enabled + */ +SendbirdMember.prototype['push_enabled'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +SendbirdMember.prototype['push_trigger_option'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdMember.prototype['profile_url'] = undefined; + +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdMember.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {Number} read_ts + */ +SendbirdMember.prototype['read_ts'] = undefined; + +/** + * @member {module:model/SendbirdMember.RoleEnum} role + */ +SendbirdMember.prototype['role'] = undefined; + +/** + * @member {module:model/SendbirdMember.StateEnum} state + */ +SendbirdMember.prototype['state'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdMember.prototype['user_id'] = undefined; + + + + + +/** + * Allowed values for the role property. + * @enum {String} + * @readonly + */ +SendbirdMember['RoleEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "none" + * @const + */ + "none": "none", + + /** + * value: "operator" + * @const + */ + "operator": "operator" +}; + + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +SendbirdMember['StateEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined" +}; + + + +export default SendbirdMember; + diff --git a/src/model/SendbirdMessageResponse.js b/src/model/SendbirdMessageResponse.js new file mode 100644 index 0000000..8d56577 --- /dev/null +++ b/src/model/SendbirdMessageResponse.js @@ -0,0 +1,310 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; +import SendbirdExtendedMessagePayload from './SendbirdExtendedMessagePayload'; +import SendbirdFile from './SendbirdFile'; +import SendbirdMessageResponseMessageEvents from './SendbirdMessageResponseMessageEvents'; +import SendbirdParentMessageInfo from './SendbirdParentMessageInfo'; +import SendbirdReaction from './SendbirdReaction'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The SendbirdMessageResponse model module. + * @module model/SendbirdMessageResponse + * @version 2.0.0 + */ +class SendbirdMessageResponse { + /** + * Constructs a new SendbirdMessageResponse. + * @alias module:model/SendbirdMessageResponse + */ + constructor() { + + SendbirdMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMessageResponse} obj Optional instance to populate. + * @return {module:model/SendbirdMessageResponse} The populated SendbirdMessageResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMessageResponse(); + + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = ApiClient.convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('message_survival_seconds')) { + obj['message_survival_seconds'] = ApiClient.convertToType(data['message_survival_seconds'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_users')) { + obj['mentioned_users'] = ApiClient.convertToType(data['mentioned_users'], [SendbirdBasicUserInfo]); + } + if (data.hasOwnProperty('translations')) { + obj['translations'] = ApiClient.convertToType(data['translations'], Object); + } + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); + } + if (data.hasOwnProperty('is_op_msg')) { + obj['is_op_msg'] = ApiClient.convertToType(data['is_op_msg'], 'Boolean'); + } + if (data.hasOwnProperty('reactions')) { + obj['reactions'] = ApiClient.convertToType(data['reactions'], [SendbirdReaction]); + } + if (data.hasOwnProperty('is_removed')) { + obj['is_removed'] = ApiClient.convertToType(data['is_removed'], 'Boolean'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = SendbirdBasicUserInfo.constructFromObject(data['user']); + } + if (data.hasOwnProperty('file')) { + obj['file'] = ApiClient.convertToType(data['file'], Object); + } + if (data.hasOwnProperty('files')) { + obj['files'] = ApiClient.convertToType(data['files'], [SendbirdFile]); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('message_retention_hour')) { + obj['message_retention_hour'] = ApiClient.convertToType(data['message_retention_hour'], 'Number'); + } + if (data.hasOwnProperty('silent')) { + obj['silent'] = ApiClient.convertToType(data['silent'], 'Boolean'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('channel_type')) { + obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); + } + if (data.hasOwnProperty('req_id')) { + obj['req_id'] = ApiClient.convertToType(data['req_id'], 'String'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('message_id')) { + obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + if (data.hasOwnProperty('thread_info')) { + obj['thread_info'] = ApiClient.convertToType(data['thread_info'], Object); + } + if (data.hasOwnProperty('parent_message_id')) { + obj['parent_message_id'] = ApiClient.convertToType(data['parent_message_id'], 'Number'); + } + if (data.hasOwnProperty('parent_message_info')) { + obj['parent_message_info'] = SendbirdParentMessageInfo.constructFromObject(data['parent_message_info']); + } + if (data.hasOwnProperty('is_reply_to_channel')) { + obj['is_reply_to_channel'] = ApiClient.convertToType(data['is_reply_to_channel'], 'Boolean'); + } + if (data.hasOwnProperty('message_events')) { + obj['message_events'] = SendbirdMessageResponseMessageEvents.constructFromObject(data['message_events']); + } + if (data.hasOwnProperty('extended_message_payload')) { + obj['extended_message_payload'] = SendbirdExtendedMessagePayload.constructFromObject(data['extended_message_payload']); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} require_auth + */ +SendbirdMessageResponse.prototype['require_auth'] = undefined; + +/** + * @member {Number} message_survival_seconds + */ +SendbirdMessageResponse.prototype['message_survival_seconds'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdMessageResponse.prototype['custom_type'] = undefined; + +/** + * @member {Array.} mentioned_users + */ +SendbirdMessageResponse.prototype['mentioned_users'] = undefined; + +/** + * @member {Object} translations + */ +SendbirdMessageResponse.prototype['translations'] = undefined; + +/** + * @member {Number} updated_at + */ +SendbirdMessageResponse.prototype['updated_at'] = undefined; + +/** + * @member {Boolean} is_op_msg + */ +SendbirdMessageResponse.prototype['is_op_msg'] = undefined; + +/** + * @member {Array.} reactions + */ +SendbirdMessageResponse.prototype['reactions'] = undefined; + +/** + * @member {Boolean} is_removed + */ +SendbirdMessageResponse.prototype['is_removed'] = undefined; + +/** + * @member {module:model/SendbirdBasicUserInfo} user + */ +SendbirdMessageResponse.prototype['user'] = undefined; + +/** + * @member {Object} file + */ +SendbirdMessageResponse.prototype['file'] = undefined; + +/** + * @member {Array.} files + */ +SendbirdMessageResponse.prototype['files'] = undefined; + +/** + * @member {String} message + */ +SendbirdMessageResponse.prototype['message'] = undefined; + +/** + * @member {String} data + */ +SendbirdMessageResponse.prototype['data'] = undefined; + +/** + * @member {Number} message_retention_hour + */ +SendbirdMessageResponse.prototype['message_retention_hour'] = undefined; + +/** + * @member {Boolean} silent + */ +SendbirdMessageResponse.prototype['silent'] = undefined; + +/** + * @member {String} type + */ +SendbirdMessageResponse.prototype['type'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdMessageResponse.prototype['created_at'] = undefined; + +/** + * @member {String} channel_type + */ +SendbirdMessageResponse.prototype['channel_type'] = undefined; + +/** + * @member {String} req_id + */ +SendbirdMessageResponse.prototype['req_id'] = undefined; + +/** + * @member {String} mention_type + */ +SendbirdMessageResponse.prototype['mention_type'] = undefined; + +/** + * @member {String} channel_url + */ +SendbirdMessageResponse.prototype['channel_url'] = undefined; + +/** + * @member {Number} message_id + */ +SendbirdMessageResponse.prototype['message_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +SendbirdMessageResponse.prototype['sorted_metaarray'] = undefined; + +/** + * @member {Object} thread_info + */ +SendbirdMessageResponse.prototype['thread_info'] = undefined; + +/** + * @member {Number} parent_message_id + */ +SendbirdMessageResponse.prototype['parent_message_id'] = undefined; + +/** + * @member {module:model/SendbirdParentMessageInfo} parent_message_info + */ +SendbirdMessageResponse.prototype['parent_message_info'] = undefined; + +/** + * @member {Boolean} is_reply_to_channel + */ +SendbirdMessageResponse.prototype['is_reply_to_channel'] = undefined; + +/** + * @member {module:model/SendbirdMessageResponseMessageEvents} message_events + */ +SendbirdMessageResponse.prototype['message_events'] = undefined; + +/** + * @member {module:model/SendbirdExtendedMessagePayload} extended_message_payload + */ +SendbirdMessageResponse.prototype['extended_message_payload'] = undefined; + + + + + + +export default SendbirdMessageResponse; + diff --git a/src/model/SendbirdMessageResponseMessageEvents.js b/src/model/SendbirdMessageResponseMessageEvents.js new file mode 100644 index 0000000..6c4db85 --- /dev/null +++ b/src/model/SendbirdMessageResponseMessageEvents.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdMessageResponseMessageEvents model module. + * @module model/SendbirdMessageResponseMessageEvents + * @version 2.0.0 + */ +class SendbirdMessageResponseMessageEvents { + /** + * Constructs a new SendbirdMessageResponseMessageEvents. + * @alias module:model/SendbirdMessageResponseMessageEvents + */ + constructor() { + + SendbirdMessageResponseMessageEvents.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdMessageResponseMessageEvents from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdMessageResponseMessageEvents} obj Optional instance to populate. + * @return {module:model/SendbirdMessageResponseMessageEvents} The populated SendbirdMessageResponseMessageEvents instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdMessageResponseMessageEvents(); + + if (data.hasOwnProperty('send_push_notification')) { + obj['send_push_notification'] = ApiClient.convertToType(data['send_push_notification'], 'String'); + } + if (data.hasOwnProperty('update_unread_count')) { + obj['update_unread_count'] = ApiClient.convertToType(data['update_unread_count'], 'Boolean'); + } + if (data.hasOwnProperty('update_mention_count')) { + obj['update_mention_count'] = ApiClient.convertToType(data['update_mention_count'], 'Boolean'); + } + if (data.hasOwnProperty('update_last_message')) { + obj['update_last_message'] = ApiClient.convertToType(data['update_last_message'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} send_push_notification + */ +SendbirdMessageResponseMessageEvents.prototype['send_push_notification'] = undefined; + +/** + * @member {Boolean} update_unread_count + */ +SendbirdMessageResponseMessageEvents.prototype['update_unread_count'] = undefined; + +/** + * @member {Boolean} update_mention_count + */ +SendbirdMessageResponseMessageEvents.prototype['update_mention_count'] = undefined; + +/** + * @member {Boolean} update_last_message + */ +SendbirdMessageResponseMessageEvents.prototype['update_last_message'] = undefined; + + + + + + +export default SendbirdMessageResponseMessageEvents; + diff --git a/src/model/SendbirdOpenChannel.js b/src/model/SendbirdOpenChannel.js new file mode 100644 index 0000000..8eaaff5 --- /dev/null +++ b/src/model/SendbirdOpenChannel.js @@ -0,0 +1,170 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdBasicUserInfo from './SendbirdBasicUserInfo'; + +/** + * The SendbirdOpenChannel model module. + * @module model/SendbirdOpenChannel + * @version 2.0.0 + */ +class SendbirdOpenChannel { + /** + * Constructs a new SendbirdOpenChannel. + * @alias module:model/SendbirdOpenChannel + * @param channelUrl {String} + */ + constructor(channelUrl) { + + SendbirdOpenChannel.initialize(this, channelUrl); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, channelUrl) { + obj['channel_url'] = channelUrl; + } + + /** + * Constructs a SendbirdOpenChannel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdOpenChannel} obj Optional instance to populate. + * @return {module:model/SendbirdOpenChannel} The populated SendbirdOpenChannel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdOpenChannel(); + + if (data.hasOwnProperty('channel_url')) { + obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('freeze')) { + obj['freeze'] = ApiClient.convertToType(data['freeze'], 'Boolean'); + } + if (data.hasOwnProperty('is_dynamic_partitioned')) { + obj['is_dynamic_partitioned'] = ApiClient.convertToType(data['is_dynamic_partitioned'], 'Boolean'); + } + if (data.hasOwnProperty('is_ephemeral')) { + obj['is_ephemeral'] = ApiClient.convertToType(data['is_ephemeral'], 'Boolean'); + } + if (data.hasOwnProperty('max_length_message')) { + obj['max_length_message'] = ApiClient.convertToType(data['max_length_message'], 'Number'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operators')) { + obj['operators'] = ApiClient.convertToType(data['operators'], [SendbirdBasicUserInfo]); + } + if (data.hasOwnProperty('participant_count')) { + obj['participant_count'] = ApiClient.convertToType(data['participant_count'], 'Number'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + } + return obj; + } + + +} + +/** + * @member {String} channel_url + */ +SendbirdOpenChannel.prototype['channel_url'] = undefined; + +/** + * @member {String} cover_url + */ +SendbirdOpenChannel.prototype['cover_url'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdOpenChannel.prototype['created_at'] = undefined; + +/** + * @member {String} custom_type + */ +SendbirdOpenChannel.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +SendbirdOpenChannel.prototype['data'] = undefined; + +/** + * @member {Boolean} freeze + */ +SendbirdOpenChannel.prototype['freeze'] = undefined; + +/** + * @member {Boolean} is_dynamic_partitioned + */ +SendbirdOpenChannel.prototype['is_dynamic_partitioned'] = undefined; + +/** + * @member {Boolean} is_ephemeral + */ +SendbirdOpenChannel.prototype['is_ephemeral'] = undefined; + +/** + * @member {Number} max_length_message + */ +SendbirdOpenChannel.prototype['max_length_message'] = undefined; + +/** + * @member {String} name + */ +SendbirdOpenChannel.prototype['name'] = undefined; + +/** + * @member {Array.} operators + */ +SendbirdOpenChannel.prototype['operators'] = undefined; + +/** + * @member {Number} participant_count + */ +SendbirdOpenChannel.prototype['participant_count'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdOpenChannel.prototype['metadata'] = undefined; + + + + + + +export default SendbirdOpenChannel; + diff --git a/src/model/SendbirdParentMessageInfo.js b/src/model/SendbirdParentMessageInfo.js new file mode 100644 index 0000000..65e87ea --- /dev/null +++ b/src/model/SendbirdParentMessageInfo.js @@ -0,0 +1,121 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdFile from './SendbirdFile'; +import SendbirdUser from './SendbirdUser'; + +/** + * The SendbirdParentMessageInfo model module. + * @module model/SendbirdParentMessageInfo + * @version 2.0.0 + */ +class SendbirdParentMessageInfo { + /** + * Constructs a new SendbirdParentMessageInfo. + * @alias module:model/SendbirdParentMessageInfo + */ + constructor() { + + SendbirdParentMessageInfo.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdParentMessageInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdParentMessageInfo} obj Optional instance to populate. + * @return {module:model/SendbirdParentMessageInfo} The populated SendbirdParentMessageInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdParentMessageInfo(); + + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('ts')) { + obj['ts'] = ApiClient.convertToType(data['ts'], 'Number'); + } + if (data.hasOwnProperty('user')) { + obj['user'] = SendbirdUser.constructFromObject(data['user']); + } + if (data.hasOwnProperty('file')) { + obj['file'] = SendbirdFile.constructFromObject(data['file']); + } + if (data.hasOwnProperty('files')) { + obj['files'] = ApiClient.convertToType(data['files'], [SendbirdFile]); + } + } + return obj; + } + + +} + +/** + * @member {String} custom_type + */ +SendbirdParentMessageInfo.prototype['custom_type'] = undefined; + +/** + * @member {String} message + */ +SendbirdParentMessageInfo.prototype['message'] = undefined; + +/** + * @member {String} type + */ +SendbirdParentMessageInfo.prototype['type'] = undefined; + +/** + * @member {Number} ts + */ +SendbirdParentMessageInfo.prototype['ts'] = undefined; + +/** + * @member {module:model/SendbirdUser} user + */ +SendbirdParentMessageInfo.prototype['user'] = undefined; + +/** + * @member {module:model/SendbirdFile} file + */ +SendbirdParentMessageInfo.prototype['file'] = undefined; + +/** + * @member {Array.} files + */ +SendbirdParentMessageInfo.prototype['files'] = undefined; + + + + + + +export default SendbirdParentMessageInfo; + diff --git a/src/model/SendbirdPushTriggerOption.js b/src/model/SendbirdPushTriggerOption.js new file mode 100644 index 0000000..525e88d --- /dev/null +++ b/src/model/SendbirdPushTriggerOption.js @@ -0,0 +1,60 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +/** +* Enum class SendbirdPushTriggerOption. +* @enum {} +* @readonly +*/ +export default class SendbirdPushTriggerOption { + + /** + * value: "all" + * @const + */ + "all" = "all"; + + + /** + * value: "mention_only" + * @const + */ + "mention_only" = "mention_only"; + + + /** + * value: "off" + * @const + */ + "off" = "off"; + + + /** + * value: "default" + * @const + */ + "default" = "default"; + + + + /** + * Returns a SendbirdPushTriggerOption enum value from a Javascript object name. + * @param {Object} data The plain JavaScript object containing the name of the enum value. + * @return {module:model/SendbirdPushTriggerOption} The enum SendbirdPushTriggerOption value. + */ + static constructFromObject(object) { + return object; + } +} + diff --git a/src/model/SendbirdReaction.js b/src/model/SendbirdReaction.js new file mode 100644 index 0000000..95cd0bf --- /dev/null +++ b/src/model/SendbirdReaction.js @@ -0,0 +1,87 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdReaction model module. + * @module model/SendbirdReaction + * @version 2.0.0 + */ +class SendbirdReaction { + /** + * Constructs a new SendbirdReaction. + * @alias module:model/SendbirdReaction + */ + constructor() { + + SendbirdReaction.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdReaction from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdReaction} obj Optional instance to populate. + * @return {module:model/SendbirdReaction} The populated SendbirdReaction instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdReaction(); + + if (data.hasOwnProperty('key')) { + obj['key'] = ApiClient.convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('updated_at')) { + obj['updated_at'] = ApiClient.convertToType(data['updated_at'], 'Number'); + } + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} key + */ +SendbirdReaction.prototype['key'] = undefined; + +/** + * @member {Number} updated_at + */ +SendbirdReaction.prototype['updated_at'] = undefined; + +/** + * @member {Array.} user_ids + */ +SendbirdReaction.prototype['user_ids'] = undefined; + + + + + + +export default SendbirdReaction; + diff --git a/src/model/SendbirdSmsFallback.js b/src/model/SendbirdSmsFallback.js new file mode 100644 index 0000000..2367bda --- /dev/null +++ b/src/model/SendbirdSmsFallback.js @@ -0,0 +1,79 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdSmsFallback model module. + * @module model/SendbirdSmsFallback + * @version 2.0.0 + */ +class SendbirdSmsFallback { + /** + * Constructs a new SendbirdSmsFallback. + * @alias module:model/SendbirdSmsFallback + */ + constructor() { + + SendbirdSmsFallback.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdSmsFallback from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdSmsFallback} obj Optional instance to populate. + * @return {module:model/SendbirdSmsFallback} The populated SendbirdSmsFallback instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdSmsFallback(); + + if (data.hasOwnProperty('wait_seconds')) { + obj['wait_seconds'] = ApiClient.convertToType(data['wait_seconds'], 'Number'); + } + if (data.hasOwnProperty('exclude_user_ids')) { + obj['exclude_user_ids'] = ApiClient.convertToType(data['exclude_user_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Number} wait_seconds + */ +SendbirdSmsFallback.prototype['wait_seconds'] = undefined; + +/** + * @member {Array.} exclude_user_ids + */ +SendbirdSmsFallback.prototype['exclude_user_ids'] = undefined; + + + + + + +export default SendbirdSmsFallback; + diff --git a/src/model/SendbirdSortedMetaarrayInner.js b/src/model/SendbirdSortedMetaarrayInner.js new file mode 100644 index 0000000..3b48de0 --- /dev/null +++ b/src/model/SendbirdSortedMetaarrayInner.js @@ -0,0 +1,79 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdSortedMetaarrayInner model module. + * @module model/SendbirdSortedMetaarrayInner + * @version 2.0.0 + */ +class SendbirdSortedMetaarrayInner { + /** + * Constructs a new SendbirdSortedMetaarrayInner. + * @alias module:model/SendbirdSortedMetaarrayInner + */ + constructor() { + + SendbirdSortedMetaarrayInner.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdSortedMetaarrayInner} obj Optional instance to populate. + * @return {module:model/SendbirdSortedMetaarrayInner} The populated SendbirdSortedMetaarrayInner instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdSortedMetaarrayInner(); + + if (data.hasOwnProperty('key')) { + obj['key'] = ApiClient.convertToType(data['key'], 'String'); + } + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} key + */ +SendbirdSortedMetaarrayInner.prototype['key'] = undefined; + +/** + * @member {Array.} value + */ +SendbirdSortedMetaarrayInner.prototype['value'] = undefined; + + + + + + +export default SendbirdSortedMetaarrayInner; + diff --git a/src/model/SendbirdThumbnail.js b/src/model/SendbirdThumbnail.js new file mode 100644 index 0000000..919b3f2 --- /dev/null +++ b/src/model/SendbirdThumbnail.js @@ -0,0 +1,111 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdThumbnail model module. + * @module model/SendbirdThumbnail + * @version 2.0.0 + */ +class SendbirdThumbnail { + /** + * Constructs a new SendbirdThumbnail. + * @alias module:model/SendbirdThumbnail + */ + constructor() { + + SendbirdThumbnail.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SendbirdThumbnail from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdThumbnail} obj Optional instance to populate. + * @return {module:model/SendbirdThumbnail} The populated SendbirdThumbnail instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdThumbnail(); + + if (data.hasOwnProperty('height')) { + obj['height'] = ApiClient.convertToType(data['height'], 'Number'); + } + if (data.hasOwnProperty('plain_url')) { + obj['plain_url'] = ApiClient.convertToType(data['plain_url'], 'String'); + } + if (data.hasOwnProperty('real_height')) { + obj['real_height'] = ApiClient.convertToType(data['real_height'], 'Number'); + } + if (data.hasOwnProperty('real_width')) { + obj['real_width'] = ApiClient.convertToType(data['real_width'], 'Number'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = ApiClient.convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('width')) { + obj['width'] = ApiClient.convertToType(data['width'], 'Number'); + } + } + return obj; + } + + +} + +/** + * @member {Number} height + */ +SendbirdThumbnail.prototype['height'] = undefined; + +/** + * @member {String} plain_url + */ +SendbirdThumbnail.prototype['plain_url'] = undefined; + +/** + * @member {Number} real_height + */ +SendbirdThumbnail.prototype['real_height'] = undefined; + +/** + * @member {Number} real_width + */ +SendbirdThumbnail.prototype['real_width'] = undefined; + +/** + * @member {String} url + */ +SendbirdThumbnail.prototype['url'] = undefined; + +/** + * @member {Number} width + */ +SendbirdThumbnail.prototype['width'] = undefined; + + + + + + +export default SendbirdThumbnail; + diff --git a/src/model/SendbirdUser.js b/src/model/SendbirdUser.js new file mode 100644 index 0000000..0606e24 --- /dev/null +++ b/src/model/SendbirdUser.js @@ -0,0 +1,269 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SendbirdUser model module. + * @module model/SendbirdUser + * @version 2.0.0 + */ +class SendbirdUser { + /** + * Constructs a new SendbirdUser. + * User + * @alias module:model/SendbirdUser + * @param userId {String} + */ + constructor(userId) { + + SendbirdUser.initialize(this, userId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userId) { + obj['user_id'] = userId; + } + + /** + * Constructs a SendbirdUser from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SendbirdUser} obj Optional instance to populate. + * @return {module:model/SendbirdUser} The populated SendbirdUser instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SendbirdUser(); + + if (data.hasOwnProperty('access_token')) { + obj['access_token'] = ApiClient.convertToType(data['access_token'], 'String'); + } + if (data.hasOwnProperty('created_at')) { + obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); + } + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('has_ever_logged_in')) { + obj['has_ever_logged_in'] = ApiClient.convertToType(data['has_ever_logged_in'], 'Boolean'); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('is_hide_me_from_friends')) { + obj['is_hide_me_from_friends'] = ApiClient.convertToType(data['is_hide_me_from_friends'], 'Boolean'); + } + if (data.hasOwnProperty('is_online')) { + obj['is_online'] = ApiClient.convertToType(data['is_online'], 'Boolean'); + } + if (data.hasOwnProperty('is_shadow_blocked')) { + obj['is_shadow_blocked'] = ApiClient.convertToType(data['is_shadow_blocked'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('locale')) { + obj['locale'] = ApiClient.convertToType(data['locale'], 'String'); + } + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('preferred_languages')) { + obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); + } + if (data.hasOwnProperty('require_auth_for_profile_image')) { + obj['require_auth_for_profile_image'] = ApiClient.convertToType(data['require_auth_for_profile_image'], 'Boolean'); + } + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = ApiClient.convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('unread_channel_count')) { + obj['unread_channel_count'] = ApiClient.convertToType(data['unread_channel_count'], 'Number'); + } + if (data.hasOwnProperty('unread_message_count')) { + obj['unread_message_count'] = ApiClient.convertToType(data['unread_message_count'], 'Number'); + } + if (data.hasOwnProperty('phone_number')) { + obj['phone_number'] = ApiClient.convertToType(data['phone_number'], 'String'); + } + if (data.hasOwnProperty('is_created')) { + obj['is_created'] = ApiClient.convertToType(data['is_created'], 'Boolean'); + } + if (data.hasOwnProperty('session_tokens')) { + obj['session_tokens'] = ApiClient.convertToType(data['session_tokens'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} access_token + */ +SendbirdUser.prototype['access_token'] = undefined; + +/** + * @member {Number} created_at + */ +SendbirdUser.prototype['created_at'] = undefined; + +/** + * @member {Array.} discovery_keys + */ +SendbirdUser.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} has_ever_logged_in + */ +SendbirdUser.prototype['has_ever_logged_in'] = undefined; + +/** + * @member {Boolean} is_active + */ +SendbirdUser.prototype['is_active'] = undefined; + +/** + * @member {Boolean} is_hide_me_from_friends + */ +SendbirdUser.prototype['is_hide_me_from_friends'] = undefined; + +/** + * @member {Boolean} is_online + */ +SendbirdUser.prototype['is_online'] = undefined; + +/** + * @member {Boolean} is_shadow_blocked + */ +SendbirdUser.prototype['is_shadow_blocked'] = undefined; + +/** + * @member {Number} last_seen_at + */ +SendbirdUser.prototype['last_seen_at'] = undefined; + +/** + * @member {String} locale + */ +SendbirdUser.prototype['locale'] = undefined; + +/** + * @member {Object} metadata + */ +SendbirdUser.prototype['metadata'] = undefined; + +/** + * @member {String} nickname + */ +SendbirdUser.prototype['nickname'] = undefined; + +/** + * @member {Array.} preferred_languages + */ +SendbirdUser.prototype['preferred_languages'] = undefined; + +/** + * @member {String} profile_url + */ +SendbirdUser.prototype['profile_url'] = undefined; + +/** + * @member {Boolean} require_auth_for_profile_image + */ +SendbirdUser.prototype['require_auth_for_profile_image'] = undefined; + +/** + * @member {String} user_id + */ +SendbirdUser.prototype['user_id'] = undefined; + +/** + * @member {module:model/SendbirdUser.StateEnum} state + */ +SendbirdUser.prototype['state'] = undefined; + +/** + * @member {Number} unread_channel_count + */ +SendbirdUser.prototype['unread_channel_count'] = undefined; + +/** + * @member {Number} unread_message_count + */ +SendbirdUser.prototype['unread_message_count'] = undefined; + +/** + * @member {String} phone_number + */ +SendbirdUser.prototype['phone_number'] = undefined; + +/** + * @member {Boolean} is_created + */ +SendbirdUser.prototype['is_created'] = undefined; + +/** + * @member {Array.} session_tokens + */ +SendbirdUser.prototype['session_tokens'] = undefined; + + + + + +/** + * Allowed values for the state property. + * @enum {String} + * @readonly + */ +SendbirdUser['StateEnum'] = { + + /** + * value: "" + * @const + */ + "empty": "", + + /** + * value: "invited" + * @const + */ + "invited": "invited", + + /** + * value: "joined" + * @const + */ + "joined": "joined" +}; + + + +export default SendbirdUser; + diff --git a/src/model/SetDomainFilterData.js b/src/model/SetDomainFilterData.js deleted file mode 100644 index 014f805..0000000 --- a/src/model/SetDomainFilterData.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SetDomainFilterDataDomainFilter from './SetDomainFilterDataDomainFilter'; -import SetDomainFilterDataImageModeration from './SetDomainFilterDataImageModeration'; -import SetDomainFilterDataProfanityFilter from './SetDomainFilterDataProfanityFilter'; -import SetDomainFilterDataProfanityTriggeredModeration from './SetDomainFilterDataProfanityTriggeredModeration'; - -/** - * The SetDomainFilterData model module. - * @module model/SetDomainFilterData - * @version 0.0.16 - */ -class SetDomainFilterData { - /** - * Constructs a new SetDomainFilterData. - * @alias module:model/SetDomainFilterData - */ - constructor() { - - SetDomainFilterData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterData} obj Optional instance to populate. - * @return {module:model/SetDomainFilterData} The populated SetDomainFilterData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterData(); - - if (data.hasOwnProperty('domain_filter')) { - obj['domain_filter'] = SetDomainFilterDataDomainFilter.constructFromObject(data['domain_filter']); - } - if (data.hasOwnProperty('profanity_filter')) { - obj['profanity_filter'] = SetDomainFilterDataProfanityFilter.constructFromObject(data['profanity_filter']); - } - if (data.hasOwnProperty('profanity_triggered_moderation')) { - obj['profanity_triggered_moderation'] = SetDomainFilterDataProfanityTriggeredModeration.constructFromObject(data['profanity_triggered_moderation']); - } - if (data.hasOwnProperty('image_moderation')) { - obj['image_moderation'] = SetDomainFilterDataImageModeration.constructFromObject(data['image_moderation']); - } - } - return obj; - } - - -} - -/** - * @member {module:model/SetDomainFilterDataDomainFilter} domain_filter - */ -SetDomainFilterData.prototype['domain_filter'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataProfanityFilter} profanity_filter - */ -SetDomainFilterData.prototype['profanity_filter'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataProfanityTriggeredModeration} profanity_triggered_moderation - */ -SetDomainFilterData.prototype['profanity_triggered_moderation'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataImageModeration} image_moderation - */ -SetDomainFilterData.prototype['image_moderation'] = undefined; - - - - - - -export default SetDomainFilterData; - diff --git a/src/model/SetDomainFilterDataDomainFilter.js b/src/model/SetDomainFilterDataDomainFilter.js deleted file mode 100644 index c7213a1..0000000 --- a/src/model/SetDomainFilterDataDomainFilter.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SetDomainFilterDataDomainFilter model module. - * @module model/SetDomainFilterDataDomainFilter - * @version 0.0.16 - */ -class SetDomainFilterDataDomainFilter { - /** - * Constructs a new SetDomainFilterDataDomainFilter. - * @alias module:model/SetDomainFilterDataDomainFilter - */ - constructor() { - - SetDomainFilterDataDomainFilter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataDomainFilter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataDomainFilter} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataDomainFilter} The populated SetDomainFilterDataDomainFilter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataDomainFilter(); - - if (data.hasOwnProperty('domains')) { - obj['domains'] = ApiClient.convertToType(data['domains'], ['String']); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('should_check_global')) { - obj['should_check_global'] = ApiClient.convertToType(data['should_check_global'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} domains - */ -SetDomainFilterDataDomainFilter.prototype['domains'] = undefined; - -/** - * @member {Number} type - */ -SetDomainFilterDataDomainFilter.prototype['type'] = undefined; - -/** - * @member {Boolean} should_check_global - */ -SetDomainFilterDataDomainFilter.prototype['should_check_global'] = undefined; - - - - - - -export default SetDomainFilterDataDomainFilter; - diff --git a/src/model/SetDomainFilterDataImageModeration.js b/src/model/SetDomainFilterDataImageModeration.js deleted file mode 100644 index a2d8ba6..0000000 --- a/src/model/SetDomainFilterDataImageModeration.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SetDomainFilterDataImageModerationLimits from './SetDomainFilterDataImageModerationLimits'; - -/** - * The SetDomainFilterDataImageModeration model module. - * @module model/SetDomainFilterDataImageModeration - * @version 0.0.16 - */ -class SetDomainFilterDataImageModeration { - /** - * Constructs a new SetDomainFilterDataImageModeration. - * @alias module:model/SetDomainFilterDataImageModeration - */ - constructor() { - - SetDomainFilterDataImageModeration.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataImageModeration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataImageModeration} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataImageModeration} The populated SetDomainFilterDataImageModeration instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataImageModeration(); - - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('soft_block')) { - obj['soft_block'] = ApiClient.convertToType(data['soft_block'], 'Boolean'); - } - if (data.hasOwnProperty('limits')) { - obj['limits'] = SetDomainFilterDataImageModerationLimits.constructFromObject(data['limits']); - } - if (data.hasOwnProperty('check_urls')) { - obj['check_urls'] = ApiClient.convertToType(data['check_urls'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Number} type - */ -SetDomainFilterDataImageModeration.prototype['type'] = undefined; - -/** - * @member {Boolean} soft_block - */ -SetDomainFilterDataImageModeration.prototype['soft_block'] = undefined; - -/** - * @member {module:model/SetDomainFilterDataImageModerationLimits} limits - */ -SetDomainFilterDataImageModeration.prototype['limits'] = undefined; - -/** - * @member {Boolean} check_urls - */ -SetDomainFilterDataImageModeration.prototype['check_urls'] = undefined; - - - - - - -export default SetDomainFilterDataImageModeration; - diff --git a/src/model/SetDomainFilterDataImageModerationLimits.js b/src/model/SetDomainFilterDataImageModerationLimits.js deleted file mode 100644 index 35e5c1b..0000000 --- a/src/model/SetDomainFilterDataImageModerationLimits.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SetDomainFilterDataImageModerationLimits model module. - * @module model/SetDomainFilterDataImageModerationLimits - * @version 0.0.16 - */ -class SetDomainFilterDataImageModerationLimits { - /** - * Constructs a new SetDomainFilterDataImageModerationLimits. - * @alias module:model/SetDomainFilterDataImageModerationLimits - */ - constructor() { - - SetDomainFilterDataImageModerationLimits.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataImageModerationLimits from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataImageModerationLimits} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataImageModerationLimits} The populated SetDomainFilterDataImageModerationLimits instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataImageModerationLimits(); - - if (data.hasOwnProperty('adult')) { - obj['adult'] = ApiClient.convertToType(data['adult'], 'Number'); - } - if (data.hasOwnProperty('spoof')) { - obj['spoof'] = ApiClient.convertToType(data['spoof'], 'Number'); - } - if (data.hasOwnProperty('medical')) { - obj['medical'] = ApiClient.convertToType(data['medical'], 'Number'); - } - if (data.hasOwnProperty('violence')) { - obj['violence'] = ApiClient.convertToType(data['violence'], 'Number'); - } - if (data.hasOwnProperty('racy')) { - obj['racy'] = ApiClient.convertToType(data['racy'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} adult - */ -SetDomainFilterDataImageModerationLimits.prototype['adult'] = undefined; - -/** - * @member {Number} spoof - */ -SetDomainFilterDataImageModerationLimits.prototype['spoof'] = undefined; - -/** - * @member {Number} medical - */ -SetDomainFilterDataImageModerationLimits.prototype['medical'] = undefined; - -/** - * @member {Number} violence - */ -SetDomainFilterDataImageModerationLimits.prototype['violence'] = undefined; - -/** - * @member {Number} racy - */ -SetDomainFilterDataImageModerationLimits.prototype['racy'] = undefined; - - - - - - -export default SetDomainFilterDataImageModerationLimits; - diff --git a/src/model/SetDomainFilterDataProfanityFilter.js b/src/model/SetDomainFilterDataProfanityFilter.js deleted file mode 100644 index 3131bda..0000000 --- a/src/model/SetDomainFilterDataProfanityFilter.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import SetDomainFilterDataProfanityFilterRegexFiltersInner from './SetDomainFilterDataProfanityFilterRegexFiltersInner'; - -/** - * The SetDomainFilterDataProfanityFilter model module. - * @module model/SetDomainFilterDataProfanityFilter - * @version 0.0.16 - */ -class SetDomainFilterDataProfanityFilter { - /** - * Constructs a new SetDomainFilterDataProfanityFilter. - * @alias module:model/SetDomainFilterDataProfanityFilter - */ - constructor() { - - SetDomainFilterDataProfanityFilter.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataProfanityFilter from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityFilter} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityFilter} The populated SetDomainFilterDataProfanityFilter instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityFilter(); - - if (data.hasOwnProperty('keywords')) { - obj['keywords'] = ApiClient.convertToType(data['keywords'], ['String']); - } - if (data.hasOwnProperty('regex_filters')) { - obj['regex_filters'] = ApiClient.convertToType(data['regex_filters'], [SetDomainFilterDataProfanityFilterRegexFiltersInner]); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'Number'); - } - if (data.hasOwnProperty('should_check_global')) { - obj['should_check_global'] = ApiClient.convertToType(data['should_check_global'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} keywords - */ -SetDomainFilterDataProfanityFilter.prototype['keywords'] = undefined; - -/** - * @member {Array.} regex_filters - */ -SetDomainFilterDataProfanityFilter.prototype['regex_filters'] = undefined; - -/** - * @member {Number} type - */ -SetDomainFilterDataProfanityFilter.prototype['type'] = undefined; - -/** - * @member {Boolean} should_check_global - */ -SetDomainFilterDataProfanityFilter.prototype['should_check_global'] = undefined; - - - - - - -export default SetDomainFilterDataProfanityFilter; - diff --git a/src/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js b/src/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js deleted file mode 100644 index c16b5f0..0000000 --- a/src/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SetDomainFilterDataProfanityFilterRegexFiltersInner model module. - * @module model/SetDomainFilterDataProfanityFilterRegexFiltersInner - * @version 0.0.16 - */ -class SetDomainFilterDataProfanityFilterRegexFiltersInner { - /** - * Constructs a new SetDomainFilterDataProfanityFilterRegexFiltersInner. - * @alias module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner - */ - constructor() { - - SetDomainFilterDataProfanityFilterRegexFiltersInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataProfanityFilterRegexFiltersInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityFilterRegexFiltersInner} The populated SetDomainFilterDataProfanityFilterRegexFiltersInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityFilterRegexFiltersInner(); - - if (data.hasOwnProperty('regex')) { - obj['regex'] = ApiClient.convertToType(data['regex'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} regex - */ -SetDomainFilterDataProfanityFilterRegexFiltersInner.prototype['regex'] = undefined; - - - - - - -export default SetDomainFilterDataProfanityFilterRegexFiltersInner; - diff --git a/src/model/SetDomainFilterDataProfanityTriggeredModeration.js b/src/model/SetDomainFilterDataProfanityTriggeredModeration.js deleted file mode 100644 index a7afc60..0000000 --- a/src/model/SetDomainFilterDataProfanityTriggeredModeration.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The SetDomainFilterDataProfanityTriggeredModeration model module. - * @module model/SetDomainFilterDataProfanityTriggeredModeration - * @version 0.0.16 - */ -class SetDomainFilterDataProfanityTriggeredModeration { - /** - * Constructs a new SetDomainFilterDataProfanityTriggeredModeration. - * @alias module:model/SetDomainFilterDataProfanityTriggeredModeration - */ - constructor() { - - SetDomainFilterDataProfanityTriggeredModeration.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a SetDomainFilterDataProfanityTriggeredModeration from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/SetDomainFilterDataProfanityTriggeredModeration} obj Optional instance to populate. - * @return {module:model/SetDomainFilterDataProfanityTriggeredModeration} The populated SetDomainFilterDataProfanityTriggeredModeration instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new SetDomainFilterDataProfanityTriggeredModeration(); - - if (data.hasOwnProperty('count')) { - obj['count'] = ApiClient.convertToType(data['count'], 'Number'); - } - if (data.hasOwnProperty('duration')) { - obj['duration'] = ApiClient.convertToType(data['duration'], 'Number'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} count - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['count'] = undefined; - -/** - * @member {Number} duration - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['duration'] = undefined; - -/** - * @member {Number} action - */ -SetDomainFilterDataProfanityTriggeredModeration.prototype['action'] = undefined; - - - - - - -export default SetDomainFilterDataProfanityTriggeredModeration; - diff --git a/src/model/StartTypingIndicatorsRequest.js b/src/model/StartTypingIndicatorsRequest.js new file mode 100644 index 0000000..e02cebc --- /dev/null +++ b/src/model/StartTypingIndicatorsRequest.js @@ -0,0 +1,73 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The StartTypingIndicatorsRequest model module. + * @module model/StartTypingIndicatorsRequest + * @version 2.0.0 + */ +class StartTypingIndicatorsRequest { + /** + * Constructs a new StartTypingIndicatorsRequest. + * @alias module:model/StartTypingIndicatorsRequest + * @param userIds {Array.} + */ + constructor(userIds) { + + StartTypingIndicatorsRequest.initialize(this, userIds); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, userIds) { + obj['user_ids'] = userIds; + } + + /** + * Constructs a StartTypingIndicatorsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/StartTypingIndicatorsRequest} obj Optional instance to populate. + * @return {module:model/StartTypingIndicatorsRequest} The populated StartTypingIndicatorsRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new StartTypingIndicatorsRequest(); + + if (data.hasOwnProperty('user_ids')) { + obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {Array.} user_ids + */ +StartTypingIndicatorsRequest.prototype['user_ids'] = undefined; + + + + + + +export default StartTypingIndicatorsRequest; + diff --git a/src/model/TranslateMessageIntoOtherLanguagesData.js b/src/model/TranslateMessageIntoOtherLanguagesData.js deleted file mode 100644 index 28bd763..0000000 --- a/src/model/TranslateMessageIntoOtherLanguagesData.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The TranslateMessageIntoOtherLanguagesData model module. - * @module model/TranslateMessageIntoOtherLanguagesData - * @version 0.0.16 - */ -class TranslateMessageIntoOtherLanguagesData { - /** - * Constructs a new TranslateMessageIntoOtherLanguagesData. - * @alias module:model/TranslateMessageIntoOtherLanguagesData - */ - constructor() { - - TranslateMessageIntoOtherLanguagesData.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a TranslateMessageIntoOtherLanguagesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/TranslateMessageIntoOtherLanguagesData} obj Optional instance to populate. - * @return {module:model/TranslateMessageIntoOtherLanguagesData} The populated TranslateMessageIntoOtherLanguagesData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new TranslateMessageIntoOtherLanguagesData(); - - if (data.hasOwnProperty('target_langs')) { - obj['target_langs'] = ApiClient.convertToType(data['target_langs'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies an array of one or more codes of [translation](/docs/chat/v3/platform-api/message/translations/translation-engine) to translate the message. - * @member {Array.} target_langs - */ -TranslateMessageIntoOtherLanguagesData.prototype['target_langs'] = undefined; - - - - - - -export default TranslateMessageIntoOtherLanguagesData; - diff --git a/src/model/UpdateAChannelMetadataRequest.js b/src/model/UpdateAChannelMetadataRequest.js new file mode 100644 index 0000000..904beec --- /dev/null +++ b/src/model/UpdateAChannelMetadataRequest.js @@ -0,0 +1,81 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAChannelMetadataRequest model module. + * @module model/UpdateAChannelMetadataRequest + * @version 2.0.0 + */ +class UpdateAChannelMetadataRequest { + /** + * Constructs a new UpdateAChannelMetadataRequest. + * @alias module:model/UpdateAChannelMetadataRequest + * @param metadata {Object} + */ + constructor(metadata) { + + UpdateAChannelMetadataRequest.initialize(this, metadata); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, metadata) { + obj['metadata'] = metadata; + } + + /** + * Constructs a UpdateAChannelMetadataRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAChannelMetadataRequest} obj Optional instance to populate. + * @return {module:model/UpdateAChannelMetadataRequest} The populated UpdateAChannelMetadataRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAChannelMetadataRequest(); + + if (data.hasOwnProperty('metadata')) { + obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); + } + if (data.hasOwnProperty('upsert')) { + obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Object} metadata + */ +UpdateAChannelMetadataRequest.prototype['metadata'] = undefined; + +/** + * @member {Boolean} upsert + */ +UpdateAChannelMetadataRequest.prototype['upsert'] = undefined; + + + + + + +export default UpdateAChannelMetadataRequest; + diff --git a/src/model/UpdateAGroupChannelRequest.js b/src/model/UpdateAGroupChannelRequest.js new file mode 100644 index 0000000..e2787e0 --- /dev/null +++ b/src/model/UpdateAGroupChannelRequest.js @@ -0,0 +1,143 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAGroupChannelRequest model module. + * @module model/UpdateAGroupChannelRequest + * @version 2.0.0 + */ +class UpdateAGroupChannelRequest { + /** + * Constructs a new UpdateAGroupChannelRequest. + * @alias module:model/UpdateAGroupChannelRequest + */ + constructor() { + + UpdateAGroupChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateAGroupChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAGroupChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateAGroupChannelRequest} The populated UpdateAGroupChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAGroupChannelRequest(); + + if (data.hasOwnProperty('access_code')) { + obj['access_code'] = ApiClient.convertToType(data['access_code'], 'String'); + } + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('is_distinct')) { + obj['is_distinct'] = ApiClient.convertToType(data['is_distinct'], 'Boolean'); + } + if (data.hasOwnProperty('is_public')) { + obj['is_public'] = ApiClient.convertToType(data['is_public'], 'Boolean'); + } + if (data.hasOwnProperty('is_super')) { + obj['is_super'] = ApiClient.convertToType(data['is_super'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {String} access_code + */ +UpdateAGroupChannelRequest.prototype['access_code'] = undefined; + +/** + * @member {File} cover_file + */ +UpdateAGroupChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +UpdateAGroupChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +UpdateAGroupChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAGroupChannelRequest.prototype['data'] = undefined; + +/** + * @member {Boolean} is_distinct + */ +UpdateAGroupChannelRequest.prototype['is_distinct'] = undefined; + +/** + * @member {Boolean} is_public + */ +UpdateAGroupChannelRequest.prototype['is_public'] = undefined; + +/** + * @member {Boolean} is_super + */ +UpdateAGroupChannelRequest.prototype['is_super'] = undefined; + +/** + * @member {String} name + */ +UpdateAGroupChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +UpdateAGroupChannelRequest.prototype['operator_ids'] = undefined; + + + + + + +export default UpdateAGroupChannelRequest; + diff --git a/src/model/UpdateAMessageRequest.js b/src/model/UpdateAMessageRequest.js new file mode 100644 index 0000000..2feb220 --- /dev/null +++ b/src/model/UpdateAMessageRequest.js @@ -0,0 +1,148 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAMessageRequest model module. + * @module model/UpdateAMessageRequest + * @version 2.0.0 + */ +class UpdateAMessageRequest { + /** + * Constructs a new UpdateAMessageRequest. + * @alias module:model/UpdateAMessageRequest + * @param messageType {module:model/UpdateAMessageRequest.MessageTypeEnum} + */ + constructor(messageType) { + + UpdateAMessageRequest.initialize(this, messageType); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, messageType) { + obj['message_type'] = messageType; + } + + /** + * Constructs a UpdateAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAMessageRequest} obj Optional instance to populate. + * @return {module:model/UpdateAMessageRequest} The populated UpdateAMessageRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAMessageRequest(); + + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('mention_type')) { + obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = ApiClient.convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {String} custom_type + */ +UpdateAMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} mention_type + */ +UpdateAMessageRequest.prototype['mention_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +UpdateAMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} message + */ +UpdateAMessageRequest.prototype['message'] = undefined; + +/** + * @member {String} url + */ +UpdateAMessageRequest.prototype['url'] = undefined; + +/** + * @member {module:model/UpdateAMessageRequest.MessageTypeEnum} message_type + */ +UpdateAMessageRequest.prototype['message_type'] = undefined; + + + + + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +UpdateAMessageRequest['MessageTypeEnum'] = { + + /** + * value: "MESG" + * @const + */ + "MESG": "MESG", + + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM", + + /** + * value: "FILE" + * @const + */ + "FILE": "FILE" +}; + + + +export default UpdateAMessageRequest; + diff --git a/src/model/UpdateAUserRequest.js b/src/model/UpdateAUserRequest.js new file mode 100644 index 0000000..1346cc7 --- /dev/null +++ b/src/model/UpdateAUserRequest.js @@ -0,0 +1,135 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAUserRequest model module. + * @module model/UpdateAUserRequest + * @version 2.0.0 + */ +class UpdateAUserRequest { + /** + * Constructs a new UpdateAUserRequest. + * @alias module:model/UpdateAUserRequest + */ + constructor() { + + UpdateAUserRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateAUserRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAUserRequest} obj Optional instance to populate. + * @return {module:model/UpdateAUserRequest} The populated UpdateAUserRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAUserRequest(); + + if (data.hasOwnProperty('discovery_keys')) { + obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); + } + if (data.hasOwnProperty('is_active')) { + obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); + } + if (data.hasOwnProperty('issue_access_token')) { + obj['issue_access_token'] = ApiClient.convertToType(data['issue_access_token'], 'Boolean'); + } + if (data.hasOwnProperty('last_seen_at')) { + obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); + } + if (data.hasOwnProperty('leave_all_when_deactivated')) { + obj['leave_all_when_deactivated'] = ApiClient.convertToType(data['leave_all_when_deactivated'], 'Boolean'); + } + if (data.hasOwnProperty('nickname')) { + obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); + } + if (data.hasOwnProperty('preferred_languages')) { + obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); + } + if (data.hasOwnProperty('profile_file')) { + obj['profile_file'] = ApiClient.convertToType(data['profile_file'], File); + } + if (data.hasOwnProperty('profile_url')) { + obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} discovery_keys + */ +UpdateAUserRequest.prototype['discovery_keys'] = undefined; + +/** + * @member {Boolean} is_active + */ +UpdateAUserRequest.prototype['is_active'] = undefined; + +/** + * @member {Boolean} issue_access_token + */ +UpdateAUserRequest.prototype['issue_access_token'] = undefined; + +/** + * @member {Number} last_seen_at + */ +UpdateAUserRequest.prototype['last_seen_at'] = undefined; + +/** + * @member {Boolean} leave_all_when_deactivated + */ +UpdateAUserRequest.prototype['leave_all_when_deactivated'] = undefined; + +/** + * @member {String} nickname + */ +UpdateAUserRequest.prototype['nickname'] = undefined; + +/** + * @member {Array.} preferred_languages + */ +UpdateAUserRequest.prototype['preferred_languages'] = undefined; + +/** + * @member {File} profile_file + */ +UpdateAUserRequest.prototype['profile_file'] = undefined; + +/** + * @member {String} profile_url + */ +UpdateAUserRequest.prototype['profile_url'] = undefined; + + + + + + +export default UpdateAUserRequest; + diff --git a/src/model/UpdateAnOpenChannelRequest.js b/src/model/UpdateAnOpenChannelRequest.js new file mode 100644 index 0000000..65c1a1e --- /dev/null +++ b/src/model/UpdateAnOpenChannelRequest.js @@ -0,0 +1,111 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateAnOpenChannelRequest model module. + * @module model/UpdateAnOpenChannelRequest + * @version 2.0.0 + */ +class UpdateAnOpenChannelRequest { + /** + * Constructs a new UpdateAnOpenChannelRequest. + * @alias module:model/UpdateAnOpenChannelRequest + */ + constructor() { + + UpdateAnOpenChannelRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateAnOpenChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateAnOpenChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateAnOpenChannelRequest} The populated UpdateAnOpenChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateAnOpenChannelRequest(); + + if (data.hasOwnProperty('cover_file')) { + obj['cover_file'] = ApiClient.convertToType(data['cover_file'], File); + } + if (data.hasOwnProperty('cover_url')) { + obj['cover_url'] = ApiClient.convertToType(data['cover_url'], 'String'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('data')) { + obj['data'] = ApiClient.convertToType(data['data'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('operator_ids')) { + obj['operator_ids'] = ApiClient.convertToType(data['operator_ids'], ['String']); + } + } + return obj; + } + + +} + +/** + * @member {File} cover_file + */ +UpdateAnOpenChannelRequest.prototype['cover_file'] = undefined; + +/** + * @member {String} cover_url + */ +UpdateAnOpenChannelRequest.prototype['cover_url'] = undefined; + +/** + * @member {String} custom_type + */ +UpdateAnOpenChannelRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} data + */ +UpdateAnOpenChannelRequest.prototype['data'] = undefined; + +/** + * @member {String} name + */ +UpdateAnOpenChannelRequest.prototype['name'] = undefined; + +/** + * @member {Array.} operator_ids + */ +UpdateAnOpenChannelRequest.prototype['operator_ids'] = undefined; + + + + + + +export default UpdateAnOpenChannelRequest; + diff --git a/src/model/UpdateAnnouncementByIdData.js b/src/model/UpdateAnnouncementByIdData.js deleted file mode 100644 index 13a2381..0000000 --- a/src/model/UpdateAnnouncementByIdData.js +++ /dev/null @@ -1,218 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateAnnouncementByIdData model module. - * @module model/UpdateAnnouncementByIdData - * @version 0.0.16 - */ -class UpdateAnnouncementByIdData { - /** - * Constructs a new UpdateAnnouncementByIdData. - * @alias module:model/UpdateAnnouncementByIdData - * @param uniqueId {String} Specifies the unique ID of the announcement to update. - */ - constructor(uniqueId) { - - UpdateAnnouncementByIdData.initialize(this, uniqueId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, uniqueId) { - obj['unique_id'] = uniqueId; - } - - /** - * Constructs a UpdateAnnouncementByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdData} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdData} The populated UpdateAnnouncementByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdData(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options.name')) { - obj['create_channel_options.name'] = ApiClient.convertToType(data['create_channel_options.name'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.cover_url')) { - obj['create_channel_options.cover_url'] = ApiClient.convertToType(data['create_channel_options.cover_url'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.custom_type')) { - obj['create_channel_options.custom_type'] = ApiClient.convertToType(data['create_channel_options.custom_type'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.data')) { - obj['create_channel_options.data'] = ApiClient.convertToType(data['create_channel_options.data'], 'String'); - } - if (data.hasOwnProperty('create_channel_options.distinct')) { - obj['create_channel_options.distinct'] = ApiClient.convertToType(data['create_channel_options.distinct'], 'String'); - } - if (data.hasOwnProperty('message.user_id')) { - obj['message.user_id'] = ApiClient.convertToType(data['message.user_id'], 'String'); - } - if (data.hasOwnProperty('message.content')) { - obj['message.content'] = ApiClient.convertToType(data['message.content'], 'String'); - } - if (data.hasOwnProperty('message.data')) { - obj['message.data'] = ApiClient.convertToType(data['message.data'], 'String'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the announcement to update. - * @member {String} unique_id - */ -UpdateAnnouncementByIdData.prototype['unique_id'] = undefined; - -/** - * Specifies an action to take on the announcement. If this property is updated, other specified properties in the request are not effective. Acceptable values are limited to remove, pause, resume, and cancel. The [Announcement actions](#2-update-an-announcement-3-how-to-change-announcement-status) table explains each action in detail. - * @member {String} action - */ -UpdateAnnouncementByIdData.prototype['action'] = undefined; - -/** - * Specifies the name of an announcement group to retrieve. If not specified, all announcements are returned, regardless of their group. - * @member {String} announcement_group - */ -UpdateAnnouncementByIdData.prototype['announcement_group'] = undefined; - -/** - * Determines whether to create a new channel if there is no existing channel that matches with the target options including target_at and target_list. - * @member {Boolean} create_channel - */ -UpdateAnnouncementByIdData.prototype['create_channel'] = undefined; - -/** - * Specifies the name of the channel. (Default: Group Channel) - * @member {String} create_channel_options.name - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.name'] = undefined; - -/** - * Specifies the URL of the cover image. - * @member {String} create_channel_options.cover_url - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.cover_url'] = undefined; - -/** - * Specifies the custom channel type. - * @member {String} create_channel_options.custom_type - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.custom_type'] = undefined; - -/** - * Specifies additional channel information such as a long description of the channel or `JSON` formatted string. - * @member {String} create_channel_options.data - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.data'] = undefined; - -/** - * Determines whether to create a [distinct](/docs/chat/v3/platform-api/guides/channel-types#2-group-channel) channel. (Default: true) - * @member {String} create_channel_options.distinct - */ -UpdateAnnouncementByIdData.prototype['create_channel_options.distinct'] = undefined; - -/** - * Specifies the unique ID of the announcement sender. - * @member {String} message.user_id - */ -UpdateAnnouncementByIdData.prototype['message.user_id'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message.content - */ -UpdateAnnouncementByIdData.prototype['message.content'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} message.data - */ -UpdateAnnouncementByIdData.prototype['message.data'] = undefined; - -/** - * Determines whether to turn on push notification for the announcement. If set to true, push notifications will be sent for announcements. - * @member {Boolean} enable_push - */ -UpdateAnnouncementByIdData.prototype['enable_push'] = undefined; - -/** - * Specifies the time to start the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. (Default: current timestamp) - * @member {Number} scheduled_at - */ -UpdateAnnouncementByIdData.prototype['scheduled_at'] = undefined; - -/** - * Specifies the time to permanently end the announcement, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format, even if the announcement is not sent to all its targets. - * @member {Number} end_at - */ -UpdateAnnouncementByIdData.prototype['end_at'] = undefined; - -/** - * Specifies the time to temporarily put the announcement on hold in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the resume_at below. - * @member {String} cease_at - */ -UpdateAnnouncementByIdData.prototype['cease_at'] = undefined; - -/** - * Specifies the time to automatically resume the on-hold announcement in UTC. The string is represented in HHMM format. This property should be specified in conjunction with the cease_at above. - * @member {String} resume_at - */ -UpdateAnnouncementByIdData.prototype['resume_at'] = undefined; - - - - - - -export default UpdateAnnouncementByIdData; - diff --git a/src/model/UpdateAnnouncementByIdResponse.js b/src/model/UpdateAnnouncementByIdResponse.js deleted file mode 100644 index d2ef1d6..0000000 --- a/src/model/UpdateAnnouncementByIdResponse.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UpdateAnnouncementByIdResponseMessage from './UpdateAnnouncementByIdResponseMessage'; - -/** - * The UpdateAnnouncementByIdResponse model module. - * @module model/UpdateAnnouncementByIdResponse - * @version 0.0.16 - */ -class UpdateAnnouncementByIdResponse { - /** - * Constructs a new UpdateAnnouncementByIdResponse. - * @alias module:model/UpdateAnnouncementByIdResponse - */ - constructor() { - - UpdateAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdResponse} The populated UpdateAnnouncementByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdResponse(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = UpdateAnnouncementByIdResponseMessage.constructFromObject(data['message']); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -UpdateAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -UpdateAnnouncementByIdResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/UpdateAnnouncementByIdResponseMessage} message - */ -UpdateAnnouncementByIdResponse.prototype['message'] = undefined; - - - - - - -export default UpdateAnnouncementByIdResponse; - diff --git a/src/model/UpdateAnnouncementByIdResponseMessage.js b/src/model/UpdateAnnouncementByIdResponseMessage.js deleted file mode 100644 index d93bd23..0000000 --- a/src/model/UpdateAnnouncementByIdResponseMessage.js +++ /dev/null @@ -1,183 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateAnnouncementByIdResponseMessage model module. - * @module model/UpdateAnnouncementByIdResponseMessage - * @version 0.0.16 - */ -class UpdateAnnouncementByIdResponseMessage { - /** - * Constructs a new UpdateAnnouncementByIdResponseMessage. - * @alias module:model/UpdateAnnouncementByIdResponseMessage - */ - constructor() { - - UpdateAnnouncementByIdResponseMessage.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateAnnouncementByIdResponseMessage from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateAnnouncementByIdResponseMessage} obj Optional instance to populate. - * @return {module:model/UpdateAnnouncementByIdResponseMessage} The populated UpdateAnnouncementByIdResponseMessage instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateAnnouncementByIdResponseMessage(); - - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('content')) { - obj['content'] = ApiClient.convertToType(data['content'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = ApiClient.convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} type - */ -UpdateAnnouncementByIdResponseMessage.prototype['type'] = undefined; - -/** - * @member {String} custom_type - */ -UpdateAnnouncementByIdResponseMessage.prototype['custom_type'] = undefined; - -/** - * @member {String} user_id - */ -UpdateAnnouncementByIdResponseMessage.prototype['user_id'] = undefined; - -/** - * @member {String} content - */ -UpdateAnnouncementByIdResponseMessage.prototype['content'] = undefined; - -/** - * @member {String} data - */ -UpdateAnnouncementByIdResponseMessage.prototype['data'] = undefined; - -/** - * @member {Boolean} enable_push - */ -UpdateAnnouncementByIdResponseMessage.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -UpdateAnnouncementByIdResponseMessage.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['scheduled_at'] = undefined; - -/** - * @member {Number} completed_at - */ -UpdateAnnouncementByIdResponseMessage.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -UpdateAnnouncementByIdResponseMessage.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -UpdateAnnouncementByIdResponseMessage.prototype['open_rate'] = undefined; - - - - - - -export default UpdateAnnouncementByIdResponseMessage; - diff --git a/src/model/UpdateApnsPushConfigurationByIdData.js b/src/model/UpdateApnsPushConfigurationByIdData.js deleted file mode 100644 index 441d8f7..0000000 --- a/src/model/UpdateApnsPushConfigurationByIdData.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateApnsPushConfigurationByIdData model module. - * @module model/UpdateApnsPushConfigurationByIdData - * @version 0.0.16 - */ -class UpdateApnsPushConfigurationByIdData { - /** - * Constructs a new UpdateApnsPushConfigurationByIdData. - * @alias module:model/UpdateApnsPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param apnsCert {File} In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. You should specify either this property or the apns_type below to inform the server of which certificate type to update. - * @param apnsCertEnvType {String} Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @param apnsCertPassword {String} Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @param hasUnreadCountBadge {Boolean} Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @param contentAvailable {Boolean} Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @param mutableContent {Boolean} Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @param apnsType {String} (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - */ - constructor(providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - - UpdateApnsPushConfigurationByIdData.initialize(this, providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, providerId, apnsCert, apnsCertEnvType, apnsCertPassword, hasUnreadCountBadge, contentAvailable, mutableContent, pushSound, apnsType) { - obj['provider_id'] = providerId; - obj['apns_cert'] = apnsCert; - obj['apns_cert_env_type'] = apnsCertEnvType; - obj['apns_cert_password'] = apnsCertPassword; - obj['has_unread_count_badge'] = hasUnreadCountBadge; - obj['content_available'] = contentAvailable; - obj['mutable_content'] = mutableContent; - obj['push_sound'] = pushSound; - obj['apns_type'] = apnsType; - } - - /** - * Constructs a UpdateApnsPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateApnsPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateApnsPushConfigurationByIdData} The populated UpdateApnsPushConfigurationByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateApnsPushConfigurationByIdData(); - - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = ApiClient.convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('apns_cert')) { - obj['apns_cert'] = ApiClient.convertToType(data['apns_cert'], File); - } - if (data.hasOwnProperty('apns_cert_env_type')) { - obj['apns_cert_env_type'] = ApiClient.convertToType(data['apns_cert_env_type'], 'String'); - } - if (data.hasOwnProperty('apns_cert_password')) { - obj['apns_cert_password'] = ApiClient.convertToType(data['apns_cert_password'], 'String'); - } - if (data.hasOwnProperty('has_unread_count_badge')) { - obj['has_unread_count_badge'] = ApiClient.convertToType(data['has_unread_count_badge'], 'Boolean'); - } - if (data.hasOwnProperty('content_available')) { - obj['content_available'] = ApiClient.convertToType(data['content_available'], 'Boolean'); - } - if (data.hasOwnProperty('mutable_content')) { - obj['mutable_content'] = ApiClient.convertToType(data['mutable_content'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('apns_type')) { - obj['apns_type'] = ApiClient.convertToType(data['apns_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateApnsPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * In a form of the `multipart/form-data` content type, specifies a [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file of which type is either development or production. Sendbird server scans the content of the file, finds out the certificate type, and then registers the file as the corresponding type. If you upload a wrong file, you will receive an error. You should specify either this property or the apns_type below to inform the server of which certificate type to update. - * @member {File} apns_cert - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert'] = undefined; - -/** - * Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_cert_env_type - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert_env_type'] = undefined; - -/** - * Specifies the password of the cerfificate file which has been set during the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) export. - * @member {String} apns_cert_password - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_cert_password'] = undefined; - -/** - * Determines whether to badge your client app's icon with the number of a user's unread messages. (Default: true) - * @member {Boolean} has_unread_count_badge - */ -UpdateApnsPushConfigurationByIdData.prototype['has_unread_count_badge'] = undefined; - -/** - * Determines for your client app whether to perform a silent background update on a user's device. For more information, see the Apple Developer Documentation's [Pushing Updates to Your App Silently](https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server/pushing_updates_to_your_app_silently). (Default: false) - * @member {Boolean} content_available - */ -UpdateApnsPushConfigurationByIdData.prototype['content_available'] = undefined; - -/** - * Determines for your client app whether or not to modify the payload of a push notification before it is displayed on a user's device. For more information, see the Apple Developer Documentation's [Modifying Content in Newly Delivered Notifications](https://developer.apple.com/documentation/usernotifications/modifying_content_in_newly_delivered_notifications). (Default: false) - * @member {Boolean} mutable_content - */ -UpdateApnsPushConfigurationByIdData.prototype['mutable_content'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file can be in the app's main bundle or in the `Library/Sounds` folder of the app's data container. - * @member {String} push_sound - */ -UpdateApnsPushConfigurationByIdData.prototype['push_sound'] = undefined; - -/** - * (Deprecated) Specifies the certificate type of the [.p12](/docs/chat/v3/ios/guides/push-notifications#2-step-3-export-a-p12-file-and-upload-to-sendbird-dashboard) file. Acceptable values are development and production. You should specify either this property or the apns_cert above to inform the server of which certificate type to update. - * @member {String} apns_type - */ -UpdateApnsPushConfigurationByIdData.prototype['apns_type'] = undefined; - - - - - - -export default UpdateApnsPushConfigurationByIdData; - diff --git a/src/model/UpdateApnsPushConfigurationByIdResponse.js b/src/model/UpdateApnsPushConfigurationByIdResponse.js deleted file mode 100644 index ef06cf9..0000000 --- a/src/model/UpdateApnsPushConfigurationByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateApnsPushConfigurationByIdResponse model module. - * @module model/UpdateApnsPushConfigurationByIdResponse - * @version 0.0.16 - */ -class UpdateApnsPushConfigurationByIdResponse { - /** - * Constructs a new UpdateApnsPushConfigurationByIdResponse. - * @alias module:model/UpdateApnsPushConfigurationByIdResponse - */ - constructor() { - - UpdateApnsPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateApnsPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateApnsPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateApnsPushConfigurationByIdResponse} The populated UpdateApnsPushConfigurationByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateApnsPushConfigurationByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} push_configurations - */ -UpdateApnsPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default UpdateApnsPushConfigurationByIdResponse; - diff --git a/src/model/UpdateBotByIdData.js b/src/model/UpdateBotByIdData.js deleted file mode 100644 index 5a17e84..0000000 --- a/src/model/UpdateBotByIdData.js +++ /dev/null @@ -1,151 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateBotByIdData model module. - * @module model/UpdateBotByIdData - * @version 0.0.16 - */ -class UpdateBotByIdData { - /** - * Constructs a new UpdateBotByIdData. - * @alias module:model/UpdateBotByIdData - * @param botUserid {String} Specifies the ID of the bot to update. - * @param botNickname {String} Specifies the bot's nickname. The length is limited to 80 characters. - * @param botProfileUrl {String} Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @param botCallbackUrl {String} Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @param isPrivacyMode {Boolean} In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @param enableMarkAsRead {Boolean} Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @param showMember {Boolean} Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @param channelInvitationPreference {Number} Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) - */ - constructor(botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference) { - - UpdateBotByIdData.initialize(this, botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, botUserid, botNickname, botProfileUrl, botCallbackUrl, isPrivacyMode, enableMarkAsRead, showMember, channelInvitationPreference) { - obj['bot_userid'] = botUserid; - obj['bot_nickname'] = botNickname; - obj['bot_profile_url'] = botProfileUrl; - obj['bot_callback_url'] = botCallbackUrl; - obj['is_privacy_mode'] = isPrivacyMode; - obj['enable_mark_as_read'] = enableMarkAsRead; - obj['show_member'] = showMember; - obj['channel_invitation_preference'] = channelInvitationPreference; - } - - /** - * Constructs a UpdateBotByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateBotByIdData} obj Optional instance to populate. - * @return {module:model/UpdateBotByIdData} The populated UpdateBotByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateBotByIdData(); - - if (data.hasOwnProperty('bot_userid')) { - obj['bot_userid'] = ApiClient.convertToType(data['bot_userid'], 'String'); - } - if (data.hasOwnProperty('bot_nickname')) { - obj['bot_nickname'] = ApiClient.convertToType(data['bot_nickname'], 'String'); - } - if (data.hasOwnProperty('bot_profile_url')) { - obj['bot_profile_url'] = ApiClient.convertToType(data['bot_profile_url'], 'String'); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - - -} - -/** - * Specifies the ID of the bot to update. - * @member {String} bot_userid - */ -UpdateBotByIdData.prototype['bot_userid'] = undefined; - -/** - * Specifies the bot's nickname. The length is limited to 80 characters. - * @member {String} bot_nickname - */ -UpdateBotByIdData.prototype['bot_nickname'] = undefined; - -/** - * Specifies the URL of the bot's profile image. The size is limited to 2,048 characters. - * @member {String} bot_profile_url - */ -UpdateBotByIdData.prototype['bot_profile_url'] = undefined; - -/** - * Specifies the server URL where bot is located to receive all events, requests, and data forwarded from an application. For security reasons, it is highly recommended that you use an SSL server. The length is limited to 1,024 characters. - * @member {String} bot_callback_url - */ -UpdateBotByIdData.prototype['bot_callback_url'] = undefined; - -/** - * In the channels of where the bot is a member, determines whether to only forward the messages with the specific conditions to the bot or forword all messages to the bot, for privacy concerns. If set to true, only messages that start with a '/' or mention the bot_userid are forwarded to the bot. If set to false, all messages are forwarded. - * @member {Boolean} is_privacy_mode - */ -UpdateBotByIdData.prototype['is_privacy_mode'] = undefined; - -/** - * Determines whether to mark the bot's message as read upon sending it. (Default: true) - * @member {Boolean} enable_mark_as_read - */ -UpdateBotByIdData.prototype['enable_mark_as_read'] = undefined; - -/** - * Determines whether to include information about the members of each channel in a callback response. (Default: false) - * @member {Boolean} show_member - */ -UpdateBotByIdData.prototype['show_member'] = undefined; - -/** - * Determines whether the bot automatically joins the channel when invited or joins the channel after manually accepting an invitation using the API. If set to 0, it automatically joins the channel. If set to 1, the latter takes place. (Default: 0) - * @member {Number} channel_invitation_preference - */ -UpdateBotByIdData.prototype['channel_invitation_preference'] = undefined; - - - - - - -export default UpdateBotByIdData; - diff --git a/src/model/UpdateBotByIdResponse.js b/src/model/UpdateBotByIdResponse.js deleted file mode 100644 index f8c4585..0000000 --- a/src/model/UpdateBotByIdResponse.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CreateBotResponseBot from './CreateBotResponseBot'; - -/** - * The UpdateBotByIdResponse model module. - * @module model/UpdateBotByIdResponse - * @version 0.0.16 - */ -class UpdateBotByIdResponse { - /** - * Constructs a new UpdateBotByIdResponse. - * @alias module:model/UpdateBotByIdResponse - */ - constructor() { - - UpdateBotByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateBotByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateBotByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateBotByIdResponse} The populated UpdateBotByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateBotByIdResponse(); - - if (data.hasOwnProperty('bot')) { - obj['bot'] = CreateBotResponseBot.constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/CreateBotResponseBot} bot - */ -UpdateBotByIdResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -UpdateBotByIdResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -UpdateBotByIdResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -UpdateBotByIdResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -UpdateBotByIdResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -UpdateBotByIdResponse.prototype['channel_invitation_preference'] = undefined; - - - - - - -export default UpdateBotByIdResponse; - diff --git a/src/model/UpdateChannelInvitationPreferenceData.js b/src/model/UpdateChannelInvitationPreferenceData.js deleted file mode 100644 index cc59209..0000000 --- a/src/model/UpdateChannelInvitationPreferenceData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateChannelInvitationPreferenceData model module. - * @module model/UpdateChannelInvitationPreferenceData - * @version 0.0.16 - */ -class UpdateChannelInvitationPreferenceData { - /** - * Constructs a new UpdateChannelInvitationPreferenceData. - * @alias module:model/UpdateChannelInvitationPreferenceData - * @param autoAccept {Boolean} Determines for the user whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - */ - constructor(autoAccept) { - - UpdateChannelInvitationPreferenceData.initialize(this, autoAccept); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, autoAccept) { - obj['auto_accept'] = autoAccept; - } - - /** - * Constructs a UpdateChannelInvitationPreferenceData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelInvitationPreferenceData} obj Optional instance to populate. - * @return {module:model/UpdateChannelInvitationPreferenceData} The populated UpdateChannelInvitationPreferenceData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelInvitationPreferenceData(); - - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Determines for the user whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - * @member {Boolean} auto_accept - */ -UpdateChannelInvitationPreferenceData.prototype['auto_accept'] = undefined; - - - - - - -export default UpdateChannelInvitationPreferenceData; - diff --git a/src/model/UpdateChannelInvitationPreferenceRequest.js b/src/model/UpdateChannelInvitationPreferenceRequest.js new file mode 100644 index 0000000..3775459 --- /dev/null +++ b/src/model/UpdateChannelInvitationPreferenceRequest.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateChannelInvitationPreferenceRequest model module. + * @module model/UpdateChannelInvitationPreferenceRequest + * @version 2.0.0 + */ +class UpdateChannelInvitationPreferenceRequest { + /** + * Constructs a new UpdateChannelInvitationPreferenceRequest. + * @alias module:model/UpdateChannelInvitationPreferenceRequest + */ + constructor() { + + UpdateChannelInvitationPreferenceRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateChannelInvitationPreferenceRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateChannelInvitationPreferenceRequest} obj Optional instance to populate. + * @return {module:model/UpdateChannelInvitationPreferenceRequest} The populated UpdateChannelInvitationPreferenceRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateChannelInvitationPreferenceRequest(); + + if (data.hasOwnProperty('auto_accept')) { + obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} auto_accept + */ +UpdateChannelInvitationPreferenceRequest.prototype['auto_accept'] = undefined; + + + + + + +export default UpdateChannelInvitationPreferenceRequest; + diff --git a/src/model/UpdateChannelInvitationPreferenceResponse.js b/src/model/UpdateChannelInvitationPreferenceResponse.js index 249136c..42eb240 100644 --- a/src/model/UpdateChannelInvitationPreferenceResponse.js +++ b/src/model/UpdateChannelInvitationPreferenceResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateChannelInvitationPreferenceResponse model module. * @module model/UpdateChannelInvitationPreferenceResponse - * @version 0.0.16 + * @version 2.0.0 */ class UpdateChannelInvitationPreferenceResponse { /** diff --git a/src/model/UpdateChannelMetacounterData.js b/src/model/UpdateChannelMetacounterData.js deleted file mode 100644 index 0d7be76..0000000 --- a/src/model/UpdateChannelMetacounterData.js +++ /dev/null @@ -1,91 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateChannelMetacounterData model module. - * @module model/UpdateChannelMetacounterData - * @version 0.0.16 - */ -class UpdateChannelMetacounterData { - /** - * Constructs a new UpdateChannelMetacounterData. - * @alias module:model/UpdateChannelMetacounterData - * @param metacounter {String} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - */ - constructor(metacounter) { - - UpdateChannelMetacounterData.initialize(this, metacounter); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, metacounter) { - obj['metacounter'] = metacounter; - } - - /** - * Constructs a UpdateChannelMetacounterData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelMetacounterData} obj Optional instance to populate. - * @return {module:model/UpdateChannelMetacounterData} The populated UpdateChannelMetacounterData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelMetacounterData(); - - if (data.hasOwnProperty('metacounter')) { - obj['metacounter'] = ApiClient.convertToType(data['metacounter'], 'String'); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = ApiClient.convertToType(data['mode'], 'String'); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be an integer. This property can have up to 5 items. - * @member {String} metacounter - */ -UpdateChannelMetacounterData.prototype['metacounter'] = undefined; - -/** - * Specifies how to calculate the item value of the metacounter. Acceptable values are increase, decrease, and set. If set to increase, increments the item value of the metacounter by the value specified in the metacounter property, while decrease decrements. set sets the item value to the specified value exactly. (Default: set) - * @member {String} mode - */ -UpdateChannelMetacounterData.prototype['mode'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateChannelMetacounterData.prototype['upsert'] = undefined; - - - - - - -export default UpdateChannelMetacounterData; - diff --git a/src/model/UpdateChannelMetadataData.js b/src/model/UpdateChannelMetadataData.js deleted file mode 100644 index d3cccb8..0000000 --- a/src/model/UpdateChannelMetadataData.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateChannelMetadataData model module. - * @module model/UpdateChannelMetadataData - * @version 0.0.16 - */ -class UpdateChannelMetadataData { - /** - * Constructs a new UpdateChannelMetadataData. - * @alias module:model/UpdateChannelMetadataData - * @param metadata {Object} Specifies a `JSON` object which has key-value items to update. A key can't contain a comma (,) and its length is limited to 128 characters. A value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @param upsert {Boolean} - */ - constructor(metadata, upsert) { - - UpdateChannelMetadataData.initialize(this, metadata, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, metadata, upsert) { - obj['metadata'] = metadata; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateChannelMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateChannelMetadataData} obj Optional instance to populate. - * @return {module:model/UpdateChannelMetadataData} The populated UpdateChannelMetadataData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateChannelMetadataData(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies a `JSON` object which has key-value items to update. A key can't contain a comma (,) and its length is limited to 128 characters. A value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -UpdateChannelMetadataData.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateChannelMetadataData.prototype['upsert'] = undefined; - - - - - - -export default UpdateChannelMetadataData; - diff --git a/src/model/UpdateCountPreferenceOfAChannelRequest.js b/src/model/UpdateCountPreferenceOfAChannelRequest.js new file mode 100644 index 0000000..c5eb0a0 --- /dev/null +++ b/src/model/UpdateCountPreferenceOfAChannelRequest.js @@ -0,0 +1,106 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateCountPreferenceOfAChannelRequest model module. + * @module model/UpdateCountPreferenceOfAChannelRequest + * @version 2.0.0 + */ +class UpdateCountPreferenceOfAChannelRequest { + /** + * Constructs a new UpdateCountPreferenceOfAChannelRequest. + * @alias module:model/UpdateCountPreferenceOfAChannelRequest + * @param countPreference {module:model/UpdateCountPreferenceOfAChannelRequest.CountPreferenceEnum} + */ + constructor(countPreference) { + + UpdateCountPreferenceOfAChannelRequest.initialize(this, countPreference); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, countPreference) { + obj['count_preference'] = countPreference; + } + + /** + * Constructs a UpdateCountPreferenceOfAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateCountPreferenceOfAChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdateCountPreferenceOfAChannelRequest} The populated UpdateCountPreferenceOfAChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateCountPreferenceOfAChannelRequest(); + + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/UpdateCountPreferenceOfAChannelRequest.CountPreferenceEnum} count_preference + */ +UpdateCountPreferenceOfAChannelRequest.prototype['count_preference'] = undefined; + + + + + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +UpdateCountPreferenceOfAChannelRequest['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + + +export default UpdateCountPreferenceOfAChannelRequest; + diff --git a/src/model/UpdateCountPreferenceOfChannelByUrlData.js b/src/model/UpdateCountPreferenceOfChannelByUrlData.js deleted file mode 100644 index bad80c7..0000000 --- a/src/model/UpdateCountPreferenceOfChannelByUrlData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateCountPreferenceOfChannelByUrlData model module. - * @module model/UpdateCountPreferenceOfChannelByUrlData - * @version 0.0.16 - */ -class UpdateCountPreferenceOfChannelByUrlData { - /** - * Constructs a new UpdateCountPreferenceOfChannelByUrlData. - * @alias module:model/UpdateCountPreferenceOfChannelByUrlData - * @param countPreference {String} Determines whether to only count the number of unread messages or the number of unread mentioned messages in the specified group channel. Only the one that is chosen to be preferenced will be counted and added to the total number count after the action. A value of off indicates that both read statuses will not be counted, while all indicates that both read statuses will be counted by the system. A value of unread_message_count_only indicates that only the user's unread messages will be counted in the channel while unread_mentioned_count_only indicates that only the user's unread mentioned messages will be counted. (Default: all) - */ - constructor(countPreference) { - - UpdateCountPreferenceOfChannelByUrlData.initialize(this, countPreference); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, countPreference) { - obj['count_preference'] = countPreference; - } - - /** - * Constructs a UpdateCountPreferenceOfChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateCountPreferenceOfChannelByUrlData} obj Optional instance to populate. - * @return {module:model/UpdateCountPreferenceOfChannelByUrlData} The populated UpdateCountPreferenceOfChannelByUrlData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateCountPreferenceOfChannelByUrlData(); - - if (data.hasOwnProperty('count_preference')) { - obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); - } - } - return obj; - } - - -} - -/** - * Determines whether to only count the number of unread messages or the number of unread mentioned messages in the specified group channel. Only the one that is chosen to be preferenced will be counted and added to the total number count after the action. A value of off indicates that both read statuses will not be counted, while all indicates that both read statuses will be counted by the system. A value of unread_message_count_only indicates that only the user's unread messages will be counted in the channel while unread_mentioned_count_only indicates that only the user's unread mentioned messages will be counted. (Default: all) - * @member {String} count_preference - */ -UpdateCountPreferenceOfChannelByUrlData.prototype['count_preference'] = undefined; - - - - - - -export default UpdateCountPreferenceOfChannelByUrlData; - diff --git a/src/model/UpdateCountPreferenceOfChannelByUrlResponse.js b/src/model/UpdateCountPreferenceOfChannelByUrlResponse.js index 8320e0d..abc1602 100644 --- a/src/model/UpdateCountPreferenceOfChannelByUrlResponse.js +++ b/src/model/UpdateCountPreferenceOfChannelByUrlResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateCountPreferenceOfChannelByUrlResponse model module. * @module model/UpdateCountPreferenceOfChannelByUrlResponse - * @version 0.0.16 + * @version 2.0.0 */ class UpdateCountPreferenceOfChannelByUrlResponse { /** @@ -58,7 +58,7 @@ class UpdateCountPreferenceOfChannelByUrlResponse { } /** - * @member {String} count_preference + * @member {module:model/UpdateCountPreferenceOfChannelByUrlResponse.CountPreferenceEnum} count_preference */ UpdateCountPreferenceOfChannelByUrlResponse.prototype['count_preference'] = undefined; @@ -66,6 +66,39 @@ UpdateCountPreferenceOfChannelByUrlResponse.prototype['count_preference'] = unde +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +UpdateCountPreferenceOfChannelByUrlResponse['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + export default UpdateCountPreferenceOfChannelByUrlResponse; diff --git a/src/model/UpdateDefaultChannelInvitationPreferenceData.js b/src/model/UpdateDefaultChannelInvitationPreferenceData.js deleted file mode 100644 index c4d13c3..0000000 --- a/src/model/UpdateDefaultChannelInvitationPreferenceData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateDefaultChannelInvitationPreferenceData model module. - * @module model/UpdateDefaultChannelInvitationPreferenceData - * @version 0.0.16 - */ -class UpdateDefaultChannelInvitationPreferenceData { - /** - * Constructs a new UpdateDefaultChannelInvitationPreferenceData. - * @alias module:model/UpdateDefaultChannelInvitationPreferenceData - * @param autoAccept {Boolean} Determines for users within an application whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - */ - constructor(autoAccept) { - - UpdateDefaultChannelInvitationPreferenceData.initialize(this, autoAccept); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, autoAccept) { - obj['auto_accept'] = autoAccept; - } - - /** - * Constructs a UpdateDefaultChannelInvitationPreferenceData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDefaultChannelInvitationPreferenceData} obj Optional instance to populate. - * @return {module:model/UpdateDefaultChannelInvitationPreferenceData} The populated UpdateDefaultChannelInvitationPreferenceData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDefaultChannelInvitationPreferenceData(); - - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Determines for users within an application whether or not to automatically join a [private](/docs/chat/v3/platform-api/guides/group-channel#-3-private-vs-public) group channel promptly from an invitation without having to accept it. (Default: true) - * @member {Boolean} auto_accept - */ -UpdateDefaultChannelInvitationPreferenceData.prototype['auto_accept'] = undefined; - - - - - - -export default UpdateDefaultChannelInvitationPreferenceData; - diff --git a/src/model/UpdateDefaultChannelInvitationPreferenceResponse.js b/src/model/UpdateDefaultChannelInvitationPreferenceResponse.js deleted file mode 100644 index 2913ea9..0000000 --- a/src/model/UpdateDefaultChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateDefaultChannelInvitationPreferenceResponse model module. - * @module model/UpdateDefaultChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -class UpdateDefaultChannelInvitationPreferenceResponse { - /** - * Constructs a new UpdateDefaultChannelInvitationPreferenceResponse. - * @alias module:model/UpdateDefaultChannelInvitationPreferenceResponse - */ - constructor() { - - UpdateDefaultChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateDefaultChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateDefaultChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/UpdateDefaultChannelInvitationPreferenceResponse} The populated UpdateDefaultChannelInvitationPreferenceResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateDefaultChannelInvitationPreferenceResponse(); - - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} auto_accept - */ -UpdateDefaultChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; - - - - - - -export default UpdateDefaultChannelInvitationPreferenceResponse; - diff --git a/src/model/UpdateEmojiCategoryUrlByIdData.js b/src/model/UpdateEmojiCategoryUrlByIdData.js deleted file mode 100644 index 6208108..0000000 --- a/src/model/UpdateEmojiCategoryUrlByIdData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateEmojiCategoryUrlByIdData model module. - * @module model/UpdateEmojiCategoryUrlByIdData - * @version 0.0.16 - */ -class UpdateEmojiCategoryUrlByIdData { - /** - * Constructs a new UpdateEmojiCategoryUrlByIdData. - * @alias module:model/UpdateEmojiCategoryUrlByIdData - * @param emojiCategoryId {Number} Specifies the unique ID of the emoji category to update. - * @param url {String} Specifies the new URL of the emoji category. - */ - constructor(emojiCategoryId, url) { - - UpdateEmojiCategoryUrlByIdData.initialize(this, emojiCategoryId, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, emojiCategoryId, url) { - obj['emoji_category_id'] = emojiCategoryId; - obj['url'] = url; - } - - /** - * Constructs a UpdateEmojiCategoryUrlByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEmojiCategoryUrlByIdData} obj Optional instance to populate. - * @return {module:model/UpdateEmojiCategoryUrlByIdData} The populated UpdateEmojiCategoryUrlByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEmojiCategoryUrlByIdData(); - - if (data.hasOwnProperty('emoji_category_id')) { - obj['emoji_category_id'] = ApiClient.convertToType(data['emoji_category_id'], 'Number'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the emoji category to update. - * @member {Number} emoji_category_id - */ -UpdateEmojiCategoryUrlByIdData.prototype['emoji_category_id'] = undefined; - -/** - * Specifies the new URL of the emoji category. - * @member {String} url - */ -UpdateEmojiCategoryUrlByIdData.prototype['url'] = undefined; - - - - - - -export default UpdateEmojiCategoryUrlByIdData; - diff --git a/src/model/UpdateEmojiUrlByKeyData.js b/src/model/UpdateEmojiUrlByKeyData.js deleted file mode 100644 index aef2224..0000000 --- a/src/model/UpdateEmojiUrlByKeyData.js +++ /dev/null @@ -1,85 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateEmojiUrlByKeyData model module. - * @module model/UpdateEmojiUrlByKeyData - * @version 0.0.16 - */ -class UpdateEmojiUrlByKeyData { - /** - * Constructs a new UpdateEmojiUrlByKeyData. - * @alias module:model/UpdateEmojiUrlByKeyData - * @param emojiKey {String} Specifies the key of the emoji to update. - * @param url {String} Specifies the new image URL of the emoji. - */ - constructor(emojiKey, url) { - - UpdateEmojiUrlByKeyData.initialize(this, emojiKey, url); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, emojiKey, url) { - obj['emoji_key'] = emojiKey; - obj['url'] = url; - } - - /** - * Constructs a UpdateEmojiUrlByKeyData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateEmojiUrlByKeyData} obj Optional instance to populate. - * @return {module:model/UpdateEmojiUrlByKeyData} The populated UpdateEmojiUrlByKeyData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateEmojiUrlByKeyData(); - - if (data.hasOwnProperty('emoji_key')) { - obj['emoji_key'] = ApiClient.convertToType(data['emoji_key'], 'String'); - } - if (data.hasOwnProperty('url')) { - obj['url'] = ApiClient.convertToType(data['url'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the key of the emoji to update. - * @member {String} emoji_key - */ -UpdateEmojiUrlByKeyData.prototype['emoji_key'] = undefined; - -/** - * Specifies the new image URL of the emoji. - * @member {String} url - */ -UpdateEmojiUrlByKeyData.prototype['url'] = undefined; - - - - - - -export default UpdateEmojiUrlByKeyData; - diff --git a/src/model/UpdateExtraDataInAMessageRequest.js b/src/model/UpdateExtraDataInAMessageRequest.js new file mode 100644 index 0000000..4327691 --- /dev/null +++ b/src/model/UpdateExtraDataInAMessageRequest.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The UpdateExtraDataInAMessageRequest model module. + * @module model/UpdateExtraDataInAMessageRequest + * @version 2.0.0 + */ +class UpdateExtraDataInAMessageRequest { + /** + * Constructs a new UpdateExtraDataInAMessageRequest. + * @alias module:model/UpdateExtraDataInAMessageRequest + */ + constructor() { + + UpdateExtraDataInAMessageRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateExtraDataInAMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateExtraDataInAMessageRequest} obj Optional instance to populate. + * @return {module:model/UpdateExtraDataInAMessageRequest} The populated UpdateExtraDataInAMessageRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateExtraDataInAMessageRequest(); + + if (data.hasOwnProperty('mode')) { + obj['mode'] = ApiClient.convertToType(data['mode'], 'String'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + if (data.hasOwnProperty('upsert')) { + obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * @member {String} mode + */ +UpdateExtraDataInAMessageRequest.prototype['mode'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +UpdateExtraDataInAMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * @member {Boolean} upsert + */ +UpdateExtraDataInAMessageRequest.prototype['upsert'] = undefined; + + + + + + +export default UpdateExtraDataInAMessageRequest; + diff --git a/src/model/UpdateExtraDataInAMessageResponse.js b/src/model/UpdateExtraDataInAMessageResponse.js new file mode 100644 index 0000000..c20016c --- /dev/null +++ b/src/model/UpdateExtraDataInAMessageResponse.js @@ -0,0 +1,72 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdSortedMetaarrayInner from './SendbirdSortedMetaarrayInner'; + +/** + * The UpdateExtraDataInAMessageResponse model module. + * @module model/UpdateExtraDataInAMessageResponse + * @version 2.0.0 + */ +class UpdateExtraDataInAMessageResponse { + /** + * Constructs a new UpdateExtraDataInAMessageResponse. + * @alias module:model/UpdateExtraDataInAMessageResponse + */ + constructor() { + + UpdateExtraDataInAMessageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateExtraDataInAMessageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateExtraDataInAMessageResponse} obj Optional instance to populate. + * @return {module:model/UpdateExtraDataInAMessageResponse} The populated UpdateExtraDataInAMessageResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateExtraDataInAMessageResponse(); + + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [SendbirdSortedMetaarrayInner]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} sorted_metaarray + */ +UpdateExtraDataInAMessageResponse.prototype['sorted_metaarray'] = undefined; + + + + + + +export default UpdateExtraDataInAMessageResponse; + diff --git a/src/model/UpdateExtraDataInMessageData.js b/src/model/UpdateExtraDataInMessageData.js deleted file mode 100644 index 315e8e8..0000000 --- a/src/model/UpdateExtraDataInMessageData.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateExtraDataInMessageData model module. - * @module model/UpdateExtraDataInMessageData - * @version 0.0.16 - */ -class UpdateExtraDataInMessageData { - /** - * Constructs a new UpdateExtraDataInMessageData. - * @alias module:model/UpdateExtraDataInMessageData - * @param channelType {String} Specifies the type of the channel. Either open_channels or group_channels. - * @param channelUrl {String} Specifies the URL of the target channel. - * @param messageId {Number} Specifies the unique ID of the message to update key-values items. - * @param sortedMetaarray {String} Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @param mode {String} Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are limited to add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. - * @param upsert {Boolean} Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of which keys match the ones you specify are updated with new values. (Default: false) - */ - constructor(channelType, channelUrl, messageId, sortedMetaarray, mode, upsert) { - - UpdateExtraDataInMessageData.initialize(this, channelType, channelUrl, messageId, sortedMetaarray, mode, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, channelType, channelUrl, messageId, sortedMetaarray, mode, upsert) { - obj['channel_type'] = channelType; - obj['channel_url'] = channelUrl; - obj['message_id'] = messageId; - obj['sorted_metaarray'] = sortedMetaarray; - obj['mode'] = mode; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateExtraDataInMessageData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageData} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageData} The populated UpdateExtraDataInMessageData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], 'String'); - } - if (data.hasOwnProperty('mode')) { - obj['mode'] = ApiClient.convertToType(data['mode'], 'String'); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -UpdateExtraDataInMessageData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -UpdateExtraDataInMessageData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to update key-values items. - * @member {Number} message_id - */ -UpdateExtraDataInMessageData.prototype['message_id'] = undefined; - -/** - * Specifies a `JSON` object of one or more key-values items which store additional message information. Each item consists of a key and the values in an array. Items are saved and will be returned in the exact order they've been specified. - * @member {String} sorted_metaarray - */ -UpdateExtraDataInMessageData.prototype['sorted_metaarray'] = undefined; - -/** - * Determines whether to add the specified values in the items or remove the specified values from the existing items. Acceptable values are limited to add and remove. If set to add, the specified values are added only when they are different from the existing values. If set to remove, the specified values are removed only when they have the corresponding ones in the existing values. - * @member {String} mode - */ -UpdateExtraDataInMessageData.prototype['mode'] = undefined; - -/** - * Determines whether to add new items in addition to updating existing items. If true, new key-values items are added when there are no items with the keys. The existing items are updated with new values when there are already items with the keys. If false, only the items of which keys match the ones you specify are updated with new values. (Default: false) - * @member {Boolean} upsert - */ -UpdateExtraDataInMessageData.prototype['upsert'] = undefined; - - - - - - -export default UpdateExtraDataInMessageData; - diff --git a/src/model/UpdateExtraDataInMessageResponse.js b/src/model/UpdateExtraDataInMessageResponse.js deleted file mode 100644 index 7da0cd7..0000000 --- a/src/model/UpdateExtraDataInMessageResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import UpdateExtraDataInMessageResponseSortedMetaarrayInner from './UpdateExtraDataInMessageResponseSortedMetaarrayInner'; - -/** - * The UpdateExtraDataInMessageResponse model module. - * @module model/UpdateExtraDataInMessageResponse - * @version 0.0.16 - */ -class UpdateExtraDataInMessageResponse { - /** - * Constructs a new UpdateExtraDataInMessageResponse. - * @alias module:model/UpdateExtraDataInMessageResponse - */ - constructor() { - - UpdateExtraDataInMessageResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateExtraDataInMessageResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageResponse} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageResponse} The populated UpdateExtraDataInMessageResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageResponse(); - - if (data.hasOwnProperty('sorted_metaarray')) { - obj['sorted_metaarray'] = ApiClient.convertToType(data['sorted_metaarray'], [UpdateExtraDataInMessageResponseSortedMetaarrayInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} sorted_metaarray - */ -UpdateExtraDataInMessageResponse.prototype['sorted_metaarray'] = undefined; - - - - - - -export default UpdateExtraDataInMessageResponse; - diff --git a/src/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js b/src/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js deleted file mode 100644 index 7ab5207..0000000 --- a/src/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateExtraDataInMessageResponseSortedMetaarrayInner model module. - * @module model/UpdateExtraDataInMessageResponseSortedMetaarrayInner - * @version 0.0.16 - */ -class UpdateExtraDataInMessageResponseSortedMetaarrayInner { - /** - * Constructs a new UpdateExtraDataInMessageResponseSortedMetaarrayInner. - * @alias module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner - */ - constructor() { - - UpdateExtraDataInMessageResponseSortedMetaarrayInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateExtraDataInMessageResponseSortedMetaarrayInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner} obj Optional instance to populate. - * @return {module:model/UpdateExtraDataInMessageResponseSortedMetaarrayInner} The populated UpdateExtraDataInMessageResponseSortedMetaarrayInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], ['String']); - } - if (data.hasOwnProperty('key')) { - obj['key'] = ApiClient.convertToType(data['key'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {Array.} value - */ -UpdateExtraDataInMessageResponseSortedMetaarrayInner.prototype['value'] = undefined; - -/** - * @member {String} key - */ -UpdateExtraDataInMessageResponseSortedMetaarrayInner.prototype['key'] = undefined; - - - - - - -export default UpdateExtraDataInMessageResponseSortedMetaarrayInner; - diff --git a/src/model/UpdateFcmPushConfigurationByIdData.js b/src/model/UpdateFcmPushConfigurationByIdData.js deleted file mode 100644 index af9b01c..0000000 --- a/src/model/UpdateFcmPushConfigurationByIdData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateFcmPushConfigurationByIdData model module. - * @module model/UpdateFcmPushConfigurationByIdData - * @version 0.0.16 - */ -class UpdateFcmPushConfigurationByIdData { - /** - * Constructs a new UpdateFcmPushConfigurationByIdData. - * @alias module:model/UpdateFcmPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param apiKey {String} Specifies the FCM server key to update. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - constructor(providerId, apiKey, pushSound) { - - UpdateFcmPushConfigurationByIdData.initialize(this, providerId, apiKey, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, providerId, apiKey, pushSound) { - obj['provider_id'] = providerId; - obj['api_key'] = apiKey; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdateFcmPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFcmPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateFcmPushConfigurationByIdData} The populated UpdateFcmPushConfigurationByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFcmPushConfigurationByIdData(); - - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = ApiClient.convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('api_key')) { - obj['api_key'] = ApiClient.convertToType(data['api_key'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateFcmPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * Specifies the FCM server key to update. - * @member {String} api_key - */ -UpdateFcmPushConfigurationByIdData.prototype['api_key'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -UpdateFcmPushConfigurationByIdData.prototype['push_sound'] = undefined; - - - - - - -export default UpdateFcmPushConfigurationByIdData; - diff --git a/src/model/UpdateFcmPushConfigurationByIdResponse.js b/src/model/UpdateFcmPushConfigurationByIdResponse.js deleted file mode 100644 index 2ee0147..0000000 --- a/src/model/UpdateFcmPushConfigurationByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateFcmPushConfigurationByIdResponse model module. - * @module model/UpdateFcmPushConfigurationByIdResponse - * @version 0.0.16 - */ -class UpdateFcmPushConfigurationByIdResponse { - /** - * Constructs a new UpdateFcmPushConfigurationByIdResponse. - * @alias module:model/UpdateFcmPushConfigurationByIdResponse - */ - constructor() { - - UpdateFcmPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateFcmPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateFcmPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateFcmPushConfigurationByIdResponse} The populated UpdateFcmPushConfigurationByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateFcmPushConfigurationByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} push_configurations - */ -UpdateFcmPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default UpdateFcmPushConfigurationByIdResponse; - diff --git a/src/model/UpdateHmsPushConfigurationByIdData.js b/src/model/UpdateHmsPushConfigurationByIdData.js deleted file mode 100644 index 60659f2..0000000 --- a/src/model/UpdateHmsPushConfigurationByIdData.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateHmsPushConfigurationByIdData model module. - * @module model/UpdateHmsPushConfigurationByIdData - * @version 0.0.16 - */ -class UpdateHmsPushConfigurationByIdData { - /** - * Constructs a new UpdateHmsPushConfigurationByIdData. - * @alias module:model/UpdateHmsPushConfigurationByIdData - * @param providerId {String} Specifies the provider ID of the push configuration to update. - * @param huaweiAppId {String} Specifies the unique ID of application for HMS to update. - * @param huaweiAppSecret {String} Specifies the secret key of the application to update. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - */ - constructor(providerId, huaweiAppId, huaweiAppSecret, pushSound) { - - UpdateHmsPushConfigurationByIdData.initialize(this, providerId, huaweiAppId, huaweiAppSecret, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, providerId, huaweiAppId, huaweiAppSecret, pushSound) { - obj['provider_id'] = providerId; - obj['huawei_app_id'] = huaweiAppId; - obj['huawei_app_secret'] = huaweiAppSecret; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdateHmsPushConfigurationByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateHmsPushConfigurationByIdData} obj Optional instance to populate. - * @return {module:model/UpdateHmsPushConfigurationByIdData} The populated UpdateHmsPushConfigurationByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateHmsPushConfigurationByIdData(); - - if (data.hasOwnProperty('provider_id')) { - obj['provider_id'] = ApiClient.convertToType(data['provider_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_id')) { - obj['huawei_app_id'] = ApiClient.convertToType(data['huawei_app_id'], 'String'); - } - if (data.hasOwnProperty('huawei_app_secret')) { - obj['huawei_app_secret'] = ApiClient.convertToType(data['huawei_app_secret'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the provider ID of the push configuration to update. - * @member {String} provider_id - */ -UpdateHmsPushConfigurationByIdData.prototype['provider_id'] = undefined; - -/** - * Specifies the unique ID of application for HMS to update. - * @member {String} huawei_app_id - */ -UpdateHmsPushConfigurationByIdData.prototype['huawei_app_id'] = undefined; - -/** - * Specifies the secret key of the application to update. - * @member {String} huawei_app_secret - */ -UpdateHmsPushConfigurationByIdData.prototype['huawei_app_secret'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. The file should be located in the `/res/raw` folder. - * @member {String} push_sound - */ -UpdateHmsPushConfigurationByIdData.prototype['push_sound'] = undefined; - - - - - - -export default UpdateHmsPushConfigurationByIdData; - diff --git a/src/model/UpdateHmsPushConfigurationByIdResponse.js b/src/model/UpdateHmsPushConfigurationByIdResponse.js deleted file mode 100644 index 7f28ef8..0000000 --- a/src/model/UpdateHmsPushConfigurationByIdResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateHmsPushConfigurationByIdResponse model module. - * @module model/UpdateHmsPushConfigurationByIdResponse - * @version 0.0.16 - */ -class UpdateHmsPushConfigurationByIdResponse { - /** - * Constructs a new UpdateHmsPushConfigurationByIdResponse. - * @alias module:model/UpdateHmsPushConfigurationByIdResponse - */ - constructor() { - - UpdateHmsPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateHmsPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateHmsPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/UpdateHmsPushConfigurationByIdResponse} The populated UpdateHmsPushConfigurationByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateHmsPushConfigurationByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} push_configurations - */ -UpdateHmsPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default UpdateHmsPushConfigurationByIdResponse; - diff --git a/src/model/UpdateMessageByIdData.js b/src/model/UpdateMessageByIdData.js deleted file mode 100644 index c0e1621..0000000 --- a/src/model/UpdateMessageByIdData.js +++ /dev/null @@ -1,146 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateMessageByIdData model module. - * @module model/UpdateMessageByIdData - * @version 0.0.16 - */ -class UpdateMessageByIdData { - /** - * Constructs a new UpdateMessageByIdData. - * @alias module:model/UpdateMessageByIdData - * @param messageId {Number} Specifies the unique ID of the message to update. - */ - constructor(messageId) { - - UpdateMessageByIdData.initialize(this, messageId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, messageId) { - obj['message_id'] = messageId; - } - - /** - * Constructs a UpdateMessageByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateMessageByIdData} obj Optional instance to populate. - * @return {module:model/UpdateMessageByIdData} The populated UpdateMessageByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateMessageByIdData(); - - if (data.hasOwnProperty('channel_type')) { - obj['channel_type'] = ApiClient.convertToType(data['channel_type'], 'String'); - } - if (data.hasOwnProperty('channel_url')) { - obj['channel_url'] = ApiClient.convertToType(data['channel_url'], 'String'); - } - if (data.hasOwnProperty('message_id')) { - obj['message_id'] = ApiClient.convertToType(data['message_id'], 'Number'); - } - if (data.hasOwnProperty('message_type')) { - obj['message_type'] = ApiClient.convertToType(data['message_type'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ApiClient.convertToType(data['message'], 'String'); - } - if (data.hasOwnProperty('custom_type')) { - obj['custom_type'] = ApiClient.convertToType(data['custom_type'], 'String'); - } - if (data.hasOwnProperty('data')) { - obj['data'] = ApiClient.convertToType(data['data'], 'String'); - } - if (data.hasOwnProperty('mention_type')) { - obj['mention_type'] = ApiClient.convertToType(data['mention_type'], 'String'); - } - if (data.hasOwnProperty('mentioned_user_ids')) { - obj['mentioned_user_ids'] = ApiClient.convertToType(data['mentioned_user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * Specifies the type of the channel. Either open_channels or group_channels. - * @member {String} channel_type - */ -UpdateMessageByIdData.prototype['channel_type'] = undefined; - -/** - * Specifies the URL of the target channel. - * @member {String} channel_url - */ -UpdateMessageByIdData.prototype['channel_url'] = undefined; - -/** - * Specifies the unique ID of the message to update. - * @member {Number} message_id - */ -UpdateMessageByIdData.prototype['message_id'] = undefined; - -/** - * Specifies the type of the message as ADMM. - * @member {String} message_type - */ -UpdateMessageByIdData.prototype['message_type'] = undefined; - -/** - * Specifies the content of the message. - * @member {String} message - */ -UpdateMessageByIdData.prototype['message'] = undefined; - -/** - * Specifies a custom message type which is used for message grouping. The length is limited to 128 characters.

Custom types are also used within Sendbird's [Advanced analytics](/docs/chat/v3/platform-api/guides/advanced-analytics) to segment metrics, which enables the sub-classification of data views. - * @member {String} custom_type - */ -UpdateMessageByIdData.prototype['custom_type'] = undefined; - -/** - * Specifies additional message information such as custom font size, font type or `JSON` formatted string. - * @member {String} data - */ -UpdateMessageByIdData.prototype['data'] = undefined; - -/** - * Specifies the mentioning method which indicates the user scope who will get a notification for the message. Acceptable values are users and channel. If set to users, only the specified users with the mentioned_users property below will get notified. If set to channel, all users in the channel will get notified. (Default: users) - * @member {String} mention_type - */ -UpdateMessageByIdData.prototype['mention_type'] = undefined; - -/** - * Specifies an array of one or more IDs of the users who will get a notification for the message. - * @member {Array.} mentioned_user_ids - */ -UpdateMessageByIdData.prototype['mentioned_user_ids'] = undefined; - - - - - - -export default UpdateMessageByIdData; - diff --git a/src/model/UpdatePushNotificationContentTemplateData.js b/src/model/UpdatePushNotificationContentTemplateData.js deleted file mode 100644 index d2c1d64..0000000 --- a/src/model/UpdatePushNotificationContentTemplateData.js +++ /dev/null @@ -1,118 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdatePushNotificationContentTemplateData model module. - * @module model/UpdatePushNotificationContentTemplateData - * @version 0.0.16 - */ -class UpdatePushNotificationContentTemplateData { - /** - * Constructs a new UpdatePushNotificationContentTemplateData. - * @alias module:model/UpdatePushNotificationContentTemplateData - * @param templateName {String} Specifies the name of a push notification content template to update. Acceptable values are default and alternative. - * @param template {String} The push notification content template of which content types to be updated and their detailed format. - * @param templateMESG {String} Specifies a format for text messages. We support customization of two fields, which are the sender_name and message. These fields will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @param templateFILE {String} Specifies a format for file messages. We support customization with variables including filename and file_type_friendly. When sending notification requests to FCM, HMS, or APNs, the filename will be replaced with the corresponding string value while the file_type_friendly will indicate the type of the file sent, such as `Audio`, `Image`, and `Video`. - * @param templateADMN {String} Specifies a format for admin messages. We support customization of one field, which is the message. This field will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - */ - constructor(templateName, template, templateMESG, templateFILE, templateADMN) { - - UpdatePushNotificationContentTemplateData.initialize(this, templateName, template, templateMESG, templateFILE, templateADMN); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, templateName, template, templateMESG, templateFILE, templateADMN) { - obj['template_name'] = templateName; - obj['template'] = template; - obj['template.MESG'] = templateMESG; - obj['template.FILE'] = templateFILE; - obj['template.ADMN'] = templateADMN; - } - - /** - * Constructs a UpdatePushNotificationContentTemplateData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushNotificationContentTemplateData} obj Optional instance to populate. - * @return {module:model/UpdatePushNotificationContentTemplateData} The populated UpdatePushNotificationContentTemplateData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushNotificationContentTemplateData(); - - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = ApiClient.convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = ApiClient.convertToType(data['template'], 'String'); - } - if (data.hasOwnProperty('template.MESG')) { - obj['template.MESG'] = ApiClient.convertToType(data['template.MESG'], 'String'); - } - if (data.hasOwnProperty('template.FILE')) { - obj['template.FILE'] = ApiClient.convertToType(data['template.FILE'], 'String'); - } - if (data.hasOwnProperty('template.ADMN')) { - obj['template.ADMN'] = ApiClient.convertToType(data['template.ADMN'], 'String'); - } - } - return obj; - } - - -} - -/** - * Specifies the name of a push notification content template to update. Acceptable values are default and alternative. - * @member {String} template_name - */ -UpdatePushNotificationContentTemplateData.prototype['template_name'] = undefined; - -/** - * The push notification content template of which content types to be updated and their detailed format. - * @member {String} template - */ -UpdatePushNotificationContentTemplateData.prototype['template'] = undefined; - -/** - * Specifies a format for text messages. We support customization of two fields, which are the sender_name and message. These fields will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @member {String} template.MESG - */ -UpdatePushNotificationContentTemplateData.prototype['template.MESG'] = undefined; - -/** - * Specifies a format for file messages. We support customization with variables including filename and file_type_friendly. When sending notification requests to FCM, HMS, or APNs, the filename will be replaced with the corresponding string value while the file_type_friendly will indicate the type of the file sent, such as `Audio`, `Image`, and `Video`. - * @member {String} template.FILE - */ -UpdatePushNotificationContentTemplateData.prototype['template.FILE'] = undefined; - -/** - * Specifies a format for admin messages. We support customization of one field, which is the message. This field will be replaced with actual corresponding values when sending notification requests to FCM, HMS, or APNs. - * @member {String} template.ADMN - */ -UpdatePushNotificationContentTemplateData.prototype['template.ADMN'] = undefined; - - - - - - -export default UpdatePushNotificationContentTemplateData; - diff --git a/src/model/UpdatePushNotificationContentTemplateResponse.js b/src/model/UpdatePushNotificationContentTemplateResponse.js deleted file mode 100644 index 86cebbd..0000000 --- a/src/model/UpdatePushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner from './ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner'; - -/** - * The UpdatePushNotificationContentTemplateResponse model module. - * @module model/UpdatePushNotificationContentTemplateResponse - * @version 0.0.16 - */ -class UpdatePushNotificationContentTemplateResponse { - /** - * Constructs a new UpdatePushNotificationContentTemplateResponse. - * @alias module:model/UpdatePushNotificationContentTemplateResponse - */ - constructor() { - - UpdatePushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatePushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/UpdatePushNotificationContentTemplateResponse} The populated UpdatePushNotificationContentTemplateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushNotificationContentTemplateResponse(); - - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = ApiClient.convertToType(data['push_message_templates'], [ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_message_templates - */ -UpdatePushNotificationContentTemplateResponse.prototype['push_message_templates'] = undefined; - - - - - - -export default UpdatePushNotificationContentTemplateResponse; - diff --git a/src/model/UpdatePushPreferencesData.js b/src/model/UpdatePushPreferencesData.js deleted file mode 100644 index 92a721f..0000000 --- a/src/model/UpdatePushPreferencesData.js +++ /dev/null @@ -1,206 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdatePushPreferencesData model module. - * @module model/UpdatePushPreferencesData - * @version 0.0.16 - */ -class UpdatePushPreferencesData { - /** - * Constructs a new UpdatePushPreferencesData. - * @alias module:model/UpdatePushPreferencesData - * @param pushTriggerOption {String} Determines the type of push notification trigger to apply to the user's joined group channels. Valid values are the following:
- all (default): when disconnected from Sendbird server, the user receives notifications for all new messages including mentioned messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages the user has been mentioned in.
- off: the user doesn't receive any notifications. - * @param doNotDisturb {Boolean} Determines whether to pause notification messages for the user during a specific time of day. (Default: false) - * @param startHour {Number} Specifies the hour to start pausing the notifications for Do Not Disturb of the user. - * @param startMin {Number} Specifies the minute of the hour to start pausing the notifications for Do Not Disturb of the user. - * @param endHour {Number} Specifies the hour to stop pausing the notifications for Do Not Disturb of the user. - * @param endMin {Number} Specifies the minute of the hour to stop pausing the notifications for Do Not Disturb of the user. - * @param snoozeEnabled {Boolean} Determines whether to snooze notification messages for the user during a specific period of time. (Default: false) - * @param snoozeStartTs {Number} Specifies the timestamp of when to start snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @param snoozeEndTs {Number} Specifies the timestamp of when to end snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @param blockPushFromBots {Boolean} Determines whether to block push notifications from [all bots](/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots) within the application. If the push_blocked_bot_ids is specified, notifications only from the bots in the property are blocked. (Default: false) - * @param pushBlockedBotIds {Array.} Specifies an array of one or more IDs of bots whose push notifications are blocked. This property is effective only when the block_push_from_bots is set to true. - * @param timezone {String} Specifies the timezone to be applied to push preferences with a value such as UTC, Asia/Seoul, Europe/London, etc. - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to your client app. - */ - constructor(pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound) { - - UpdatePushPreferencesData.initialize(this, pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, pushTriggerOption, doNotDisturb, startHour, startMin, endHour, endMin, snoozeEnabled, snoozeStartTs, snoozeEndTs, blockPushFromBots, pushBlockedBotIds, timezone, pushSound) { - obj['push_trigger_option'] = pushTriggerOption; - obj['do_not_disturb'] = doNotDisturb; - obj['start_hour'] = startHour; - obj['start_min'] = startMin; - obj['end_hour'] = endHour; - obj['end_min'] = endMin; - obj['snooze_enabled'] = snoozeEnabled; - obj['snooze_start_ts'] = snoozeStartTs; - obj['snooze_end_ts'] = snoozeEndTs; - obj['block_push_from_bots'] = blockPushFromBots; - obj['push_blocked_bot_ids'] = pushBlockedBotIds; - obj['timezone'] = timezone; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdatePushPreferencesData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesData} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesData} The populated UpdatePushPreferencesData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesData(); - - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['Number']); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Determines the type of push notification trigger to apply to the user's joined group channels. Valid values are the following:
- all (default): when disconnected from Sendbird server, the user receives notifications for all new messages including mentioned messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages the user has been mentioned in.
- off: the user doesn't receive any notifications. - * @member {String} push_trigger_option - */ -UpdatePushPreferencesData.prototype['push_trigger_option'] = undefined; - -/** - * Determines whether to pause notification messages for the user during a specific time of day. (Default: false) - * @member {Boolean} do_not_disturb - */ -UpdatePushPreferencesData.prototype['do_not_disturb'] = undefined; - -/** - * Specifies the hour to start pausing the notifications for Do Not Disturb of the user. - * @member {Number} start_hour - */ -UpdatePushPreferencesData.prototype['start_hour'] = undefined; - -/** - * Specifies the minute of the hour to start pausing the notifications for Do Not Disturb of the user. - * @member {Number} start_min - */ -UpdatePushPreferencesData.prototype['start_min'] = undefined; - -/** - * Specifies the hour to stop pausing the notifications for Do Not Disturb of the user. - * @member {Number} end_hour - */ -UpdatePushPreferencesData.prototype['end_hour'] = undefined; - -/** - * Specifies the minute of the hour to stop pausing the notifications for Do Not Disturb of the user. - * @member {Number} end_min - */ -UpdatePushPreferencesData.prototype['end_min'] = undefined; - -/** - * Determines whether to snooze notification messages for the user during a specific period of time. (Default: false) - * @member {Boolean} snooze_enabled - */ -UpdatePushPreferencesData.prototype['snooze_enabled'] = undefined; - -/** - * Specifies the timestamp of when to start snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @member {Number} snooze_start_ts - */ -UpdatePushPreferencesData.prototype['snooze_start_ts'] = undefined; - -/** - * Specifies the timestamp of when to end snoozing the notifications, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps). - * @member {Number} snooze_end_ts - */ -UpdatePushPreferencesData.prototype['snooze_end_ts'] = undefined; - -/** - * Determines whether to block push notifications from [all bots](/docs/chat/v3/platform-api/guides/bot-interface#2-list-bots) within the application. If the push_blocked_bot_ids is specified, notifications only from the bots in the property are blocked. (Default: false) - * @member {Boolean} block_push_from_bots - */ -UpdatePushPreferencesData.prototype['block_push_from_bots'] = undefined; - -/** - * Specifies an array of one or more IDs of bots whose push notifications are blocked. This property is effective only when the block_push_from_bots is set to true. - * @member {Array.} push_blocked_bot_ids - */ -UpdatePushPreferencesData.prototype['push_blocked_bot_ids'] = undefined; - -/** - * Specifies the timezone to be applied to push preferences with a value such as UTC, Asia/Seoul, Europe/London, etc. - * @member {String} timezone - */ -UpdatePushPreferencesData.prototype['timezone'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to your client app. - * @member {String} push_sound - */ -UpdatePushPreferencesData.prototype['push_sound'] = undefined; - - - - - - -export default UpdatePushPreferencesData; - diff --git a/src/model/UpdatePushPreferencesForAChannelRequest.js b/src/model/UpdatePushPreferencesForAChannelRequest.js new file mode 100644 index 0000000..3a33c13 --- /dev/null +++ b/src/model/UpdatePushPreferencesForAChannelRequest.js @@ -0,0 +1,115 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdatePushPreferencesForAChannelRequest model module. + * @module model/UpdatePushPreferencesForAChannelRequest + * @version 2.0.0 + */ +class UpdatePushPreferencesForAChannelRequest { + /** + * Constructs a new UpdatePushPreferencesForAChannelRequest. + * @alias module:model/UpdatePushPreferencesForAChannelRequest + * @param pushTriggerOption {module:model/UpdatePushPreferencesForAChannelRequest.PushTriggerOptionEnum} The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. + */ + constructor(pushTriggerOption) { + + UpdatePushPreferencesForAChannelRequest.initialize(this, pushTriggerOption); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, pushTriggerOption) { + obj['push_trigger_option'] = pushTriggerOption; + } + + /** + * Constructs a UpdatePushPreferencesForAChannelRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesForAChannelRequest} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesForAChannelRequest} The populated UpdatePushPreferencesForAChannelRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesForAChannelRequest(); + + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + } + } + return obj; + } + + +} + +/** + * The type of notifications trigger applies to group channels when a user is disconnected from Sendbird server. Acceptable values are the following: - default (default): Indicates that a user's notifications trigger setting applies to the specified channel. - all: Indicates that a user receives notifications for all new messages. - mention_only: Indicates that a user only receives notifications for mentioned messages. - off: Indicates that a user doesn't receive any notifications. + * @member {module:model/UpdatePushPreferencesForAChannelRequest.PushTriggerOptionEnum} push_trigger_option + */ +UpdatePushPreferencesForAChannelRequest.prototype['push_trigger_option'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesForAChannelRequest.prototype['push_sound'] = undefined; + + + + + +/** + * Allowed values for the push_trigger_option property. + * @enum {String} + * @readonly + */ +UpdatePushPreferencesForAChannelRequest['PushTriggerOptionEnum'] = { + + /** + * value: "default" + * @const + */ + "default": "default", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "mention_only" + * @const + */ + "mention_only": "mention_only", + + /** + * value: "false" + * @const + */ + "false": "false" +}; + + + +export default UpdatePushPreferencesForAChannelRequest; + diff --git a/src/model/UpdatePushPreferencesForAChannelResponse.js b/src/model/UpdatePushPreferencesForAChannelResponse.js new file mode 100644 index 0000000..add4b5c --- /dev/null +++ b/src/model/UpdatePushPreferencesForAChannelResponse.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; + +/** + * The UpdatePushPreferencesForAChannelResponse model module. + * @module model/UpdatePushPreferencesForAChannelResponse + * @version 2.0.0 + */ +class UpdatePushPreferencesForAChannelResponse { + /** + * Constructs a new UpdatePushPreferencesForAChannelResponse. + * @alias module:model/UpdatePushPreferencesForAChannelResponse + */ + constructor() { + + UpdatePushPreferencesForAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdatePushPreferencesForAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesForAChannelResponse} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesForAChannelResponse} The populated UpdatePushPreferencesForAChannelResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesForAChannelResponse(); + + if (data.hasOwnProperty('enable')) { + obj['enable'] = ApiClient.convertToType(data['enable'], 'Boolean'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} enable + */ +UpdatePushPreferencesForAChannelResponse.prototype['enable'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesForAChannelResponse.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +UpdatePushPreferencesForAChannelResponse.prototype['push_trigger_option'] = undefined; + + + + + + +export default UpdatePushPreferencesForAChannelResponse; + diff --git a/src/model/UpdatePushPreferencesForChannelByUrlData.js b/src/model/UpdatePushPreferencesForChannelByUrlData.js deleted file mode 100644 index 61a3e9a..0000000 --- a/src/model/UpdatePushPreferencesForChannelByUrlData.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdatePushPreferencesForChannelByUrlData model module. - * @module model/UpdatePushPreferencesForChannelByUrlData - * @version 0.0.16 - */ -class UpdatePushPreferencesForChannelByUrlData { - /** - * Constructs a new UpdatePushPreferencesForChannelByUrlData. - * @alias module:model/UpdatePushPreferencesForChannelByUrlData - * @param pushTriggerOption {String} Determines the type of push notification trigger to apply to the speficied channel. Acceptable values are limited to the following:
- default: the user's push notification trigger setting automatically applies to the channel. This is the default setting.
- all: when disconnected from Sendbird server, the user receives notifications for all new messages in the channel including messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages in the channel the user has been mentioned in.
- off: the user doesn't receive any notifications in the channel. - * @param enable {Boolean} (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: true) - * @param pushSound {String} Specifies the name of a sound file to be played when a push notification is delivered to the specified channel. - */ - constructor(pushTriggerOption, enable, pushSound) { - - UpdatePushPreferencesForChannelByUrlData.initialize(this, pushTriggerOption, enable, pushSound); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, pushTriggerOption, enable, pushSound) { - obj['push_trigger_option'] = pushTriggerOption; - obj['enable'] = enable; - obj['push_sound'] = pushSound; - } - - /** - * Constructs a UpdatePushPreferencesForChannelByUrlData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesForChannelByUrlData} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesForChannelByUrlData} The populated UpdatePushPreferencesForChannelByUrlData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesForChannelByUrlData(); - - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = ApiClient.convertToType(data['enable'], 'Boolean'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - } - return obj; - } - - -} - -/** - * Determines the type of push notification trigger to apply to the speficied channel. Acceptable values are limited to the following:
- default: the user's push notification trigger setting automatically applies to the channel. This is the default setting.
- all: when disconnected from Sendbird server, the user receives notifications for all new messages in the channel including messages the user has been mentioned in.
- mention_only: when disconnected from Sendbird server, the user only receives notifications for messages in the channel the user has been mentioned in.
- off: the user doesn't receive any notifications in the channel. - * @member {String} push_trigger_option - */ -UpdatePushPreferencesForChannelByUrlData.prototype['push_trigger_option'] = undefined; - -/** - * (Deprecated) Determines whether notification messages for the user are delivered to the group channel. (default: true) - * @member {Boolean} enable - */ -UpdatePushPreferencesForChannelByUrlData.prototype['enable'] = undefined; - -/** - * Specifies the name of a sound file to be played when a push notification is delivered to the specified channel. - * @member {String} push_sound - */ -UpdatePushPreferencesForChannelByUrlData.prototype['push_sound'] = undefined; - - - - - - -export default UpdatePushPreferencesForChannelByUrlData; - diff --git a/src/model/UpdatePushPreferencesForChannelByUrlResponse.js b/src/model/UpdatePushPreferencesForChannelByUrlResponse.js deleted file mode 100644 index ca7286f..0000000 --- a/src/model/UpdatePushPreferencesForChannelByUrlResponse.js +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdatePushPreferencesForChannelByUrlResponse model module. - * @module model/UpdatePushPreferencesForChannelByUrlResponse - * @version 0.0.16 - */ -class UpdatePushPreferencesForChannelByUrlResponse { - /** - * Constructs a new UpdatePushPreferencesForChannelByUrlResponse. - * @alias module:model/UpdatePushPreferencesForChannelByUrlResponse - */ - constructor() { - - UpdatePushPreferencesForChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdatePushPreferencesForChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdatePushPreferencesForChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/UpdatePushPreferencesForChannelByUrlResponse} The populated UpdatePushPreferencesForChannelByUrlResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdatePushPreferencesForChannelByUrlResponse(); - - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = ApiClient.convertToType(data['enable'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {String} push_trigger_option - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['push_trigger_option'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} start_hour - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['start_hour'] = undefined; - -/** - * @member {Number} start_min - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['start_min'] = undefined; - -/** - * @member {Number} end_hour - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['end_hour'] = undefined; - -/** - * @member {Number} end_min - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['end_min'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} snooze_start_ts - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} snooze_end_ts - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {String} timezone - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['timezone'] = undefined; - -/** - * @member {String} push_sound - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['push_sound'] = undefined; - -/** - * @member {Boolean} enable - */ -UpdatePushPreferencesForChannelByUrlResponse.prototype['enable'] = undefined; - - - - - - -export default UpdatePushPreferencesForChannelByUrlResponse; - diff --git a/src/model/UpdatePushPreferencesRequest.js b/src/model/UpdatePushPreferencesRequest.js new file mode 100644 index 0000000..a4ed09c --- /dev/null +++ b/src/model/UpdatePushPreferencesRequest.js @@ -0,0 +1,176 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; + +/** + * The UpdatePushPreferencesRequest model module. + * @module model/UpdatePushPreferencesRequest + * @version 2.0.0 + */ +class UpdatePushPreferencesRequest { + /** + * Constructs a new UpdatePushPreferencesRequest. + * @alias module:model/UpdatePushPreferencesRequest + */ + constructor() { + + UpdatePushPreferencesRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdatePushPreferencesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdatePushPreferencesRequest} obj Optional instance to populate. + * @return {module:model/UpdatePushPreferencesRequest} The populated UpdatePushPreferencesRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdatePushPreferencesRequest(); + + if (data.hasOwnProperty('block_push_from_bots')) { + obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); + } + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); + } + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); + } + if (data.hasOwnProperty('end_hour')) { + obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); + } + if (data.hasOwnProperty('end_min')) { + obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); + } + if (data.hasOwnProperty('push_blocked_bot_ids')) { + obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['String']); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + if (data.hasOwnProperty('snooze_enabled')) { + obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); + } + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); + } + if (data.hasOwnProperty('snooze_start_ts')) { + obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); + } + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); + } + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); + } + if (data.hasOwnProperty('timezone')) { + obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} block_push_from_bots + */ +UpdatePushPreferencesRequest.prototype['block_push_from_bots'] = undefined; + +/** + * @member {Boolean} do_not_disturb + */ +UpdatePushPreferencesRequest.prototype['do_not_disturb'] = undefined; + +/** + * @member {Boolean} enable_push_for_replies + */ +UpdatePushPreferencesRequest.prototype['enable_push_for_replies'] = undefined; + +/** + * @member {Number} end_hour + */ +UpdatePushPreferencesRequest.prototype['end_hour'] = undefined; + +/** + * @member {Number} end_min + */ +UpdatePushPreferencesRequest.prototype['end_min'] = undefined; + +/** + * @member {Array.} push_blocked_bot_ids + */ +UpdatePushPreferencesRequest.prototype['push_blocked_bot_ids'] = undefined; + +/** + * @member {String} push_sound + */ +UpdatePushPreferencesRequest.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +UpdatePushPreferencesRequest.prototype['push_trigger_option'] = undefined; + +/** + * @member {Boolean} snooze_enabled + */ +UpdatePushPreferencesRequest.prototype['snooze_enabled'] = undefined; + +/** + * @member {Number} snooze_end_ts + */ +UpdatePushPreferencesRequest.prototype['snooze_end_ts'] = undefined; + +/** + * @member {Number} snooze_start_ts + */ +UpdatePushPreferencesRequest.prototype['snooze_start_ts'] = undefined; + +/** + * @member {Number} start_hour + */ +UpdatePushPreferencesRequest.prototype['start_hour'] = undefined; + +/** + * @member {Number} start_min + */ +UpdatePushPreferencesRequest.prototype['start_min'] = undefined; + +/** + * @member {String} timezone + */ +UpdatePushPreferencesRequest.prototype['timezone'] = undefined; + + + + + + +export default UpdatePushPreferencesRequest; + diff --git a/src/model/UpdatePushPreferencesResponse.js b/src/model/UpdatePushPreferencesResponse.js index 8b8c8aa..bc5dd7d 100644 --- a/src/model/UpdatePushPreferencesResponse.js +++ b/src/model/UpdatePushPreferencesResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,11 +12,12 @@ */ import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; /** * The UpdatePushPreferencesResponse model module. * @module model/UpdatePushPreferencesResponse - * @version 0.0.16 + * @version 2.0.0 */ class UpdatePushPreferencesResponse { /** @@ -50,23 +51,11 @@ class UpdatePushPreferencesResponse { if (data.hasOwnProperty('block_push_from_bots')) { obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); - } - if (data.hasOwnProperty('push_blocked_bot_ids')) { - obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['String']); - } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } if (data.hasOwnProperty('do_not_disturb')) { obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); } if (data.hasOwnProperty('end_hour')) { obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); @@ -74,21 +63,33 @@ class UpdatePushPreferencesResponse { if (data.hasOwnProperty('end_min')) { obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); } + if (data.hasOwnProperty('push_blocked_bot_ids')) { + obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['String']); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } if (data.hasOwnProperty('snooze_enabled')) { obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); } + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); + } if (data.hasOwnProperty('snooze_start_ts')) { obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); + } + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); } if (data.hasOwnProperty('timezone')) { obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } } return obj; } @@ -102,49 +103,49 @@ class UpdatePushPreferencesResponse { UpdatePushPreferencesResponse.prototype['block_push_from_bots'] = undefined; /** - * @member {Boolean} enable_push_for_replies + * @member {Boolean} do_not_disturb */ -UpdatePushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; +UpdatePushPreferencesResponse.prototype['do_not_disturb'] = undefined; /** - * @member {Array.} push_blocked_bot_ids + * @member {Boolean} enable_push_for_replies */ -UpdatePushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; +UpdatePushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; /** - * @member {String} push_trigger_option + * @member {Number} end_hour */ -UpdatePushPreferencesResponse.prototype['push_trigger_option'] = undefined; +UpdatePushPreferencesResponse.prototype['end_hour'] = undefined; /** - * @member {Boolean} do_not_disturb + * @member {Number} end_min */ -UpdatePushPreferencesResponse.prototype['do_not_disturb'] = undefined; +UpdatePushPreferencesResponse.prototype['end_min'] = undefined; /** - * @member {Number} start_hour + * @member {Array.} push_blocked_bot_ids */ -UpdatePushPreferencesResponse.prototype['start_hour'] = undefined; +UpdatePushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; /** - * @member {Number} start_min + * @member {String} push_sound */ -UpdatePushPreferencesResponse.prototype['start_min'] = undefined; +UpdatePushPreferencesResponse.prototype['push_sound'] = undefined; /** - * @member {Number} end_hour + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option */ -UpdatePushPreferencesResponse.prototype['end_hour'] = undefined; +UpdatePushPreferencesResponse.prototype['push_trigger_option'] = undefined; /** - * @member {Number} end_min + * @member {Boolean} snooze_enabled */ -UpdatePushPreferencesResponse.prototype['end_min'] = undefined; +UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; /** - * @member {Boolean} snooze_enabled + * @member {Number} snooze_end_ts */ -UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; +UpdatePushPreferencesResponse.prototype['snooze_end_ts'] = undefined; /** * @member {Number} snooze_start_ts @@ -152,19 +153,19 @@ UpdatePushPreferencesResponse.prototype['snooze_enabled'] = undefined; UpdatePushPreferencesResponse.prototype['snooze_start_ts'] = undefined; /** - * @member {Number} snooze_end_ts + * @member {Number} start_hour */ -UpdatePushPreferencesResponse.prototype['snooze_end_ts'] = undefined; +UpdatePushPreferencesResponse.prototype['start_hour'] = undefined; /** - * @member {String} timezone + * @member {Number} start_min */ -UpdatePushPreferencesResponse.prototype['timezone'] = undefined; +UpdatePushPreferencesResponse.prototype['start_min'] = undefined; /** - * @member {String} push_sound + * @member {String} timezone */ -UpdatePushPreferencesResponse.prototype['push_sound'] = undefined; +UpdatePushPreferencesResponse.prototype['timezone'] = undefined; diff --git a/src/model/UpdateUserByIdData.js b/src/model/UpdateUserByIdData.js deleted file mode 100644 index 41de567..0000000 --- a/src/model/UpdateUserByIdData.js +++ /dev/null @@ -1,177 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateUserByIdData model module. - * @module model/UpdateUserByIdData - * @version 0.0.16 - */ -class UpdateUserByIdData { - /** - * Constructs a new UpdateUserByIdData. - * @alias module:model/UpdateUserByIdData - * @param userId {String} Specifies the unique ID of the user to update. - * @param nickname {String} Specifies the user's nickname. The length is limited to 80 characters. - * @param profileUrl {String} Specifies the URL of the user's profile image. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - */ - constructor(userId, nickname, profileUrl) { - - UpdateUserByIdData.initialize(this, userId, nickname, profileUrl); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, userId, nickname, profileUrl) { - obj['user_id'] = userId; - obj['nickname'] = nickname; - obj['profile_url'] = profileUrl; - } - - /** - * Constructs a UpdateUserByIdData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserByIdData} obj Optional instance to populate. - * @return {module:model/UpdateUserByIdData} The populated UpdateUserByIdData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserByIdData(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('nickname')) { - obj['nickname'] = ApiClient.convertToType(data['nickname'], 'String'); - } - if (data.hasOwnProperty('profile_url')) { - obj['profile_url'] = ApiClient.convertToType(data['profile_url'], 'String'); - } - if (data.hasOwnProperty('profile_file')) { - obj['profile_file'] = ApiClient.convertToType(data['profile_file'], File); - } - if (data.hasOwnProperty('issue_access_token')) { - obj['issue_access_token'] = ApiClient.convertToType(data['issue_access_token'], 'Boolean'); - } - if (data.hasOwnProperty('issue_session_token')) { - obj['issue_session_token'] = ApiClient.convertToType(data['issue_session_token'], 'Boolean'); - } - if (data.hasOwnProperty('session_token_expires_at')) { - obj['session_token_expires_at'] = ApiClient.convertToType(data['session_token_expires_at'], 'Number'); - } - if (data.hasOwnProperty('is_active')) { - obj['is_active'] = ApiClient.convertToType(data['is_active'], 'Boolean'); - } - if (data.hasOwnProperty('last_seen_at')) { - obj['last_seen_at'] = ApiClient.convertToType(data['last_seen_at'], 'Number'); - } - if (data.hasOwnProperty('discovery_keys')) { - obj['discovery_keys'] = ApiClient.convertToType(data['discovery_keys'], ['String']); - } - if (data.hasOwnProperty('preferred_languages')) { - obj['preferred_languages'] = ApiClient.convertToType(data['preferred_languages'], ['String']); - } - if (data.hasOwnProperty('leave_all_when_deactivated')) { - obj['leave_all_when_deactivated'] = ApiClient.convertToType(data['leave_all_when_deactivated'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies the unique ID of the user to update. - * @member {String} user_id - */ -UpdateUserByIdData.prototype['user_id'] = undefined; - -/** - * Specifies the user's nickname. The length is limited to 80 characters. - * @member {String} nickname - */ -UpdateUserByIdData.prototype['nickname'] = undefined; - -/** - * Specifies the URL of the user's profile image. The length is limited to 2,048 characters.

The [domain filter](/docs/chat/v3/platform-api/guides/filter-and-moderation#2-domain-filter) filters out the request if the value of this property matches the filter's domain set. - * @member {String} profile_url - */ -UpdateUserByIdData.prototype['profile_url'] = undefined; - -/** - * Uploads the file of the user's profile image. An acceptable image is limited to `JPG` (.jpg), `JPEG` (.jpeg), or `PNG` (.png) file of up to 25 MB. - * @member {File} profile_file - */ -UpdateUserByIdData.prototype['profile_file'] = undefined; - -/** - * Determines whether to revoke the existing access token and create a new one for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, an access token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_access_token - */ -UpdateUserByIdData.prototype['issue_access_token'] = undefined; - -/** - * Determines whether to add a new session token for the user. If true, an opaque string token is issued and provided upon creation, which should be passed whenever the user logs in. If false, a session token is not required when the user logs in. (Default: false) - * @member {Boolean} issue_session_token - */ -UpdateUserByIdData.prototype['issue_session_token'] = undefined; - -/** - * Specifies the time for the issued session token to expire in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. The length should be 13. If not specified and the issue_session_token property above is true, the value of this property is set to the sum of the current timestamp and 604800000 by default, which indicates that the token will be valid for the next 7 days starting from the current timestamp. - * @member {Number} session_token_expires_at - */ -UpdateUserByIdData.prototype['session_token_expires_at'] = undefined; - -/** - * Determines whether to activate or deactivate the user within the application. - * @member {Boolean} is_active - */ -UpdateUserByIdData.prototype['is_active'] = undefined; - -/** - * Specifies the time when the user goes offline, to indicate when they were last online, in [Unix milliseconds](/docs/chat/v3/platform-api/guides/miscellaneous#2-timestamps) format. - * @member {Number} last_seen_at - */ -UpdateUserByIdData.prototype['last_seen_at'] = undefined; - -/** - * Specifies an array of unique keys of the user which is provided to Sendbird server for discovering friends. By using the keys, the server can identify and match the user with other users. - * @member {Array.} discovery_keys - */ -UpdateUserByIdData.prototype['discovery_keys'] = undefined; - -/** - * Specifies an array of one or more [language codes](/docs/chat/v3/platform-api/guides/miscellaneous#2-language-codes-for-auto-translation) to translate notification messages to preferred languages. Up to 4 languages can be set for the user. If messages are sent in one of the preferred languages, notification messages won't be translated. If messages are sent in a language other than the preferred languages, notification messages will be translated into the first language in the array. In addition, the messages translated into other preferred languages will be provided in the `sendbird` property of a notification message payload. - * @member {Array.} preferred_languages - */ -UpdateUserByIdData.prototype['preferred_languages'] = undefined; - -/** - * Determines whether the user leaves all joined group channels upon deactivation. Note that this value is true by default. Use in conjunction with the is_active property above. - * @member {Boolean} leave_all_when_deactivated - */ -UpdateUserByIdData.prototype['leave_all_when_deactivated'] = undefined; - - - - - - -export default UpdateUserByIdData; - diff --git a/src/model/UpdateUserMetadataData.js b/src/model/UpdateUserMetadataData.js deleted file mode 100644 index 62f7b35..0000000 --- a/src/model/UpdateUserMetadataData.js +++ /dev/null @@ -1,84 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateUserMetadataData model module. - * @module model/UpdateUserMetadataData - * @version 0.0.16 - */ -class UpdateUserMetadataData { - /** - * Constructs a new UpdateUserMetadataData. - * @alias module:model/UpdateUserMetadataData - * @param metadata {Object} Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @param upsert {Boolean} - */ - constructor(metadata, upsert) { - - UpdateUserMetadataData.initialize(this, metadata, upsert); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, metadata, upsert) { - obj['metadata'] = metadata; - obj['upsert'] = upsert; - } - - /** - * Constructs a UpdateUserMetadataData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserMetadataData} obj Optional instance to populate. - * @return {module:model/UpdateUserMetadataData} The populated UpdateUserMetadataData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserMetadataData(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], Object); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Specifies a `JSON` object that stores key-value items. The key must not have a comma (,) and its length is limited to 128 characters. The value must be a string and its length is limited to 190 characters. This property can have up to 5 items. - * @member {Object} metadata - */ -UpdateUserMetadataData.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateUserMetadataData.prototype['upsert'] = undefined; - - - - - - -export default UpdateUserMetadataData; - diff --git a/src/model/UpdateUserMetadataResponse.js b/src/model/UpdateUserMetadataResponse.js deleted file mode 100644 index 2af665c..0000000 --- a/src/model/UpdateUserMetadataResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UpdateUserMetadataResponse model module. - * @module model/UpdateUserMetadataResponse - * @version 0.0.16 - */ -class UpdateUserMetadataResponse { - /** - * Constructs a new UpdateUserMetadataResponse. - * @alias module:model/UpdateUserMetadataResponse - */ - constructor() { - - UpdateUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UpdateUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UpdateUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/UpdateUserMetadataResponse} The populated UpdateUserMetadataResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UpdateUserMetadataResponse(); - - if (data.hasOwnProperty('metadata')) { - obj['metadata'] = ApiClient.convertToType(data['metadata'], {'String': 'String'}); - } - if (data.hasOwnProperty('upsert')) { - obj['upsert'] = ApiClient.convertToType(data['upsert'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Object.} metadata - */ -UpdateUserMetadataResponse.prototype['metadata'] = undefined; - -/** - * @member {Boolean} upsert - */ -UpdateUserMetadataResponse.prototype['upsert'] = undefined; - - - - - - -export default UpdateUserMetadataResponse; - diff --git a/src/model/UseDefaultEmojisData.js b/src/model/UseDefaultEmojisData.js deleted file mode 100644 index 9cd46ce..0000000 --- a/src/model/UseDefaultEmojisData.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UseDefaultEmojisData model module. - * @module model/UseDefaultEmojisData - * @version 0.0.16 - */ -class UseDefaultEmojisData { - /** - * Constructs a new UseDefaultEmojisData. - * @alias module:model/UseDefaultEmojisData - * @param useDefaultEmoji {Boolean} Determines whether to use the 7 default emojis initially provided. - */ - constructor(useDefaultEmoji) { - - UseDefaultEmojisData.initialize(this, useDefaultEmoji); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, useDefaultEmoji) { - obj['use_default_emoji'] = useDefaultEmoji; - } - - /** - * Constructs a UseDefaultEmojisData from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UseDefaultEmojisData} obj Optional instance to populate. - * @return {module:model/UseDefaultEmojisData} The populated UseDefaultEmojisData instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UseDefaultEmojisData(); - - if (data.hasOwnProperty('use_default_emoji')) { - obj['use_default_emoji'] = ApiClient.convertToType(data['use_default_emoji'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * Determines whether to use the 7 default emojis initially provided. - * @member {Boolean} use_default_emoji - */ -UseDefaultEmojisData.prototype['use_default_emoji'] = undefined; - - - - - - -export default UseDefaultEmojisData; - diff --git a/src/model/UseDefaultEmojisResponse.js b/src/model/UseDefaultEmojisResponse.js deleted file mode 100644 index 985ed77..0000000 --- a/src/model/UseDefaultEmojisResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The UseDefaultEmojisResponse model module. - * @module model/UseDefaultEmojisResponse - * @version 0.0.16 - */ -class UseDefaultEmojisResponse { - /** - * Constructs a new UseDefaultEmojisResponse. - * @alias module:model/UseDefaultEmojisResponse - */ - constructor() { - - UseDefaultEmojisResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a UseDefaultEmojisResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/UseDefaultEmojisResponse} obj Optional instance to populate. - * @return {module:model/UseDefaultEmojisResponse} The populated UseDefaultEmojisResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new UseDefaultEmojisResponse(); - - if (data.hasOwnProperty('use_default_emoji')) { - obj['use_default_emoji'] = ApiClient.convertToType(data['use_default_emoji'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} use_default_emoji - */ -UseDefaultEmojisResponse.prototype['use_default_emoji'] = undefined; - - - - - - -export default UseDefaultEmojisResponse; - diff --git a/src/model/ViewAnnouncementByIdResponse.js b/src/model/ViewAnnouncementByIdResponse.js deleted file mode 100644 index 6cd56a7..0000000 --- a/src/model/ViewAnnouncementByIdResponse.js +++ /dev/null @@ -1,241 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ScheduleAnnouncementResponseCreateChannelOptions from './ScheduleAnnouncementResponseCreateChannelOptions'; -import ScheduleAnnouncementResponseMessage from './ScheduleAnnouncementResponseMessage'; - -/** - * The ViewAnnouncementByIdResponse model module. - * @module model/ViewAnnouncementByIdResponse - * @version 0.0.16 - */ -class ViewAnnouncementByIdResponse { - /** - * Constructs a new ViewAnnouncementByIdResponse. - * @alias module:model/ViewAnnouncementByIdResponse - */ - constructor() { - - ViewAnnouncementByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewAnnouncementByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewAnnouncementByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewAnnouncementByIdResponse} The populated ViewAnnouncementByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewAnnouncementByIdResponse(); - - if (data.hasOwnProperty('unique_id')) { - obj['unique_id'] = ApiClient.convertToType(data['unique_id'], 'String'); - } - if (data.hasOwnProperty('announcement_group')) { - obj['announcement_group'] = ApiClient.convertToType(data['announcement_group'], 'String'); - } - if (data.hasOwnProperty('message')) { - obj['message'] = ScheduleAnnouncementResponseMessage.constructFromObject(data['message']); - } - if (data.hasOwnProperty('enable_push')) { - obj['enable_push'] = ApiClient.convertToType(data['enable_push'], 'Boolean'); - } - if (data.hasOwnProperty('target_at')) { - obj['target_at'] = ApiClient.convertToType(data['target_at'], 'String'); - } - if (data.hasOwnProperty('target_user_count')) { - obj['target_user_count'] = ApiClient.convertToType(data['target_user_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_count')) { - obj['target_channel_count'] = ApiClient.convertToType(data['target_channel_count'], 'Number'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('scheduled_at')) { - obj['scheduled_at'] = ApiClient.convertToType(data['scheduled_at'], 'Number'); - } - if (data.hasOwnProperty('cease_at')) { - obj['cease_at'] = ApiClient.convertToType(data['cease_at'], 'String'); - } - if (data.hasOwnProperty('resume_at')) { - obj['resume_at'] = ApiClient.convertToType(data['resume_at'], 'String'); - } - if (data.hasOwnProperty('completed_at')) { - obj['completed_at'] = ApiClient.convertToType(data['completed_at'], 'Number'); - } - if (data.hasOwnProperty('sent_user_count')) { - obj['sent_user_count'] = ApiClient.convertToType(data['sent_user_count'], 'Number'); - } - if (data.hasOwnProperty('open_count')) { - obj['open_count'] = ApiClient.convertToType(data['open_count'], 'Number'); - } - if (data.hasOwnProperty('open_rate')) { - obj['open_rate'] = ApiClient.convertToType(data['open_rate'], 'Number'); - } - if (data.hasOwnProperty('create_channel')) { - obj['create_channel'] = ApiClient.convertToType(data['create_channel'], 'Boolean'); - } - if (data.hasOwnProperty('create_channel_options')) { - obj['create_channel_options'] = ScheduleAnnouncementResponseCreateChannelOptions.constructFromObject(data['create_channel_options']); - } - if (data.hasOwnProperty('end_at')) { - obj['end_at'] = ApiClient.convertToType(data['end_at'], 'Number'); - } - if (data.hasOwnProperty('mark_as_read')) { - obj['mark_as_read'] = ApiClient.convertToType(data['mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('sent_channel_count')) { - obj['sent_channel_count'] = ApiClient.convertToType(data['sent_channel_count'], 'Number'); - } - if (data.hasOwnProperty('target_channel_type')) { - obj['target_channel_type'] = ApiClient.convertToType(data['target_channel_type'], 'String'); - } - if (data.hasOwnProperty('target_custom_type')) { - obj['target_custom_type'] = ApiClient.convertToType(data['target_custom_type'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} unique_id - */ -ViewAnnouncementByIdResponse.prototype['unique_id'] = undefined; - -/** - * @member {String} announcement_group - */ -ViewAnnouncementByIdResponse.prototype['announcement_group'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseMessage} message - */ -ViewAnnouncementByIdResponse.prototype['message'] = undefined; - -/** - * @member {Boolean} enable_push - */ -ViewAnnouncementByIdResponse.prototype['enable_push'] = undefined; - -/** - * @member {String} target_at - */ -ViewAnnouncementByIdResponse.prototype['target_at'] = undefined; - -/** - * @member {Number} target_user_count - */ -ViewAnnouncementByIdResponse.prototype['target_user_count'] = undefined; - -/** - * @member {Number} target_channel_count - */ -ViewAnnouncementByIdResponse.prototype['target_channel_count'] = undefined; - -/** - * @member {String} status - */ -ViewAnnouncementByIdResponse.prototype['status'] = undefined; - -/** - * @member {Number} scheduled_at - */ -ViewAnnouncementByIdResponse.prototype['scheduled_at'] = undefined; - -/** - * @member {String} cease_at - */ -ViewAnnouncementByIdResponse.prototype['cease_at'] = undefined; - -/** - * @member {String} resume_at - */ -ViewAnnouncementByIdResponse.prototype['resume_at'] = undefined; - -/** - * @member {Number} completed_at - */ -ViewAnnouncementByIdResponse.prototype['completed_at'] = undefined; - -/** - * @member {Number} sent_user_count - */ -ViewAnnouncementByIdResponse.prototype['sent_user_count'] = undefined; - -/** - * @member {Number} open_count - */ -ViewAnnouncementByIdResponse.prototype['open_count'] = undefined; - -/** - * @member {Number} open_rate - */ -ViewAnnouncementByIdResponse.prototype['open_rate'] = undefined; - -/** - * @member {Boolean} create_channel - */ -ViewAnnouncementByIdResponse.prototype['create_channel'] = undefined; - -/** - * @member {module:model/ScheduleAnnouncementResponseCreateChannelOptions} create_channel_options - */ -ViewAnnouncementByIdResponse.prototype['create_channel_options'] = undefined; - -/** - * @member {Number} end_at - */ -ViewAnnouncementByIdResponse.prototype['end_at'] = undefined; - -/** - * @member {Boolean} mark_as_read - */ -ViewAnnouncementByIdResponse.prototype['mark_as_read'] = undefined; - -/** - * @member {Number} sent_channel_count - */ -ViewAnnouncementByIdResponse.prototype['sent_channel_count'] = undefined; - -/** - * @member {String} target_channel_type - */ -ViewAnnouncementByIdResponse.prototype['target_channel_type'] = undefined; - -/** - * @member {String} target_custom_type - */ -ViewAnnouncementByIdResponse.prototype['target_custom_type'] = undefined; - - - - - - -export default ViewAnnouncementByIdResponse; - diff --git a/src/model/ViewBotByIdResponse.js b/src/model/ViewBotByIdResponse.js deleted file mode 100644 index a2ac575..0000000 --- a/src/model/ViewBotByIdResponse.js +++ /dev/null @@ -1,112 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import CreateBotResponseBot from './CreateBotResponseBot'; - -/** - * The ViewBotByIdResponse model module. - * @module model/ViewBotByIdResponse - * @version 0.0.16 - */ -class ViewBotByIdResponse { - /** - * Constructs a new ViewBotByIdResponse. - * @alias module:model/ViewBotByIdResponse - */ - constructor() { - - ViewBotByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewBotByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewBotByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewBotByIdResponse} The populated ViewBotByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewBotByIdResponse(); - - if (data.hasOwnProperty('bot')) { - obj['bot'] = CreateBotResponseBot.constructFromObject(data['bot']); - } - if (data.hasOwnProperty('bot_callback_url')) { - obj['bot_callback_url'] = ApiClient.convertToType(data['bot_callback_url'], 'String'); - } - if (data.hasOwnProperty('enable_mark_as_read')) { - obj['enable_mark_as_read'] = ApiClient.convertToType(data['enable_mark_as_read'], 'Boolean'); - } - if (data.hasOwnProperty('is_privacy_mode')) { - obj['is_privacy_mode'] = ApiClient.convertToType(data['is_privacy_mode'], 'Boolean'); - } - if (data.hasOwnProperty('show_member')) { - obj['show_member'] = ApiClient.convertToType(data['show_member'], 'Boolean'); - } - if (data.hasOwnProperty('channel_invitation_preference')) { - obj['channel_invitation_preference'] = ApiClient.convertToType(data['channel_invitation_preference'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {module:model/CreateBotResponseBot} bot - */ -ViewBotByIdResponse.prototype['bot'] = undefined; - -/** - * @member {String} bot_callback_url - */ -ViewBotByIdResponse.prototype['bot_callback_url'] = undefined; - -/** - * @member {Boolean} enable_mark_as_read - */ -ViewBotByIdResponse.prototype['enable_mark_as_read'] = undefined; - -/** - * @member {Boolean} is_privacy_mode - */ -ViewBotByIdResponse.prototype['is_privacy_mode'] = undefined; - -/** - * @member {Boolean} show_member - */ -ViewBotByIdResponse.prototype['show_member'] = undefined; - -/** - * @member {Number} channel_invitation_preference - */ -ViewBotByIdResponse.prototype['channel_invitation_preference'] = undefined; - - - - - - -export default ViewBotByIdResponse; - diff --git a/src/model/ViewChannelInvitationPreferenceResponse.js b/src/model/ViewChannelInvitationPreferenceResponse.js deleted file mode 100644 index b3c8d89..0000000 --- a/src/model/ViewChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewChannelInvitationPreferenceResponse model module. - * @module model/ViewChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -class ViewChannelInvitationPreferenceResponse { - /** - * Constructs a new ViewChannelInvitationPreferenceResponse. - * @alias module:model/ViewChannelInvitationPreferenceResponse - */ - constructor() { - - ViewChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/ViewChannelInvitationPreferenceResponse} The populated ViewChannelInvitationPreferenceResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewChannelInvitationPreferenceResponse(); - - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} auto_accept - */ -ViewChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; - - - - - - -export default ViewChannelInvitationPreferenceResponse; - diff --git a/src/model/ViewCountPreferenceOfAChannelResponse.js b/src/model/ViewCountPreferenceOfAChannelResponse.js new file mode 100644 index 0000000..e066a11 --- /dev/null +++ b/src/model/ViewCountPreferenceOfAChannelResponse.js @@ -0,0 +1,104 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ViewCountPreferenceOfAChannelResponse model module. + * @module model/ViewCountPreferenceOfAChannelResponse + * @version 2.0.0 + */ +class ViewCountPreferenceOfAChannelResponse { + /** + * Constructs a new ViewCountPreferenceOfAChannelResponse. + * @alias module:model/ViewCountPreferenceOfAChannelResponse + */ + constructor() { + + ViewCountPreferenceOfAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ViewCountPreferenceOfAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ViewCountPreferenceOfAChannelResponse} obj Optional instance to populate. + * @return {module:model/ViewCountPreferenceOfAChannelResponse} The populated ViewCountPreferenceOfAChannelResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ViewCountPreferenceOfAChannelResponse(); + + if (data.hasOwnProperty('count_preference')) { + obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {module:model/ViewCountPreferenceOfAChannelResponse.CountPreferenceEnum} count_preference + */ +ViewCountPreferenceOfAChannelResponse.prototype['count_preference'] = undefined; + + + + + +/** + * Allowed values for the count_preference property. + * @enum {String} + * @readonly + */ +ViewCountPreferenceOfAChannelResponse['CountPreferenceEnum'] = { + + /** + * value: "false" + * @const + */ + "false": "false", + + /** + * value: "all" + * @const + */ + "all": "all", + + /** + * value: "unread_message_count_only" + * @const + */ + "unread_message_count_only": "unread_message_count_only", + + /** + * value: "unread_mentioned_count_only" + * @const + */ + "unread_mentioned_count_only": "unread_mentioned_count_only" +}; + + + +export default ViewCountPreferenceOfAChannelResponse; + diff --git a/src/model/ViewCountPreferenceOfChannelByUrlResponse.js b/src/model/ViewCountPreferenceOfChannelByUrlResponse.js deleted file mode 100644 index c0394ac..0000000 --- a/src/model/ViewCountPreferenceOfChannelByUrlResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewCountPreferenceOfChannelByUrlResponse model module. - * @module model/ViewCountPreferenceOfChannelByUrlResponse - * @version 0.0.16 - */ -class ViewCountPreferenceOfChannelByUrlResponse { - /** - * Constructs a new ViewCountPreferenceOfChannelByUrlResponse. - * @alias module:model/ViewCountPreferenceOfChannelByUrlResponse - */ - constructor() { - - ViewCountPreferenceOfChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewCountPreferenceOfChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewCountPreferenceOfChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ViewCountPreferenceOfChannelByUrlResponse} The populated ViewCountPreferenceOfChannelByUrlResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewCountPreferenceOfChannelByUrlResponse(); - - if (data.hasOwnProperty('count_preference')) { - obj['count_preference'] = ApiClient.convertToType(data['count_preference'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} count_preference - */ -ViewCountPreferenceOfChannelByUrlResponse.prototype['count_preference'] = undefined; - - - - - - -export default ViewCountPreferenceOfChannelByUrlResponse; - diff --git a/src/model/ViewDataExportByIdResponse.js b/src/model/ViewDataExportByIdResponse.js deleted file mode 100644 index 25549ae..0000000 --- a/src/model/ViewDataExportByIdResponse.js +++ /dev/null @@ -1,176 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; - -/** - * The ViewDataExportByIdResponse model module. - * @module model/ViewDataExportByIdResponse - * @version 0.0.16 - */ -class ViewDataExportByIdResponse { - /** - * Constructs a new ViewDataExportByIdResponse. - * @alias module:model/ViewDataExportByIdResponse - */ - constructor() { - - ViewDataExportByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewDataExportByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewDataExportByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewDataExportByIdResponse} The populated ViewDataExportByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewDataExportByIdResponse(); - - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('data_type')) { - obj['data_type'] = ApiClient.convertToType(data['data_type'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('format')) { - obj['format'] = ApiClient.convertToType(data['format'], 'String'); - } - if (data.hasOwnProperty('csv_delimiter')) { - obj['csv_delimiter'] = ApiClient.convertToType(data['csv_delimiter'], 'String'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - if (data.hasOwnProperty('start_ts')) { - obj['start_ts'] = ApiClient.convertToType(data['start_ts'], 'Number'); - } - if (data.hasOwnProperty('end_ts')) { - obj['end_ts'] = ApiClient.convertToType(data['end_ts'], 'Number'); - } - if (data.hasOwnProperty('channel_urls')) { - obj['channel_urls'] = ApiClient.convertToType(data['channel_urls'], ['String']); - } - if (data.hasOwnProperty('channel_custom_types')) { - obj['channel_custom_types'] = ApiClient.convertToType(data['channel_custom_types'], ['String']); - } - if (data.hasOwnProperty('sender_ids')) { - obj['sender_ids'] = ApiClient.convertToType(data['sender_ids'], ['String']); - } - if (data.hasOwnProperty('file')) { - obj['file'] = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.constructFromObject(data['file']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - } - return obj; - } - - -} - -/** - * @member {String} request_id - */ -ViewDataExportByIdResponse.prototype['request_id'] = undefined; - -/** - * @member {String} data_type - */ -ViewDataExportByIdResponse.prototype['data_type'] = undefined; - -/** - * @member {String} status - */ -ViewDataExportByIdResponse.prototype['status'] = undefined; - -/** - * @member {String} format - */ -ViewDataExportByIdResponse.prototype['format'] = undefined; - -/** - * @member {String} csv_delimiter - */ -ViewDataExportByIdResponse.prototype['csv_delimiter'] = undefined; - -/** - * @member {String} timezone - */ -ViewDataExportByIdResponse.prototype['timezone'] = undefined; - -/** - * @member {Number} created_at - */ -ViewDataExportByIdResponse.prototype['created_at'] = undefined; - -/** - * @member {Number} start_ts - */ -ViewDataExportByIdResponse.prototype['start_ts'] = undefined; - -/** - * @member {Number} end_ts - */ -ViewDataExportByIdResponse.prototype['end_ts'] = undefined; - -/** - * @member {Array.} channel_urls - */ -ViewDataExportByIdResponse.prototype['channel_urls'] = undefined; - -/** - * @member {Array.} channel_custom_types - */ -ViewDataExportByIdResponse.prototype['channel_custom_types'] = undefined; - -/** - * @member {Array.} sender_ids - */ -ViewDataExportByIdResponse.prototype['sender_ids'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} file - */ -ViewDataExportByIdResponse.prototype['file'] = undefined; - -/** - * @member {Array.} user_ids - */ -ViewDataExportByIdResponse.prototype['user_ids'] = undefined; - - - - - - -export default ViewDataExportByIdResponse; - diff --git a/src/model/ViewDefaultChannelInvitationPreferenceResponse.js b/src/model/ViewDefaultChannelInvitationPreferenceResponse.js deleted file mode 100644 index 59f62f4..0000000 --- a/src/model/ViewDefaultChannelInvitationPreferenceResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewDefaultChannelInvitationPreferenceResponse model module. - * @module model/ViewDefaultChannelInvitationPreferenceResponse - * @version 0.0.16 - */ -class ViewDefaultChannelInvitationPreferenceResponse { - /** - * Constructs a new ViewDefaultChannelInvitationPreferenceResponse. - * @alias module:model/ViewDefaultChannelInvitationPreferenceResponse - */ - constructor() { - - ViewDefaultChannelInvitationPreferenceResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewDefaultChannelInvitationPreferenceResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewDefaultChannelInvitationPreferenceResponse} obj Optional instance to populate. - * @return {module:model/ViewDefaultChannelInvitationPreferenceResponse} The populated ViewDefaultChannelInvitationPreferenceResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewDefaultChannelInvitationPreferenceResponse(); - - if (data.hasOwnProperty('auto_accept')) { - obj['auto_accept'] = ApiClient.convertToType(data['auto_accept'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {Boolean} auto_accept - */ -ViewDefaultChannelInvitationPreferenceResponse.prototype['auto_accept'] = undefined; - - - - - - -export default ViewDefaultChannelInvitationPreferenceResponse; - diff --git a/src/model/ViewGdprRequestByIdResponse.js b/src/model/ViewGdprRequestByIdResponse.js deleted file mode 100644 index 8ffb3af..0000000 --- a/src/model/ViewGdprRequestByIdResponse.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile from './ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile'; - -/** - * The ViewGdprRequestByIdResponse model module. - * @module model/ViewGdprRequestByIdResponse - * @version 0.0.16 - */ -class ViewGdprRequestByIdResponse { - /** - * Constructs a new ViewGdprRequestByIdResponse. - * @alias module:model/ViewGdprRequestByIdResponse - */ - constructor() { - - ViewGdprRequestByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewGdprRequestByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewGdprRequestByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewGdprRequestByIdResponse} The populated ViewGdprRequestByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewGdprRequestByIdResponse(); - - if (data.hasOwnProperty('request_id')) { - obj['request_id'] = ApiClient.convertToType(data['request_id'], 'String'); - } - if (data.hasOwnProperty('action')) { - obj['action'] = ApiClient.convertToType(data['action'], 'String'); - } - if (data.hasOwnProperty('status')) { - obj['status'] = ApiClient.convertToType(data['status'], 'String'); - } - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - if (data.hasOwnProperty('files')) { - obj['files'] = ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.constructFromObject(data['files']); - } - if (data.hasOwnProperty('user_ids')) { - obj['user_ids'] = ApiClient.convertToType(data['user_ids'], ['String']); - } - if (data.hasOwnProperty('channel_delete_option')) { - obj['channel_delete_option'] = ApiClient.convertToType(data['channel_delete_option'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} request_id - */ -ViewGdprRequestByIdResponse.prototype['request_id'] = undefined; - -/** - * @member {String} action - */ -ViewGdprRequestByIdResponse.prototype['action'] = undefined; - -/** - * @member {String} status - */ -ViewGdprRequestByIdResponse.prototype['status'] = undefined; - -/** - * @member {String} user_id - */ -ViewGdprRequestByIdResponse.prototype['user_id'] = undefined; - -/** - * @member {module:model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile} files - */ -ViewGdprRequestByIdResponse.prototype['files'] = undefined; - -/** - * @member {Array.} user_ids - */ -ViewGdprRequestByIdResponse.prototype['user_ids'] = undefined; - -/** - * @member {String} channel_delete_option - */ -ViewGdprRequestByIdResponse.prototype['channel_delete_option'] = undefined; - -/** - * @member {Number} created_at - */ -ViewGdprRequestByIdResponse.prototype['created_at'] = undefined; - - - - - - -export default ViewGdprRequestByIdResponse; - diff --git a/src/model/ViewNumberOfChannelsByJoinStatusResponse.js b/src/model/ViewNumberOfChannelsByJoinStatusResponse.js deleted file mode 100644 index 4b71e27..0000000 --- a/src/model/ViewNumberOfChannelsByJoinStatusResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewNumberOfChannelsByJoinStatusResponse model module. - * @module model/ViewNumberOfChannelsByJoinStatusResponse - * @version 0.0.16 - */ -class ViewNumberOfChannelsByJoinStatusResponse { - /** - * Constructs a new ViewNumberOfChannelsByJoinStatusResponse. - * @alias module:model/ViewNumberOfChannelsByJoinStatusResponse - */ - constructor() { - - ViewNumberOfChannelsByJoinStatusResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewNumberOfChannelsByJoinStatusResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfChannelsByJoinStatusResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfChannelsByJoinStatusResponse} The populated ViewNumberOfChannelsByJoinStatusResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfChannelsByJoinStatusResponse(); - - if (data.hasOwnProperty('group_channel_count')) { - obj['group_channel_count'] = ApiClient.convertToType(data['group_channel_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} group_channel_count - */ -ViewNumberOfChannelsByJoinStatusResponse.prototype['group_channel_count'] = undefined; - - - - - - -export default ViewNumberOfChannelsByJoinStatusResponse; - diff --git a/src/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js b/src/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js index 4cdfaee..b6a94e7 100644 --- a/src/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js +++ b/src/model/ViewNumberOfChannelsWithUnreadMessagesResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ViewNumberOfChannelsWithUnreadMessagesResponse model module. * @module model/ViewNumberOfChannelsWithUnreadMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ class ViewNumberOfChannelsWithUnreadMessagesResponse { /** diff --git a/src/model/ViewNumberOfConcurrentConnectionsResponse.js b/src/model/ViewNumberOfConcurrentConnectionsResponse.js deleted file mode 100644 index 8bb1b66..0000000 --- a/src/model/ViewNumberOfConcurrentConnectionsResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewNumberOfConcurrentConnectionsResponse model module. - * @module model/ViewNumberOfConcurrentConnectionsResponse - * @version 0.0.16 - */ -class ViewNumberOfConcurrentConnectionsResponse { - /** - * Constructs a new ViewNumberOfConcurrentConnectionsResponse. - * @alias module:model/ViewNumberOfConcurrentConnectionsResponse - */ - constructor() { - - ViewNumberOfConcurrentConnectionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewNumberOfConcurrentConnectionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfConcurrentConnectionsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfConcurrentConnectionsResponse} The populated ViewNumberOfConcurrentConnectionsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfConcurrentConnectionsResponse(); - - if (data.hasOwnProperty('ccu')) { - obj['ccu'] = ApiClient.convertToType(data['ccu'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} ccu - */ -ViewNumberOfConcurrentConnectionsResponse.prototype['ccu'] = undefined; - - - - - - -export default ViewNumberOfConcurrentConnectionsResponse; - diff --git a/src/model/ViewNumberOfDailyActiveUsersResponse.js b/src/model/ViewNumberOfDailyActiveUsersResponse.js index 1651519..68ddf41 100644 --- a/src/model/ViewNumberOfDailyActiveUsersResponse.js +++ b/src/model/ViewNumberOfDailyActiveUsersResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ViewNumberOfDailyActiveUsersResponse model module. * @module model/ViewNumberOfDailyActiveUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ class ViewNumberOfDailyActiveUsersResponse { /** diff --git a/src/model/ViewNumberOfMonthlyActiveUsersResponse.js b/src/model/ViewNumberOfMonthlyActiveUsersResponse.js index 7f0e5ab..72df24b 100644 --- a/src/model/ViewNumberOfMonthlyActiveUsersResponse.js +++ b/src/model/ViewNumberOfMonthlyActiveUsersResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ViewNumberOfMonthlyActiveUsersResponse model module. * @module model/ViewNumberOfMonthlyActiveUsersResponse - * @version 0.0.16 + * @version 2.0.0 */ class ViewNumberOfMonthlyActiveUsersResponse { /** diff --git a/src/model/ViewNumberOfPeakConnectionsResponse.js b/src/model/ViewNumberOfPeakConnectionsResponse.js deleted file mode 100644 index 1cf5339..0000000 --- a/src/model/ViewNumberOfPeakConnectionsResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ViewNumberOfPeakConnectionsResponsePeakConnectionsInner from './ViewNumberOfPeakConnectionsResponsePeakConnectionsInner'; - -/** - * The ViewNumberOfPeakConnectionsResponse model module. - * @module model/ViewNumberOfPeakConnectionsResponse - * @version 0.0.16 - */ -class ViewNumberOfPeakConnectionsResponse { - /** - * Constructs a new ViewNumberOfPeakConnectionsResponse. - * @alias module:model/ViewNumberOfPeakConnectionsResponse - */ - constructor() { - - ViewNumberOfPeakConnectionsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewNumberOfPeakConnectionsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfPeakConnectionsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfPeakConnectionsResponse} The populated ViewNumberOfPeakConnectionsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfPeakConnectionsResponse(); - - if (data.hasOwnProperty('peak_connections')) { - obj['peak_connections'] = ApiClient.convertToType(data['peak_connections'], [ViewNumberOfPeakConnectionsResponsePeakConnectionsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} peak_connections - */ -ViewNumberOfPeakConnectionsResponse.prototype['peak_connections'] = undefined; - - - - - - -export default ViewNumberOfPeakConnectionsResponse; - diff --git a/src/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js b/src/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js deleted file mode 100644 index 072c9a9..0000000 --- a/src/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewNumberOfPeakConnectionsResponsePeakConnectionsInner model module. - * @module model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - * @version 0.0.16 - */ -class ViewNumberOfPeakConnectionsResponsePeakConnectionsInner { - /** - * Constructs a new ViewNumberOfPeakConnectionsResponsePeakConnectionsInner. - * @alias module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - */ - constructor() { - - ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewNumberOfPeakConnectionsResponsePeakConnectionsInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner} obj Optional instance to populate. - * @return {module:model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner} The populated ViewNumberOfPeakConnectionsResponsePeakConnectionsInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - - if (data.hasOwnProperty('date')) { - obj['date'] = ApiClient.convertToType(data['date'], 'String'); - } - if (data.hasOwnProperty('peak_connections')) { - obj['peak_connections'] = ApiClient.convertToType(data['peak_connections'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} date - */ -ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.prototype['date'] = undefined; - -/** - * @member {Number} peak_connections - */ -ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.prototype['peak_connections'] = undefined; - - - - - - -export default ViewNumberOfPeakConnectionsResponsePeakConnectionsInner; - diff --git a/src/model/ViewNumberOfUnreadItemsResponse.js b/src/model/ViewNumberOfUnreadItemsResponse.js deleted file mode 100644 index 68eec97..0000000 --- a/src/model/ViewNumberOfUnreadItemsResponse.js +++ /dev/null @@ -1,135 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewNumberOfUnreadItemsResponse model module. - * @module model/ViewNumberOfUnreadItemsResponse - * @version 0.0.16 - */ -class ViewNumberOfUnreadItemsResponse { - /** - * Constructs a new ViewNumberOfUnreadItemsResponse. - * @alias module:model/ViewNumberOfUnreadItemsResponse - */ - constructor() { - - ViewNumberOfUnreadItemsResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewNumberOfUnreadItemsResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewNumberOfUnreadItemsResponse} obj Optional instance to populate. - * @return {module:model/ViewNumberOfUnreadItemsResponse} The populated ViewNumberOfUnreadItemsResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewNumberOfUnreadItemsResponse(); - - if (data.hasOwnProperty('non_super_group_channel_unread_message_count')) { - obj['non_super_group_channel_unread_message_count'] = ApiClient.convertToType(data['non_super_group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_unread_message_count')) { - obj['super_group_channel_unread_message_count'] = ApiClient.convertToType(data['super_group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_unread_message_count')) { - obj['group_channel_unread_message_count'] = ApiClient.convertToType(data['group_channel_unread_message_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_invitation_count')) { - obj['super_group_channel_invitation_count'] = ApiClient.convertToType(data['super_group_channel_invitation_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_invitation_count')) { - obj['group_channel_invitation_count'] = ApiClient.convertToType(data['group_channel_invitation_count'], 'Number'); - } - if (data.hasOwnProperty('super_group_channel_unread_mention_count')) { - obj['super_group_channel_unread_mention_count'] = ApiClient.convertToType(data['super_group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('group_channel_unread_mention_count')) { - obj['group_channel_unread_mention_count'] = ApiClient.convertToType(data['group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('non_super_group_channel_unread_mention_count')) { - obj['non_super_group_channel_unread_mention_count'] = ApiClient.convertToType(data['non_super_group_channel_unread_mention_count'], 'Number'); - } - if (data.hasOwnProperty('non_super_group_channel_invitation_count')) { - obj['non_super_group_channel_invitation_count'] = ApiClient.convertToType(data['non_super_group_channel_invitation_count'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} non_super_group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} super_group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} group_channel_unread_message_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_unread_message_count'] = undefined; - -/** - * @member {Number} super_group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_invitation_count'] = undefined; - -/** - * @member {Number} group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_invitation_count'] = undefined; - -/** - * @member {Number} super_group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['super_group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} non_super_group_channel_unread_mention_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_unread_mention_count'] = undefined; - -/** - * @member {Number} non_super_group_channel_invitation_count - */ -ViewNumberOfUnreadItemsResponse.prototype['non_super_group_channel_invitation_count'] = undefined; - - - - - - -export default ViewNumberOfUnreadItemsResponse; - diff --git a/src/model/ViewNumberOfUnreadMessagesResponse.js b/src/model/ViewNumberOfUnreadMessagesResponse.js index fa301f5..43664ef 100644 --- a/src/model/ViewNumberOfUnreadMessagesResponse.js +++ b/src/model/ViewNumberOfUnreadMessagesResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ViewNumberOfUnreadMessagesResponse model module. * @module model/ViewNumberOfUnreadMessagesResponse - * @version 0.0.16 + * @version 2.0.0 */ class ViewNumberOfUnreadMessagesResponse { /** diff --git a/src/model/ViewPushConfigurationByIdResponse.js b/src/model/ViewPushConfigurationByIdResponse.js deleted file mode 100644 index 0812819..0000000 --- a/src/model/ViewPushConfigurationByIdResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPushConfigurationsResponsePushConfigurationsInner from './ListPushConfigurationsResponsePushConfigurationsInner'; - -/** - * The ViewPushConfigurationByIdResponse model module. - * @module model/ViewPushConfigurationByIdResponse - * @version 0.0.16 - */ -class ViewPushConfigurationByIdResponse { - /** - * Constructs a new ViewPushConfigurationByIdResponse. - * @alias module:model/ViewPushConfigurationByIdResponse - */ - constructor() { - - ViewPushConfigurationByIdResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewPushConfigurationByIdResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushConfigurationByIdResponse} obj Optional instance to populate. - * @return {module:model/ViewPushConfigurationByIdResponse} The populated ViewPushConfigurationByIdResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushConfigurationByIdResponse(); - - if (data.hasOwnProperty('push_configurations')) { - obj['push_configurations'] = ApiClient.convertToType(data['push_configurations'], [ListPushConfigurationsResponsePushConfigurationsInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_configurations - */ -ViewPushConfigurationByIdResponse.prototype['push_configurations'] = undefined; - - - - - - -export default ViewPushConfigurationByIdResponse; - diff --git a/src/model/ViewPushNotificationContentTemplateResponse.js b/src/model/ViewPushNotificationContentTemplateResponse.js deleted file mode 100644 index 3c6af19..0000000 --- a/src/model/ViewPushNotificationContentTemplateResponse.js +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner from './ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner'; - -/** - * The ViewPushNotificationContentTemplateResponse model module. - * @module model/ViewPushNotificationContentTemplateResponse - * @version 0.0.16 - */ -class ViewPushNotificationContentTemplateResponse { - /** - * Constructs a new ViewPushNotificationContentTemplateResponse. - * @alias module:model/ViewPushNotificationContentTemplateResponse - */ - constructor() { - - ViewPushNotificationContentTemplateResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewPushNotificationContentTemplateResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushNotificationContentTemplateResponse} obj Optional instance to populate. - * @return {module:model/ViewPushNotificationContentTemplateResponse} The populated ViewPushNotificationContentTemplateResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushNotificationContentTemplateResponse(); - - if (data.hasOwnProperty('push_message_templates')) { - obj['push_message_templates'] = ApiClient.convertToType(data['push_message_templates'], [ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner]); - } - } - return obj; - } - - -} - -/** - * @member {Array.} push_message_templates - */ -ViewPushNotificationContentTemplateResponse.prototype['push_message_templates'] = undefined; - - - - - - -export default ViewPushNotificationContentTemplateResponse; - diff --git a/src/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js b/src/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js deleted file mode 100644 index fb28820..0000000 --- a/src/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.js +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; -import ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate from './ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate'; - -/** - * The ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner model module. - * @module model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - * @version 0.0.16 - */ -class ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner { - /** - * Constructs a new ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner. - * @alias module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - */ - constructor() { - - ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner} obj Optional instance to populate. - * @return {module:model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner} The populated ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - - if (data.hasOwnProperty('template_name')) { - obj['template_name'] = ApiClient.convertToType(data['template_name'], 'String'); - } - if (data.hasOwnProperty('template')) { - obj['template'] = ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.constructFromObject(data['template']); - } - if (data.hasOwnProperty('push_message_preview')) { - obj['push_message_preview'] = ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.constructFromObject(data['push_message_preview']); - } - } - return obj; - } - - -} - -/** - * @member {String} template_name - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['template_name'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} template - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['template'] = undefined; - -/** - * @member {module:model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate} push_message_preview - */ -ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.prototype['push_message_preview'] = undefined; - - - - - - -export default ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner; - diff --git a/src/model/ViewPushPreferencesForAChannelResponse.js b/src/model/ViewPushPreferencesForAChannelResponse.js new file mode 100644 index 0000000..2a8a718 --- /dev/null +++ b/src/model/ViewPushPreferencesForAChannelResponse.js @@ -0,0 +1,88 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; + +/** + * The ViewPushPreferencesForAChannelResponse model module. + * @module model/ViewPushPreferencesForAChannelResponse + * @version 2.0.0 + */ +class ViewPushPreferencesForAChannelResponse { + /** + * Constructs a new ViewPushPreferencesForAChannelResponse. + * @alias module:model/ViewPushPreferencesForAChannelResponse + */ + constructor() { + + ViewPushPreferencesForAChannelResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ViewPushPreferencesForAChannelResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ViewPushPreferencesForAChannelResponse} obj Optional instance to populate. + * @return {module:model/ViewPushPreferencesForAChannelResponse} The populated ViewPushPreferencesForAChannelResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ViewPushPreferencesForAChannelResponse(); + + if (data.hasOwnProperty('enable')) { + obj['enable'] = ApiClient.convertToType(data['enable'], 'Boolean'); + } + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + } + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); + } + } + return obj; + } + + +} + +/** + * @member {Boolean} enable + */ +ViewPushPreferencesForAChannelResponse.prototype['enable'] = undefined; + +/** + * @member {String} push_sound + */ +ViewPushPreferencesForAChannelResponse.prototype['push_sound'] = undefined; + +/** + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option + */ +ViewPushPreferencesForAChannelResponse.prototype['push_trigger_option'] = undefined; + + + + + + +export default ViewPushPreferencesForAChannelResponse; + diff --git a/src/model/ViewPushPreferencesForChannelByUrlResponse.js b/src/model/ViewPushPreferencesForChannelByUrlResponse.js deleted file mode 100644 index ed58ab1..0000000 --- a/src/model/ViewPushPreferencesForChannelByUrlResponse.js +++ /dev/null @@ -1,159 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewPushPreferencesForChannelByUrlResponse model module. - * @module model/ViewPushPreferencesForChannelByUrlResponse - * @version 0.0.16 - */ -class ViewPushPreferencesForChannelByUrlResponse { - /** - * Constructs a new ViewPushPreferencesForChannelByUrlResponse. - * @alias module:model/ViewPushPreferencesForChannelByUrlResponse - */ - constructor() { - - ViewPushPreferencesForChannelByUrlResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewPushPreferencesForChannelByUrlResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewPushPreferencesForChannelByUrlResponse} obj Optional instance to populate. - * @return {module:model/ViewPushPreferencesForChannelByUrlResponse} The populated ViewPushPreferencesForChannelByUrlResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewPushPreferencesForChannelByUrlResponse(); - - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); - } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); - } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); - } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); - } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); - } - if (data.hasOwnProperty('end_min')) { - obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); - } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); - } - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); - } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); - } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); - } - if (data.hasOwnProperty('enable')) { - obj['enable'] = ApiClient.convertToType(data['enable'], 'Boolean'); - } - } - return obj; - } - - -} - -/** - * @member {String} push_trigger_option - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['push_trigger_option'] = undefined; - -/** - * @member {Boolean} do_not_disturb - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['do_not_disturb'] = undefined; - -/** - * @member {Number} start_hour - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['start_hour'] = undefined; - -/** - * @member {Number} start_min - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['start_min'] = undefined; - -/** - * @member {Number} end_hour - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['end_hour'] = undefined; - -/** - * @member {Number} end_min - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['end_min'] = undefined; - -/** - * @member {Boolean} snooze_enabled - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_enabled'] = undefined; - -/** - * @member {Number} snooze_start_ts - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_start_ts'] = undefined; - -/** - * @member {Number} snooze_end_ts - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['snooze_end_ts'] = undefined; - -/** - * @member {String} timezone - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['timezone'] = undefined; - -/** - * @member {String} push_sound - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['push_sound'] = undefined; - -/** - * @member {Boolean} enable - */ -ViewPushPreferencesForChannelByUrlResponse.prototype['enable'] = undefined; - - - - - - -export default ViewPushPreferencesForChannelByUrlResponse; - diff --git a/src/model/ViewPushPreferencesResponse.js b/src/model/ViewPushPreferencesResponse.js index 8a8bbcc..a9eca5d 100644 --- a/src/model/ViewPushPreferencesResponse.js +++ b/src/model/ViewPushPreferencesResponse.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -12,11 +12,12 @@ */ import ApiClient from '../ApiClient'; +import SendbirdPushTriggerOption from './SendbirdPushTriggerOption'; /** * The ViewPushPreferencesResponse model module. * @module model/ViewPushPreferencesResponse - * @version 0.0.16 + * @version 2.0.0 */ class ViewPushPreferencesResponse { /** @@ -47,47 +48,47 @@ class ViewPushPreferencesResponse { if (data) { obj = obj || new ViewPushPreferencesResponse(); - if (data.hasOwnProperty('snooze_start_ts')) { - obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'String'); + if (data.hasOwnProperty('block_push_from_bots')) { + obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); } - if (data.hasOwnProperty('start_hour')) { - obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); + if (data.hasOwnProperty('do_not_disturb')) { + obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); } - if (data.hasOwnProperty('snooze_enabled')) { - obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); + if (data.hasOwnProperty('enable_push_for_replies')) { + obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); + } + if (data.hasOwnProperty('end_hour')) { + obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); } if (data.hasOwnProperty('end_min')) { obj['end_min'] = ApiClient.convertToType(data['end_min'], 'Number'); } - if (data.hasOwnProperty('timezone')) { - obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); - } - if (data.hasOwnProperty('block_push_from_bots')) { - obj['block_push_from_bots'] = ApiClient.convertToType(data['block_push_from_bots'], 'Boolean'); - } if (data.hasOwnProperty('push_blocked_bot_ids')) { obj['push_blocked_bot_ids'] = ApiClient.convertToType(data['push_blocked_bot_ids'], ['String']); } - if (data.hasOwnProperty('start_min')) { - obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); + if (data.hasOwnProperty('push_sound')) { + obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); } - if (data.hasOwnProperty('snooze_end_ts')) { - obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'String'); + if (data.hasOwnProperty('push_trigger_option')) { + obj['push_trigger_option'] = SendbirdPushTriggerOption.constructFromObject(data['push_trigger_option']); } - if (data.hasOwnProperty('do_not_disturb')) { - obj['do_not_disturb'] = ApiClient.convertToType(data['do_not_disturb'], 'Boolean'); + if (data.hasOwnProperty('snooze_enabled')) { + obj['snooze_enabled'] = ApiClient.convertToType(data['snooze_enabled'], 'Boolean'); } - if (data.hasOwnProperty('end_hour')) { - obj['end_hour'] = ApiClient.convertToType(data['end_hour'], 'Number'); + if (data.hasOwnProperty('snooze_end_ts')) { + obj['snooze_end_ts'] = ApiClient.convertToType(data['snooze_end_ts'], 'Number'); } - if (data.hasOwnProperty('enable_push_for_replies')) { - obj['enable_push_for_replies'] = ApiClient.convertToType(data['enable_push_for_replies'], 'Boolean'); + if (data.hasOwnProperty('snooze_start_ts')) { + obj['snooze_start_ts'] = ApiClient.convertToType(data['snooze_start_ts'], 'Number'); } - if (data.hasOwnProperty('push_sound')) { - obj['push_sound'] = ApiClient.convertToType(data['push_sound'], 'String'); + if (data.hasOwnProperty('start_hour')) { + obj['start_hour'] = ApiClient.convertToType(data['start_hour'], 'Number'); } - if (data.hasOwnProperty('push_trigger_option')) { - obj['push_trigger_option'] = ApiClient.convertToType(data['push_trigger_option'], 'String'); + if (data.hasOwnProperty('start_min')) { + obj['start_min'] = ApiClient.convertToType(data['start_min'], 'Number'); + } + if (data.hasOwnProperty('timezone')) { + obj['timezone'] = ApiClient.convertToType(data['timezone'], 'String'); } } return obj; @@ -97,74 +98,74 @@ class ViewPushPreferencesResponse { } /** - * @member {String} snooze_start_ts + * @member {Boolean} block_push_from_bots */ -ViewPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; +ViewPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; /** - * @member {Number} start_hour + * @member {Boolean} do_not_disturb */ -ViewPushPreferencesResponse.prototype['start_hour'] = undefined; +ViewPushPreferencesResponse.prototype['do_not_disturb'] = undefined; /** - * @member {Boolean} snooze_enabled + * @member {Boolean} enable_push_for_replies */ -ViewPushPreferencesResponse.prototype['snooze_enabled'] = undefined; +ViewPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; /** - * @member {Number} end_min + * @member {Number} end_hour */ -ViewPushPreferencesResponse.prototype['end_min'] = undefined; +ViewPushPreferencesResponse.prototype['end_hour'] = undefined; /** - * @member {String} timezone + * @member {Number} end_min */ -ViewPushPreferencesResponse.prototype['timezone'] = undefined; +ViewPushPreferencesResponse.prototype['end_min'] = undefined; /** - * @member {Boolean} block_push_from_bots + * @member {Array.} push_blocked_bot_ids */ -ViewPushPreferencesResponse.prototype['block_push_from_bots'] = undefined; +ViewPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; /** - * @member {Array.} push_blocked_bot_ids + * @member {String} push_sound */ -ViewPushPreferencesResponse.prototype['push_blocked_bot_ids'] = undefined; +ViewPushPreferencesResponse.prototype['push_sound'] = undefined; /** - * @member {Number} start_min + * @member {module:model/SendbirdPushTriggerOption} push_trigger_option */ -ViewPushPreferencesResponse.prototype['start_min'] = undefined; +ViewPushPreferencesResponse.prototype['push_trigger_option'] = undefined; /** - * @member {String} snooze_end_ts + * @member {Boolean} snooze_enabled */ -ViewPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_enabled'] = undefined; /** - * @member {Boolean} do_not_disturb + * @member {Number} snooze_end_ts */ -ViewPushPreferencesResponse.prototype['do_not_disturb'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_end_ts'] = undefined; /** - * @member {Number} end_hour + * @member {Number} snooze_start_ts */ -ViewPushPreferencesResponse.prototype['end_hour'] = undefined; +ViewPushPreferencesResponse.prototype['snooze_start_ts'] = undefined; /** - * @member {Boolean} enable_push_for_replies + * @member {Number} start_hour */ -ViewPushPreferencesResponse.prototype['enable_push_for_replies'] = undefined; +ViewPushPreferencesResponse.prototype['start_hour'] = undefined; /** - * @member {String} push_sound + * @member {Number} start_min */ -ViewPushPreferencesResponse.prototype['push_sound'] = undefined; +ViewPushPreferencesResponse.prototype['start_min'] = undefined; /** - * @member {String} push_trigger_option + * @member {String} timezone */ -ViewPushPreferencesResponse.prototype['push_trigger_option'] = undefined; +ViewPushPreferencesResponse.prototype['timezone'] = undefined; diff --git a/src/model/ViewSecondaryApiTokenByTokenResponse.js b/src/model/ViewSecondaryApiTokenByTokenResponse.js deleted file mode 100644 index cc433d1..0000000 --- a/src/model/ViewSecondaryApiTokenByTokenResponse.js +++ /dev/null @@ -1,79 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewSecondaryApiTokenByTokenResponse model module. - * @module model/ViewSecondaryApiTokenByTokenResponse - * @version 0.0.16 - */ -class ViewSecondaryApiTokenByTokenResponse { - /** - * Constructs a new ViewSecondaryApiTokenByTokenResponse. - * @alias module:model/ViewSecondaryApiTokenByTokenResponse - */ - constructor() { - - ViewSecondaryApiTokenByTokenResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewSecondaryApiTokenByTokenResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewSecondaryApiTokenByTokenResponse} obj Optional instance to populate. - * @return {module:model/ViewSecondaryApiTokenByTokenResponse} The populated ViewSecondaryApiTokenByTokenResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewSecondaryApiTokenByTokenResponse(); - - if (data.hasOwnProperty('token')) { - obj['token'] = ApiClient.convertToType(data['token'], 'String'); - } - if (data.hasOwnProperty('created_at')) { - obj['created_at'] = ApiClient.convertToType(data['created_at'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {String} token - */ -ViewSecondaryApiTokenByTokenResponse.prototype['token'] = undefined; - -/** - * @member {Number} created_at - */ -ViewSecondaryApiTokenByTokenResponse.prototype['created_at'] = undefined; - - - - - - -export default ViewSecondaryApiTokenByTokenResponse; - diff --git a/src/model/ViewTotalNumberOfMessagesInChannelResponse.js b/src/model/ViewTotalNumberOfMessagesInChannelResponse.js deleted file mode 100644 index 48eb18b..0000000 --- a/src/model/ViewTotalNumberOfMessagesInChannelResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewTotalNumberOfMessagesInChannelResponse model module. - * @module model/ViewTotalNumberOfMessagesInChannelResponse - * @version 0.0.16 - */ -class ViewTotalNumberOfMessagesInChannelResponse { - /** - * Constructs a new ViewTotalNumberOfMessagesInChannelResponse. - * @alias module:model/ViewTotalNumberOfMessagesInChannelResponse - */ - constructor() { - - ViewTotalNumberOfMessagesInChannelResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewTotalNumberOfMessagesInChannelResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewTotalNumberOfMessagesInChannelResponse} obj Optional instance to populate. - * @return {module:model/ViewTotalNumberOfMessagesInChannelResponse} The populated ViewTotalNumberOfMessagesInChannelResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewTotalNumberOfMessagesInChannelResponse(); - - if (data.hasOwnProperty('total')) { - obj['total'] = ApiClient.convertToType(data['total'], 'Number'); - } - } - return obj; - } - - -} - -/** - * @member {Number} total - */ -ViewTotalNumberOfMessagesInChannelResponse.prototype['total'] = undefined; - - - - - - -export default ViewTotalNumberOfMessagesInChannelResponse; - diff --git a/src/model/ViewUserMetadataResponse.js b/src/model/ViewUserMetadataResponse.js deleted file mode 100644 index 457babe..0000000 --- a/src/model/ViewUserMetadataResponse.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewUserMetadataResponse model module. - * @module model/ViewUserMetadataResponse - * @version 0.0.16 - */ -class ViewUserMetadataResponse { - /** - * Constructs a new ViewUserMetadataResponse. - * @alias module:model/ViewUserMetadataResponse - */ - constructor() { - - ViewUserMetadataResponse.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewUserMetadataResponse from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewUserMetadataResponse} obj Optional instance to populate. - * @return {module:model/ViewUserMetadataResponse} The populated ViewUserMetadataResponse instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewUserMetadataResponse(); - - if (data.hasOwnProperty('anyOf')) { - obj['anyOf'] = ApiClient.convertToType(data['anyOf'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} anyOf - */ -ViewUserMetadataResponse.prototype['anyOf'] = undefined; - - - - - - -export default ViewUserMetadataResponse; - diff --git a/src/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js b/src/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js deleted file mode 100644 index bb9cd05..0000000 --- a/src/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner model module. - * @module model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - * @version 0.0.16 - */ -class ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner { - /** - * Constructs a new ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner. - * @alias module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - */ - constructor() { - - ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.initialize(this); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj) { - } - - /** - * Constructs a ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner} obj Optional instance to populate. - * @return {module:model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner} The populated ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner(); - - if (data.hasOwnProperty('user_id')) { - obj['user_id'] = ApiClient.convertToType(data['user_id'], 'String'); - } - } - return obj; - } - - -} - -/** - * @member {String} user_id - */ -ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.prototype['user_id'] = undefined; - - - - - - -export default ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner; - diff --git a/test/api/AnnouncementApi.spec.js b/test/api/AnnouncementApi.spec.js index 4aa8a09..feb4015 100644 --- a/test/api/AnnouncementApi.spec.js +++ b/test/api/AnnouncementApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,80 +48,10 @@ } describe('AnnouncementApi', function() { - describe('getDetailedOpenRateOfAnnouncementGroup', function() { - it('should call getDetailedOpenRateOfAnnouncementGroup successfully', function(done) { - //uncomment below and update the code to test getDetailedOpenRateOfAnnouncementGroup - //instance.getDetailedOpenRateOfAnnouncementGroup(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getStatistics', function() { - it('should call getStatistics successfully', function(done) { - //uncomment below and update the code to test getStatistics - //instance.getStatistics(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getStatisticsDaily', function() { - it('should call getStatisticsDaily successfully', function(done) { - //uncomment below and update the code to test getStatisticsDaily - //instance.getStatisticsDaily(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getStatisticsMonthly', function() { - it('should call getStatisticsMonthly successfully', function(done) { - //uncomment below and update the code to test getStatisticsMonthly - //instance.getStatisticsMonthly(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listAnnouncementGroups', function() { - it('should call listAnnouncementGroups successfully', function(done) { - //uncomment below and update the code to test listAnnouncementGroups - //instance.listAnnouncementGroups(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('scheduleAnnouncement', function() { - it('should call scheduleAnnouncement successfully', function(done) { - //uncomment below and update the code to test scheduleAnnouncement - //instance.scheduleAnnouncement(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateAnnouncementById', function() { - it('should call updateAnnouncementById successfully', function(done) { - //uncomment below and update the code to test updateAnnouncementById - //instance.updateAnnouncementById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewAnnouncementById', function() { - it('should call viewAnnouncementById successfully', function(done) { - //uncomment below and update the code to test viewAnnouncementById - //instance.viewAnnouncementById(function(error) { + describe('scheduleAnAnnouncement', function() { + it('should call scheduleAnAnnouncement successfully', function(done) { + //uncomment below and update the code to test scheduleAnAnnouncement + //instance.scheduleAnAnnouncement(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/ApplicationApi.spec.js b/test/api/ApplicationApi.spec.js deleted file mode 100644 index 021b348..0000000 --- a/test/api/ApplicationApi.spec.js +++ /dev/null @@ -1,363 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ApplicationApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ApplicationApi', function() { - describe('addApnsPushConfiguration', function() { - it('should call addApnsPushConfiguration successfully', function(done) { - //uncomment below and update the code to test addApnsPushConfiguration - //instance.addApnsPushConfiguration(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('addFcmPushConfiguration', function() { - it('should call addFcmPushConfiguration successfully', function(done) { - //uncomment below and update the code to test addFcmPushConfiguration - //instance.addFcmPushConfiguration(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('addHmsPushConfiguration', function() { - it('should call addHmsPushConfiguration successfully', function(done) { - //uncomment below and update the code to test addHmsPushConfiguration - //instance.addHmsPushConfiguration(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('addIpToWhitelist', function() { - it('should call addIpToWhitelist successfully', function(done) { - //uncomment below and update the code to test addIpToWhitelist - //instance.addIpToWhitelist(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('banUsersInChannelsWithCustomChannelType', function() { - it('should call banUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test banUsersInChannelsWithCustomChannelType - //instance.banUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('configureAutoEventMessages', function() { - it('should call configureAutoEventMessages successfully', function(done) { - //uncomment below and update the code to test configureAutoEventMessages - //instance.configureAutoEventMessages(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteAllowedIpsFromWhitelist', function() { - it('should call deleteAllowedIpsFromWhitelist successfully', function(done) { - //uncomment below and update the code to test deleteAllowedIpsFromWhitelist - //instance.deleteAllowedIpsFromWhitelist(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteApnsCertificateById', function() { - it('should call deleteApnsCertificateById successfully', function(done) { - //uncomment below and update the code to test deleteApnsCertificateById - //instance.deleteApnsCertificateById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('generateSecondaryApiToken', function() { - it('should call generateSecondaryApiToken successfully', function(done) { - //uncomment below and update the code to test generateSecondaryApiToken - //instance.generateSecondaryApiToken(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listAutoEventMessages', function() { - it('should call listAutoEventMessages successfully', function(done) { - //uncomment below and update the code to test listAutoEventMessages - //instance.listAutoEventMessages(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listBannedUsersInChannelsWithCustomChannelType', function() { - it('should call listBannedUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test listBannedUsersInChannelsWithCustomChannelType - //instance.listBannedUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listMutedUsersInChannelsWithCustomChannelType', function() { - it('should call listMutedUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test listMutedUsersInChannelsWithCustomChannelType - //instance.listMutedUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPushConfigurations', function() { - it('should call listPushConfigurations successfully', function(done) { - //uncomment below and update the code to test listPushConfigurations - //instance.listPushConfigurations(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listPushNotificationContentTemplates', function() { - it('should call listPushNotificationContentTemplates successfully', function(done) { - //uncomment below and update the code to test listPushNotificationContentTemplates - //instance.listPushNotificationContentTemplates(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listSecondaryApiTokens', function() { - it('should call listSecondaryApiTokens successfully', function(done) { - //uncomment below and update the code to test listSecondaryApiTokens - //instance.listSecondaryApiTokens(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('muteUsersInChannelsWithCustomChannelType', function() { - it('should call muteUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test muteUsersInChannelsWithCustomChannelType - //instance.muteUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('removePushConfigurationById', function() { - it('should call removePushConfigurationById successfully', function(done) { - //uncomment below and update the code to test removePushConfigurationById - //instance.removePushConfigurationById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('retrieveIpWhitelist', function() { - it('should call retrieveIpWhitelist successfully', function(done) { - //uncomment below and update the code to test retrieveIpWhitelist - //instance.retrieveIpWhitelist(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('revokeSecondaryApiTokenByToken', function() { - it('should call revokeSecondaryApiTokenByToken successfully', function(done) { - //uncomment below and update the code to test revokeSecondaryApiTokenByToken - //instance.revokeSecondaryApiTokenByToken(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('setDomainFilter', function() { - it('should call setDomainFilter successfully', function(done) { - //uncomment below and update the code to test setDomainFilter - //instance.setDomainFilter(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('unbanUsersInChannelsWithCustomChannelType', function() { - it('should call unbanUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test unbanUsersInChannelsWithCustomChannelType - //instance.unbanUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('unmuteUsersInChannelsWithCustomChannelType', function() { - it('should call unmuteUsersInChannelsWithCustomChannelType successfully', function(done) { - //uncomment below and update the code to test unmuteUsersInChannelsWithCustomChannelType - //instance.unmuteUsersInChannelsWithCustomChannelType(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateApnsPushConfigurationById', function() { - it('should call updateApnsPushConfigurationById successfully', function(done) { - //uncomment below and update the code to test updateApnsPushConfigurationById - //instance.updateApnsPushConfigurationById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateDefaultChannelInvitationPreference', function() { - it('should call updateDefaultChannelInvitationPreference successfully', function(done) { - //uncomment below and update the code to test updateDefaultChannelInvitationPreference - //instance.updateDefaultChannelInvitationPreference(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateFcmPushConfigurationById', function() { - it('should call updateFcmPushConfigurationById successfully', function(done) { - //uncomment below and update the code to test updateFcmPushConfigurationById - //instance.updateFcmPushConfigurationById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateHmsPushConfigurationById', function() { - it('should call updateHmsPushConfigurationById successfully', function(done) { - //uncomment below and update the code to test updateHmsPushConfigurationById - //instance.updateHmsPushConfigurationById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updatePushNotificationContentTemplate', function() { - it('should call updatePushNotificationContentTemplate successfully', function(done) { - //uncomment below and update the code to test updatePushNotificationContentTemplate - //instance.updatePushNotificationContentTemplate(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewDefaultChannelInvitationPreference', function() { - it('should call viewDefaultChannelInvitationPreference successfully', function(done) { - //uncomment below and update the code to test viewDefaultChannelInvitationPreference - //instance.viewDefaultChannelInvitationPreference(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewPushConfigurationById', function() { - it('should call viewPushConfigurationById successfully', function(done) { - //uncomment below and update the code to test viewPushConfigurationById - //instance.viewPushConfigurationById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewPushNotificationContentTemplate', function() { - it('should call viewPushNotificationContentTemplate successfully', function(done) { - //uncomment below and update the code to test viewPushNotificationContentTemplate - //instance.viewPushNotificationContentTemplate(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewSecondaryApiTokenByToken', function() { - it('should call viewSecondaryApiTokenByToken successfully', function(done) { - //uncomment below and update the code to test viewSecondaryApiTokenByToken - //instance.viewSecondaryApiTokenByToken(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/BotApi.spec.js b/test/api/BotApi.spec.js index 20093d3..4be09a8 100644 --- a/test/api/BotApi.spec.js +++ b/test/api/BotApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,20 +48,10 @@ } describe('BotApi', function() { - describe('createBot', function() { - it('should call createBot successfully', function(done) { - //uncomment below and update the code to test createBot - //instance.createBot(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteBotById', function() { - it('should call deleteBotById successfully', function(done) { - //uncomment below and update the code to test deleteBotById - //instance.deleteBotById(function(error) { + describe('createABot', function() { + it('should call createABot successfully', function(done) { + //uncomment below and update the code to test createABot + //instance.createABot(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -78,20 +68,20 @@ done(); }); }); - describe('leaveChannels', function() { - it('should call leaveChannels successfully', function(done) { - //uncomment below and update the code to test leaveChannels - //instance.leaveChannels(function(error) { + describe('leaveAGroupChannel', function() { + it('should call leaveAGroupChannel successfully', function(done) { + //uncomment below and update the code to test leaveAGroupChannel + //instance.leaveAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('leaveChannelsByUrl', function() { - it('should call leaveChannelsByUrl successfully', function(done) { - //uncomment below and update the code to test leaveChannelsByUrl - //instance.leaveChannelsByUrl(function(error) { + describe('leaveGroupChannels', function() { + it('should call leaveGroupChannels successfully', function(done) { + //uncomment below and update the code to test leaveGroupChannels + //instance.leaveGroupChannels(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -108,30 +98,10 @@ done(); }); }); - describe('sendBotsMessage', function() { - it('should call sendBotsMessage successfully', function(done) { - //uncomment below and update the code to test sendBotsMessage - //instance.sendBotsMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateBotById', function() { - it('should call updateBotById successfully', function(done) { - //uncomment below and update the code to test updateBotById - //instance.updateBotById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewBotById', function() { - it('should call viewBotById successfully', function(done) { - //uncomment below and update the code to test viewBotById - //instance.viewBotById(function(error) { + describe('sendABotMessage', function() { + it('should call sendABotMessage successfully', function(done) { + //uncomment below and update the code to test sendABotMessage + //instance.sendABotMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/DataExportApi.spec.js b/test/api/DataExportApi.spec.js deleted file mode 100644 index 9954d2d..0000000 --- a/test/api/DataExportApi.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.DataExportApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DataExportApi', function() { - describe('listDataExportsByMessageChannelOrUser', function() { - it('should call listDataExportsByMessageChannelOrUser successfully', function(done) { - //uncomment below and update the code to test listDataExportsByMessageChannelOrUser - //instance.listDataExportsByMessageChannelOrUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('registerAndScheduleDataExport', function() { - it('should call registerAndScheduleDataExport successfully', function(done) { - //uncomment below and update the code to test registerAndScheduleDataExport - //instance.registerAndScheduleDataExport(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewDataExportById', function() { - it('should call viewDataExportById successfully', function(done) { - //uncomment below and update the code to test viewDataExportById - //instance.viewDataExportById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/GroupChannelApi.spec.js b/test/api/GroupChannelApi.spec.js index e05cc0e..c67855b 100644 --- a/test/api/GroupChannelApi.spec.js +++ b/test/api/GroupChannelApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,180 +48,190 @@ } describe('GroupChannelApi', function() { - describe('gcAcceptInvitation', function() { - it('should call gcAcceptInvitation successfully', function(done) { - //uncomment below and update the code to test gcAcceptInvitation - //instance.gcAcceptInvitation(function(error) { + describe('acceptAnInvitation', function() { + it('should call acceptAnInvitation successfully', function(done) { + //uncomment below and update the code to test acceptAnInvitation + //instance.acceptAnInvitation(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcCancelTheRegistrationOfOperators', function() { - it('should call gcCancelTheRegistrationOfOperators successfully', function(done) { - //uncomment below and update the code to test gcCancelTheRegistrationOfOperators - //instance.gcCancelTheRegistrationOfOperators(function(error) { + describe('cancelTheRegistrationOfOperators', function() { + it('should call cancelTheRegistrationOfOperators successfully', function(done) { + //uncomment below and update the code to test cancelTheRegistrationOfOperators + //instance.cancelTheRegistrationOfOperators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcCheckIfMemberById', function() { - it('should call gcCheckIfMemberById successfully', function(done) { - //uncomment below and update the code to test gcCheckIfMemberById - //instance.gcCheckIfMemberById(function(error) { + describe('checkIfMember', function() { + it('should call checkIfMember successfully', function(done) { + //uncomment below and update the code to test checkIfMember + //instance.checkIfMember(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcCreateChannel', function() { - it('should call gcCreateChannel successfully', function(done) { - //uncomment below and update the code to test gcCreateChannel - //instance.gcCreateChannel(function(error) { + describe('createAGroupChannel', function() { + it('should call createAGroupChannel successfully', function(done) { + //uncomment below and update the code to test createAGroupChannel + //instance.createAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcDeclineInvitation', function() { - it('should call gcDeclineInvitation successfully', function(done) { - //uncomment below and update the code to test gcDeclineInvitation - //instance.gcDeclineInvitation(function(error) { + describe('deleteAGroupChannel', function() { + it('should call deleteAGroupChannel successfully', function(done) { + //uncomment below and update the code to test deleteAGroupChannel + //instance.deleteAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcDeleteChannelByUrl', function() { - it('should call gcDeleteChannelByUrl successfully', function(done) { - //uncomment below and update the code to test gcDeleteChannelByUrl - //instance.gcDeleteChannelByUrl(function(error) { + describe('getAGroupChannel', function() { + it('should call getAGroupChannel successfully', function(done) { + //uncomment below and update the code to test getAGroupChannel + //instance.getAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcHideOrArchiveChannel', function() { - it('should call gcHideOrArchiveChannel successfully', function(done) { - //uncomment below and update the code to test gcHideOrArchiveChannel - //instance.gcHideOrArchiveChannel(function(error) { + describe('hideAChannel', function() { + it('should call hideAChannel successfully', function(done) { + //uncomment below and update the code to test hideAChannel + //instance.hideAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcInviteAsMembers', function() { - it('should call gcInviteAsMembers successfully', function(done) { - //uncomment below and update the code to test gcInviteAsMembers - //instance.gcInviteAsMembers(function(error) { + describe('inviteAsMembers', function() { + it('should call inviteAsMembers successfully', function(done) { + //uncomment below and update the code to test inviteAsMembers + //instance.inviteAsMembers(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcJoinChannel', function() { - it('should call gcJoinChannel successfully', function(done) { - //uncomment below and update the code to test gcJoinChannel - //instance.gcJoinChannel(function(error) { + describe('joinAChannel', function() { + it('should call joinAChannel successfully', function(done) { + //uncomment below and update the code to test joinAChannel + //instance.joinAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcLeaveChannel', function() { - it('should call gcLeaveChannel successfully', function(done) { - //uncomment below and update the code to test gcLeaveChannel - //instance.gcLeaveChannel(function(error) { + describe('leaveAChannel', function() { + it('should call leaveAChannel successfully', function(done) { + //uncomment below and update the code to test leaveAChannel + //instance.leaveAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcListChannels', function() { - it('should call gcListChannels successfully', function(done) { - //uncomment below and update the code to test gcListChannels - //instance.gcListChannels(function(error) { + describe('listChannels', function() { + it('should call listChannels successfully', function(done) { + //uncomment below and update the code to test listChannels + //instance.listChannels(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcListMembers', function() { - it('should call gcListMembers successfully', function(done) { - //uncomment below and update the code to test gcListMembers - //instance.gcListMembers(function(error) { + describe('listMembers', function() { + it('should call listMembers successfully', function(done) { + //uncomment below and update the code to test listMembers + //instance.listMembers(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcListOperators', function() { - it('should call gcListOperators successfully', function(done) { - //uncomment below and update the code to test gcListOperators - //instance.gcListOperators(function(error) { + describe('listOperators', function() { + it('should call listOperators successfully', function(done) { + //uncomment below and update the code to test listOperators + //instance.listOperators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcRegisterOperators', function() { - it('should call gcRegisterOperators successfully', function(done) { - //uncomment below and update the code to test gcRegisterOperators - //instance.gcRegisterOperators(function(error) { + describe('registerOperatorsToAGroupChannel', function() { + it('should call registerOperatorsToAGroupChannel successfully', function(done) { + //uncomment below and update the code to test registerOperatorsToAGroupChannel + //instance.registerOperatorsToAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcResetChatHistory', function() { - it('should call gcResetChatHistory successfully', function(done) { - //uncomment below and update the code to test gcResetChatHistory - //instance.gcResetChatHistory(function(error) { + describe('resetChatHistory', function() { + it('should call resetChatHistory successfully', function(done) { + //uncomment below and update the code to test resetChatHistory + //instance.resetChatHistory(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcUnhideOrUnarchiveChannel', function() { - it('should call gcUnhideOrUnarchiveChannel successfully', function(done) { - //uncomment below and update the code to test gcUnhideOrUnarchiveChannel - //instance.gcUnhideOrUnarchiveChannel(function(error) { + describe('startTypingIndicators', function() { + it('should call startTypingIndicators successfully', function(done) { + //uncomment below and update the code to test startTypingIndicators + //instance.startTypingIndicators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcUpdateChannelByUrl', function() { - it('should call gcUpdateChannelByUrl successfully', function(done) { - //uncomment below and update the code to test gcUpdateChannelByUrl - //instance.gcUpdateChannelByUrl(function(error) { + describe('stopTypingIndicators', function() { + it('should call stopTypingIndicators successfully', function(done) { + //uncomment below and update the code to test stopTypingIndicators + //instance.stopTypingIndicators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcViewChannelByUrl', function() { - it('should call gcViewChannelByUrl successfully', function(done) { - //uncomment below and update the code to test gcViewChannelByUrl - //instance.gcViewChannelByUrl(function(error) { + describe('unhideAChannel', function() { + it('should call unhideAChannel successfully', function(done) { + //uncomment below and update the code to test unhideAChannel + //instance.unhideAChannel(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('updateAGroupChannel', function() { + it('should call updateAGroupChannel successfully', function(done) { + //uncomment below and update the code to test updateAGroupChannel + //instance.updateAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/MessageApi.spec.js b/test/api/MessageApi.spec.js index dac22d3..32fc106 100644 --- a/test/api/MessageApi.spec.js +++ b/test/api/MessageApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,160 +48,40 @@ } describe('MessageApi', function() { - describe('addEmojiCategories', function() { - it('should call addEmojiCategories successfully', function(done) { - //uncomment below and update the code to test addEmojiCategories - //instance.addEmojiCategories(function(error) { + describe('addExtraDataToAMessage', function() { + it('should call addExtraDataToAMessage successfully', function(done) { + //uncomment below and update the code to test addExtraDataToAMessage + //instance.addExtraDataToAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('addEmojis', function() { - it('should call addEmojis successfully', function(done) { - //uncomment below and update the code to test addEmojis - //instance.addEmojis(function(error) { + describe('deleteAMessage', function() { + it('should call deleteAMessage successfully', function(done) { + //uncomment below and update the code to test deleteAMessage + //instance.deleteAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('addExtraDataToMessage', function() { - it('should call addExtraDataToMessage successfully', function(done) { - //uncomment below and update the code to test addExtraDataToMessage - //instance.addExtraDataToMessage(function(error) { + describe('getAMessage', function() { + it('should call getAMessage successfully', function(done) { + //uncomment below and update the code to test getAMessage + //instance.getAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('addReactionToAMessage', function() { - it('should call addReactionToAMessage successfully', function(done) { - //uncomment below and update the code to test addReactionToAMessage - //instance.addReactionToAMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteEmojiByKey', function() { - it('should call deleteEmojiByKey successfully', function(done) { - //uncomment below and update the code to test deleteEmojiByKey - //instance.deleteEmojiByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteEmojiCategoryById', function() { - it('should call deleteEmojiCategoryById successfully', function(done) { - //uncomment below and update the code to test deleteEmojiCategoryById - //instance.deleteEmojiCategoryById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteMessageById', function() { - it('should call deleteMessageById successfully', function(done) { - //uncomment below and update the code to test deleteMessageById - //instance.deleteMessageById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('enableReactions', function() { - it('should call enableReactions successfully', function(done) { - //uncomment below and update the code to test enableReactions - //instance.enableReactions(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcMarkAllMessagesAsDelivered', function() { - it('should call gcMarkAllMessagesAsDelivered successfully', function(done) { - //uncomment below and update the code to test gcMarkAllMessagesAsDelivered - //instance.gcMarkAllMessagesAsDelivered(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcMarkAllMessagesAsRead', function() { - it('should call gcMarkAllMessagesAsRead successfully', function(done) { - //uncomment below and update the code to test gcMarkAllMessagesAsRead - //instance.gcMarkAllMessagesAsRead(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcViewNumberOfEachMembersUnreadMessages', function() { - it('should call gcViewNumberOfEachMembersUnreadMessages successfully', function(done) { - //uncomment below and update the code to test gcViewNumberOfEachMembersUnreadMessages - //instance.gcViewNumberOfEachMembersUnreadMessages(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getEmojiByKey', function() { - it('should call getEmojiByKey successfully', function(done) { - //uncomment below and update the code to test getEmojiByKey - //instance.getEmojiByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getEmojiCategoryById', function() { - it('should call getEmojiCategoryById successfully', function(done) { - //uncomment below and update the code to test getEmojiCategoryById - //instance.getEmojiCategoryById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listAllEmojisAndEmojiCategories', function() { - it('should call listAllEmojisAndEmojiCategories successfully', function(done) { - //uncomment below and update the code to test listAllEmojisAndEmojiCategories - //instance.listAllEmojisAndEmojiCategories(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listAnnouncements', function() { - it('should call listAnnouncements successfully', function(done) { - //uncomment below and update the code to test listAnnouncements - //instance.listAnnouncements(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listEmojis', function() { - it('should call listEmojis successfully', function(done) { - //uncomment below and update the code to test listEmojis - //instance.listEmojis(function(error) { + describe('getTotalNumberOfMessagesInAChannel', function() { + it('should call getTotalNumberOfMessagesInAChannel successfully', function(done) { + //uncomment below and update the code to test getTotalNumberOfMessagesInAChannel + //instance.getTotalNumberOfMessagesInAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -218,130 +98,60 @@ done(); }); }); - describe('listReactionsOfMessage', function() { - it('should call listReactionsOfMessage successfully', function(done) { - //uncomment below and update the code to test listReactionsOfMessage - //instance.listReactionsOfMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('migrateMessagesByUrl', function() { - it('should call migrateMessagesByUrl successfully', function(done) { - //uncomment below and update the code to test migrateMessagesByUrl - //instance.migrateMessagesByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('removeExtraDataFromMessage', function() { - it('should call removeExtraDataFromMessage successfully', function(done) { - //uncomment below and update the code to test removeExtraDataFromMessage - //instance.removeExtraDataFromMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('removeReactionFromAMessage', function() { - it('should call removeReactionFromAMessage successfully', function(done) { - //uncomment below and update the code to test removeReactionFromAMessage - //instance.removeReactionFromAMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('sendMessage', function() { - it('should call sendMessage successfully', function(done) { - //uncomment below and update the code to test sendMessage - //instance.sendMessage(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('translateMessageIntoOtherLanguages', function() { - it('should call translateMessageIntoOtherLanguages successfully', function(done) { - //uncomment below and update the code to test translateMessageIntoOtherLanguages - //instance.translateMessageIntoOtherLanguages(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateEmojiCategoryUrlById', function() { - it('should call updateEmojiCategoryUrlById successfully', function(done) { - //uncomment below and update the code to test updateEmojiCategoryUrlById - //instance.updateEmojiCategoryUrlById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateEmojiUrlByKey', function() { - it('should call updateEmojiUrlByKey successfully', function(done) { - //uncomment below and update the code to test updateEmojiUrlByKey - //instance.updateEmojiUrlByKey(function(error) { + describe('markChannelMessagesAsRead', function() { + it('should call markChannelMessagesAsRead successfully', function(done) { + //uncomment below and update the code to test markChannelMessagesAsRead + //instance.markChannelMessagesAsRead(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateExtraDataInMessage', function() { - it('should call updateExtraDataInMessage successfully', function(done) { - //uncomment below and update the code to test updateExtraDataInMessage - //instance.updateExtraDataInMessage(function(error) { + describe('migrateMessages', function() { + it('should call migrateMessages successfully', function(done) { + //uncomment below and update the code to test migrateMessages + //instance.migrateMessages(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('updateMessageById', function() { - it('should call updateMessageById successfully', function(done) { - //uncomment below and update the code to test updateMessageById - //instance.updateMessageById(function(error) { + describe('removeExtraDataFromAMessage', function() { + it('should call removeExtraDataFromAMessage successfully', function(done) { + //uncomment below and update the code to test removeExtraDataFromAMessage + //instance.removeExtraDataFromAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('useDefaultEmojis', function() { - it('should call useDefaultEmojis successfully', function(done) { - //uncomment below and update the code to test useDefaultEmojis - //instance.useDefaultEmojis(function(error) { + describe('sendAMessage', function() { + it('should call sendAMessage successfully', function(done) { + //uncomment below and update the code to test sendAMessage + //instance.sendAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('viewMessageById', function() { - it('should call viewMessageById successfully', function(done) { - //uncomment below and update the code to test viewMessageById - //instance.viewMessageById(function(error) { + describe('updateAMessage', function() { + it('should call updateAMessage successfully', function(done) { + //uncomment below and update the code to test updateAMessage + //instance.updateAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('viewTotalNumberOfMessagesInChannel', function() { - it('should call viewTotalNumberOfMessagesInChannel successfully', function(done) { - //uncomment below and update the code to test viewTotalNumberOfMessagesInChannel - //instance.viewTotalNumberOfMessagesInChannel(function(error) { + describe('updateExtraDataInAMessage', function() { + it('should call updateExtraDataInAMessage successfully', function(done) { + //uncomment below and update the code to test updateExtraDataInAMessage + //instance.updateExtraDataInAMessage(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/MetadataApi.spec.js b/test/api/MetadataApi.spec.js index bc12c45..395e753 100644 --- a/test/api/MetadataApi.spec.js +++ b/test/api/MetadataApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,210 +48,40 @@ } describe('MetadataApi', function() { - describe('createChannelMetacounter', function() { - it('should call createChannelMetacounter successfully', function(done) { - //uncomment below and update the code to test createChannelMetacounter - //instance.createChannelMetacounter(function(error) { + describe('createAChannelMetadata', function() { + it('should call createAChannelMetadata successfully', function(done) { + //uncomment below and update the code to test createAChannelMetadata + //instance.createAChannelMetadata(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('createChannelMetadata', function() { - it('should call createChannelMetadata successfully', function(done) { - //uncomment below and update the code to test createChannelMetadata - //instance.createChannelMetadata(function(error) { + describe('deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata', function() { + it('should call deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata successfully', function(done) { + //uncomment below and update the code to test deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata + //instance.deleteAChannelMetadataWhenDeletingAllItemsOfAChannelMetadata(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('createUserMetadata', function() { - it('should call createUserMetadata successfully', function(done) { - //uncomment below and update the code to test createUserMetadata - //instance.createUserMetadata(function(error) { + describe('updateAChannelMetadata', function() { + it('should call updateAChannelMetadata successfully', function(done) { + //uncomment below and update the code to test updateAChannelMetadata + //instance.updateAChannelMetadata(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('deleteChannelMetacounter', function() { - it('should call deleteChannelMetacounter successfully', function(done) { - //uncomment below and update the code to test deleteChannelMetacounter - //instance.deleteChannelMetacounter(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteChannelMetacounterByKey', function() { - it('should call deleteChannelMetacounterByKey successfully', function(done) { - //uncomment below and update the code to test deleteChannelMetacounterByKey - //instance.deleteChannelMetacounterByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteChannelMetadata', function() { - it('should call deleteChannelMetadata successfully', function(done) { - //uncomment below and update the code to test deleteChannelMetadata - //instance.deleteChannelMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteChannelMetadataByKey', function() { - it('should call deleteChannelMetadataByKey successfully', function(done) { - //uncomment below and update the code to test deleteChannelMetadataByKey - //instance.deleteChannelMetadataByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteUserMetadata', function() { - it('should call deleteUserMetadata successfully', function(done) { - //uncomment below and update the code to test deleteUserMetadata - //instance.deleteUserMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('deleteUserMetadataByKey', function() { - it('should call deleteUserMetadataByKey successfully', function(done) { - //uncomment below and update the code to test deleteUserMetadataByKey - //instance.deleteUserMetadataByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateChannelMetacounter', function() { - it('should call updateChannelMetacounter successfully', function(done) { - //uncomment below and update the code to test updateChannelMetacounter - //instance.updateChannelMetacounter(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateChannelMetacounterByKey', function() { - it('should call updateChannelMetacounterByKey successfully', function(done) { - //uncomment below and update the code to test updateChannelMetacounterByKey - //instance.updateChannelMetacounterByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateChannelMetadata', function() { - it('should call updateChannelMetadata successfully', function(done) { - //uncomment below and update the code to test updateChannelMetadata - //instance.updateChannelMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateChannelMetadataByKey', function() { - it('should call updateChannelMetadataByKey successfully', function(done) { - //uncomment below and update the code to test updateChannelMetadataByKey - //instance.updateChannelMetadataByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateUserMetadata', function() { - it('should call updateUserMetadata successfully', function(done) { - //uncomment below and update the code to test updateUserMetadata - //instance.updateUserMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateUserMetadataByKey', function() { - it('should call updateUserMetadataByKey successfully', function(done) { - //uncomment below and update the code to test updateUserMetadataByKey - //instance.updateUserMetadataByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewChannelMetacounter', function() { - it('should call viewChannelMetacounter successfully', function(done) { - //uncomment below and update the code to test viewChannelMetacounter - //instance.viewChannelMetacounter(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewChannelMetacounterByKey', function() { - it('should call viewChannelMetacounterByKey successfully', function(done) { - //uncomment below and update the code to test viewChannelMetacounterByKey - //instance.viewChannelMetacounterByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewChannelMetadata', function() { - it('should call viewChannelMetadata successfully', function(done) { - //uncomment below and update the code to test viewChannelMetadata - //instance.viewChannelMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewChannelMetadataByKey', function() { - it('should call viewChannelMetadataByKey successfully', function(done) { - //uncomment below and update the code to test viewChannelMetadataByKey - //instance.viewChannelMetadataByKey(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewUserMetadata', function() { - it('should call viewUserMetadata successfully', function(done) { - //uncomment below and update the code to test viewUserMetadata - //instance.viewUserMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewUserMetadataByKey', function() { - it('should call viewUserMetadataByKey successfully', function(done) { - //uncomment below and update the code to test viewUserMetadataByKey - //instance.viewUserMetadataByKey(function(error) { + describe('viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata', function() { + it('should call viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata successfully', function(done) { + //uncomment below and update the code to test viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata + //instance.viewAChannelMetadataWhenRetrievingAllItemsOfAChannelMetadata(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/ModerationApi.spec.js b/test/api/ModerationApi.spec.js index 70c890c..1a30862 100644 --- a/test/api/ModerationApi.spec.js +++ b/test/api/ModerationApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,130 +48,30 @@ } describe('ModerationApi', function() { - describe('banFromChannelsWithCustomChannelTypes', function() { - it('should call banFromChannelsWithCustomChannelTypes successfully', function(done) { - //uncomment below and update the code to test banFromChannelsWithCustomChannelTypes - //instance.banFromChannelsWithCustomChannelTypes(function(error) { + describe('blockAUser', function() { + it('should call blockAUser successfully', function(done) { + //uncomment below and update the code to test blockAUser + //instance.blockAUser(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('blockUser', function() { - it('should call blockUser successfully', function(done) { - //uncomment below and update the code to test blockUser - //instance.blockUser(function(error) { + describe('freezeAGroupChannel', function() { + it('should call freezeAGroupChannel successfully', function(done) { + //uncomment below and update the code to test freezeAGroupChannel + //instance.freezeAGroupChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('gcBanUser', function() { - it('should call gcBanUser successfully', function(done) { - //uncomment below and update the code to test gcBanUser - //instance.gcBanUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcFreezeChannel', function() { - it('should call gcFreezeChannel successfully', function(done) { - //uncomment below and update the code to test gcFreezeChannel - //instance.gcFreezeChannel(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcListBannedUsers', function() { - it('should call gcListBannedUsers successfully', function(done) { - //uncomment below and update the code to test gcListBannedUsers - //instance.gcListBannedUsers(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcListMutedUsers', function() { - it('should call gcListMutedUsers successfully', function(done) { - //uncomment below and update the code to test gcListMutedUsers - //instance.gcListMutedUsers(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcMuteUser', function() { - it('should call gcMuteUser successfully', function(done) { - //uncomment below and update the code to test gcMuteUser - //instance.gcMuteUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcUnbanUserById', function() { - it('should call gcUnbanUserById successfully', function(done) { - //uncomment below and update the code to test gcUnbanUserById - //instance.gcUnbanUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcUnmuteUserById', function() { - it('should call gcUnmuteUserById successfully', function(done) { - //uncomment below and update the code to test gcUnmuteUserById - //instance.gcUnmuteUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcUpdateBanById', function() { - it('should call gcUpdateBanById successfully', function(done) { - //uncomment below and update the code to test gcUpdateBanById - //instance.gcUpdateBanById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcViewBanById', function() { - it('should call gcViewBanById successfully', function(done) { - //uncomment below and update the code to test gcViewBanById - //instance.gcViewBanById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('gcViewMuteById', function() { - it('should call gcViewMuteById successfully', function(done) { - //uncomment below and update the code to test gcViewMuteById - //instance.gcViewMuteById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listBannedChannels', function() { - it('should call listBannedChannels successfully', function(done) { - //uncomment below and update the code to test listBannedChannels - //instance.listBannedChannels(function(error) { + describe('freezeAnOpenChannel', function() { + it('should call freezeAnOpenChannel successfully', function(done) { + //uncomment below and update the code to test freezeAnOpenChannel + //instance.freezeAnOpenChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -188,130 +88,10 @@ done(); }); }); - describe('listMutedChannels', function() { - it('should call listMutedChannels successfully', function(done) { - //uncomment below and update the code to test listMutedChannels - //instance.listMutedChannels(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('muteInChannelsWithCustomChannelTypes', function() { - it('should call muteInChannelsWithCustomChannelTypes successfully', function(done) { - //uncomment below and update the code to test muteInChannelsWithCustomChannelTypes - //instance.muteInChannelsWithCustomChannelTypes(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocBanUser', function() { - it('should call ocBanUser successfully', function(done) { - //uncomment below and update the code to test ocBanUser - //instance.ocBanUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocFreezeChannel', function() { - it('should call ocFreezeChannel successfully', function(done) { - //uncomment below and update the code to test ocFreezeChannel - //instance.ocFreezeChannel(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocListBannedUsers', function() { - it('should call ocListBannedUsers successfully', function(done) { - //uncomment below and update the code to test ocListBannedUsers - //instance.ocListBannedUsers(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocListMutedUsers', function() { - it('should call ocListMutedUsers successfully', function(done) { - //uncomment below and update the code to test ocListMutedUsers - //instance.ocListMutedUsers(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocMuteUser', function() { - it('should call ocMuteUser successfully', function(done) { - //uncomment below and update the code to test ocMuteUser - //instance.ocMuteUser(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocUnbanUserById', function() { - it('should call ocUnbanUserById successfully', function(done) { - //uncomment below and update the code to test ocUnbanUserById - //instance.ocUnbanUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocUnmuteUserById', function() { - it('should call ocUnmuteUserById successfully', function(done) { - //uncomment below and update the code to test ocUnmuteUserById - //instance.ocUnmuteUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocUpdateBanById', function() { - it('should call ocUpdateBanById successfully', function(done) { - //uncomment below and update the code to test ocUpdateBanById - //instance.ocUpdateBanById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocViewBanById', function() { - it('should call ocViewBanById successfully', function(done) { - //uncomment below and update the code to test ocViewBanById - //instance.ocViewBanById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocViewMuteById', function() { - it('should call ocViewMuteById successfully', function(done) { - //uncomment below and update the code to test ocViewMuteById - //instance.ocViewMuteById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('unblockUserById', function() { - it('should call unblockUserById successfully', function(done) { - //uncomment below and update the code to test unblockUserById - //instance.unblockUserById(function(error) { + describe('unblockAUser', function() { + it('should call unblockAUser successfully', function(done) { + //uncomment below and update the code to test unblockAUser + //instance.unblockAUser(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/OpenChannelApi.spec.js b/test/api/OpenChannelApi.spec.js index 751af0f..c7bd412 100644 --- a/test/api/OpenChannelApi.spec.js +++ b/test/api/OpenChannelApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,90 +48,80 @@ } describe('OpenChannelApi', function() { - describe('ocCancelTheRegistrationOfOperators', function() { - it('should call ocCancelTheRegistrationOfOperators successfully', function(done) { - //uncomment below and update the code to test ocCancelTheRegistrationOfOperators - //instance.ocCancelTheRegistrationOfOperators(function(error) { + describe('createAnOpenChannel', function() { + it('should call createAnOpenChannel successfully', function(done) { + //uncomment below and update the code to test createAnOpenChannel + //instance.createAnOpenChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocCreateChannel', function() { - it('should call ocCreateChannel successfully', function(done) { - //uncomment below and update the code to test ocCreateChannel - //instance.ocCreateChannel(function(error) { + describe('deleteAnOpenChannel', function() { + it('should call deleteAnOpenChannel successfully', function(done) { + //uncomment below and update the code to test deleteAnOpenChannel + //instance.deleteAnOpenChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocDeleteChannelByUrl', function() { - it('should call ocDeleteChannelByUrl successfully', function(done) { - //uncomment below and update the code to test ocDeleteChannelByUrl - //instance.ocDeleteChannelByUrl(function(error) { + describe('getAnOpenChannel', function() { + it('should call getAnOpenChannel successfully', function(done) { + //uncomment below and update the code to test getAnOpenChannel + //instance.getAnOpenChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocListChannels', function() { - it('should call ocListChannels successfully', function(done) { - //uncomment below and update the code to test ocListChannels - //instance.ocListChannels(function(error) { + describe('listChannelOperators', function() { + it('should call listChannelOperators successfully', function(done) { + //uncomment below and update the code to test listChannelOperators + //instance.listChannelOperators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocListOperators', function() { - it('should call ocListOperators successfully', function(done) { - //uncomment below and update the code to test ocListOperators - //instance.ocListOperators(function(error) { + describe('listOpenChannels', function() { + it('should call listOpenChannels successfully', function(done) { + //uncomment below and update the code to test listOpenChannels + //instance.listOpenChannels(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocListParticipants', function() { - it('should call ocListParticipants successfully', function(done) { - //uncomment below and update the code to test ocListParticipants - //instance.ocListParticipants(function(error) { + describe('registerOperators', function() { + it('should call registerOperators successfully', function(done) { + //uncomment below and update the code to test registerOperators + //instance.registerOperators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocRegisterOperators', function() { - it('should call ocRegisterOperators successfully', function(done) { - //uncomment below and update the code to test ocRegisterOperators - //instance.ocRegisterOperators(function(error) { + describe('unregisterOperators', function() { + it('should call unregisterOperators successfully', function(done) { + //uncomment below and update the code to test unregisterOperators + //instance.unregisterOperators(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('ocUpdateChannelByUrl', function() { - it('should call ocUpdateChannelByUrl successfully', function(done) { - //uncomment below and update the code to test ocUpdateChannelByUrl - //instance.ocUpdateChannelByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('ocViewChannelByUrl', function() { - it('should call ocViewChannelByUrl successfully', function(done) { - //uncomment below and update the code to test ocViewChannelByUrl - //instance.ocViewChannelByUrl(function(error) { + describe('updateAnOpenChannel', function() { + it('should call updateAnOpenChannel successfully', function(done) { + //uncomment below and update the code to test updateAnOpenChannel + //instance.updateAnOpenChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/PrivacyApi.spec.js b/test/api/PrivacyApi.spec.js deleted file mode 100644 index ac27ac5..0000000 --- a/test/api/PrivacyApi.spec.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.PrivacyApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PrivacyApi', function() { - describe('cancelTheRegistrationOfGdprRequestById', function() { - it('should call cancelTheRegistrationOfGdprRequestById successfully', function(done) { - //uncomment below and update the code to test cancelTheRegistrationOfGdprRequestById - //instance.cancelTheRegistrationOfGdprRequestById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listGdprRequests', function() { - it('should call listGdprRequests successfully', function(done) { - //uncomment below and update the code to test listGdprRequests - //instance.listGdprRequests(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('registerGdprRequest', function() { - it('should call registerGdprRequest successfully', function(done) { - //uncomment below and update the code to test registerGdprRequest - //instance.registerGdprRequest(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewGdprRequestById', function() { - it('should call viewGdprRequestById successfully', function(done) { - //uncomment below and update the code to test viewGdprRequestById - //instance.viewGdprRequestById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/ReportApi.spec.js b/test/api/ReportApi.spec.js deleted file mode 100644 index f12b17c..0000000 --- a/test/api/ReportApi.spec.js +++ /dev/null @@ -1,133 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportApi', function() { - describe('listReports', function() { - it('should call listReports successfully', function(done) { - //uncomment below and update the code to test listReports - //instance.listReports(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listReportsOnChannelByUrl', function() { - it('should call listReportsOnChannelByUrl successfully', function(done) { - //uncomment below and update the code to test listReportsOnChannelByUrl - //instance.listReportsOnChannelByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listReportsOnMessageById', function() { - it('should call listReportsOnMessageById successfully', function(done) { - //uncomment below and update the code to test listReportsOnMessageById - //instance.listReportsOnMessageById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('listReportsOnUserById', function() { - it('should call listReportsOnUserById successfully', function(done) { - //uncomment below and update the code to test listReportsOnUserById - //instance.listReportsOnUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('reportChannelByUrl', function() { - it('should call reportChannelByUrl successfully', function(done) { - //uncomment below and update the code to test reportChannelByUrl - //instance.reportChannelByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('reportMessageById', function() { - it('should call reportMessageById successfully', function(done) { - //uncomment below and update the code to test reportMessageById - //instance.reportMessageById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('reportUserById', function() { - it('should call reportUserById successfully', function(done) { - //uncomment below and update the code to test reportUserById - //instance.reportUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewModeratedMessageById', function() { - it('should call viewModeratedMessageById successfully', function(done) { - //uncomment below and update the code to test viewModeratedMessageById - //instance.viewModeratedMessageById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/api/StatisticsApi.spec.js b/test/api/StatisticsApi.spec.js index a2a303d..3961099 100644 --- a/test/api/StatisticsApi.spec.js +++ b/test/api/StatisticsApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,46 +48,6 @@ } describe('StatisticsApi', function() { - describe('getDetailedOpenRateOfAnnouncementById', function() { - it('should call getDetailedOpenRateOfAnnouncementById successfully', function(done) { - //uncomment below and update the code to test getDetailedOpenRateOfAnnouncementById - //instance.getDetailedOpenRateOfAnnouncementById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('getDetailedOpenStatusOfAnnouncementById', function() { - it('should call getDetailedOpenStatusOfAnnouncementById successfully', function(done) { - //uncomment below and update the code to test getDetailedOpenStatusOfAnnouncementById - //instance.getDetailedOpenStatusOfAnnouncementById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('retrieveAdvancedAnalyticsMetrics', function() { - it('should call retrieveAdvancedAnalyticsMetrics successfully', function(done) { - //uncomment below and update the code to test retrieveAdvancedAnalyticsMetrics - //instance.retrieveAdvancedAnalyticsMetrics(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewNumberOfConcurrentConnections', function() { - it('should call viewNumberOfConcurrentConnections successfully', function(done) { - //uncomment below and update the code to test viewNumberOfConcurrentConnections - //instance.viewNumberOfConcurrentConnections(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('viewNumberOfDailyActiveUsers', function() { it('should call viewNumberOfDailyActiveUsers successfully', function(done) { //uncomment below and update the code to test viewNumberOfDailyActiveUsers @@ -108,16 +68,6 @@ done(); }); }); - describe('viewNumberOfPeakConnections', function() { - it('should call viewNumberOfPeakConnections successfully', function(done) { - //uncomment below and update the code to test viewNumberOfPeakConnections - //instance.viewNumberOfPeakConnections(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); }); })); diff --git a/test/api/UserApi.spec.js b/test/api/UserApi.spec.js index 381014a..b672c5b 100644 --- a/test/api/UserApi.spec.js +++ b/test/api/UserApi.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -48,30 +48,30 @@ } describe('UserApi', function() { - describe('addRegistrationOrDeviceToken', function() { - it('should call addRegistrationOrDeviceToken successfully', function(done) { - //uncomment below and update the code to test addRegistrationOrDeviceToken - //instance.addRegistrationOrDeviceToken(function(error) { + describe('addARegistrationOrDeviceToken', function() { + it('should call addARegistrationOrDeviceToken successfully', function(done) { + //uncomment below and update the code to test addARegistrationOrDeviceToken + //instance.addARegistrationOrDeviceToken(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('choosePushNotificationContentTemplate', function() { - it('should call choosePushNotificationContentTemplate successfully', function(done) { - //uncomment below and update the code to test choosePushNotificationContentTemplate - //instance.choosePushNotificationContentTemplate(function(error) { + describe('chooseAPushNotificationContentTemplate', function() { + it('should call chooseAPushNotificationContentTemplate successfully', function(done) { + //uncomment below and update the code to test chooseAPushNotificationContentTemplate + //instance.chooseAPushNotificationContentTemplate(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('createUser', function() { - it('should call createUser successfully', function(done) { - //uncomment below and update the code to test createUser - //instance.createUser(function(error) { + describe('createAUser', function() { + it('should call createAUser successfully', function(done) { + //uncomment below and update the code to test createAUser + //instance.createAUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -88,10 +88,20 @@ done(); }); }); - describe('deleteUserById', function() { - it('should call deleteUserById successfully', function(done) { - //uncomment below and update the code to test deleteUserById - //instance.deleteUserById(function(error) { + describe('deleteAUser', function() { + it('should call deleteAUser successfully', function(done) { + //uncomment below and update the code to test deleteAUser + //instance.deleteAUser(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('getChannelInvitationPreference', function() { + it('should call getChannelInvitationPreference successfully', function(done) { + //uncomment below and update the code to test getChannelInvitationPreference + //instance.getChannelInvitationPreference(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -148,50 +158,50 @@ done(); }); }); - describe('registerAsOperatorToChannelsWithCustomChannelTypes', function() { - it('should call registerAsOperatorToChannelsWithCustomChannelTypes successfully', function(done) { - //uncomment below and update the code to test registerAsOperatorToChannelsWithCustomChannelTypes - //instance.registerAsOperatorToChannelsWithCustomChannelTypes(function(error) { + describe('removeARegistrationOrDeviceToken', function() { + it('should call removeARegistrationOrDeviceToken successfully', function(done) { + //uncomment below and update the code to test removeARegistrationOrDeviceToken + //instance.removeARegistrationOrDeviceToken(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('removeRegistrationOrDeviceToken', function() { - it('should call removeRegistrationOrDeviceToken successfully', function(done) { - //uncomment below and update the code to test removeRegistrationOrDeviceToken - //instance.removeRegistrationOrDeviceToken(function(error) { + describe('removeARegistrationOrDeviceTokenFromAnOwner', function() { + it('should call removeARegistrationOrDeviceTokenFromAnOwner successfully', function(done) { + //uncomment below and update the code to test removeARegistrationOrDeviceTokenFromAnOwner + //instance.removeARegistrationOrDeviceTokenFromAnOwner(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('removeRegistrationOrDeviceTokenByToken', function() { - it('should call removeRegistrationOrDeviceTokenByToken successfully', function(done) { - //uncomment below and update the code to test removeRegistrationOrDeviceTokenByToken - //instance.removeRegistrationOrDeviceTokenByToken(function(error) { + describe('removeAllRegistrationOrDeviceToken', function() { + it('should call removeAllRegistrationOrDeviceToken successfully', function(done) { + //uncomment below and update the code to test removeAllRegistrationOrDeviceToken + //instance.removeAllRegistrationOrDeviceToken(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('removeRegistrationOrDeviceTokenFromOwnerByToken', function() { - it('should call removeRegistrationOrDeviceTokenFromOwnerByToken successfully', function(done) { - //uncomment below and update the code to test removeRegistrationOrDeviceTokenFromOwnerByToken - //instance.removeRegistrationOrDeviceTokenFromOwnerByToken(function(error) { + describe('resetPushPreferences', function() { + it('should call resetPushPreferences successfully', function(done) { + //uncomment below and update the code to test resetPushPreferences + //instance.resetPushPreferences(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('resetPushPreferences', function() { - it('should call resetPushPreferences successfully', function(done) { - //uncomment below and update the code to test resetPushPreferences - //instance.resetPushPreferences(function(error) { + describe('updateAUser', function() { + it('should call updateAUser successfully', function(done) { + //uncomment below and update the code to test updateAUser + //instance.updateAUser(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -208,10 +218,10 @@ done(); }); }); - describe('updateCountPreferenceOfChannelByUrl', function() { - it('should call updateCountPreferenceOfChannelByUrl successfully', function(done) { - //uncomment below and update the code to test updateCountPreferenceOfChannelByUrl - //instance.updateCountPreferenceOfChannelByUrl(function(error) { + describe('updateCountPreferenceOfAChannel', function() { + it('should call updateCountPreferenceOfAChannel successfully', function(done) { + //uncomment below and update the code to test updateCountPreferenceOfAChannel + //instance.updateCountPreferenceOfAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -228,50 +238,30 @@ done(); }); }); - describe('updatePushPreferencesForChannelByUrl', function() { - it('should call updatePushPreferencesForChannelByUrl successfully', function(done) { - //uncomment below and update the code to test updatePushPreferencesForChannelByUrl - //instance.updatePushPreferencesForChannelByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('updateUserById', function() { - it('should call updateUserById successfully', function(done) { - //uncomment below and update the code to test updateUserById - //instance.updateUserById(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewChannelInvitationPreference', function() { - it('should call viewChannelInvitationPreference successfully', function(done) { - //uncomment below and update the code to test viewChannelInvitationPreference - //instance.viewChannelInvitationPreference(function(error) { + describe('updatePushPreferencesForAChannel', function() { + it('should call updatePushPreferencesForAChannel successfully', function(done) { + //uncomment below and update the code to test updatePushPreferencesForAChannel + //instance.updatePushPreferencesForAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('viewCountPreferenceOfChannelByUrl', function() { - it('should call viewCountPreferenceOfChannelByUrl successfully', function(done) { - //uncomment below and update the code to test viewCountPreferenceOfChannelByUrl - //instance.viewCountPreferenceOfChannelByUrl(function(error) { + describe('viewAUser', function() { + it('should call viewAUser successfully', function(done) { + //uncomment below and update the code to test viewAUser + //instance.viewAUser(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('viewNumberOfChannelsByJoinStatus', function() { - it('should call viewNumberOfChannelsByJoinStatus successfully', function(done) { - //uncomment below and update the code to test viewNumberOfChannelsByJoinStatus - //instance.viewNumberOfChannelsByJoinStatus(function(error) { + describe('viewCountPreferenceOfAChannel', function() { + it('should call viewCountPreferenceOfAChannel successfully', function(done) { + //uncomment below and update the code to test viewCountPreferenceOfAChannel + //instance.viewCountPreferenceOfAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); @@ -288,16 +278,6 @@ done(); }); }); - describe('viewNumberOfUnreadItems', function() { - it('should call viewNumberOfUnreadItems successfully', function(done) { - //uncomment below and update the code to test viewNumberOfUnreadItems - //instance.viewNumberOfUnreadItems(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('viewNumberOfUnreadMessages', function() { it('should call viewNumberOfUnreadMessages successfully', function(done) { //uncomment below and update the code to test viewNumberOfUnreadMessages @@ -318,30 +298,20 @@ done(); }); }); - describe('viewPushPreferencesForChannelByUrl', function() { - it('should call viewPushPreferencesForChannelByUrl successfully', function(done) { - //uncomment below and update the code to test viewPushPreferencesForChannelByUrl - //instance.viewPushPreferencesForChannelByUrl(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('viewUserById', function() { - it('should call viewUserById successfully', function(done) { - //uncomment below and update the code to test viewUserById - //instance.viewUserById(function(error) { + describe('viewPushPreferencesForAChannel', function() { + it('should call viewPushPreferencesForAChannel successfully', function(done) { + //uncomment below and update the code to test viewPushPreferencesForAChannel + //instance.viewPushPreferencesForAChannel(function(error) { // if (error) throw error; //expect().to.be(); //}); done(); }); }); - describe('viewWhoOwnsRegistrationOrDeviceTokenByToken', function() { - it('should call viewWhoOwnsRegistrationOrDeviceTokenByToken successfully', function(done) { - //uncomment below and update the code to test viewWhoOwnsRegistrationOrDeviceTokenByToken - //instance.viewWhoOwnsRegistrationOrDeviceTokenByToken(function(error) { + describe('viewWhoOwnsARegistrationOrDeviceToken', function() { + it('should call viewWhoOwnsARegistrationOrDeviceToken successfully', function(done) { + //uncomment below and update the code to test viewWhoOwnsARegistrationOrDeviceToken + //instance.viewWhoOwnsARegistrationOrDeviceToken(function(error) { // if (error) throw error; //expect().to.be(); //}); diff --git a/test/api/WebhookApi.spec.js b/test/api/WebhookApi.spec.js deleted file mode 100644 index 4134f1f..0000000 --- a/test/api/WebhookApi.spec.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.WebhookApi(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('WebhookApi', function() { - describe('chooseWhichEventsToSubscribeTo', function() { - it('should call chooseWhichEventsToSubscribeTo successfully', function(done) { - //uncomment below and update the code to test chooseWhichEventsToSubscribeTo - //instance.chooseWhichEventsToSubscribeTo(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - describe('retrieveListOfSubscribedEvents', function() { - it('should call retrieveListOfSubscribedEvents successfully', function(done) { - //uncomment below and update the code to test retrieveListOfSubscribedEvents - //instance.retrieveListOfSubscribedEvents(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); - }); - -})); diff --git a/test/model/AcceptAnInvitationRequest.spec.js b/test/model/AcceptAnInvitationRequest.spec.js new file mode 100644 index 0000000..3946ffd --- /dev/null +++ b/test/model/AcceptAnInvitationRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.AcceptAnInvitationRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AcceptAnInvitationRequest', function() { + it('should create an instance of AcceptAnInvitationRequest', function() { + // uncomment below and update the code to test AcceptAnInvitationRequest + //var instance = new SendbirdPlatformSdk.AcceptAnInvitationRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.AcceptAnInvitationRequest); + }); + + it('should have the property accessCode (base name: "access_code")', function() { + // uncomment below and update the code to test the property accessCode + //var instance = new SendbirdPlatformSdk.AcceptAnInvitationRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.AcceptAnInvitationRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddARegistrationOrDeviceTokenRequest.spec.js b/test/model/AddARegistrationOrDeviceTokenRequest.spec.js new file mode 100644 index 0000000..5cf401b --- /dev/null +++ b/test/model/AddARegistrationOrDeviceTokenRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddARegistrationOrDeviceTokenRequest', function() { + it('should create an instance of AddARegistrationOrDeviceTokenRequest', function() { + // uncomment below and update the code to test AddARegistrationOrDeviceTokenRequest + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest); + }); + + it('should have the property apnsDeviceToken (base name: "apns_device_token")', function() { + // uncomment below and update the code to test the property apnsDeviceToken + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest(); + //expect(instance).to.be(); + }); + + it('should have the property gcmRegToken (base name: "gcm_reg_token")', function() { + // uncomment below and update the code to test the property gcmRegToken + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest(); + //expect(instance).to.be(); + }); + + it('should have the property huaweiDeviceToken (base name: "huawei_device_token")', function() { + // uncomment below and update the code to test the property huaweiDeviceToken + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddARegistrationOrDeviceTokenResponse.spec.js b/test/model/AddARegistrationOrDeviceTokenResponse.spec.js new file mode 100644 index 0000000..527ed41 --- /dev/null +++ b/test/model/AddARegistrationOrDeviceTokenResponse.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddARegistrationOrDeviceTokenResponse', function() { + it('should create an instance of AddARegistrationOrDeviceTokenResponse', function() { + // uncomment below and update the code to test AddARegistrationOrDeviceTokenResponse + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse); + }); + + it('should have the property token (base name: "token")', function() { + // uncomment below and update the code to test the property token + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + it('should have the property user (base name: "user")', function() { + // uncomment below and update the code to test the property user + //var instance = new SendbirdPlatformSdk.AddARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddApnsPushConfigurationData.spec.js b/test/model/AddApnsPushConfigurationData.spec.js deleted file mode 100644 index 27406e7..0000000 --- a/test/model/AddApnsPushConfigurationData.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddApnsPushConfigurationData', function() { - it('should create an instance of AddApnsPushConfigurationData', function() { - // uncomment below and update the code to test AddApnsPushConfigurationData - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddApnsPushConfigurationData); - }); - - it('should have the property apnsCert (base name: "apns_cert")', function() { - // uncomment below and update the code to test the property apnsCert - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCertEnvType (base name: "apns_cert_env_type")', function() { - // uncomment below and update the code to test the property apnsCertEnvType - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCertPassword (base name: "apns_cert_password")', function() { - // uncomment below and update the code to test the property apnsCertPassword - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property hasUnreadCountBadge (base name: "has_unread_count_badge")', function() { - // uncomment below and update the code to test the property hasUnreadCountBadge - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property contentAvailable (base name: "content_available")', function() { - // uncomment below and update the code to test the property contentAvailable - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property mutableContent (base name: "mutable_content")', function() { - // uncomment below and update the code to test the property mutableContent - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsType (base name: "apns_type")', function() { - // uncomment below and update the code to test the property apnsType - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddApnsPushConfigurationResponse.spec.js b/test/model/AddApnsPushConfigurationResponse.spec.js deleted file mode 100644 index 99341d8..0000000 --- a/test/model/AddApnsPushConfigurationResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddApnsPushConfigurationResponse', function() { - it('should create an instance of AddApnsPushConfigurationResponse', function() { - // uncomment below and update the code to test AddApnsPushConfigurationResponse - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddApnsPushConfigurationResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddApnsPushConfigurationResponsePushConfigurationsInner.spec.js b/test/model/AddApnsPushConfigurationResponsePushConfigurationsInner.spec.js deleted file mode 100644 index 4c9e833..0000000 --- a/test/model/AddApnsPushConfigurationResponsePushConfigurationsInner.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddApnsPushConfigurationResponsePushConfigurationsInner', function() { - it('should create an instance of AddApnsPushConfigurationResponsePushConfigurationsInner', function() { - // uncomment below and update the code to test AddApnsPushConfigurationResponsePushConfigurationsInner - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushType (base name: "push_type")', function() { - // uncomment below and update the code to test the property pushType - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCerEnvType (base name: "apns_cer_env_type")', function() { - // uncomment below and update the code to test the property apnsCerEnvType - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property apnsExpiration (base name: "apns_expiration")', function() { - // uncomment below and update the code to test the property apnsExpiration - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property apnsName (base name: "apns_name")', function() { - // uncomment below and update the code to test the property apnsName - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property hasUnreadCountBadge (base name: "has_unread_count_badge")', function() { - // uncomment below and update the code to test the property hasUnreadCountBadge - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property contentAvailable (base name: "content_available")', function() { - // uncomment below and update the code to test the property contentAvailable - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property mutableContent (base name: "mutable_content")', function() { - // uncomment below and update the code to test the property mutableContent - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddApnsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddEmojiCategoriesResponse.spec.js b/test/model/AddEmojiCategoriesResponse.spec.js deleted file mode 100644 index d17380e..0000000 --- a/test/model/AddEmojiCategoriesResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddEmojiCategoriesResponse', function() { - it('should create an instance of AddEmojiCategoriesResponse', function() { - // uncomment below and update the code to test AddEmojiCategoriesResponse - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddEmojiCategoriesResponse); - }); - - it('should have the property emojiCategories (base name: "emoji_categories")', function() { - // uncomment below and update the code to test the property emojiCategories - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddEmojiCategoriesResponseEmojiCategoriesInner.spec.js b/test/model/AddEmojiCategoriesResponseEmojiCategoriesInner.spec.js deleted file mode 100644 index dedd573..0000000 --- a/test/model/AddEmojiCategoriesResponseEmojiCategoriesInner.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddEmojiCategoriesResponseEmojiCategoriesInner', function() { - it('should create an instance of AddEmojiCategoriesResponseEmojiCategoriesInner', function() { - // uncomment below and update the code to test AddEmojiCategoriesResponseEmojiCategoriesInner - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.AddEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddEmojisData.spec.js b/test/model/AddEmojisData.spec.js deleted file mode 100644 index 96023f6..0000000 --- a/test/model/AddEmojisData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddEmojisData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddEmojisData', function() { - it('should create an instance of AddEmojisData', function() { - // uncomment below and update the code to test AddEmojisData - //var instance = new SendbirdPlatformSdk.AddEmojisData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddEmojisData); - }); - - it('should have the property emojiCategoryId (base name: "emoji_category_id")', function() { - // uncomment below and update the code to test the property emojiCategoryId - //var instance = new SendbirdPlatformSdk.AddEmojisData(); - //expect(instance).to.be(); - }); - - it('should have the property emojis (base name: "emojis")', function() { - // uncomment below and update the code to test the property emojis - //var instance = new SendbirdPlatformSdk.AddEmojisData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddEmojisResponse.spec.js b/test/model/AddEmojisResponse.spec.js deleted file mode 100644 index 62fa5a2..0000000 --- a/test/model/AddEmojisResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddEmojisResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddEmojisResponse', function() { - it('should create an instance of AddEmojisResponse', function() { - // uncomment below and update the code to test AddEmojisResponse - //var instance = new SendbirdPlatformSdk.AddEmojisResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddEmojisResponse); - }); - - it('should have the property emojis (base name: "emojis")', function() { - // uncomment below and update the code to test the property emojis - //var instance = new SendbirdPlatformSdk.AddEmojisResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddExtraDataToAMessageRequest.spec.js b/test/model/AddExtraDataToAMessageRequest.spec.js new file mode 100644 index 0000000..2fc97eb --- /dev/null +++ b/test/model/AddExtraDataToAMessageRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.AddExtraDataToAMessageRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddExtraDataToAMessageRequest', function() { + it('should create an instance of AddExtraDataToAMessageRequest', function() { + // uncomment below and update the code to test AddExtraDataToAMessageRequest + //var instance = new SendbirdPlatformSdk.AddExtraDataToAMessageRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.AddExtraDataToAMessageRequest); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.AddExtraDataToAMessageRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddExtraDataToAMessageResponse.spec.js b/test/model/AddExtraDataToAMessageResponse.spec.js new file mode 100644 index 0000000..262c64f --- /dev/null +++ b/test/model/AddExtraDataToAMessageResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.AddExtraDataToAMessageResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AddExtraDataToAMessageResponse', function() { + it('should create an instance of AddExtraDataToAMessageResponse', function() { + // uncomment below and update the code to test AddExtraDataToAMessageResponse + //var instance = new SendbirdPlatformSdk.AddExtraDataToAMessageResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.AddExtraDataToAMessageResponse); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.AddExtraDataToAMessageResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AddExtraDataToMessageData.spec.js b/test/model/AddExtraDataToMessageData.spec.js deleted file mode 100644 index 2e92138..0000000 --- a/test/model/AddExtraDataToMessageData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddExtraDataToMessageData', function() { - it('should create an instance of AddExtraDataToMessageData', function() { - // uncomment below and update the code to test AddExtraDataToMessageData - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddExtraDataToMessageData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddExtraDataToMessageResponse.spec.js b/test/model/AddExtraDataToMessageResponse.spec.js deleted file mode 100644 index 8c619dd..0000000 --- a/test/model/AddExtraDataToMessageResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddExtraDataToMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddExtraDataToMessageResponse', function() { - it('should create an instance of AddExtraDataToMessageResponse', function() { - // uncomment below and update the code to test AddExtraDataToMessageResponse - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddExtraDataToMessageResponse); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.AddExtraDataToMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddFcmPushConfigurationData.spec.js b/test/model/AddFcmPushConfigurationData.spec.js deleted file mode 100644 index 454e14f..0000000 --- a/test/model/AddFcmPushConfigurationData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddFcmPushConfigurationData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddFcmPushConfigurationData', function() { - it('should create an instance of AddFcmPushConfigurationData', function() { - // uncomment below and update the code to test AddFcmPushConfigurationData - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddFcmPushConfigurationData); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddFcmPushConfigurationResponse.spec.js b/test/model/AddFcmPushConfigurationResponse.spec.js deleted file mode 100644 index 0d0c0c4..0000000 --- a/test/model/AddFcmPushConfigurationResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddFcmPushConfigurationResponse', function() { - it('should create an instance of AddFcmPushConfigurationResponse', function() { - // uncomment below and update the code to test AddFcmPushConfigurationResponse - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddFcmPushConfigurationResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddFcmPushConfigurationResponsePushConfigurationsInner.spec.js b/test/model/AddFcmPushConfigurationResponsePushConfigurationsInner.spec.js deleted file mode 100644 index e2d0eca..0000000 --- a/test/model/AddFcmPushConfigurationResponsePushConfigurationsInner.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddFcmPushConfigurationResponsePushConfigurationsInner', function() { - it('should create an instance of AddFcmPushConfigurationResponsePushConfigurationsInner', function() { - // uncomment below and update the code to test AddFcmPushConfigurationResponsePushConfigurationsInner - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushType (base name: "push_type")', function() { - // uncomment below and update the code to test the property pushType - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddFcmPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddHmsPushConfigurationData.spec.js b/test/model/AddHmsPushConfigurationData.spec.js deleted file mode 100644 index e92ddf8..0000000 --- a/test/model/AddHmsPushConfigurationData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddHmsPushConfigurationData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddHmsPushConfigurationData', function() { - it('should create an instance of AddHmsPushConfigurationData', function() { - // uncomment below and update the code to test AddHmsPushConfigurationData - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddHmsPushConfigurationData); - }); - - it('should have the property huaweiAppId (base name: "huawei_app_id")', function() { - // uncomment below and update the code to test the property huaweiAppId - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiAppSecret (base name: "huawei_app_secret")', function() { - // uncomment below and update the code to test the property huaweiAppSecret - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddHmsPushConfigurationResponse.spec.js b/test/model/AddHmsPushConfigurationResponse.spec.js deleted file mode 100644 index a38c170..0000000 --- a/test/model/AddHmsPushConfigurationResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddHmsPushConfigurationResponse', function() { - it('should create an instance of AddHmsPushConfigurationResponse', function() { - // uncomment below and update the code to test AddHmsPushConfigurationResponse - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddHmsPushConfigurationResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddHmsPushConfigurationResponsePushConfigurationsInner.spec.js b/test/model/AddHmsPushConfigurationResponsePushConfigurationsInner.spec.js deleted file mode 100644 index e289189..0000000 --- a/test/model/AddHmsPushConfigurationResponsePushConfigurationsInner.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddHmsPushConfigurationResponsePushConfigurationsInner', function() { - it('should create an instance of AddHmsPushConfigurationResponsePushConfigurationsInner', function() { - // uncomment below and update the code to test AddHmsPushConfigurationResponsePushConfigurationsInner - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushType (base name: "push_type")', function() { - // uncomment below and update the code to test the property pushType - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiAppId (base name: "huawei_app_id")', function() { - // uncomment below and update the code to test the property huaweiAppId - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiAppSecret (base name: "huawei_app_secret")', function() { - // uncomment below and update the code to test the property huaweiAppSecret - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.AddHmsPushConfigurationResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddIpToWhitelistData.spec.js b/test/model/AddIpToWhitelistData.spec.js deleted file mode 100644 index b47eff7..0000000 --- a/test/model/AddIpToWhitelistData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddIpToWhitelistData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddIpToWhitelistData', function() { - it('should create an instance of AddIpToWhitelistData', function() { - // uncomment below and update the code to test AddIpToWhitelistData - //var instance = new SendbirdPlatformSdk.AddIpToWhitelistData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddIpToWhitelistData); - }); - - it('should have the property ipWhitelistAddresses (base name: "ip_whitelist_addresses")', function() { - // uncomment below and update the code to test the property ipWhitelistAddresses - //var instance = new SendbirdPlatformSdk.AddIpToWhitelistData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddIpToWhitelistResponse.spec.js b/test/model/AddIpToWhitelistResponse.spec.js deleted file mode 100644 index cda6979..0000000 --- a/test/model/AddIpToWhitelistResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddIpToWhitelistResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddIpToWhitelistResponse', function() { - it('should create an instance of AddIpToWhitelistResponse', function() { - // uncomment below and update the code to test AddIpToWhitelistResponse - //var instance = new SendbirdPlatformSdk.AddIpToWhitelistResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddIpToWhitelistResponse); - }); - - it('should have the property ipWhitelistAddresses (base name: "ip_whitelist_addresses")', function() { - // uncomment below and update the code to test the property ipWhitelistAddresses - //var instance = new SendbirdPlatformSdk.AddIpToWhitelistResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddReactionToAMessageData.spec.js b/test/model/AddReactionToAMessageData.spec.js deleted file mode 100644 index f70804a..0000000 --- a/test/model/AddReactionToAMessageData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddReactionToAMessageData', function() { - it('should create an instance of AddReactionToAMessageData', function() { - // uncomment below and update the code to test AddReactionToAMessageData - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddReactionToAMessageData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property reaction (base name: "reaction")', function() { - // uncomment below and update the code to test the property reaction - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddReactionToAMessageResponse.spec.js b/test/model/AddReactionToAMessageResponse.spec.js deleted file mode 100644 index 2811e5e..0000000 --- a/test/model/AddReactionToAMessageResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddReactionToAMessageResponse', function() { - it('should create an instance of AddReactionToAMessageResponse', function() { - // uncomment below and update the code to test AddReactionToAMessageResponse - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddReactionToAMessageResponse); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property operation (base name: "operation")', function() { - // uncomment below and update the code to test the property operation - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property success (base name: "success")', function() { - // uncomment below and update the code to test the property success - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reaction (base name: "reaction")', function() { - // uncomment below and update the code to test the property reaction - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property msgId (base name: "msg_id")', function() { - // uncomment below and update the code to test the property msgId - //var instance = new SendbirdPlatformSdk.AddReactionToAMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddRegistrationOrDeviceTokenData.spec.js b/test/model/AddRegistrationOrDeviceTokenData.spec.js deleted file mode 100644 index 1d6cc82..0000000 --- a/test/model/AddRegistrationOrDeviceTokenData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddRegistrationOrDeviceTokenData', function() { - it('should create an instance of AddRegistrationOrDeviceTokenData', function() { - // uncomment below and update the code to test AddRegistrationOrDeviceTokenData - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData); - }); - - it('should have the property gcmRegToken (base name: "gcm_reg_token")', function() { - // uncomment below and update the code to test the property gcmRegToken - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiDeviceToken (base name: "huawei_device_token")', function() { - // uncomment below and update the code to test the property huaweiDeviceToken - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsDeviceToken (base name: "apns_device_token")', function() { - // uncomment below and update the code to test the property apnsDeviceToken - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/AddRegistrationOrDeviceTokenResponse.spec.js b/test/model/AddRegistrationOrDeviceTokenResponse.spec.js deleted file mode 100644 index ea9b642..0000000 --- a/test/model/AddRegistrationOrDeviceTokenResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('AddRegistrationOrDeviceTokenResponse', function() { - it('should create an instance of AddRegistrationOrDeviceTokenResponse', function() { - // uncomment below and update the code to test AddRegistrationOrDeviceTokenResponse - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.AddRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BanFromChannelsWithCustomChannelTypesData.spec.js b/test/model/BanFromChannelsWithCustomChannelTypesData.spec.js deleted file mode 100644 index 178055f..0000000 --- a/test/model/BanFromChannelsWithCustomChannelTypesData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BanFromChannelsWithCustomChannelTypesData', function() { - it('should create an instance of BanFromChannelsWithCustomChannelTypesData', function() { - // uncomment below and update the code to test BanFromChannelsWithCustomChannelTypesData - //var instance = new SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData); - }); - - it('should have the property channelCustomTypes (base name: "channel_custom_types")', function() { - // uncomment below and update the code to test the property channelCustomTypes - //var instance = new SendbirdPlatformSdk.BanFromChannelsWithCustomChannelTypesData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BanUsersInChannelsWithCustomChannelTypeData.spec.js b/test/model/BanUsersInChannelsWithCustomChannelTypeData.spec.js deleted file mode 100644 index 233266f..0000000 --- a/test/model/BanUsersInChannelsWithCustomChannelTypeData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BanUsersInChannelsWithCustomChannelTypeData', function() { - it('should create an instance of BanUsersInChannelsWithCustomChannelTypeData', function() { - // uncomment below and update the code to test BanUsersInChannelsWithCustomChannelTypeData - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData); - }); - - it('should have the property bannedList (base name: "banned_list")', function() { - // uncomment below and update the code to test the property bannedList - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - it('should have the property onDemandUpsert (base name: "on_demand_upsert")', function() { - // uncomment below and update the code to test the property onDemandUpsert - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.spec.js b/test/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.spec.js deleted file mode 100644 index e0b42cd..0000000 --- a/test/model/BanUsersInChannelsWithCustomChannelTypeDataBannedListInner.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BanUsersInChannelsWithCustomChannelTypeDataBannedListInner', function() { - it('should create an instance of BanUsersInChannelsWithCustomChannelTypeDataBannedListInner', function() { - // uncomment below and update the code to test BanUsersInChannelsWithCustomChannelTypeDataBannedListInner - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.BanUsersInChannelsWithCustomChannelTypeDataBannedListInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/Blob.spec.js b/test/model/Blob.spec.js deleted file mode 100644 index b65dae3..0000000 --- a/test/model/Blob.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.Blob(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Blob', function() { - it('should create an instance of Blob', function() { - // uncomment below and update the code to test Blob - //var instance = new SendbirdPlatformSdk.Blob(); - //expect(instance).to.be.a(SendbirdPlatformSdk.Blob); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new SendbirdPlatformSdk.Blob(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.Blob(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BlockAUserRequest.spec.js b/test/model/BlockAUserRequest.spec.js new file mode 100644 index 0000000..68e066d --- /dev/null +++ b/test/model/BlockAUserRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.BlockAUserRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BlockAUserRequest', function() { + it('should create an instance of BlockAUserRequest', function() { + // uncomment below and update the code to test BlockAUserRequest + //var instance = new SendbirdPlatformSdk.BlockAUserRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.BlockAUserRequest); + }); + + it('should have the property targetId (base name: "target_id")', function() { + // uncomment below and update the code to test the property targetId + //var instance = new SendbirdPlatformSdk.BlockAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.BlockAUserRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BlockAUserResponse.spec.js b/test/model/BlockAUserResponse.spec.js new file mode 100644 index 0000000..9d1451a --- /dev/null +++ b/test/model/BlockAUserResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.BlockAUserResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('BlockAUserResponse', function() { + it('should create an instance of BlockAUserResponse', function() { + // uncomment below and update the code to test BlockAUserResponse + //var instance = new SendbirdPlatformSdk.BlockAUserResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.BlockAUserResponse); + }); + + it('should have the property users (base name: "users")', function() { + // uncomment below and update the code to test the property users + //var instance = new SendbirdPlatformSdk.BlockAUserResponse(); + //expect(instance).to.be(); + }); + + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next + //var instance = new SendbirdPlatformSdk.BlockAUserResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/BlockUserData.spec.js b/test/model/BlockUserData.spec.js deleted file mode 100644 index 0f23a8f..0000000 --- a/test/model/BlockUserData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.BlockUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BlockUserData', function() { - it('should create an instance of BlockUserData', function() { - // uncomment below and update the code to test BlockUserData - //var instance = new SendbirdPlatformSdk.BlockUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.BlockUserData); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.BlockUserData(); - //expect(instance).to.be(); - }); - - it('should have the property targetId (base name: "target_id")', function() { - // uncomment below and update the code to test the property targetId - //var instance = new SendbirdPlatformSdk.BlockUserData(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.BlockUserData(); - //expect(instance).to.be(); - }); - - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users - //var instance = new SendbirdPlatformSdk.BlockUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/BlockUserResponse.spec.js b/test/model/BlockUserResponse.spec.js deleted file mode 100644 index b3269ce..0000000 --- a/test/model/BlockUserResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.BlockUserResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('BlockUserResponse', function() { - it('should create an instance of BlockUserResponse', function() { - // uncomment below and update the code to test BlockUserResponse - //var instance = new SendbirdPlatformSdk.BlockUserResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.BlockUserResponse); - }); - - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users - //var instance = new SendbirdPlatformSdk.BlockUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.BlockUserResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CheckIfMemberResponse.spec.js b/test/model/CheckIfMemberResponse.spec.js new file mode 100644 index 0000000..698112a --- /dev/null +++ b/test/model/CheckIfMemberResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CheckIfMemberResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CheckIfMemberResponse', function() { + it('should create an instance of CheckIfMemberResponse', function() { + // uncomment below and update the code to test CheckIfMemberResponse + //var instance = new SendbirdPlatformSdk.CheckIfMemberResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CheckIfMemberResponse); + }); + + it('should have the property isMember (base name: "is_member")', function() { + // uncomment below and update the code to test the property isMember + //var instance = new SendbirdPlatformSdk.CheckIfMemberResponse(); + //expect(instance).to.be(); + }); + + it('should have the property state (base name: "state")', function() { + // uncomment below and update the code to test the property state + //var instance = new SendbirdPlatformSdk.CheckIfMemberResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChooseAPushNotificationContentTemplateRequest.spec.js b/test/model/ChooseAPushNotificationContentTemplateRequest.spec.js new file mode 100644 index 0000000..8488619 --- /dev/null +++ b/test/model/ChooseAPushNotificationContentTemplateRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChooseAPushNotificationContentTemplateRequest', function() { + it('should create an instance of ChooseAPushNotificationContentTemplateRequest', function() { + // uncomment below and update the code to test ChooseAPushNotificationContentTemplateRequest + //var instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChooseAPushNotificationContentTemplateResponse.spec.js b/test/model/ChooseAPushNotificationContentTemplateResponse.spec.js new file mode 100644 index 0000000..49cdeba --- /dev/null +++ b/test/model/ChooseAPushNotificationContentTemplateResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ChooseAPushNotificationContentTemplateResponse', function() { + it('should create an instance of ChooseAPushNotificationContentTemplateResponse', function() { + // uncomment below and update the code to test ChooseAPushNotificationContentTemplateResponse + //var instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateResponse); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.ChooseAPushNotificationContentTemplateResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ChoosePushNotificationContentTemplateResponse.spec.js b/test/model/ChoosePushNotificationContentTemplateResponse.spec.js deleted file mode 100644 index a43538f..0000000 --- a/test/model/ChoosePushNotificationContentTemplateResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ChoosePushNotificationContentTemplateResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ChoosePushNotificationContentTemplateResponse', function() { - it('should create an instance of ChoosePushNotificationContentTemplateResponse', function() { - // uncomment below and update the code to test ChoosePushNotificationContentTemplateResponse - //var instance = new SendbirdPlatformSdk.ChoosePushNotificationContentTemplateResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ChoosePushNotificationContentTemplateResponse); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.ChoosePushNotificationContentTemplateResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ChooseWhichEventsToSubscribeToData.spec.js b/test/model/ChooseWhichEventsToSubscribeToData.spec.js deleted file mode 100644 index 69d0b3f..0000000 --- a/test/model/ChooseWhichEventsToSubscribeToData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ChooseWhichEventsToSubscribeToData', function() { - it('should create an instance of ChooseWhichEventsToSubscribeToData', function() { - // uncomment below and update the code to test ChooseWhichEventsToSubscribeToData - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData); - }); - - it('should have the property enabled (base name: "enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - //expect(instance).to.be(); - }); - - it('should have the property includeMembers (base name: "include_members")', function() { - // uncomment below and update the code to test the property includeMembers - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - //expect(instance).to.be(); - }); - - it('should have the property enabledEvents (base name: "enabled_events")', function() { - // uncomment below and update the code to test the property enabledEvents - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ChooseWhichEventsToSubscribeToResponse.spec.js b/test/model/ChooseWhichEventsToSubscribeToResponse.spec.js deleted file mode 100644 index 90617c2..0000000 --- a/test/model/ChooseWhichEventsToSubscribeToResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ChooseWhichEventsToSubscribeToResponse', function() { - it('should create an instance of ChooseWhichEventsToSubscribeToResponse', function() { - // uncomment below and update the code to test ChooseWhichEventsToSubscribeToResponse - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponse); - }); - - it('should have the property webhook (base name: "webhook")', function() { - // uncomment below and update the code to test the property webhook - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ChooseWhichEventsToSubscribeToResponseWebhook.spec.js b/test/model/ChooseWhichEventsToSubscribeToResponseWebhook.spec.js deleted file mode 100644 index 8ea4c33..0000000 --- a/test/model/ChooseWhichEventsToSubscribeToResponseWebhook.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ChooseWhichEventsToSubscribeToResponseWebhook', function() { - it('should create an instance of ChooseWhichEventsToSubscribeToResponseWebhook', function() { - // uncomment below and update the code to test ChooseWhichEventsToSubscribeToResponseWebhook - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook); - }); - - it('should have the property enabled (base name: "enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property includeMembers (base name: "include_members")', function() { - // uncomment below and update the code to test the property includeMembers - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property enabledEvents (base name: "enabled_events")', function() { - // uncomment below and update the code to test the property enabledEvents - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property includeUnreadCount (base name: "include_unread_count")', function() { - // uncomment below and update the code to test the property includeUnreadCount - //var instance = new SendbirdPlatformSdk.ChooseWhichEventsToSubscribeToResponseWebhook(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ConfigureAutoEventData.spec.js b/test/model/ConfigureAutoEventData.spec.js deleted file mode 100644 index 823941e..0000000 --- a/test/model/ConfigureAutoEventData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ConfigureAutoEventData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ConfigureAutoEventData', function() { - it('should create an instance of ConfigureAutoEventData', function() { - // uncomment below and update the code to test ConfigureAutoEventData - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ConfigureAutoEventData); - }); - - it('should have the property autoEventMessage (base name: "auto_event_message")', function() { - // uncomment below and update the code to test the property autoEventMessage - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ConfigureAutoEventDataAutoEventMessage.spec.js b/test/model/ConfigureAutoEventDataAutoEventMessage.spec.js deleted file mode 100644 index f190af9..0000000 --- a/test/model/ConfigureAutoEventDataAutoEventMessage.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ConfigureAutoEventDataAutoEventMessage', function() { - it('should create an instance of ConfigureAutoEventDataAutoEventMessage', function() { - // uncomment below and update the code to test ConfigureAutoEventDataAutoEventMessage - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage); - }); - - it('should have the property userLeave (base name: "user_leave")', function() { - // uncomment below and update the code to test the property userLeave - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - //expect(instance).to.be(); - }); - - it('should have the property userJoin (base name: "user_join")', function() { - // uncomment below and update the code to test the property userJoin - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelCreate (base name: "channel_create")', function() { - // uncomment below and update the code to test the property channelCreate - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelChange (base name: "channel_change")', function() { - // uncomment below and update the code to test the property channelChange - //var instance = new SendbirdPlatformSdk.ConfigureAutoEventDataAutoEventMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateABotRequest.spec.js b/test/model/CreateABotRequest.spec.js new file mode 100644 index 0000000..7b35a2b --- /dev/null +++ b/test/model/CreateABotRequest.spec.js @@ -0,0 +1,113 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateABotRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateABotRequest', function() { + it('should create an instance of CreateABotRequest', function() { + // uncomment below and update the code to test CreateABotRequest + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateABotRequest); + }); + + it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { + // uncomment below and update the code to test the property botCallbackUrl + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property botNickname (base name: "bot_nickname")', function() { + // uncomment below and update the code to test the property botNickname + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { + // uncomment below and update the code to test the property botProfileUrl + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property botType (base name: "bot_type")', function() { + // uncomment below and update the code to test the property botType + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property botUserid (base name: "bot_userid")', function() { + // uncomment below and update the code to test the property botUserid + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { + // uncomment below and update the code to test the property isPrivacyMode + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { + // uncomment below and update the code to test the property channelInvitationPreference + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { + // uncomment below and update the code to test the property enableMarkAsRead + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property showMember (base name: "show_member")', function() { + // uncomment below and update the code to test the property showMember + //var instance = new SendbirdPlatformSdk.CreateABotRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateABotResponse.spec.js b/test/model/CreateABotResponse.spec.js new file mode 100644 index 0000000..665584d --- /dev/null +++ b/test/model/CreateABotResponse.spec.js @@ -0,0 +1,107 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateABotResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateABotResponse', function() { + it('should create an instance of CreateABotResponse', function() { + // uncomment below and update the code to test CreateABotResponse + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateABotResponse); + }); + + it('should have the property bot (base name: "bot")', function() { + // uncomment below and update the code to test the property bot + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { + // uncomment below and update the code to test the property botCallbackUrl + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property botStyle (base name: "bot_style")', function() { + // uncomment below and update the code to test the property botStyle + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { + // uncomment below and update the code to test the property channelInvitationPreference + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { + // uncomment below and update the code to test the property enableMarkAsRead + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { + // uncomment below and update the code to test the property isPrivacyMode + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + it('should have the property showMember (base name: "show_member")', function() { + // uncomment below and update the code to test the property showMember + //var instance = new SendbirdPlatformSdk.CreateABotResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateABotResponseBot.spec.js b/test/model/CreateABotResponseBot.spec.js new file mode 100644 index 0000000..a3a07e1 --- /dev/null +++ b/test/model/CreateABotResponseBot.spec.js @@ -0,0 +1,113 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateABotResponseBot', function() { + it('should create an instance of CreateABotResponseBot', function() { + // uncomment below and update the code to test CreateABotResponseBot + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateABotResponseBot); + }); + + it('should have the property aiAgentType (base name: "ai_agent_type")', function() { + // uncomment below and update the code to test the property aiAgentType + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botMetadata (base name: "bot_metadata")', function() { + // uncomment below and update the code to test the property botMetadata + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botNickname (base name: "bot_nickname")', function() { + // uncomment below and update the code to test the property botNickname + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { + // uncomment below and update the code to test the property botProfileUrl + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botRequireAuthForProfileImage (base name: "bot_require_auth_for_profile_image")', function() { + // uncomment below and update the code to test the property botRequireAuthForProfileImage + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botToken (base name: "bot_token")', function() { + // uncomment below and update the code to test the property botToken + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botType (base name: "bot_type")', function() { + // uncomment below and update the code to test the property botType + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property botUserid (base name: "bot_userid")', function() { + // uncomment below and update the code to test the property botUserid + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + it('should have the property feedback (base name: "feedback")', function() { + // uncomment below and update the code to test the property feedback + //var instance = new SendbirdPlatformSdk.CreateABotResponseBot(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateABotResponseBotStyle.spec.js b/test/model/CreateABotResponseBotStyle.spec.js new file mode 100644 index 0000000..5f821bb --- /dev/null +++ b/test/model/CreateABotResponseBotStyle.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateABotResponseBotStyle', function() { + it('should create an instance of CreateABotResponseBotStyle', function() { + // uncomment below and update the code to test CreateABotResponseBotStyle + //var instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateABotResponseBotStyle); + }); + + it('should have the property autoOpen (base name: "auto_open")', function() { + // uncomment below and update the code to test the property autoOpen + //var instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property color (base name: "color")', function() { + // uncomment below and update the code to test the property color + //var instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property toggleButtonType (base name: "toggle_button_type")', function() { + // uncomment below and update the code to test the property toggleButtonType + //var instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property toggleButtonUrl (base name: "toggle_button_url")', function() { + // uncomment below and update the code to test the property toggleButtonUrl + //var instance = new SendbirdPlatformSdk.CreateABotResponseBotStyle(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAChannelMetadataRequest.spec.js b/test/model/CreateAChannelMetadataRequest.spec.js new file mode 100644 index 0000000..8d6ab4b --- /dev/null +++ b/test/model/CreateAChannelMetadataRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateAChannelMetadataRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAChannelMetadataRequest', function() { + it('should create an instance of CreateAChannelMetadataRequest', function() { + // uncomment below and update the code to test CreateAChannelMetadataRequest + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateAChannelMetadataRequest); + }); + + it('should have the property includeTs (base name: "include_ts")', function() { + // uncomment below and update the code to test the property includeTs + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataRequest(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAChannelMetadataResponse.spec.js b/test/model/CreateAChannelMetadataResponse.spec.js new file mode 100644 index 0000000..39f8e81 --- /dev/null +++ b/test/model/CreateAChannelMetadataResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateAChannelMetadataResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAChannelMetadataResponse', function() { + it('should create an instance of CreateAChannelMetadataResponse', function() { + // uncomment below and update the code to test CreateAChannelMetadataResponse + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateAChannelMetadataResponse); + }); + + it('should have the property includeTs (base name: "include_ts")', function() { + // uncomment below and update the code to test the property includeTs + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataResponse(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.CreateAChannelMetadataResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAGroupChannelRequest.spec.js b/test/model/CreateAGroupChannelRequest.spec.js new file mode 100644 index 0000000..9b767e3 --- /dev/null +++ b/test/model/CreateAGroupChannelRequest.spec.js @@ -0,0 +1,173 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAGroupChannelRequest', function() { + it('should create an instance of CreateAGroupChannelRequest', function() { + // uncomment below and update the code to test CreateAGroupChannelRequest + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateAGroupChannelRequest); + }); + + it('should have the property accessCode (base name: "access_code")', function() { + // uncomment below and update the code to test the property accessCode + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property blockSdkUserChannelJoin (base name: "block_sdk_user_channel_join")', function() { + // uncomment below and update the code to test the property blockSdkUserChannelJoin + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverFile (base name: "cover_file")', function() { + // uncomment below and update the code to test the property coverFile + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property hiddenStatus (base name: "hidden_status")', function() { + // uncomment below and update the code to test the property hiddenStatus + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property invitationStatus (base name: "invitation_status")', function() { + // uncomment below and update the code to test the property invitationStatus + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property inviterId (base name: "inviter_id")', function() { + // uncomment below and update the code to test the property inviterId + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property operatorIds (base name: "operator_ids")', function() { + // uncomment below and update the code to test the property operatorIds + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property strict (base name: "strict")', function() { + // uncomment below and update the code to test the property strict + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property users (base name: "users")', function() { + // uncomment below and update the code to test the property users + //var instance = new SendbirdPlatformSdk.CreateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAUserRequest.spec.js b/test/model/CreateAUserRequest.spec.js new file mode 100644 index 0000000..0059753 --- /dev/null +++ b/test/model/CreateAUserRequest.spec.js @@ -0,0 +1,101 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateAUserRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAUserRequest', function() { + it('should create an instance of CreateAUserRequest', function() { + // uncomment below and update the code to test CreateAUserRequest + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateAUserRequest); + }); + + it('should have the property discoveryKeys (base name: "discovery_keys")', function() { + // uncomment below and update the code to test the property discoveryKeys + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property issueAccessToken (base name: "issue_access_token")', function() { + // uncomment below and update the code to test the property issueAccessToken + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property nickname (base name: "nickname")', function() { + // uncomment below and update the code to test the property nickname + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property profileFile (base name: "profile_file")', function() { + // uncomment below and update the code to test the property profileFile + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property profileUrl (base name: "profile_url")', function() { + // uncomment below and update the code to test the property profileUrl + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.CreateAUserRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateAnOpenChannelRequest.spec.js b/test/model/CreateAnOpenChannelRequest.spec.js new file mode 100644 index 0000000..718274c --- /dev/null +++ b/test/model/CreateAnOpenChannelRequest.spec.js @@ -0,0 +1,113 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateAnOpenChannelRequest', function() { + it('should create an instance of CreateAnOpenChannelRequest', function() { + // uncomment below and update the code to test CreateAnOpenChannelRequest + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateAnOpenChannelRequest); + }); + + it('should have the property isDynamicPartitioned (base name: "is_dynamic_partitioned")', function() { + // uncomment below and update the code to test the property isDynamicPartitioned + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverFile (base name: "cover_file")', function() { + // uncomment below and update the code to test the property coverFile + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property operatorIds (base name: "operator_ids")', function() { + // uncomment below and update the code to test the property operatorIds + //var instance = new SendbirdPlatformSdk.CreateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateBotData.spec.js b/test/model/CreateBotData.spec.js deleted file mode 100644 index ca5078d..0000000 --- a/test/model/CreateBotData.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateBotData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateBotData', function() { - it('should create an instance of CreateBotData', function() { - // uncomment below and update the code to test CreateBotData - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateBotData); - }); - - it('should have the property botUserid (base name: "bot_userid")', function() { - // uncomment below and update the code to test the property botUserid - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property botNickname (base name: "bot_nickname")', function() { - // uncomment below and update the code to test the property botNickname - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { - // uncomment below and update the code to test the property botProfileUrl - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property botType (base name: "bot_type")', function() { - // uncomment below and update the code to test the property botType - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { - // uncomment below and update the code to test the property botCallbackUrl - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { - // uncomment below and update the code to test the property isPrivacyMode - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { - // uncomment below and update the code to test the property enableMarkAsRead - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference - //var instance = new SendbirdPlatformSdk.CreateBotData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateBotResponse.spec.js b/test/model/CreateBotResponse.spec.js deleted file mode 100644 index aed5f27..0000000 --- a/test/model/CreateBotResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateBotResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateBotResponse', function() { - it('should create an instance of CreateBotResponse', function() { - // uncomment below and update the code to test CreateBotResponse - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateBotResponse); - }); - - it('should have the property bot (base name: "bot")', function() { - // uncomment below and update the code to test the property bot - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { - // uncomment below and update the code to test the property botCallbackUrl - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { - // uncomment below and update the code to test the property enableMarkAsRead - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { - // uncomment below and update the code to test the property isPrivacyMode - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference - //var instance = new SendbirdPlatformSdk.CreateBotResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateBotResponseBot.spec.js b/test/model/CreateBotResponseBot.spec.js deleted file mode 100644 index bcfcb6b..0000000 --- a/test/model/CreateBotResponseBot.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateBotResponseBot', function() { - it('should create an instance of CreateBotResponseBot', function() { - // uncomment below and update the code to test CreateBotResponseBot - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateBotResponseBot); - }); - - it('should have the property botToken (base name: "bot_token")', function() { - // uncomment below and update the code to test the property botToken - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { - // uncomment below and update the code to test the property botProfileUrl - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - it('should have the property botUserid (base name: "bot_userid")', function() { - // uncomment below and update the code to test the property botUserid - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - it('should have the property botNickname (base name: "bot_nickname")', function() { - // uncomment below and update the code to test the property botNickname - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - it('should have the property botType (base name: "bot_type")', function() { - // uncomment below and update the code to test the property botType - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - it('should have the property botMetadata (base name: "bot_metadata")', function() { - // uncomment below and update the code to test the property botMetadata - //var instance = new SendbirdPlatformSdk.CreateBotResponseBot(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateChannelMetacounterData.spec.js b/test/model/CreateChannelMetacounterData.spec.js deleted file mode 100644 index d62fb3a..0000000 --- a/test/model/CreateChannelMetacounterData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateChannelMetacounterData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateChannelMetacounterData', function() { - it('should create an instance of CreateChannelMetacounterData', function() { - // uncomment below and update the code to test CreateChannelMetacounterData - //var instance = new SendbirdPlatformSdk.CreateChannelMetacounterData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateChannelMetacounterData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.CreateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.CreateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - it('should have the property metacounter (base name: "metacounter")', function() { - // uncomment below and update the code to test the property metacounter - //var instance = new SendbirdPlatformSdk.CreateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateChannelMetadataData.spec.js b/test/model/CreateChannelMetadataData.spec.js deleted file mode 100644 index 416f27e..0000000 --- a/test/model/CreateChannelMetadataData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateChannelMetadataData', function() { - it('should create an instance of CreateChannelMetadataData', function() { - // uncomment below and update the code to test CreateChannelMetadataData - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateChannelMetadataData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - //expect(instance).to.be(); - }); - - it('should have the property includeTs (base name: "include_ts")', function() { - // uncomment below and update the code to test the property includeTs - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateChannelMetadataResponse.spec.js b/test/model/CreateChannelMetadataResponse.spec.js deleted file mode 100644 index 42e3bf5..0000000 --- a/test/model/CreateChannelMetadataResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateChannelMetadataResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateChannelMetadataResponse', function() { - it('should create an instance of CreateChannelMetadataResponse', function() { - // uncomment below and update the code to test CreateChannelMetadataResponse - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateChannelMetadataResponse); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataResponse(); - //expect(instance).to.be(); - }); - - it('should have the property includeTs (base name: "include_ts")', function() { - // uncomment below and update the code to test the property includeTs - //var instance = new SendbirdPlatformSdk.CreateChannelMetadataResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUserData.spec.js b/test/model/CreateUserData.spec.js deleted file mode 100644 index 91856a0..0000000 --- a/test/model/CreateUserData.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUserData', function() { - it('should create an instance of CreateUserData', function() { - // uncomment below and update the code to test CreateUserData - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserData); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property profileFile (base name: "profile_file")', function() { - // uncomment below and update the code to test the property profileFile - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property issueAccessToken (base name: "issue_access_token")', function() { - // uncomment below and update the code to test the property issueAccessToken - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property discoveryKeys (base name: "discovery_keys")', function() { - // uncomment below and update the code to test the property discoveryKeys - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.CreateUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUserMetadataData.spec.js b/test/model/CreateUserMetadataData.spec.js deleted file mode 100644 index 1f820cd..0000000 --- a/test/model/CreateUserMetadataData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateUserMetadataData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUserMetadataData', function() { - it('should create an instance of CreateUserMetadataData', function() { - // uncomment below and update the code to test CreateUserMetadataData - //var instance = new SendbirdPlatformSdk.CreateUserMetadataData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserMetadataData); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.CreateUserMetadataData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUserMetadataResponse.spec.js b/test/model/CreateUserMetadataResponse.spec.js deleted file mode 100644 index 1f34b13..0000000 --- a/test/model/CreateUserMetadataResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateUserMetadataResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUserMetadataResponse', function() { - it('should create an instance of CreateUserMetadataResponse', function() { - // uncomment below and update the code to test CreateUserMetadataResponse - //var instance = new SendbirdPlatformSdk.CreateUserMetadataResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserMetadataResponse); - }); - - it('should have the property anyOf (base name: "anyOf")', function() { - // uncomment below and update the code to test the property anyOf - //var instance = new SendbirdPlatformSdk.CreateUserMetadataResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUserTokenData.spec.js b/test/model/CreateUserTokenData.spec.js deleted file mode 100644 index 6fdc218..0000000 --- a/test/model/CreateUserTokenData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CreateUserTokenData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CreateUserTokenData', function() { - it('should create an instance of CreateUserTokenData', function() { - // uncomment below and update the code to test CreateUserTokenData - //var instance = new SendbirdPlatformSdk.CreateUserTokenData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserTokenData); - }); - - it('should have the property expiresAt (base name: "expires_at")', function() { - // uncomment below and update the code to test the property expiresAt - //var instance = new SendbirdPlatformSdk.CreateUserTokenData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/CreateUserTokenRequest.spec.js b/test/model/CreateUserTokenRequest.spec.js new file mode 100644 index 0000000..23c3259 --- /dev/null +++ b/test/model/CreateUserTokenRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.CreateUserTokenRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateUserTokenRequest', function() { + it('should create an instance of CreateUserTokenRequest', function() { + // uncomment below and update the code to test CreateUserTokenRequest + //var instance = new SendbirdPlatformSdk.CreateUserTokenRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserTokenRequest); + }); + + it('should have the property expiresAt (base name: "expires_at")', function() { + // uncomment below and update the code to test the property expiresAt + //var instance = new SendbirdPlatformSdk.CreateUserTokenRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateUserTokenResponse.spec.js b/test/model/CreateUserTokenResponse.spec.js index 8be7d2d..f03a21d 100644 --- a/test/model/CreateUserTokenResponse.spec.js +++ b/test/model/CreateUserTokenResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -54,14 +54,14 @@ //expect(instance).to.be.a(SendbirdPlatformSdk.CreateUserTokenResponse); }); - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token + it('should have the property expiresAt (base name: "expires_at")', function() { + // uncomment below and update the code to test the property expiresAt //var instance = new SendbirdPlatformSdk.CreateUserTokenResponse(); //expect(instance).to.be(); }); - it('should have the property expiresAt (base name: "expires_at")', function() { - // uncomment below and update the code to test the property expiresAt + it('should have the property token (base name: "token")', function() { + // uncomment below and update the code to test the property token //var instance = new SendbirdPlatformSdk.CreateUserTokenResponse(); //expect(instance).to.be(); }); diff --git a/test/model/CustomTypeListBannedUsersResponse.spec.js b/test/model/CustomTypeListBannedUsersResponse.spec.js deleted file mode 100644 index 92aa7db..0000000 --- a/test/model/CustomTypeListBannedUsersResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.CustomTypeListBannedUsersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('CustomTypeListBannedUsersResponse', function() { - it('should create an instance of CustomTypeListBannedUsersResponse', function() { - // uncomment below and update the code to test CustomTypeListBannedUsersResponse - //var instance = new SendbirdPlatformSdk.CustomTypeListBannedUsersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.CustomTypeListBannedUsersResponse); - }); - - it('should have the property bannedList (base name: "banned_list")', function() { - // uncomment below and update the code to test the property bannedList - //var instance = new SendbirdPlatformSdk.CustomTypeListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.CustomTypeListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DeleteAllowedIpsFromWhitelistResponse.spec.js b/test/model/DeleteAllowedIpsFromWhitelistResponse.spec.js deleted file mode 100644 index b440c5f..0000000 --- a/test/model/DeleteAllowedIpsFromWhitelistResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.DeleteAllowedIpsFromWhitelistResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DeleteAllowedIpsFromWhitelistResponse', function() { - it('should create an instance of DeleteAllowedIpsFromWhitelistResponse', function() { - // uncomment below and update the code to test DeleteAllowedIpsFromWhitelistResponse - //var instance = new SendbirdPlatformSdk.DeleteAllowedIpsFromWhitelistResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.DeleteAllowedIpsFromWhitelistResponse); - }); - - it('should have the property ipWhitelistAddresses (base name: "ip_whitelist_addresses")', function() { - // uncomment below and update the code to test the property ipWhitelistAddresses - //var instance = new SendbirdPlatformSdk.DeleteAllowedIpsFromWhitelistResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/DeleteApnsCertificateByIdResponse.spec.js b/test/model/DeleteApnsCertificateByIdResponse.spec.js deleted file mode 100644 index 76cbf64..0000000 --- a/test/model/DeleteApnsCertificateByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.DeleteApnsCertificateByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('DeleteApnsCertificateByIdResponse', function() { - it('should create an instance of DeleteApnsCertificateByIdResponse', function() { - // uncomment below and update the code to test DeleteApnsCertificateByIdResponse - //var instance = new SendbirdPlatformSdk.DeleteApnsCertificateByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.DeleteApnsCertificateByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.DeleteApnsCertificateByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/EnableReactionsData.spec.js b/test/model/EnableReactionsData.spec.js deleted file mode 100644 index b89a5d9..0000000 --- a/test/model/EnableReactionsData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.EnableReactionsData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnableReactionsData', function() { - it('should create an instance of EnableReactionsData', function() { - // uncomment below and update the code to test EnableReactionsData - //var instance = new SendbirdPlatformSdk.EnableReactionsData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.EnableReactionsData); - }); - - it('should have the property enabled (base name: "enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instance = new SendbirdPlatformSdk.EnableReactionsData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/EnableReactionsResponse.spec.js b/test/model/EnableReactionsResponse.spec.js deleted file mode 100644 index feca596..0000000 --- a/test/model/EnableReactionsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.EnableReactionsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('EnableReactionsResponse', function() { - it('should create an instance of EnableReactionsResponse', function() { - // uncomment below and update the code to test EnableReactionsResponse - //var instance = new SendbirdPlatformSdk.EnableReactionsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.EnableReactionsResponse); - }); - - it('should have the property reactions (base name: "reactions")', function() { - // uncomment below and update the code to test the property reactions - //var instance = new SendbirdPlatformSdk.EnableReactionsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/File.spec.js b/test/model/File.spec.js deleted file mode 100644 index 1e1dece..0000000 --- a/test/model/File.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.File(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('File', function() { - it('should create an instance of File', function() { - // uncomment below and update the code to test File - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be.a(SendbirdPlatformSdk.File); - }); - - it('should have the property lastModified (base name: "last_modified")', function() { - // uncomment below and update the code to test the property lastModified - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be(); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be(); - }); - - it('should have the property webkitRelativePath (base name: "webkit_relative_path")', function() { - // uncomment below and update the code to test the property webkitRelativePath - //var instance = new SendbirdPlatformSdk.File(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/FreezeAGroupChannelRequest.spec.js b/test/model/FreezeAGroupChannelRequest.spec.js new file mode 100644 index 0000000..6cd6632 --- /dev/null +++ b/test/model/FreezeAGroupChannelRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.FreezeAGroupChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FreezeAGroupChannelRequest', function() { + it('should create an instance of FreezeAGroupChannelRequest', function() { + // uncomment below and update the code to test FreezeAGroupChannelRequest + //var instance = new SendbirdPlatformSdk.FreezeAGroupChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.FreezeAGroupChannelRequest); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.FreezeAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FreezeAnOpenChannelRequest.spec.js b/test/model/FreezeAnOpenChannelRequest.spec.js new file mode 100644 index 0000000..11623e9 --- /dev/null +++ b/test/model/FreezeAnOpenChannelRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.FreezeAnOpenChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FreezeAnOpenChannelRequest', function() { + it('should create an instance of FreezeAnOpenChannelRequest', function() { + // uncomment below and update the code to test FreezeAnOpenChannelRequest + //var instance = new SendbirdPlatformSdk.FreezeAnOpenChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.FreezeAnOpenChannelRequest); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.FreezeAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Function.spec.js b/test/model/Function.spec.js deleted file mode 100644 index bc9be31..0000000 --- a/test/model/Function.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.Function(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('Function', function() { - it('should create an instance of Function', function() { - // uncomment below and update the code to test Function - //var instance = new SendbirdPlatformSdk.Function(); - //expect(instance).to.be.a(SendbirdPlatformSdk.Function); - }); - - it('should have the property _arguments (base name: "arguments")', function() { - // uncomment below and update the code to test the property _arguments - //var instance = new SendbirdPlatformSdk.Function(); - //expect(instance).to.be(); - }); - - it('should have the property caller (base name: "caller")', function() { - // uncomment below and update the code to test the property caller - //var instance = new SendbirdPlatformSdk.Function(); - //expect(instance).to.be(); - }); - - it('should have the property length (base name: "length")', function() { - // uncomment below and update the code to test the property length - //var instance = new SendbirdPlatformSdk.Function(); - //expect(instance).to.be(); - }); - - it('should have the property _prototype (base name: "prototype")', function() { - // uncomment below and update the code to test the property _prototype - //var instance = new SendbirdPlatformSdk.Function(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcAcceptInvitationData.spec.js b/test/model/GcAcceptInvitationData.spec.js deleted file mode 100644 index 00d85d1..0000000 --- a/test/model/GcAcceptInvitationData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcAcceptInvitationData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcAcceptInvitationData', function() { - it('should create an instance of GcAcceptInvitationData', function() { - // uncomment below and update the code to test GcAcceptInvitationData - //var instance = new SendbirdPlatformSdk.GcAcceptInvitationData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcAcceptInvitationData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcAcceptInvitationData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcAcceptInvitationData(); - //expect(instance).to.be(); - }); - - it('should have the property accessCode (base name: "access_code")', function() { - // uncomment below and update the code to test the property accessCode - //var instance = new SendbirdPlatformSdk.GcAcceptInvitationData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcBanUserData.spec.js b/test/model/GcBanUserData.spec.js deleted file mode 100644 index 0be2370..0000000 --- a/test/model/GcBanUserData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcBanUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcBanUserData', function() { - it('should create an instance of GcBanUserData', function() { - // uncomment below and update the code to test GcBanUserData - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcBanUserData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property agentId (base name: "agent_id")', function() { - // uncomment below and update the code to test the property agentId - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcBanUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcBanUserResponse.spec.js b/test/model/GcBanUserResponse.spec.js deleted file mode 100644 index 0825fa7..0000000 --- a/test/model/GcBanUserResponse.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcBanUserResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcBanUserResponse', function() { - it('should create an instance of GcBanUserResponse', function() { - // uncomment below and update the code to test GcBanUserResponse - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcBanUserResponse); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nextUrl (base name: "next_url")', function() { - // uncomment below and update the code to test the property nextUrl - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcBanUserResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcCheckIfMemberByIdResponse.spec.js b/test/model/GcCheckIfMemberByIdResponse.spec.js deleted file mode 100644 index 57c59ab..0000000 --- a/test/model/GcCheckIfMemberByIdResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcCheckIfMemberByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcCheckIfMemberByIdResponse', function() { - it('should create an instance of GcCheckIfMemberByIdResponse', function() { - // uncomment below and update the code to test GcCheckIfMemberByIdResponse - //var instance = new SendbirdPlatformSdk.GcCheckIfMemberByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcCheckIfMemberByIdResponse); - }); - - it('should have the property isMember (base name: "is_member")', function() { - // uncomment below and update the code to test the property isMember - //var instance = new SendbirdPlatformSdk.GcCheckIfMemberByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property state (base name: "state")', function() { - // uncomment below and update the code to test the property state - //var instance = new SendbirdPlatformSdk.GcCheckIfMemberByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcCreateChannelData.spec.js b/test/model/GcCreateChannelData.spec.js deleted file mode 100644 index 1a319b6..0000000 --- a/test/model/GcCreateChannelData.spec.js +++ /dev/null @@ -1,173 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcCreateChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcCreateChannelData', function() { - it('should create an instance of GcCreateChannelData', function() { - // uncomment below and update the code to test GcCreateChannelData - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcCreateChannelData); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property coverFile (base name: "cover_file")', function() { - // uncomment below and update the code to test the property coverFile - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isDistinct (base name: "is_distinct")', function() { - // uncomment below and update the code to test the property isDistinct - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isSuper (base name: "is_super")', function() { - // uncomment below and update the code to test the property isSuper - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property accessCode (base name: "access_code")', function() { - // uncomment below and update the code to test the property accessCode - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property inviterId (base name: "inviter_id")', function() { - // uncomment below and update the code to test the property inviterId - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property strict (base name: "strict")', function() { - // uncomment below and update the code to test the property strict - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property invitationStatus (base name: "invitation_status")', function() { - // uncomment below and update the code to test the property invitationStatus - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property hiddenStatus (base name: "hidden_status")', function() { - // uncomment below and update the code to test the property hiddenStatus - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property blockSdkUserChannelJoin (base name: "block_sdk_user_channel_join")', function() { - // uncomment below and update the code to test the property blockSdkUserChannelJoin - //var instance = new SendbirdPlatformSdk.GcCreateChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcDeclineInvitationData.spec.js b/test/model/GcDeclineInvitationData.spec.js deleted file mode 100644 index 2c91669..0000000 --- a/test/model/GcDeclineInvitationData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcDeclineInvitationData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcDeclineInvitationData', function() { - it('should create an instance of GcDeclineInvitationData', function() { - // uncomment below and update the code to test GcDeclineInvitationData - //var instance = new SendbirdPlatformSdk.GcDeclineInvitationData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcDeclineInvitationData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcDeclineInvitationData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcDeclineInvitationData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcFreezeChannelData.spec.js b/test/model/GcFreezeChannelData.spec.js deleted file mode 100644 index 432cee3..0000000 --- a/test/model/GcFreezeChannelData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcFreezeChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcFreezeChannelData', function() { - it('should create an instance of GcFreezeChannelData', function() { - // uncomment below and update the code to test GcFreezeChannelData - //var instance = new SendbirdPlatformSdk.GcFreezeChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcFreezeChannelData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcFreezeChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property freeze (base name: "freeze")', function() { - // uncomment below and update the code to test the property freeze - //var instance = new SendbirdPlatformSdk.GcFreezeChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcHideOrArchiveChannelData.spec.js b/test/model/GcHideOrArchiveChannelData.spec.js deleted file mode 100644 index 873539f..0000000 --- a/test/model/GcHideOrArchiveChannelData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcHideOrArchiveChannelData', function() { - it('should create an instance of GcHideOrArchiveChannelData', function() { - // uncomment below and update the code to test GcHideOrArchiveChannelData - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcHideOrArchiveChannelData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property allowAutoUnhide (base name: "allow_auto_unhide")', function() { - // uncomment below and update the code to test the property allowAutoUnhide - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property shouldHideAll (base name: "should_hide_all")', function() { - // uncomment below and update the code to test the property shouldHideAll - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property hidePreviousMessages (base name: "hide_previous_messages")', function() { - // uncomment below and update the code to test the property hidePreviousMessages - //var instance = new SendbirdPlatformSdk.GcHideOrArchiveChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcInviteAsMembersData.spec.js b/test/model/GcInviteAsMembersData.spec.js deleted file mode 100644 index 288b294..0000000 --- a/test/model/GcInviteAsMembersData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcInviteAsMembersData', function() { - it('should create an instance of GcInviteAsMembersData', function() { - // uncomment below and update the code to test GcInviteAsMembersData - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcInviteAsMembersData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be(); - }); - - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be(); - }); - - it('should have the property invitationStatus (base name: "invitation_status")', function() { - // uncomment below and update the code to test the property invitationStatus - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be(); - }); - - it('should have the property hiddenStatus (base name: "hidden_status")', function() { - // uncomment below and update the code to test the property hiddenStatus - //var instance = new SendbirdPlatformSdk.GcInviteAsMembersData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcJoinChannelData.spec.js b/test/model/GcJoinChannelData.spec.js deleted file mode 100644 index 95d15bb..0000000 --- a/test/model/GcJoinChannelData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcJoinChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcJoinChannelData', function() { - it('should create an instance of GcJoinChannelData', function() { - // uncomment below and update the code to test GcJoinChannelData - //var instance = new SendbirdPlatformSdk.GcJoinChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcJoinChannelData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcJoinChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcJoinChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property accessCode (base name: "access_code")', function() { - // uncomment below and update the code to test the property accessCode - //var instance = new SendbirdPlatformSdk.GcJoinChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcLeaveChannelData.spec.js b/test/model/GcLeaveChannelData.spec.js deleted file mode 100644 index 77fb97b..0000000 --- a/test/model/GcLeaveChannelData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcLeaveChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcLeaveChannelData', function() { - it('should create an instance of GcLeaveChannelData', function() { - // uncomment below and update the code to test GcLeaveChannelData - //var instance = new SendbirdPlatformSdk.GcLeaveChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcLeaveChannelData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcLeaveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.GcLeaveChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property shouldLeaveAll (base name: "should_leave_all")', function() { - // uncomment below and update the code to test the property shouldLeaveAll - //var instance = new SendbirdPlatformSdk.GcLeaveChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcListBannedUsersResponse.spec.js b/test/model/GcListBannedUsersResponse.spec.js deleted file mode 100644 index effa410..0000000 --- a/test/model/GcListBannedUsersResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcListBannedUsersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcListBannedUsersResponse', function() { - it('should create an instance of GcListBannedUsersResponse', function() { - // uncomment below and update the code to test GcListBannedUsersResponse - //var instance = new SendbirdPlatformSdk.GcListBannedUsersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcListBannedUsersResponse); - }); - - it('should have the property bannedList (base name: "banned_list")', function() { - // uncomment below and update the code to test the property bannedList - //var instance = new SendbirdPlatformSdk.GcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property totalBanCount (base name: "total_ban_count")', function() { - // uncomment below and update the code to test the property totalBanCount - //var instance = new SendbirdPlatformSdk.GcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcListChannelsResponse.spec.js b/test/model/GcListChannelsResponse.spec.js deleted file mode 100644 index 6f7a5eb..0000000 --- a/test/model/GcListChannelsResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcListChannelsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcListChannelsResponse', function() { - it('should create an instance of GcListChannelsResponse', function() { - // uncomment below and update the code to test GcListChannelsResponse - //var instance = new SendbirdPlatformSdk.GcListChannelsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcListChannelsResponse); - }); - - it('should have the property channels (base name: "channels")', function() { - // uncomment below and update the code to test the property channels - //var instance = new SendbirdPlatformSdk.GcListChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GcListChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ts (base name: "ts")', function() { - // uncomment below and update the code to test the property ts - //var instance = new SendbirdPlatformSdk.GcListChannelsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcListMembersResponse.spec.js b/test/model/GcListMembersResponse.spec.js deleted file mode 100644 index f77057c..0000000 --- a/test/model/GcListMembersResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcListMembersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcListMembersResponse', function() { - it('should create an instance of GcListMembersResponse', function() { - // uncomment below and update the code to test GcListMembersResponse - //var instance = new SendbirdPlatformSdk.GcListMembersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcListMembersResponse); - }); - - it('should have the property members (base name: "members")', function() { - // uncomment below and update the code to test the property members - //var instance = new SendbirdPlatformSdk.GcListMembersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GcListMembersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcListMutedUsersResponse.spec.js b/test/model/GcListMutedUsersResponse.spec.js deleted file mode 100644 index 2fd446e..0000000 --- a/test/model/GcListMutedUsersResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcListMutedUsersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcListMutedUsersResponse', function() { - it('should create an instance of GcListMutedUsersResponse', function() { - // uncomment below and update the code to test GcListMutedUsersResponse - //var instance = new SendbirdPlatformSdk.GcListMutedUsersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcListMutedUsersResponse); - }); - - it('should have the property mutedList (base name: "muted_list")', function() { - // uncomment below and update the code to test the property mutedList - //var instance = new SendbirdPlatformSdk.GcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property totalMuteCount (base name: "total_mute_count")', function() { - // uncomment below and update the code to test the property totalMuteCount - //var instance = new SendbirdPlatformSdk.GcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcListOperatorsResponse.spec.js b/test/model/GcListOperatorsResponse.spec.js deleted file mode 100644 index e5d23b1..0000000 --- a/test/model/GcListOperatorsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcListOperatorsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcListOperatorsResponse', function() { - it('should create an instance of GcListOperatorsResponse', function() { - // uncomment below and update the code to test GcListOperatorsResponse - //var instance = new SendbirdPlatformSdk.GcListOperatorsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcListOperatorsResponse); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.GcListOperatorsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GcListOperatorsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcMarkAllMessagesAsDeliveredData.spec.js b/test/model/GcMarkAllMessagesAsDeliveredData.spec.js deleted file mode 100644 index 5f0cb20..0000000 --- a/test/model/GcMarkAllMessagesAsDeliveredData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcMarkAllMessagesAsDeliveredData', function() { - it('should create an instance of GcMarkAllMessagesAsDeliveredData', function() { - // uncomment below and update the code to test GcMarkAllMessagesAsDeliveredData - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData); - }); - - it('should have the property applicationId (base name: "application_id")', function() { - // uncomment below and update the code to test the property applicationId - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcMarkAllMessagesAsDeliveredResponse.spec.js b/test/model/GcMarkAllMessagesAsDeliveredResponse.spec.js deleted file mode 100644 index 610caac..0000000 --- a/test/model/GcMarkAllMessagesAsDeliveredResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcMarkAllMessagesAsDeliveredResponse', function() { - it('should create an instance of GcMarkAllMessagesAsDeliveredResponse', function() { - // uncomment below and update the code to test GcMarkAllMessagesAsDeliveredResponse - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredResponse); - }); - - it('should have the property ts (base name: "ts")', function() { - // uncomment below and update the code to test the property ts - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsDeliveredResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcMarkAllMessagesAsReadData.spec.js b/test/model/GcMarkAllMessagesAsReadData.spec.js deleted file mode 100644 index 9510843..0000000 --- a/test/model/GcMarkAllMessagesAsReadData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcMarkAllMessagesAsReadData', function() { - it('should create an instance of GcMarkAllMessagesAsReadData', function() { - // uncomment below and update the code to test GcMarkAllMessagesAsReadData - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcMarkAllMessagesAsReadData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData(); - //expect(instance).to.be(); - }); - - it('should have the property timestamp (base name: "timestamp")', function() { - // uncomment below and update the code to test the property timestamp - //var instance = new SendbirdPlatformSdk.GcMarkAllMessagesAsReadData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcMuteUserData.spec.js b/test/model/GcMuteUserData.spec.js deleted file mode 100644 index 39edb74..0000000 --- a/test/model/GcMuteUserData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcMuteUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcMuteUserData', function() { - it('should create an instance of GcMuteUserData', function() { - // uncomment below and update the code to test GcMuteUserData - //var instance = new SendbirdPlatformSdk.GcMuteUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcMuteUserData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcMuteUserData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcMuteUserData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.GcMuteUserData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcMuteUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcRegisterOperatorsData.spec.js b/test/model/GcRegisterOperatorsData.spec.js deleted file mode 100644 index f3226a2..0000000 --- a/test/model/GcRegisterOperatorsData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcRegisterOperatorsData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcRegisterOperatorsData', function() { - it('should create an instance of GcRegisterOperatorsData', function() { - // uncomment below and update the code to test GcRegisterOperatorsData - //var instance = new SendbirdPlatformSdk.GcRegisterOperatorsData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcRegisterOperatorsData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcRegisterOperatorsData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.GcRegisterOperatorsData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcRegisterOperatorsResponse.spec.js b/test/model/GcRegisterOperatorsResponse.spec.js deleted file mode 100644 index 0128389..0000000 --- a/test/model/GcRegisterOperatorsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcRegisterOperatorsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcRegisterOperatorsResponse', function() { - it('should create an instance of GcRegisterOperatorsResponse', function() { - // uncomment below and update the code to test GcRegisterOperatorsResponse - //var instance = new SendbirdPlatformSdk.GcRegisterOperatorsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcRegisterOperatorsResponse); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.GcRegisterOperatorsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcResetChatHistoryData.spec.js b/test/model/GcResetChatHistoryData.spec.js deleted file mode 100644 index 9bbf3cc..0000000 --- a/test/model/GcResetChatHistoryData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcResetChatHistoryData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcResetChatHistoryData', function() { - it('should create an instance of GcResetChatHistoryData', function() { - // uncomment below and update the code to test GcResetChatHistoryData - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcResetChatHistoryData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryData(); - //expect(instance).to.be(); - }); - - it('should have the property resetAll (base name: "reset_all")', function() { - // uncomment below and update the code to test the property resetAll - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcResetChatHistoryResponse.spec.js b/test/model/GcResetChatHistoryResponse.spec.js deleted file mode 100644 index b2b7604..0000000 --- a/test/model/GcResetChatHistoryResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcResetChatHistoryResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcResetChatHistoryResponse', function() { - it('should create an instance of GcResetChatHistoryResponse', function() { - // uncomment below and update the code to test GcResetChatHistoryResponse - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcResetChatHistoryResponse); - }); - - it('should have the property tsMessageOffset (base name: "ts_message_offset")', function() { - // uncomment below and update the code to test the property tsMessageOffset - //var instance = new SendbirdPlatformSdk.GcResetChatHistoryResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcUpdateBanByIdData.spec.js b/test/model/GcUpdateBanByIdData.spec.js deleted file mode 100644 index da2d534..0000000 --- a/test/model/GcUpdateBanByIdData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcUpdateBanByIdData', function() { - it('should create an instance of GcUpdateBanByIdData', function() { - // uncomment below and update the code to test GcUpdateBanByIdData - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcUpdateBanByIdData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property bannedUserId (base name: "banned_user_id")', function() { - // uncomment below and update the code to test the property bannedUserId - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcUpdateBanByIdResponse.spec.js b/test/model/GcUpdateBanByIdResponse.spec.js deleted file mode 100644 index 0f1a8ab..0000000 --- a/test/model/GcUpdateBanByIdResponse.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcUpdateBanByIdResponse', function() { - it('should create an instance of GcUpdateBanByIdResponse', function() { - // uncomment below and update the code to test GcUpdateBanByIdResponse - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcUpdateBanByIdResponse); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcUpdateChannelByUrlData.spec.js b/test/model/GcUpdateChannelByUrlData.spec.js deleted file mode 100644 index 95d0795..0000000 --- a/test/model/GcUpdateChannelByUrlData.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcUpdateChannelByUrlData', function() { - it('should create an instance of GcUpdateChannelByUrlData', function() { - // uncomment below and update the code to test GcUpdateChannelByUrlData - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcUpdateChannelByUrlData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property coverFile (base name: "cover_file")', function() { - // uncomment below and update the code to test the property coverFile - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property isDistinct (base name: "is_distinct")', function() { - // uncomment below and update the code to test the property isDistinct - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property accessCode (base name: "access_code")', function() { - // uncomment below and update the code to test the property accessCode - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.GcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcViewBanByIdResponse.spec.js b/test/model/GcViewBanByIdResponse.spec.js deleted file mode 100644 index e5a82af..0000000 --- a/test/model/GcViewBanByIdResponse.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcViewBanByIdResponse', function() { - it('should create an instance of GcViewBanByIdResponse', function() { - // uncomment below and update the code to test GcViewBanByIdResponse - //var instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcViewBanByIdResponse); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcViewMuteByIdResponse.spec.js b/test/model/GcViewMuteByIdResponse.spec.js deleted file mode 100644 index ab16b38..0000000 --- a/test/model/GcViewMuteByIdResponse.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcViewMuteByIdResponse', function() { - it('should create an instance of GcViewMuteByIdResponse', function() { - // uncomment below and update the code to test GcViewMuteByIdResponse - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcViewMuteByIdResponse); - }); - - it('should have the property isMuted (base name: "is_muted")', function() { - // uncomment below and update the code to test the property isMuted - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property remainingDuration (base name: "remaining_duration")', function() { - // uncomment below and update the code to test the property remainingDuration - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.GcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GcViewNumberOfEachMembersUnreadMessagesResponse.spec.js b/test/model/GcViewNumberOfEachMembersUnreadMessagesResponse.spec.js deleted file mode 100644 index d013c4c..0000000 --- a/test/model/GcViewNumberOfEachMembersUnreadMessagesResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GcViewNumberOfEachMembersUnreadMessagesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GcViewNumberOfEachMembersUnreadMessagesResponse', function() { - it('should create an instance of GcViewNumberOfEachMembersUnreadMessagesResponse', function() { - // uncomment below and update the code to test GcViewNumberOfEachMembersUnreadMessagesResponse - //var instance = new SendbirdPlatformSdk.GcViewNumberOfEachMembersUnreadMessagesResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GcViewNumberOfEachMembersUnreadMessagesResponse); - }); - - it('should have the property unread (base name: "unread")', function() { - // uncomment below and update the code to test the property unread - //var instance = new SendbirdPlatformSdk.GcViewNumberOfEachMembersUnreadMessagesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GenerateSecondaryApiTokenData.spec.js b/test/model/GenerateSecondaryApiTokenData.spec.js deleted file mode 100644 index 80c572e..0000000 --- a/test/model/GenerateSecondaryApiTokenData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GenerateSecondaryApiTokenData', function() { - it('should create an instance of GenerateSecondaryApiTokenData', function() { - // uncomment below and update the code to test GenerateSecondaryApiTokenData - //var instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GenerateSecondaryApiTokenData); - }); - - it('should have the property HTTP_API_TOKEN (base name: "HTTP_API_TOKEN")', function() { - // uncomment below and update the code to test the property HTTP_API_TOKEN - //var instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GenerateSecondaryApiTokenResponse.spec.js b/test/model/GenerateSecondaryApiTokenResponse.spec.js deleted file mode 100644 index b998b46..0000000 --- a/test/model/GenerateSecondaryApiTokenResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GenerateSecondaryApiTokenResponse', function() { - it('should create an instance of GenerateSecondaryApiTokenResponse', function() { - // uncomment below and update the code to test GenerateSecondaryApiTokenResponse - //var instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.GenerateSecondaryApiTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetAGroupChannelResponse.spec.js b/test/model/GetAGroupChannelResponse.spec.js new file mode 100644 index 0000000..b886cdf --- /dev/null +++ b/test/model/GetAGroupChannelResponse.spec.js @@ -0,0 +1,335 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetAGroupChannelResponse', function() { + it('should create an instance of GetAGroupChannelResponse', function() { + // uncomment below and update the code to test GetAGroupChannelResponse + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GetAGroupChannelResponse); + }); + + it('should have the property channel (base name: "channel")', function() { + // uncomment below and update the code to test the property channel + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property countPreference (base name: "count_preference")', function() { + // uncomment below and update the code to test the property countPreference + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "created_by")', function() { + // uncomment below and update the code to test the property createdBy + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property deliveryReceipt (base name: "delivery_receipt")', function() { + // uncomment below and update the code to test the property deliveryReceipt + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property disappearingMessage (base name: "disappearing_message")', function() { + // uncomment below and update the code to test the property disappearingMessage + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hasAiBot (base name: "has_ai_bot")', function() { + // uncomment below and update the code to test the property hasAiBot + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hasBot (base name: "has_bot")', function() { + // uncomment below and update the code to test the property hasBot + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hiddenState (base name: "hidden_state")', function() { + // uncomment below and update the code to test the property hiddenState + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { + // uncomment below and update the code to test the property ignoreProfanityFilter + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property invitedAt (base name: "invited_at")', function() { + // uncomment below and update the code to test the property invitedAt + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property inviter (base name: "inviter")', function() { + // uncomment below and update the code to test the property inviter + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { + // uncomment below and update the code to test the property isAccessCodeRequired + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isBroadcast (base name: "is_broadcast")', function() { + // uncomment below and update the code to test the property isBroadcast + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isDiscoverable (base name: "is_discoverable")', function() { + // uncomment below and update the code to test the property isDiscoverable + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isExclusive (base name: "is_exclusive")', function() { + // uncomment below and update the code to test the property isExclusive + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isHidden (base name: "is_hidden")', function() { + // uncomment below and update the code to test the property isHidden + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isMuted (base name: "is_muted")', function() { + // uncomment below and update the code to test the property isMuted + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isPushEnabled (base name: "is_push_enabled")', function() { + // uncomment below and update the code to test the property isPushEnabled + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { + // uncomment below and update the code to test the property joinedMemberCount + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property joinedTs (base name: "joined_ts")', function() { + // uncomment below and update the code to test the property joinedTs + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property lastMessage (base name: "last_message")', function() { + // uncomment below and update the code to test the property lastMessage + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property memberCount (base name: "member_count")', function() { + // uncomment below and update the code to test the property memberCount + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property memberState (base name: "member_state")', function() { + // uncomment below and update the code to test the property memberState + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property members (base name: "members")', function() { + // uncomment below and update the code to test the property members + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property myRole (base name: "my_role")', function() { + // uncomment below and update the code to test the property myRole + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property readReceipt (base name: "read_receipt")', function() { + // uncomment below and update the code to test the property readReceipt + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property smsFallback (base name: "sms_fallback")', function() { + // uncomment below and update the code to test the property smsFallback + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property tsMessageOffset (base name: "ts_message_offset")', function() { + // uncomment below and update the code to test the property tsMessageOffset + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { + // uncomment below and update the code to test the property unreadMentionCount + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { + // uncomment below and update the code to test the property unreadMessageCount + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property userLastRead (base name: "user_last_read")', function() { + // uncomment below and update the code to test the property userLastRead + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetAGroupChannelResponseAllOf.spec.js b/test/model/GetAGroupChannelResponseAllOf.spec.js new file mode 100644 index 0000000..8482264 --- /dev/null +++ b/test/model/GetAGroupChannelResponseAllOf.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GetAGroupChannelResponseAllOf(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetAGroupChannelResponseAllOf', function() { + it('should create an instance of GetAGroupChannelResponseAllOf', function() { + // uncomment below and update the code to test GetAGroupChannelResponseAllOf + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponseAllOf(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GetAGroupChannelResponseAllOf); + }); + + it('should have the property channel (base name: "channel")', function() { + // uncomment below and update the code to test the property channel + //var instance = new SendbirdPlatformSdk.GetAGroupChannelResponseAllOf(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetChannelInvitationPreferenceResponse.spec.js b/test/model/GetChannelInvitationPreferenceResponse.spec.js new file mode 100644 index 0000000..d0347ac --- /dev/null +++ b/test/model/GetChannelInvitationPreferenceResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GetChannelInvitationPreferenceResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetChannelInvitationPreferenceResponse', function() { + it('should create an instance of GetChannelInvitationPreferenceResponse', function() { + // uncomment below and update the code to test GetChannelInvitationPreferenceResponse + //var instance = new SendbirdPlatformSdk.GetChannelInvitationPreferenceResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GetChannelInvitationPreferenceResponse); + }); + + it('should have the property autoAccept (base name: "auto_accept")', function() { + // uncomment below and update the code to test the property autoAccept + //var instance = new SendbirdPlatformSdk.GetChannelInvitationPreferenceResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetDetailedOpenRateOfAnnouncementByIdResponse.spec.js b/test/model/GetDetailedOpenRateOfAnnouncementByIdResponse.spec.js deleted file mode 100644 index aac06a4..0000000 --- a/test/model/GetDetailedOpenRateOfAnnouncementByIdResponse.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDetailedOpenRateOfAnnouncementByIdResponse', function() { - it('should create an instance of GetDetailedOpenRateOfAnnouncementByIdResponse', function() { - // uncomment below and update the code to test GetDetailedOpenRateOfAnnouncementByIdResponse - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openCounts (base name: "open_counts")', function() { - // uncomment below and update the code to test the property openCounts - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openRates (base name: "open_rates")', function() { - // uncomment below and update the code to test the property openRates - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property cumulativeOpenCounts (base name: "cumulative_open_counts")', function() { - // uncomment below and update the code to test the property cumulativeOpenCounts - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property cumulativeOpenRates (base name: "cumulative_open_rates")', function() { - // uncomment below and update the code to test the property cumulativeOpenRates - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetDetailedOpenRateOfAnnouncementGroupResponse.spec.js b/test/model/GetDetailedOpenRateOfAnnouncementGroupResponse.spec.js deleted file mode 100644 index a249611..0000000 --- a/test/model/GetDetailedOpenRateOfAnnouncementGroupResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDetailedOpenRateOfAnnouncementGroupResponse', function() { - it('should create an instance of GetDetailedOpenRateOfAnnouncementGroupResponse', function() { - // uncomment below and update the code to test GetDetailedOpenRateOfAnnouncementGroupResponse - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openCounts (base name: "open_counts")', function() { - // uncomment below and update the code to test the property openCounts - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openRates (base name: "open_rates")', function() { - // uncomment below and update the code to test the property openRates - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - it('should have the property cumulativeOpenCounts (base name: "cumulative_open_counts")', function() { - // uncomment below and update the code to test the property cumulativeOpenCounts - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - it('should have the property cumulativeOpenRates (base name: "cumulative_open_rates")', function() { - // uncomment below and update the code to test the property cumulativeOpenRates - //var instance = new SendbirdPlatformSdk.GetDetailedOpenRateOfAnnouncementGroupResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.spec.js b/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.spec.js deleted file mode 100644 index d473ecb..0000000 --- a/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDetailedOpenStatusOfAnnouncementByIdResponse', function() { - it('should create an instance of GetDetailedOpenStatusOfAnnouncementByIdResponse', function() { - // uncomment below and update the code to test GetDetailedOpenStatusOfAnnouncementByIdResponse - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse); - }); - - it('should have the property openStatus (base name: "open_status")', function() { - // uncomment below and update the code to test the property openStatus - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.spec.js b/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.spec.js deleted file mode 100644 index 4b23c97..0000000 --- a/test/model/GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner', function() { - it('should create an instance of GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner', function() { - // uncomment below and update the code to test GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be(); - }); - - it('should have the property hasOpened (base name: "has_opened")', function() { - // uncomment below and update the code to test the property hasOpened - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be(); - }); - - it('should have the property sentAt (base name: "sent_at")', function() { - // uncomment below and update the code to test the property sentAt - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be(); - }); - - it('should have the property openAt (base name: "open_at")', function() { - // uncomment below and update the code to test the property openAt - //var instance = new SendbirdPlatformSdk.GetDetailedOpenStatusOfAnnouncementByIdResponseOpenStatusInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetStatisticsDailyResponse.spec.js b/test/model/GetStatisticsDailyResponse.spec.js deleted file mode 100644 index 80e95c0..0000000 --- a/test/model/GetStatisticsDailyResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetStatisticsDailyResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetStatisticsDailyResponse', function() { - it('should create an instance of GetStatisticsDailyResponse', function() { - // uncomment below and update the code to test GetStatisticsDailyResponse - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetStatisticsDailyResponse); - }); - - it('should have the property statistics (base name: "statistics")', function() { - // uncomment below and update the code to test the property statistics - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponse(); - //expect(instance).to.be(); - }); - - it('should have the property week (base name: "week")', function() { - // uncomment below and update the code to test the property week - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetStatisticsDailyResponseStatisticsInner.spec.js b/test/model/GetStatisticsDailyResponseStatisticsInner.spec.js deleted file mode 100644 index a9b22d2..0000000 --- a/test/model/GetStatisticsDailyResponseStatisticsInner.spec.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetStatisticsDailyResponseStatisticsInner', function() { - it('should create an instance of GetStatisticsDailyResponseStatisticsInner', function() { - // uncomment below and update the code to test GetStatisticsDailyResponseStatisticsInner - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner); - }); - - it('should have the property dateRange (base name: "date_range")', function() { - // uncomment below and update the code to test the property dateRange - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property canceledAnnouncementCount (base name: "canceled_announcement_count")', function() { - // uncomment below and update the code to test the property canceledAnnouncementCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property stoppedAnnouncementCount (base name: "stopped_announcement_count")', function() { - // uncomment below and update the code to test the property stoppedAnnouncementCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property completedAnnouncementCount (base name: "completed_announcement_count")', function() { - // uncomment below and update the code to test the property completedAnnouncementCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property totalAnnouncementCount (base name: "total_announcement_count")', function() { - // uncomment below and update the code to test the property totalAnnouncementCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelCount (base name: "target_channel_count")', function() { - // uncomment below and update the code to test the property targetChannelCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetUserCount (base name: "target_user_count")', function() { - // uncomment below and update the code to test the property targetUserCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property sentChannelCount (base name: "sent_channel_count")', function() { - // uncomment below and update the code to test the property sentChannelCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property sentUserCount (base name: "sent_user_count")', function() { - // uncomment below and update the code to test the property sentUserCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property openRate (base name: "open_rate")', function() { - // uncomment below and update the code to test the property openRate - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - it('should have the property openCount (base name: "open_count")', function() { - // uncomment below and update the code to test the property openCount - //var instance = new SendbirdPlatformSdk.GetStatisticsDailyResponseStatisticsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetStatisticsMonthlyResponse.spec.js b/test/model/GetStatisticsMonthlyResponse.spec.js deleted file mode 100644 index 5de2dc1..0000000 --- a/test/model/GetStatisticsMonthlyResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetStatisticsMonthlyResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetStatisticsMonthlyResponse', function() { - it('should create an instance of GetStatisticsMonthlyResponse', function() { - // uncomment below and update the code to test GetStatisticsMonthlyResponse - //var instance = new SendbirdPlatformSdk.GetStatisticsMonthlyResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetStatisticsMonthlyResponse); - }); - - it('should have the property statistics (base name: "statistics")', function() { - // uncomment below and update the code to test the property statistics - //var instance = new SendbirdPlatformSdk.GetStatisticsMonthlyResponse(); - //expect(instance).to.be(); - }); - - it('should have the property week (base name: "week")', function() { - // uncomment below and update the code to test the property week - //var instance = new SendbirdPlatformSdk.GetStatisticsMonthlyResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetStatisticsResponse.spec.js b/test/model/GetStatisticsResponse.spec.js deleted file mode 100644 index fa56732..0000000 --- a/test/model/GetStatisticsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.GetStatisticsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('GetStatisticsResponse', function() { - it('should create an instance of GetStatisticsResponse', function() { - // uncomment below and update the code to test GetStatisticsResponse - //var instance = new SendbirdPlatformSdk.GetStatisticsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.GetStatisticsResponse); - }); - - it('should have the property statistics (base name: "statistics")', function() { - // uncomment below and update the code to test the property statistics - //var instance = new SendbirdPlatformSdk.GetStatisticsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property week (base name: "week")', function() { - // uncomment below and update the code to test the property week - //var instance = new SendbirdPlatformSdk.GetStatisticsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/GetTotalNumberOfMessagesInAChannelResponse.spec.js b/test/model/GetTotalNumberOfMessagesInAChannelResponse.spec.js new file mode 100644 index 0000000..022c887 --- /dev/null +++ b/test/model/GetTotalNumberOfMessagesInAChannelResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GetTotalNumberOfMessagesInAChannelResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetTotalNumberOfMessagesInAChannelResponse', function() { + it('should create an instance of GetTotalNumberOfMessagesInAChannelResponse', function() { + // uncomment below and update the code to test GetTotalNumberOfMessagesInAChannelResponse + //var instance = new SendbirdPlatformSdk.GetTotalNumberOfMessagesInAChannelResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GetTotalNumberOfMessagesInAChannelResponse); + }); + + it('should have the property total (base name: "total")', function() { + // uncomment below and update the code to test the property total + //var instance = new SendbirdPlatformSdk.GetTotalNumberOfMessagesInAChannelResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GroupChannelListMembersResponse.spec.js b/test/model/GroupChannelListMembersResponse.spec.js new file mode 100644 index 0000000..3460663 --- /dev/null +++ b/test/model/GroupChannelListMembersResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GroupChannelListMembersResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GroupChannelListMembersResponse', function() { + it('should create an instance of GroupChannelListMembersResponse', function() { + // uncomment below and update the code to test GroupChannelListMembersResponse + //var instance = new SendbirdPlatformSdk.GroupChannelListMembersResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GroupChannelListMembersResponse); + }); + + it('should have the property members (base name: "members")', function() { + // uncomment below and update the code to test the property members + //var instance = new SendbirdPlatformSdk.GroupChannelListMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next + //var instance = new SendbirdPlatformSdk.GroupChannelListMembersResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GroupChatListChannelsResponse.spec.js b/test/model/GroupChatListChannelsResponse.spec.js new file mode 100644 index 0000000..d74f412 --- /dev/null +++ b/test/model/GroupChatListChannelsResponse.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.GroupChatListChannelsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GroupChatListChannelsResponse', function() { + it('should create an instance of GroupChatListChannelsResponse', function() { + // uncomment below and update the code to test GroupChatListChannelsResponse + //var instance = new SendbirdPlatformSdk.GroupChatListChannelsResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.GroupChatListChannelsResponse); + }); + + it('should have the property channels (base name: "channels")', function() { + // uncomment below and update the code to test the property channels + //var instance = new SendbirdPlatformSdk.GroupChatListChannelsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next + //var instance = new SendbirdPlatformSdk.GroupChatListChannelsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ts (base name: "ts")', function() { + // uncomment below and update the code to test the property ts + //var instance = new SendbirdPlatformSdk.GroupChatListChannelsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/HideAChannelRequest.spec.js b/test/model/HideAChannelRequest.spec.js new file mode 100644 index 0000000..4a71181 --- /dev/null +++ b/test/model/HideAChannelRequest.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.HideAChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('HideAChannelRequest', function() { + it('should create an instance of HideAChannelRequest', function() { + // uncomment below and update the code to test HideAChannelRequest + //var instance = new SendbirdPlatformSdk.HideAChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.HideAChannelRequest); + }); + + it('should have the property allowAutoUnhide (base name: "allow_auto_unhide")', function() { + // uncomment below and update the code to test the property allowAutoUnhide + //var instance = new SendbirdPlatformSdk.HideAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property hidePreviousMessages (base name: "hide_previous_messages")', function() { + // uncomment below and update the code to test the property hidePreviousMessages + //var instance = new SendbirdPlatformSdk.HideAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property shouldHideAll (base name: "should_hide_all")', function() { + // uncomment below and update the code to test the property shouldHideAll + //var instance = new SendbirdPlatformSdk.HideAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.HideAChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InviteAsMembersRequest.spec.js b/test/model/InviteAsMembersRequest.spec.js new file mode 100644 index 0000000..21ad041 --- /dev/null +++ b/test/model/InviteAsMembersRequest.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InviteAsMembersRequest', function() { + it('should create an instance of InviteAsMembersRequest', function() { + // uncomment below and update the code to test InviteAsMembersRequest + //var instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.InviteAsMembersRequest); + }); + + it('should have the property hiddenStatus (base name: "hidden_status")', function() { + // uncomment below and update the code to test the property hiddenStatus + //var instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + //expect(instance).to.be(); + }); + + it('should have the property invitationStatus (base name: "invitation_status")', function() { + // uncomment below and update the code to test the property invitationStatus + //var instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + //expect(instance).to.be(); + }); + + it('should have the property inviterId (base name: "inviter_id")', function() { + // uncomment below and update the code to test the property inviterId + //var instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.InviteAsMembersRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InviteAsMembersResponse.spec.js b/test/model/InviteAsMembersResponse.spec.js new file mode 100644 index 0000000..43e43de --- /dev/null +++ b/test/model/InviteAsMembersResponse.spec.js @@ -0,0 +1,335 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InviteAsMembersResponse', function() { + it('should create an instance of InviteAsMembersResponse', function() { + // uncomment below and update the code to test InviteAsMembersResponse + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.InviteAsMembersResponse); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property countPreference (base name: "count_preference")', function() { + // uncomment below and update the code to test the property countPreference + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "created_by")', function() { + // uncomment below and update the code to test the property createdBy + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property deliveryReceipt (base name: "delivery_receipt")', function() { + // uncomment below and update the code to test the property deliveryReceipt + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property disappearingMessage (base name: "disappearing_message")', function() { + // uncomment below and update the code to test the property disappearingMessage + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hasAiBot (base name: "has_ai_bot")', function() { + // uncomment below and update the code to test the property hasAiBot + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hasBot (base name: "has_bot")', function() { + // uncomment below and update the code to test the property hasBot + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property hiddenState (base name: "hidden_state")', function() { + // uncomment below and update the code to test the property hiddenState + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { + // uncomment below and update the code to test the property ignoreProfanityFilter + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property invitedAt (base name: "invited_at")', function() { + // uncomment below and update the code to test the property invitedAt + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property inviter (base name: "inviter")', function() { + // uncomment below and update the code to test the property inviter + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { + // uncomment below and update the code to test the property isAccessCodeRequired + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isBroadcast (base name: "is_broadcast")', function() { + // uncomment below and update the code to test the property isBroadcast + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isDiscoverable (base name: "is_discoverable")', function() { + // uncomment below and update the code to test the property isDiscoverable + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isExclusive (base name: "is_exclusive")', function() { + // uncomment below and update the code to test the property isExclusive + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isHidden (base name: "is_hidden")', function() { + // uncomment below and update the code to test the property isHidden + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isMuted (base name: "is_muted")', function() { + // uncomment below and update the code to test the property isMuted + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isPushEnabled (base name: "is_push_enabled")', function() { + // uncomment below and update the code to test the property isPushEnabled + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { + // uncomment below and update the code to test the property joinedMemberCount + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property joinedTs (base name: "joined_ts")', function() { + // uncomment below and update the code to test the property joinedTs + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property lastMessage (base name: "last_message")', function() { + // uncomment below and update the code to test the property lastMessage + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property memberCount (base name: "member_count")', function() { + // uncomment below and update the code to test the property memberCount + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property memberState (base name: "member_state")', function() { + // uncomment below and update the code to test the property memberState + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property members (base name: "members")', function() { + // uncomment below and update the code to test the property members + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property myRole (base name: "my_role")', function() { + // uncomment below and update the code to test the property myRole + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property readReceipt (base name: "read_receipt")', function() { + // uncomment below and update the code to test the property readReceipt + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property smsFallback (base name: "sms_fallback")', function() { + // uncomment below and update the code to test the property smsFallback + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property tsMessageOffset (base name: "ts_message_offset")', function() { + // uncomment below and update the code to test the property tsMessageOffset + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { + // uncomment below and update the code to test the property unreadMentionCount + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { + // uncomment below and update the code to test the property unreadMessageCount + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property userLastRead (base name: "user_last_read")', function() { + // uncomment below and update the code to test the property userLastRead + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + it('should have the property operators (base name: "operators")', function() { + // uncomment below and update the code to test the property operators + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InviteAsMembersResponseAllOf.spec.js b/test/model/InviteAsMembersResponseAllOf.spec.js new file mode 100644 index 0000000..e8d9786 --- /dev/null +++ b/test/model/InviteAsMembersResponseAllOf.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.InviteAsMembersResponseAllOf(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InviteAsMembersResponseAllOf', function() { + it('should create an instance of InviteAsMembersResponseAllOf', function() { + // uncomment below and update the code to test InviteAsMembersResponseAllOf + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponseAllOf(); + //expect(instance).to.be.a(SendbirdPlatformSdk.InviteAsMembersResponseAllOf); + }); + + it('should have the property operators (base name: "operators")', function() { + // uncomment below and update the code to test the property operators + //var instance = new SendbirdPlatformSdk.InviteAsMembersResponseAllOf(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JoinAChannelRequest.spec.js b/test/model/JoinAChannelRequest.spec.js new file mode 100644 index 0000000..f94add3 --- /dev/null +++ b/test/model/JoinAChannelRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.JoinAChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JoinAChannelRequest', function() { + it('should create an instance of JoinAChannelRequest', function() { + // uncomment below and update the code to test JoinAChannelRequest + //var instance = new SendbirdPlatformSdk.JoinAChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.JoinAChannelRequest); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.JoinAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property accessCode (base name: "access_code")', function() { + // uncomment below and update the code to test the property accessCode + //var instance = new SendbirdPlatformSdk.JoinAChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JoinChannelsData.spec.js b/test/model/JoinChannelsData.spec.js deleted file mode 100644 index dabbadc..0000000 --- a/test/model/JoinChannelsData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.JoinChannelsData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('JoinChannelsData', function() { - it('should create an instance of JoinChannelsData', function() { - // uncomment below and update the code to test JoinChannelsData - //var instance = new SendbirdPlatformSdk.JoinChannelsData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.JoinChannelsData); - }); - - it('should have the property botUserid (base name: "bot_userid")', function() { - // uncomment below and update the code to test the property botUserid - //var instance = new SendbirdPlatformSdk.JoinChannelsData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.JoinChannelsData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/JoinChannelsRequest.spec.js b/test/model/JoinChannelsRequest.spec.js new file mode 100644 index 0000000..ffa9328 --- /dev/null +++ b/test/model/JoinChannelsRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.JoinChannelsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('JoinChannelsRequest', function() { + it('should create an instance of JoinChannelsRequest', function() { + // uncomment below and update the code to test JoinChannelsRequest + //var instance = new SendbirdPlatformSdk.JoinChannelsRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.JoinChannelsRequest); + }); + + it('should have the property channelUrls (base name: "channel_urls")', function() { + // uncomment below and update the code to test the property channelUrls + //var instance = new SendbirdPlatformSdk.JoinChannelsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/JoinChannelsResponse.spec.js b/test/model/JoinChannelsResponse.spec.js deleted file mode 100644 index 069dc8b..0000000 --- a/test/model/JoinChannelsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.JoinChannelsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('JoinChannelsResponse', function() { - it('should create an instance of JoinChannelsResponse', function() { - // uncomment below and update the code to test JoinChannelsResponse - //var instance = new SendbirdPlatformSdk.JoinChannelsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.JoinChannelsResponse); - }); - - it('should have the property channels (base name: "channels")', function() { - // uncomment below and update the code to test the property channels - //var instance = new SendbirdPlatformSdk.JoinChannelsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LeaveAChannelRequest.spec.js b/test/model/LeaveAChannelRequest.spec.js new file mode 100644 index 0000000..7ac20eb --- /dev/null +++ b/test/model/LeaveAChannelRequest.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LeaveAChannelRequest', function() { + it('should create an instance of LeaveAChannelRequest', function() { + // uncomment below and update the code to test LeaveAChannelRequest + //var instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.LeaveAChannelRequest); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property shouldLeaveAll (base name: "should_leave_all")', function() { + // uncomment below and update the code to test the property shouldLeaveAll + //var instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property shouldRemoveOperatorStatus (base name: "should_remove_operator_status")', function() { + // uncomment below and update the code to test the property shouldRemoveOperatorStatus + //var instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property reason (base name: "reason")', function() { + // uncomment below and update the code to test the property reason + //var instance = new SendbirdPlatformSdk.LeaveAChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/LeaveMyGroupChannelsData.spec.js b/test/model/LeaveMyGroupChannelsData.spec.js deleted file mode 100644 index a350373..0000000 --- a/test/model/LeaveMyGroupChannelsData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('LeaveMyGroupChannelsData', function() { - it('should create an instance of LeaveMyGroupChannelsData', function() { - // uncomment below and update the code to test LeaveMyGroupChannelsData - //var instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.LeaveMyGroupChannelsData); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/LeaveMyGroupChannelsRequest.spec.js b/test/model/LeaveMyGroupChannelsRequest.spec.js new file mode 100644 index 0000000..05cbc25 --- /dev/null +++ b/test/model/LeaveMyGroupChannelsRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('LeaveMyGroupChannelsRequest', function() { + it('should create an instance of LeaveMyGroupChannelsRequest', function() { + // uncomment below and update the code to test LeaveMyGroupChannelsRequest + //var instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.LeaveMyGroupChannelsRequest); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.LeaveMyGroupChannelsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListAllEmojisAndEmojiCategoriesResponse.spec.js b/test/model/ListAllEmojisAndEmojiCategoriesResponse.spec.js deleted file mode 100644 index 375a84f..0000000 --- a/test/model/ListAllEmojisAndEmojiCategoriesResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAllEmojisAndEmojiCategoriesResponse', function() { - it('should create an instance of ListAllEmojisAndEmojiCategoriesResponse', function() { - // uncomment below and update the code to test ListAllEmojisAndEmojiCategoriesResponse - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse); - }); - - it('should have the property emojiHash (base name: "emoji_hash")', function() { - // uncomment below and update the code to test the property emojiHash - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property emojiCategories (base name: "emoji_categories")', function() { - // uncomment below and update the code to test the property emojiCategories - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.spec.js b/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.spec.js deleted file mode 100644 index ef24561..0000000 --- a/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner', function() { - it('should create an instance of ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner', function() { - // uncomment below and update the code to test ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - it('should have the property emojis (base name: "emojis")', function() { - // uncomment below and update the code to test the property emojis - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.spec.js b/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.spec.js deleted file mode 100644 index 57d93fd..0000000 --- a/test/model/ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner', function() { - it('should create an instance of ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner', function() { - // uncomment below and update the code to test ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - //expect(instance).to.be(); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ListAllEmojisAndEmojiCategoriesResponseEmojiCategoriesInnerEmojisInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListAnnouncementGroupsResponse.spec.js b/test/model/ListAnnouncementGroupsResponse.spec.js deleted file mode 100644 index 0662c5e..0000000 --- a/test/model/ListAnnouncementGroupsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAnnouncementGroupsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAnnouncementGroupsResponse', function() { - it('should create an instance of ListAnnouncementGroupsResponse', function() { - // uncomment below and update the code to test ListAnnouncementGroupsResponse - //var instance = new SendbirdPlatformSdk.ListAnnouncementGroupsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAnnouncementGroupsResponse); - }); - - it('should have the property announcementGroups (base name: "announcement_groups")', function() { - // uncomment below and update the code to test the property announcementGroups - //var instance = new SendbirdPlatformSdk.ListAnnouncementGroupsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListAnnouncementGroupsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListAnnouncementsResponse.spec.js b/test/model/ListAnnouncementsResponse.spec.js deleted file mode 100644 index 57a7f06..0000000 --- a/test/model/ListAnnouncementsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAnnouncementsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAnnouncementsResponse', function() { - it('should create an instance of ListAnnouncementsResponse', function() { - // uncomment below and update the code to test ListAnnouncementsResponse - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAnnouncementsResponse); - }); - - it('should have the property announcements (base name: "announcements")', function() { - // uncomment below and update the code to test the property announcements - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListAnnouncementsResponseAnnouncementsInner.spec.js b/test/model/ListAnnouncementsResponseAnnouncementsInner.spec.js deleted file mode 100644 index 8e7a2cc..0000000 --- a/test/model/ListAnnouncementsResponseAnnouncementsInner.spec.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListAnnouncementsResponseAnnouncementsInner', function() { - it('should create an instance of ListAnnouncementsResponseAnnouncementsInner', function() { - // uncomment below and update the code to test ListAnnouncementsResponseAnnouncementsInner - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetAt (base name: "target_at")', function() { - // uncomment below and update the code to test the property targetAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetUserCount (base name: "target_user_count")', function() { - // uncomment below and update the code to test the property targetUserCount - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelCount (base name: "target_channel_count")', function() { - // uncomment below and update the code to test the property targetChannelCount - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property ceaseAt (base name: "cease_at")', function() { - // uncomment below and update the code to test the property ceaseAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property resumeAt (base name: "resume_at")', function() { - // uncomment below and update the code to test the property resumeAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property completedAt (base name: "completed_at")', function() { - // uncomment below and update the code to test the property completedAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property sentUserCount (base name: "sent_user_count")', function() { - // uncomment below and update the code to test the property sentUserCount - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property openCount (base name: "open_count")', function() { - // uncomment below and update the code to test the property openCount - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property openRate (base name: "open_rate")', function() { - // uncomment below and update the code to test the property openRate - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createChannel (base name: "create_channel")', function() { - // uncomment below and update the code to test the property createChannel - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptions (base name: "create_channel_options")', function() { - // uncomment below and update the code to test the property createChannelOptions - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property markAsRead (base name: "mark_as_read")', function() { - // uncomment below and update the code to test the property markAsRead - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property sentChannelCount (base name: "sent_channel_count")', function() { - // uncomment below and update the code to test the property sentChannelCount - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelType (base name: "target_channel_type")', function() { - // uncomment below and update the code to test the property targetChannelType - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - it('should have the property targetCustomType (base name: "target_custom_type")', function() { - // uncomment below and update the code to test the property targetCustomType - //var instance = new SendbirdPlatformSdk.ListAnnouncementsResponseAnnouncementsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListBannedChannelsResponse.spec.js b/test/model/ListBannedChannelsResponse.spec.js deleted file mode 100644 index e26e45a..0000000 --- a/test/model/ListBannedChannelsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListBannedChannelsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListBannedChannelsResponse', function() { - it('should create an instance of ListBannedChannelsResponse', function() { - // uncomment below and update the code to test ListBannedChannelsResponse - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListBannedChannelsResponse); - }); - - it('should have the property bannedChannels (base name: "banned_channels")', function() { - // uncomment below and update the code to test the property bannedChannels - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListBannedChannelsResponseBannedChannelsInner.spec.js b/test/model/ListBannedChannelsResponseBannedChannelsInner.spec.js deleted file mode 100644 index 82c93ac..0000000 --- a/test/model/ListBannedChannelsResponseBannedChannelsInner.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListBannedChannelsResponseBannedChannelsInner', function() { - it('should create an instance of ListBannedChannelsResponseBannedChannelsInner', function() { - // uncomment below and update the code to test ListBannedChannelsResponseBannedChannelsInner - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.ListBannedChannelsResponseBannedChannelsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListBlockedUsersResponse.spec.js b/test/model/ListBlockedUsersResponse.spec.js index 72ace6c..a5bb9fe 100644 --- a/test/model/ListBlockedUsersResponse.spec.js +++ b/test/model/ListBlockedUsersResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ListBotsResponse.spec.js b/test/model/ListBotsResponse.spec.js index 42f98b2..79b6771 100644 --- a/test/model/ListBotsResponse.spec.js +++ b/test/model/ListBotsResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ListBotsResponseBotsInner.spec.js b/test/model/ListBotsResponseBotsInner.spec.js index 3456b2d..5c7dc7a 100644 --- a/test/model/ListBotsResponseBotsInner.spec.js +++ b/test/model/ListBotsResponseBotsInner.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -54,6 +54,12 @@ //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInner); }); + it('should have the property ai (base name: "ai")', function() { + // uncomment below and update the code to test the property ai + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); + //expect(instance).to.be(); + }); + it('should have the property bot (base name: "bot")', function() { // uncomment below and update the code to test the property bot //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); @@ -66,26 +72,50 @@ //expect(instance).to.be(); }); + it('should have the property botStyle (base name: "bot_style")', function() { + // uncomment below and update the code to test the property botStyle + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); + //expect(instance).to.be(); + }); + + it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { + // uncomment below and update the code to test the property channelInvitationPreference + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); + //expect(instance).to.be(); + }); + it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { // uncomment below and update the code to test the property enableMarkAsRead //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); //expect(instance).to.be(); }); + it('should have the property firstMessages (base name: "first_messages")', function() { + // uncomment below and update the code to test the property firstMessages + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); + //expect(instance).to.be(); + }); + it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { // uncomment below and update the code to test the property isPrivacyMode //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); //expect(instance).to.be(); }); - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember + it('should have the property safeguard (base name: "safeguard")', function() { + // uncomment below and update the code to test the property safeguard //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); //expect(instance).to.be(); }); - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference + it('should have the property showMember (base name: "show_member")', function() { + // uncomment below and update the code to test the property showMember //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInner(); //expect(instance).to.be(); }); diff --git a/test/model/ListBotsResponseBotsInnerAi.spec.js b/test/model/ListBotsResponseBotsInnerAi.spec.js new file mode 100644 index 0000000..ae8a263 --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerAi.spec.js @@ -0,0 +1,131 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerAi', function() { + it('should create an instance of ListBotsResponseBotsInnerAi', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerAi + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerAi); + }); + + it('should have the property backend (base name: "backend")', function() { + // uncomment below and update the code to test the property backend + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property feedback (base name: "feedback")', function() { + // uncomment below and update the code to test the property feedback + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property frequencyPenalty (base name: "frequency_penalty")', function() { + // uncomment below and update the code to test the property frequencyPenalty + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property instructionMode (base name: "instruction_mode")', function() { + // uncomment below and update the code to test the property instructionMode + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property maxTokens (base name: "max_tokens")', function() { + // uncomment below and update the code to test the property maxTokens + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property model (base name: "model")', function() { + // uncomment below and update the code to test the property model + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property presencePenalty (base name: "presence_penalty")', function() { + // uncomment below and update the code to test the property presencePenalty + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property stream (base name: "stream")', function() { + // uncomment below and update the code to test the property stream + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property systemMessage (base name: "system_message")', function() { + // uncomment below and update the code to test the property systemMessage + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property systemMessageForContextPrefix (base name: "system_message_for_context_prefix")', function() { + // uncomment below and update the code to test the property systemMessageForContextPrefix + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property temperature (base name: "temperature")', function() { + // uncomment below and update the code to test the property temperature + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + it('should have the property topP (base name: "top_p")', function() { + // uncomment below and update the code to test the property topP + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerAi(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerBot.spec.js b/test/model/ListBotsResponseBotsInnerBot.spec.js new file mode 100644 index 0000000..5f4d876 --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerBot.spec.js @@ -0,0 +1,107 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerBot', function() { + it('should create an instance of ListBotsResponseBotsInnerBot', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerBot + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerBot); + }); + + it('should have the property aiAgentType (base name: "ai_agent_type")', function() { + // uncomment below and update the code to test the property aiAgentType + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botMetadata (base name: "bot_metadata")', function() { + // uncomment below and update the code to test the property botMetadata + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botNickname (base name: "bot_nickname")', function() { + // uncomment below and update the code to test the property botNickname + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { + // uncomment below and update the code to test the property botProfileUrl + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botRequireAuthForProfileImage (base name: "bot_require_auth_for_profile_image")', function() { + // uncomment below and update the code to test the property botRequireAuthForProfileImage + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botToken (base name: "bot_token")', function() { + // uncomment below and update the code to test the property botToken + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botType (base name: "bot_type")', function() { + // uncomment below and update the code to test the property botType + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + it('should have the property botUserid (base name: "bot_userid")', function() { + // uncomment below and update the code to test the property botUserid + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBot(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerBotStyle.spec.js b/test/model/ListBotsResponseBotsInnerBotStyle.spec.js new file mode 100644 index 0000000..769cf9c --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerBotStyle.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerBotStyle', function() { + it('should create an instance of ListBotsResponseBotsInnerBotStyle', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerBotStyle + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle); + }); + + it('should have the property autoOpen (base name: "auto_open")', function() { + // uncomment below and update the code to test the property autoOpen + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property color (base name: "color")', function() { + // uncomment below and update the code to test the property color + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property toggleButtonType (base name: "toggle_button_type")', function() { + // uncomment below and update the code to test the property toggleButtonType + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + //expect(instance).to.be(); + }); + + it('should have the property toggleButtonUrl (base name: "toggle_button_url")', function() { + // uncomment below and update the code to test the property toggleButtonUrl + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyle(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerBotStyleColor.spec.js b/test/model/ListBotsResponseBotsInnerBotStyleColor.spec.js new file mode 100644 index 0000000..3482956 --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerBotStyleColor.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerBotStyleColor', function() { + it('should create an instance of ListBotsResponseBotsInnerBotStyleColor', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerBotStyleColor + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor); + }); + + it('should have the property accentColor (base name: "accent_color")', function() { + // uncomment below and update the code to test the property accentColor + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor(); + //expect(instance).to.be(); + }); + + it('should have the property botMessageColor (base name: "bot_message_color")', function() { + // uncomment below and update the code to test the property botMessageColor + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor(); + //expect(instance).to.be(); + }); + + it('should have the property theme (base name: "theme")', function() { + // uncomment below and update the code to test the property theme + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerBotStyleColor(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerFirstMessagesInner.spec.js b/test/model/ListBotsResponseBotsInnerFirstMessagesInner.spec.js new file mode 100644 index 0000000..4076d32 --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerFirstMessagesInner.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerFirstMessagesInner', function() { + it('should create an instance of ListBotsResponseBotsInnerFirstMessagesInner', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerFirstMessagesInner + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInner(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerFirstMessagesInnerData.spec.js b/test/model/ListBotsResponseBotsInnerFirstMessagesInnerData.spec.js new file mode 100644 index 0000000..fbd9eef --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerFirstMessagesInnerData.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInnerData(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerFirstMessagesInnerData', function() { + it('should create an instance of ListBotsResponseBotsInnerFirstMessagesInnerData', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerFirstMessagesInnerData + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInnerData(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInnerData); + }); + + it('should have the property suggestedReplies (base name: "suggested_replies")', function() { + // uncomment below and update the code to test the property suggestedReplies + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerFirstMessagesInnerData(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListBotsResponseBotsInnerSafeguard.spec.js b/test/model/ListBotsResponseBotsInnerSafeguard.spec.js new file mode 100644 index 0000000..9a07a60 --- /dev/null +++ b/test/model/ListBotsResponseBotsInnerSafeguard.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListBotsResponseBotsInnerSafeguard', function() { + it('should create an instance of ListBotsResponseBotsInnerSafeguard', function() { + // uncomment below and update the code to test ListBotsResponseBotsInnerSafeguard + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard); + }); + + it('should have the property bannedPhrases (base name: "banned_phrases")', function() { + // uncomment below and update the code to test the property bannedPhrases + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + //expect(instance).to.be(); + }); + + it('should have the property enabled (base name: "enabled")', function() { + // uncomment below and update the code to test the property enabled + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + //expect(instance).to.be(); + }); + + it('should have the property piiMasking (base name: "pii_masking")', function() { + // uncomment below and update the code to test the property piiMasking + //var instance = new SendbirdPlatformSdk.ListBotsResponseBotsInnerSafeguard(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListDataExportsByMessageChannelOrUserResponse.spec.js b/test/model/ListDataExportsByMessageChannelOrUserResponse.spec.js deleted file mode 100644 index bcc8ef1..0000000 --- a/test/model/ListDataExportsByMessageChannelOrUserResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListDataExportsByMessageChannelOrUserResponse', function() { - it('should create an instance of ListDataExportsByMessageChannelOrUserResponse', function() { - // uncomment below and update the code to test ListDataExportsByMessageChannelOrUserResponse - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse); - }); - - it('should have the property exportedData (base name: "exported_data")', function() { - // uncomment below and update the code to test the property exportedData - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.spec.js b/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.spec.js deleted file mode 100644 index e4981a3..0000000 --- a/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInner.spec.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListDataExportsByMessageChannelOrUserResponseExportedDataInner', function() { - it('should create an instance of ListDataExportsByMessageChannelOrUserResponseExportedDataInner', function() { - // uncomment below and update the code to test ListDataExportsByMessageChannelOrUserResponseExportedDataInner - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property format (base name: "format")', function() { - // uncomment below and update the code to test the property format - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property csvDelimiter (base name: "csv_delimiter")', function() { - // uncomment below and update the code to test the property csvDelimiter - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property startTs (base name: "start_ts")', function() { - // uncomment below and update the code to test the property startTs - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property endTs (base name: "end_ts")', function() { - // uncomment below and update the code to test the property endTs - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property senderIds (base name: "sender_ids")', function() { - // uncomment below and update the code to test the property senderIds - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.spec.js b/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.spec.js deleted file mode 100644 index 1a81129..0000000 --- a/test/model/ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile', function() { - it('should create an instance of ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile', function() { - // uncomment below and update the code to test ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - //expect(instance).to.be(); - }); - - it('should have the property expiresAt (base name: "expires_at")', function() { - // uncomment below and update the code to test the property expiresAt - //var instance = new SendbirdPlatformSdk.ListDataExportsByMessageChannelOrUserResponseExportedDataInnerFile(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListEmojisResponse.spec.js b/test/model/ListEmojisResponse.spec.js deleted file mode 100644 index 16dcfbd..0000000 --- a/test/model/ListEmojisResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListEmojisResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListEmojisResponse', function() { - it('should create an instance of ListEmojisResponse', function() { - // uncomment below and update the code to test ListEmojisResponse - //var instance = new SendbirdPlatformSdk.ListEmojisResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListEmojisResponse); - }); - - it('should have the property emojis (base name: "emojis")', function() { - // uncomment below and update the code to test the property emojis - //var instance = new SendbirdPlatformSdk.ListEmojisResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListGdprRequestsResponse.spec.js b/test/model/ListGdprRequestsResponse.spec.js deleted file mode 100644 index 6766c35..0000000 --- a/test/model/ListGdprRequestsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListGdprRequestsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListGdprRequestsResponse', function() { - it('should create an instance of ListGdprRequestsResponse', function() { - // uncomment below and update the code to test ListGdprRequestsResponse - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListGdprRequestsResponse); - }); - - it('should have the property requests (base name: "requests")', function() { - // uncomment below and update the code to test the property requests - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListGdprRequestsResponseRequestsInner.spec.js b/test/model/ListGdprRequestsResponseRequestsInner.spec.js deleted file mode 100644 index d5698ea..0000000 --- a/test/model/ListGdprRequestsResponseRequestsInner.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListGdprRequestsResponseRequestsInner', function() { - it('should create an instance of ListGdprRequestsResponseRequestsInner', function() { - // uncomment below and update the code to test ListGdprRequestsResponseRequestsInner - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property files (base name: "files")', function() { - // uncomment below and update the code to test the property files - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property channelDeleteOption (base name: "channel_delete_option")', function() { - // uncomment below and update the code to test the property channelDeleteOption - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListGdprRequestsResponseRequestsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMessagesResponse.spec.js b/test/model/ListMessagesResponse.spec.js index e609e79..baad099 100644 --- a/test/model/ListMessagesResponse.spec.js +++ b/test/model/ListMessagesResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ListMessagesResponseMessagesInner.spec.js b/test/model/ListMessagesResponseMessagesInner.spec.js deleted file mode 100644 index 75fae22..0000000 --- a/test/model/ListMessagesResponseMessagesInner.spec.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMessagesResponseMessagesInner', function() { - it('should create an instance of ListMessagesResponseMessagesInner', function() { - // uncomment below and update the code to test ListMessagesResponseMessagesInner - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMessagesResponseMessagesInner); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property translations (base name: "translations")', function() { - // uncomment below and update the code to test the property translations - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property isOpMsg (base name: "is_op_msg")', function() { - // uncomment below and update the code to test the property isOpMsg - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property isRemoved (base name: "is_removed")', function() { - // uncomment below and update the code to test the property isRemoved - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property messageRetentionHour (base name: "message_retention_hour")', function() { - // uncomment below and update the code to test the property messageRetentionHour - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property silent (base name: "silent")', function() { - // uncomment below and update the code to test the property silent - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property reqId (base name: "req_id")', function() { - // uncomment below and update the code to test the property reqId - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - it('should have the property ogTag (base name: "og_tag")', function() { - // uncomment below and update the code to test the property ogTag - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMessagesResponseMessagesInnerOgTag.spec.js b/test/model/ListMessagesResponseMessagesInnerOgTag.spec.js deleted file mode 100644 index e344fed..0000000 --- a/test/model/ListMessagesResponseMessagesInnerOgTag.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMessagesResponseMessagesInnerOgTag', function() { - it('should create an instance of ListMessagesResponseMessagesInnerOgTag', function() { - // uncomment below and update the code to test ListMessagesResponseMessagesInnerOgTag - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag); - }); - - it('should have the property ogurl (base name: "og:url")', function() { - // uncomment below and update the code to test the property ogurl - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - //expect(instance).to.be(); - }); - - it('should have the property ogtitle (base name: "og:title")', function() { - // uncomment below and update the code to test the property ogtitle - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - //expect(instance).to.be(); - }); - - it('should have the property ogdescription (base name: "og:description")', function() { - // uncomment below and update the code to test the property ogdescription - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - //expect(instance).to.be(); - }); - - it('should have the property ogimage (base name: "og:image")', function() { - // uncomment below and update the code to test the property ogimage - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTag(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMessagesResponseMessagesInnerOgTagOgImage.spec.js b/test/model/ListMessagesResponseMessagesInnerOgTagOgImage.spec.js deleted file mode 100644 index a958d0c..0000000 --- a/test/model/ListMessagesResponseMessagesInnerOgTagOgImage.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMessagesResponseMessagesInnerOgTagOgImage', function() { - it('should create an instance of ListMessagesResponseMessagesInnerOgTagOgImage', function() { - // uncomment below and update the code to test ListMessagesResponseMessagesInnerOgTagOgImage - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - //expect(instance).to.be(); - }); - - it('should have the property secureUrl (base name: "secure_url")', function() { - // uncomment below and update the code to test the property secureUrl - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - //expect(instance).to.be(); - }); - - it('should have the property width (base name: "width")', function() { - // uncomment below and update the code to test the property width - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - //expect(instance).to.be(); - }); - - it('should have the property height (base name: "height")', function() { - // uncomment below and update the code to test the property height - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerOgTagOgImage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.spec.js b/test/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.spec.js deleted file mode 100644 index c12099c..0000000 --- a/test/model/ListMessagesResponseMessagesInnerSortedMetaarrayInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMessagesResponseMessagesInnerSortedMetaarrayInner', function() { - it('should create an instance of ListMessagesResponseMessagesInnerSortedMetaarrayInner', function() { - // uncomment below and update the code to test ListMessagesResponseMessagesInnerSortedMetaarrayInner - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instance = new SendbirdPlatformSdk.ListMessagesResponseMessagesInnerSortedMetaarrayInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMutedChannelsResponse.spec.js b/test/model/ListMutedChannelsResponse.spec.js deleted file mode 100644 index 07c116b..0000000 --- a/test/model/ListMutedChannelsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMutedChannelsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMutedChannelsResponse', function() { - it('should create an instance of ListMutedChannelsResponse', function() { - // uncomment below and update the code to test ListMutedChannelsResponse - //var instance = new SendbirdPlatformSdk.ListMutedChannelsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMutedChannelsResponse); - }); - - it('should have the property mutedChannels (base name: "muted_channels")', function() { - // uncomment below and update the code to test the property mutedChannels - //var instance = new SendbirdPlatformSdk.ListMutedChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListMutedChannelsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMutedUsersInChannelsWithCustomChannelType200Response.spec.js b/test/model/ListMutedUsersInChannelsWithCustomChannelType200Response.spec.js deleted file mode 100644 index 7e931fc..0000000 --- a/test/model/ListMutedUsersInChannelsWithCustomChannelType200Response.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListMutedUsersInChannelsWithCustomChannelType200Response', function() { - it('should create an instance of ListMutedUsersInChannelsWithCustomChannelType200Response', function() { - // uncomment below and update the code to test ListMutedUsersInChannelsWithCustomChannelType200Response - //var instance = new SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response); - }); - - it('should have the property mutedList (base name: "muted_list")', function() { - // uncomment below and update the code to test the property mutedList - //var instance = new SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListMutedUsersInChannelsWithCustomChannelType200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListMyGroupChannelsResponse.spec.js b/test/model/ListMyGroupChannelsResponse.spec.js index 8500675..b684283 100644 --- a/test/model/ListMyGroupChannelsResponse.spec.js +++ b/test/model/ListMyGroupChannelsResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ListOpenChannelsResponse.spec.js b/test/model/ListOpenChannelsResponse.spec.js new file mode 100644 index 0000000..09ae4f2 --- /dev/null +++ b/test/model/ListOpenChannelsResponse.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListOpenChannelsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListOpenChannelsResponse', function() { + it('should create an instance of ListOpenChannelsResponse', function() { + // uncomment below and update the code to test ListOpenChannelsResponse + //var instance = new SendbirdPlatformSdk.ListOpenChannelsResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListOpenChannelsResponse); + }); + + it('should have the property channels (base name: "channels")', function() { + // uncomment below and update the code to test the property channels + //var instance = new SendbirdPlatformSdk.ListOpenChannelsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next + //var instance = new SendbirdPlatformSdk.ListOpenChannelsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ts (base name: "ts")', function() { + // uncomment below and update the code to test the property ts + //var instance = new SendbirdPlatformSdk.ListOpenChannelsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListOperatorsResponse.spec.js b/test/model/ListOperatorsResponse.spec.js new file mode 100644 index 0000000..87804fb --- /dev/null +++ b/test/model/ListOperatorsResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ListOperatorsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ListOperatorsResponse', function() { + it('should create an instance of ListOperatorsResponse', function() { + // uncomment below and update the code to test ListOperatorsResponse + //var instance = new SendbirdPlatformSdk.ListOperatorsResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ListOperatorsResponse); + }); + + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next + //var instance = new SendbirdPlatformSdk.ListOperatorsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property operators (base name: "operators")', function() { + // uncomment below and update the code to test the property operators + //var instance = new SendbirdPlatformSdk.ListOperatorsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ListPushConfigurationsResponse.spec.js b/test/model/ListPushConfigurationsResponse.spec.js deleted file mode 100644 index 76d71c1..0000000 --- a/test/model/ListPushConfigurationsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListPushConfigurationsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListPushConfigurationsResponse', function() { - it('should create an instance of ListPushConfigurationsResponse', function() { - // uncomment below and update the code to test ListPushConfigurationsResponse - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListPushConfigurationsResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListPushConfigurationsResponsePushConfigurationsInner.spec.js b/test/model/ListPushConfigurationsResponsePushConfigurationsInner.spec.js deleted file mode 100644 index cc4d712..0000000 --- a/test/model/ListPushConfigurationsResponsePushConfigurationsInner.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListPushConfigurationsResponsePushConfigurationsInner', function() { - it('should create an instance of ListPushConfigurationsResponsePushConfigurationsInner', function() { - // uncomment below and update the code to test ListPushConfigurationsResponsePushConfigurationsInner - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushType (base name: "push_type")', function() { - // uncomment below and update the code to test the property pushType - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property senderId (base name: "sender_id")', function() { - // uncomment below and update the code to test the property senderId - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.ListPushConfigurationsResponsePushConfigurationsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListPushNotificationContentTemplatesResponse.spec.js b/test/model/ListPushNotificationContentTemplatesResponse.spec.js deleted file mode 100644 index 7d35cfe..0000000 --- a/test/model/ListPushNotificationContentTemplatesResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListPushNotificationContentTemplatesResponse', function() { - it('should create an instance of ListPushNotificationContentTemplatesResponse', function() { - // uncomment below and update the code to test ListPushNotificationContentTemplatesResponse - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponse); - }); - - it('should have the property pushMessageTemplates (base name: "push_message_templates")', function() { - // uncomment below and update the code to test the property pushMessageTemplates - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.spec.js b/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.spec.js deleted file mode 100644 index 0d6de94..0000000 --- a/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner', function() { - it('should create an instance of ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner', function() { - // uncomment below and update the code to test ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner); - }); - - it('should have the property templateName (base name: "template_name")', function() { - // uncomment below and update the code to test the property templateName - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.spec.js b/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.spec.js deleted file mode 100644 index 46b8218..0000000 --- a/test/model/ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate', function() { - it('should create an instance of ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate', function() { - // uncomment below and update the code to test ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate); - }); - - it('should have the property MESG (base name: "MESG")', function() { - // uncomment below and update the code to test the property MESG - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - //expect(instance).to.be(); - }); - - it('should have the property FILE (base name: "FILE")', function() { - // uncomment below and update the code to test the property FILE - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - //expect(instance).to.be(); - }); - - it('should have the property ADMM (base name: "ADMM")', function() { - // uncomment below and update the code to test the property ADMM - //var instance = new SendbirdPlatformSdk.ListPushNotificationContentTemplatesResponsePushMessageTemplatesInnerTemplate(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReactionsOfMessageResponse.spec.js b/test/model/ListReactionsOfMessageResponse.spec.js deleted file mode 100644 index c1c02fd..0000000 --- a/test/model/ListReactionsOfMessageResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReactionsOfMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReactionsOfMessageResponse', function() { - it('should create an instance of ListReactionsOfMessageResponse', function() { - // uncomment below and update the code to test ListReactionsOfMessageResponse - //var instance = new SendbirdPlatformSdk.ListReactionsOfMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReactionsOfMessageResponse); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.ListReactionsOfMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListRegistrationOrDeviceTokensResponse.spec.js b/test/model/ListRegistrationOrDeviceTokensResponse.spec.js index b8da089..1b571f8 100644 --- a/test/model/ListRegistrationOrDeviceTokensResponse.spec.js +++ b/test/model/ListRegistrationOrDeviceTokensResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ListReportsOnChannelByUrlResponse.spec.js b/test/model/ListReportsOnChannelByUrlResponse.spec.js deleted file mode 100644 index c7bbe34..0000000 --- a/test/model/ListReportsOnChannelByUrlResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsOnChannelByUrlResponse', function() { - it('should create an instance of ListReportsOnChannelByUrlResponse', function() { - // uncomment below and update the code to test ListReportsOnChannelByUrlResponse - //var instance = new SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse); - }); - - it('should have the property reportLogs (base name: "report_logs")', function() { - // uncomment below and update the code to test the property reportLogs - //var instance = new SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListReportsOnChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReportsOnMessageByIdResponse.spec.js b/test/model/ListReportsOnMessageByIdResponse.spec.js deleted file mode 100644 index e2f2f85..0000000 --- a/test/model/ListReportsOnMessageByIdResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsOnMessageByIdResponse', function() { - it('should create an instance of ListReportsOnMessageByIdResponse', function() { - // uncomment below and update the code to test ListReportsOnMessageByIdResponse - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsOnMessageByIdResponse); - }); - - it('should have the property reportLogs (base name: "report_logs")', function() { - // uncomment below and update the code to test the property reportLogs - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReportsOnMessageByIdResponseReportLogsInner.spec.js b/test/model/ListReportsOnMessageByIdResponseReportLogsInner.spec.js deleted file mode 100644 index 2950048..0000000 --- a/test/model/ListReportsOnMessageByIdResponseReportLogsInner.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsOnMessageByIdResponseReportLogsInner', function() { - it('should create an instance of ListReportsOnMessageByIdResponseReportLogsInner', function() { - // uncomment below and update the code to test ListReportsOnMessageByIdResponseReportLogsInner - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner); - }); - - it('should have the property reportType (base name: "report_type")', function() { - // uncomment below and update the code to test the property reportType - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUser (base name: "reporting_user")', function() { - // uncomment below and update the code to test the property reportingUser - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUser (base name: "offending_user")', function() { - // uncomment below and update the code to test the property offendingUser - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportedMessage (base name: "reported_message")', function() { - // uncomment below and update the code to test the property reportedMessage - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListReportsOnMessageByIdResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReportsOnUserByIdResponse.spec.js b/test/model/ListReportsOnUserByIdResponse.spec.js deleted file mode 100644 index 116780d..0000000 --- a/test/model/ListReportsOnUserByIdResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsOnUserByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsOnUserByIdResponse', function() { - it('should create an instance of ListReportsOnUserByIdResponse', function() { - // uncomment below and update the code to test ListReportsOnUserByIdResponse - //var instance = new SendbirdPlatformSdk.ListReportsOnUserByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsOnUserByIdResponse); - }); - - it('should have the property reportLogs (base name: "report_logs")', function() { - // uncomment below and update the code to test the property reportLogs - //var instance = new SendbirdPlatformSdk.ListReportsOnUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListReportsOnUserByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReportsResponse.spec.js b/test/model/ListReportsResponse.spec.js deleted file mode 100644 index 7ba9205..0000000 --- a/test/model/ListReportsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsResponse', function() { - it('should create an instance of ListReportsResponse', function() { - // uncomment below and update the code to test ListReportsResponse - //var instance = new SendbirdPlatformSdk.ListReportsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsResponse); - }); - - it('should have the property reportLogs (base name: "report_logs")', function() { - // uncomment below and update the code to test the property reportLogs - //var instance = new SendbirdPlatformSdk.ListReportsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.ListReportsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListReportsResponseReportLogsInner.spec.js b/test/model/ListReportsResponseReportLogsInner.spec.js deleted file mode 100644 index f9659c5..0000000 --- a/test/model/ListReportsResponseReportLogsInner.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListReportsResponseReportLogsInner', function() { - it('should create an instance of ListReportsResponseReportLogsInner', function() { - // uncomment below and update the code to test ListReportsResponseReportLogsInner - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListReportsResponseReportLogsInner); - }); - - it('should have the property reportingUser (base name: "reporting_user")', function() { - // uncomment below and update the code to test the property reportingUser - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportType (base name: "report_type")', function() { - // uncomment below and update the code to test the property reportType - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUser (base name: "offending_user")', function() { - // uncomment below and update the code to test the property offendingUser - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportedMessage (base name: "reported_message")', function() { - // uncomment below and update the code to test the property reportedMessage - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListReportsResponseReportLogsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListSecondaryApiTokensResponse.spec.js b/test/model/ListSecondaryApiTokensResponse.spec.js deleted file mode 100644 index 162828b..0000000 --- a/test/model/ListSecondaryApiTokensResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListSecondaryApiTokensResponse', function() { - it('should create an instance of ListSecondaryApiTokensResponse', function() { - // uncomment below and update the code to test ListSecondaryApiTokensResponse - //var instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListSecondaryApiTokensResponse); - }); - - it('should have the property apiTokens (base name: "api_tokens")', function() { - // uncomment below and update the code to test the property apiTokens - //var instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListSecondaryApiTokensResponseApiTokensInner.spec.js b/test/model/ListSecondaryApiTokensResponseApiTokensInner.spec.js deleted file mode 100644 index 05dee5b..0000000 --- a/test/model/ListSecondaryApiTokensResponseApiTokensInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ListSecondaryApiTokensResponseApiTokensInner', function() { - it('should create an instance of ListSecondaryApiTokensResponseApiTokensInner', function() { - // uncomment below and update the code to test ListSecondaryApiTokensResponseApiTokensInner - //var instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ListSecondaryApiTokensResponseApiTokensInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ListUsersResponse.spec.js b/test/model/ListUsersResponse.spec.js index cac7597..afd681b 100644 --- a/test/model/ListUsersResponse.spec.js +++ b/test/model/ListUsersResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -54,14 +54,14 @@ //expect(instance).to.be.a(SendbirdPlatformSdk.ListUsersResponse); }); - it('should have the property users (base name: "users")', function() { - // uncomment below and update the code to test the property users + it('should have the property next (base name: "next")', function() { + // uncomment below and update the code to test the property next //var instance = new SendbirdPlatformSdk.ListUsersResponse(); //expect(instance).to.be(); }); - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next + it('should have the property users (base name: "users")', function() { + // uncomment below and update the code to test the property users //var instance = new SendbirdPlatformSdk.ListUsersResponse(); //expect(instance).to.be(); }); diff --git a/test/model/MarkAllMessagesAsReadData.spec.js b/test/model/MarkAllMessagesAsReadData.spec.js deleted file mode 100644 index 7c4319a..0000000 --- a/test/model/MarkAllMessagesAsReadData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MarkAllMessagesAsReadData', function() { - it('should create an instance of MarkAllMessagesAsReadData', function() { - // uncomment below and update the code to test MarkAllMessagesAsReadData - //var instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.MarkAllMessagesAsReadData); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/MarkAllMessagesAsReadRequest.spec.js b/test/model/MarkAllMessagesAsReadRequest.spec.js new file mode 100644 index 0000000..190224c --- /dev/null +++ b/test/model/MarkAllMessagesAsReadRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MarkAllMessagesAsReadRequest', function() { + it('should create an instance of MarkAllMessagesAsReadRequest', function() { + // uncomment below and update the code to test MarkAllMessagesAsReadRequest + //var instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.MarkAllMessagesAsReadRequest); + }); + + it('should have the property channelUrls (base name: "channel_urls")', function() { + // uncomment below and update the code to test the property channelUrls + //var instance = new SendbirdPlatformSdk.MarkAllMessagesAsReadRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MarkChannelMessagesAsReadRequest.spec.js b/test/model/MarkChannelMessagesAsReadRequest.spec.js new file mode 100644 index 0000000..f6c74cf --- /dev/null +++ b/test/model/MarkChannelMessagesAsReadRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MarkChannelMessagesAsReadRequest', function() { + it('should create an instance of MarkChannelMessagesAsReadRequest', function() { + // uncomment below and update the code to test MarkChannelMessagesAsReadRequest + //var instance = new SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.MarkChannelMessagesAsReadRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MuteInChannelsWithCustomChannelTypesData.spec.js b/test/model/MuteInChannelsWithCustomChannelTypesData.spec.js deleted file mode 100644 index 88005fa..0000000 --- a/test/model/MuteInChannelsWithCustomChannelTypesData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MuteInChannelsWithCustomChannelTypesData', function() { - it('should create an instance of MuteInChannelsWithCustomChannelTypesData', function() { - // uncomment below and update the code to test MuteInChannelsWithCustomChannelTypesData - //var instance = new SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData); - }); - - it('should have the property channelCustomTypes (base name: "channel_custom_types")', function() { - // uncomment below and update the code to test the property channelCustomTypes - //var instance = new SendbirdPlatformSdk.MuteInChannelsWithCustomChannelTypesData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/MuteUsersInChannelsWithCustomChannelTypeData.spec.js b/test/model/MuteUsersInChannelsWithCustomChannelTypeData.spec.js deleted file mode 100644 index 17682c6..0000000 --- a/test/model/MuteUsersInChannelsWithCustomChannelTypeData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('MuteUsersInChannelsWithCustomChannelTypeData', function() { - it('should create an instance of MuteUsersInChannelsWithCustomChannelTypeData', function() { - // uncomment below and update the code to test MuteUsersInChannelsWithCustomChannelTypeData - //var instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - it('should have the property onDemandUpsert (base name: "on_demand_upsert")', function() { - // uncomment below and update the code to test the property onDemandUpsert - //var instance = new SendbirdPlatformSdk.MuteUsersInChannelsWithCustomChannelTypeData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcBanUserData.spec.js b/test/model/OcBanUserData.spec.js deleted file mode 100644 index 47b5158..0000000 --- a/test/model/OcBanUserData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcBanUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcBanUserData', function() { - it('should create an instance of OcBanUserData', function() { - // uncomment below and update the code to test OcBanUserData - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcBanUserData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property agentId (base name: "agent_id")', function() { - // uncomment below and update the code to test the property agentId - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcBanUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcBanUserResponse.spec.js b/test/model/OcBanUserResponse.spec.js deleted file mode 100644 index 0e640a9..0000000 --- a/test/model/OcBanUserResponse.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcBanUserResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcBanUserResponse', function() { - it('should create an instance of OcBanUserResponse', function() { - // uncomment below and update the code to test OcBanUserResponse - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcBanUserResponse); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nextUrl (base name: "next_url")', function() { - // uncomment below and update the code to test the property nextUrl - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.OcBanUserResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcCreateChannelData.spec.js b/test/model/OcCreateChannelData.spec.js deleted file mode 100644 index ac0ba09..0000000 --- a/test/model/OcCreateChannelData.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcCreateChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcCreateChannelData', function() { - it('should create an instance of OcCreateChannelData', function() { - // uncomment below and update the code to test OcCreateChannelData - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcCreateChannelData); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property coverFile (base name: "cover_file")', function() { - // uncomment below and update the code to test the property coverFile - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property isDynamicPartitioned2HowDynamicPartitioningWorks (base name: "[is_dynamic_partitioned](#2-how-dynamic-partitioning-works)")', function() { - // uncomment below and update the code to test the property isDynamicPartitioned2HowDynamicPartitioningWorks - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.OcCreateChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcDeleteChannelByUrl200Response.spec.js b/test/model/OcDeleteChannelByUrl200Response.spec.js deleted file mode 100644 index 4ef1bfa..0000000 --- a/test/model/OcDeleteChannelByUrl200Response.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcDeleteChannelByUrl200Response(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcDeleteChannelByUrl200Response', function() { - it('should create an instance of OcDeleteChannelByUrl200Response', function() { - // uncomment below and update the code to test OcDeleteChannelByUrl200Response - //var instance = new SendbirdPlatformSdk.OcDeleteChannelByUrl200Response(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcDeleteChannelByUrl200Response); - }); - - it('should have the property anyOf (base name: "anyOf")', function() { - // uncomment below and update the code to test the property anyOf - //var instance = new SendbirdPlatformSdk.OcDeleteChannelByUrl200Response(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcFreezeChannelData.spec.js b/test/model/OcFreezeChannelData.spec.js deleted file mode 100644 index 98d2bf2..0000000 --- a/test/model/OcFreezeChannelData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcFreezeChannelData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcFreezeChannelData', function() { - it('should create an instance of OcFreezeChannelData', function() { - // uncomment below and update the code to test OcFreezeChannelData - //var instance = new SendbirdPlatformSdk.OcFreezeChannelData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcFreezeChannelData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcFreezeChannelData(); - //expect(instance).to.be(); - }); - - it('should have the property freeze (base name: "freeze")', function() { - // uncomment below and update the code to test the property freeze - //var instance = new SendbirdPlatformSdk.OcFreezeChannelData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListBannedUsersResponse.spec.js b/test/model/OcListBannedUsersResponse.spec.js deleted file mode 100644 index 688bb20..0000000 --- a/test/model/OcListBannedUsersResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListBannedUsersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListBannedUsersResponse', function() { - it('should create an instance of OcListBannedUsersResponse', function() { - // uncomment below and update the code to test OcListBannedUsersResponse - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListBannedUsersResponse); - }); - - it('should have the property bannedList (base name: "banned_list")', function() { - // uncomment below and update the code to test the property bannedList - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property totalBanCount (base name: "total_ban_count")', function() { - // uncomment below and update the code to test the property totalBanCount - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListBannedUsersResponseBannedListInner.spec.js b/test/model/OcListBannedUsersResponseBannedListInner.spec.js deleted file mode 100644 index 12c0f5e..0000000 --- a/test/model/OcListBannedUsersResponseBannedListInner.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListBannedUsersResponseBannedListInner', function() { - it('should create an instance of OcListBannedUsersResponseBannedListInner', function() { - // uncomment below and update the code to test OcListBannedUsersResponseBannedListInner - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcListBannedUsersResponseBannedListInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListChannelsResponse.spec.js b/test/model/OcListChannelsResponse.spec.js deleted file mode 100644 index 2a028fa..0000000 --- a/test/model/OcListChannelsResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListChannelsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListChannelsResponse', function() { - it('should create an instance of OcListChannelsResponse', function() { - // uncomment below and update the code to test OcListChannelsResponse - //var instance = new SendbirdPlatformSdk.OcListChannelsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListChannelsResponse); - }); - - it('should have the property channels (base name: "channels")', function() { - // uncomment below and update the code to test the property channels - //var instance = new SendbirdPlatformSdk.OcListChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.OcListChannelsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ts (base name: "ts")', function() { - // uncomment below and update the code to test the property ts - //var instance = new SendbirdPlatformSdk.OcListChannelsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListMutedUsersResponse.spec.js b/test/model/OcListMutedUsersResponse.spec.js deleted file mode 100644 index f60d62f..0000000 --- a/test/model/OcListMutedUsersResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListMutedUsersResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListMutedUsersResponse', function() { - it('should create an instance of OcListMutedUsersResponse', function() { - // uncomment below and update the code to test OcListMutedUsersResponse - //var instance = new SendbirdPlatformSdk.OcListMutedUsersResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListMutedUsersResponse); - }); - - it('should have the property mutedList (base name: "muted_list")', function() { - // uncomment below and update the code to test the property mutedList - //var instance = new SendbirdPlatformSdk.OcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property totalMuteCount (base name: "total_mute_count")', function() { - // uncomment below and update the code to test the property totalMuteCount - //var instance = new SendbirdPlatformSdk.OcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.OcListMutedUsersResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListOperatorsResponse.spec.js b/test/model/OcListOperatorsResponse.spec.js deleted file mode 100644 index 0f5ac8b..0000000 --- a/test/model/OcListOperatorsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListOperatorsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListOperatorsResponse', function() { - it('should create an instance of OcListOperatorsResponse', function() { - // uncomment below and update the code to test OcListOperatorsResponse - //var instance = new SendbirdPlatformSdk.OcListOperatorsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListOperatorsResponse); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.OcListOperatorsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.OcListOperatorsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcListParticipantsResponse.spec.js b/test/model/OcListParticipantsResponse.spec.js deleted file mode 100644 index 37bf0ba..0000000 --- a/test/model/OcListParticipantsResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcListParticipantsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcListParticipantsResponse', function() { - it('should create an instance of OcListParticipantsResponse', function() { - // uncomment below and update the code to test OcListParticipantsResponse - //var instance = new SendbirdPlatformSdk.OcListParticipantsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcListParticipantsResponse); - }); - - it('should have the property participants (base name: "participants")', function() { - // uncomment below and update the code to test the property participants - //var instance = new SendbirdPlatformSdk.OcListParticipantsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property next (base name: "next")', function() { - // uncomment below and update the code to test the property next - //var instance = new SendbirdPlatformSdk.OcListParticipantsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcMuteUserData.spec.js b/test/model/OcMuteUserData.spec.js deleted file mode 100644 index 6cbcab0..0000000 --- a/test/model/OcMuteUserData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcMuteUserData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcMuteUserData', function() { - it('should create an instance of OcMuteUserData', function() { - // uncomment below and update the code to test OcMuteUserData - //var instance = new SendbirdPlatformSdk.OcMuteUserData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcMuteUserData); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.OcMuteUserData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.OcMuteUserData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcMuteUserData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcRegisterOperatorsData.spec.js b/test/model/OcRegisterOperatorsData.spec.js deleted file mode 100644 index ec82b64..0000000 --- a/test/model/OcRegisterOperatorsData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcRegisterOperatorsData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcRegisterOperatorsData', function() { - it('should create an instance of OcRegisterOperatorsData', function() { - // uncomment below and update the code to test OcRegisterOperatorsData - //var instance = new SendbirdPlatformSdk.OcRegisterOperatorsData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcRegisterOperatorsData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcRegisterOperatorsData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.OcRegisterOperatorsData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcUpdateBanByIdData.spec.js b/test/model/OcUpdateBanByIdData.spec.js deleted file mode 100644 index dbc9b1e..0000000 --- a/test/model/OcUpdateBanByIdData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcUpdateBanByIdData', function() { - it('should create an instance of OcUpdateBanByIdData', function() { - // uncomment below and update the code to test OcUpdateBanByIdData - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcUpdateBanByIdData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property bannedUserId (base name: "banned_user_id")', function() { - // uncomment below and update the code to test the property bannedUserId - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property seconds (base name: "seconds")', function() { - // uncomment below and update the code to test the property seconds - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcUpdateBanByIdResponse.spec.js b/test/model/OcUpdateBanByIdResponse.spec.js deleted file mode 100644 index f1fe59e..0000000 --- a/test/model/OcUpdateBanByIdResponse.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcUpdateBanByIdResponse', function() { - it('should create an instance of OcUpdateBanByIdResponse', function() { - // uncomment below and update the code to test OcUpdateBanByIdResponse - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcUpdateBanByIdResponse); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.OcUpdateBanByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcUpdateChannelByUrlData.spec.js b/test/model/OcUpdateChannelByUrlData.spec.js deleted file mode 100644 index dd930b9..0000000 --- a/test/model/OcUpdateChannelByUrlData.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcUpdateChannelByUrlData', function() { - it('should create an instance of OcUpdateChannelByUrlData', function() { - // uncomment below and update the code to test OcUpdateChannelByUrlData - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcUpdateChannelByUrlData); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property coverFile (base name: "cover_file")', function() { - // uncomment below and update the code to test the property coverFile - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property operatorIds (base name: "operator_ids")', function() { - // uncomment below and update the code to test the property operatorIds - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.OcUpdateChannelByUrlData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcViewBanByIdResponse.spec.js b/test/model/OcViewBanByIdResponse.spec.js deleted file mode 100644 index b6384b4..0000000 --- a/test/model/OcViewBanByIdResponse.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcViewBanByIdResponse', function() { - it('should create an instance of OcViewBanByIdResponse', function() { - // uncomment below and update the code to test OcViewBanByIdResponse - //var instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcViewBanByIdResponse); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.OcViewBanByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/OcViewMuteByIdResponse.spec.js b/test/model/OcViewMuteByIdResponse.spec.js deleted file mode 100644 index d155368..0000000 --- a/test/model/OcViewMuteByIdResponse.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('OcViewMuteByIdResponse', function() { - it('should create an instance of OcViewMuteByIdResponse', function() { - // uncomment below and update the code to test OcViewMuteByIdResponse - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.OcViewMuteByIdResponse); - }); - - it('should have the property isMuted (base name: "is_muted")', function() { - // uncomment below and update the code to test the property isMuted - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property remainingDuration (base name: "remaining_duration")', function() { - // uncomment below and update the code to test the property remainingDuration - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.OcViewMuteByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterAndScheduleDataExportData.spec.js b/test/model/RegisterAndScheduleDataExportData.spec.js deleted file mode 100644 index 0bb7ef3..0000000 --- a/test/model/RegisterAndScheduleDataExportData.spec.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegisterAndScheduleDataExportData', function() { - it('should create an instance of RegisterAndScheduleDataExportData', function() { - // uncomment below and update the code to test RegisterAndScheduleDataExportData - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterAndScheduleDataExportData); - }); - - it('should have the property startTs (base name: "start_ts")', function() { - // uncomment below and update the code to test the property startTs - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property endTs (base name: "end_ts")', function() { - // uncomment below and update the code to test the property endTs - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property format (base name: "format")', function() { - // uncomment below and update the code to test the property format - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property csvDelimiter (base name: "csv_delimiter")', function() { - // uncomment below and update the code to test the property csvDelimiter - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property senderIds (base name: "sender_ids")', function() { - // uncomment below and update the code to test the property senderIds - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property excludeSenderIds (base name: "exclude_sender_ids")', function() { - // uncomment below and update the code to test the property excludeSenderIds - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property excludeChannelUrls (base name: "exclude_channel_urls")', function() { - // uncomment below and update the code to test the property excludeChannelUrls - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property showReadReceipt (base name: "show_read_receipt")', function() { - // uncomment below and update the code to test the property showReadReceipt - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property showChannelMetadata (base name: "show_channel_metadata")', function() { - // uncomment below and update the code to test the property showChannelMetadata - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - it('should have the property neighboringMessageLimit (base name: "neighboring_message_limit")', function() { - // uncomment below and update the code to test the property neighboringMessageLimit - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterAndScheduleDataExportResponse.spec.js b/test/model/RegisterAndScheduleDataExportResponse.spec.js deleted file mode 100644 index 2caaa54..0000000 --- a/test/model/RegisterAndScheduleDataExportResponse.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegisterAndScheduleDataExportResponse', function() { - it('should create an instance of RegisterAndScheduleDataExportResponse', function() { - // uncomment below and update the code to test RegisterAndScheduleDataExportResponse - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse); - }); - - it('should have the property channelCustomTypes (base name: "channel_custom_types")', function() { - // uncomment below and update the code to test the property channelCustomTypes - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property dataType (base name: "data_type")', function() { - // uncomment below and update the code to test the property dataType - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property format (base name: "format")', function() { - // uncomment below and update the code to test the property format - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property csvDelimiter (base name: "csv_delimiter")', function() { - // uncomment below and update the code to test the property csvDelimiter - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startTs (base name: "start_ts")', function() { - // uncomment below and update the code to test the property startTs - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endTs (base name: "end_ts")', function() { - // uncomment below and update the code to test the property endTs - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property senderIds (base name: "sender_ids")', function() { - // uncomment below and update the code to test the property senderIds - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.RegisterAndScheduleDataExportResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.spec.js b/test/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.spec.js deleted file mode 100644 index da3c0dc..0000000 --- a/test/model/RegisterAsOperatorToChannelsWithCustomChannelTypesData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegisterAsOperatorToChannelsWithCustomChannelTypesData', function() { - it('should create an instance of RegisterAsOperatorToChannelsWithCustomChannelTypesData', function() { - // uncomment below and update the code to test RegisterAsOperatorToChannelsWithCustomChannelTypesData - //var instance = new SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData); - }); - - it('should have the property channelCustomTypes (base name: "channel_custom_types")', function() { - // uncomment below and update the code to test the property channelCustomTypes - //var instance = new SendbirdPlatformSdk.RegisterAsOperatorToChannelsWithCustomChannelTypesData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterGdprRequestData.spec.js b/test/model/RegisterGdprRequestData.spec.js deleted file mode 100644 index 8bd84a1..0000000 --- a/test/model/RegisterGdprRequestData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegisterGdprRequestData', function() { - it('should create an instance of RegisterGdprRequestData', function() { - // uncomment below and update the code to test RegisterGdprRequestData - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterGdprRequestData); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - //expect(instance).to.be(); - }); - - it('should have the property channelDeleteOption (base name: "channel_delete_option")', function() { - // uncomment below and update the code to test the property channelDeleteOption - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterGdprRequestResponse.spec.js b/test/model/RegisterGdprRequestResponse.spec.js deleted file mode 100644 index 47eeb56..0000000 --- a/test/model/RegisterGdprRequestResponse.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RegisterGdprRequestResponse', function() { - it('should create an instance of RegisterGdprRequestResponse', function() { - // uncomment below and update the code to test RegisterGdprRequestResponse - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterGdprRequestResponse); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelDeleteOption (base name: "channel_delete_option")', function() { - // uncomment below and update the code to test the property channelDeleteOption - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.RegisterGdprRequestResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RegisterOperatorsToAGroupChannelRequest.spec.js b/test/model/RegisterOperatorsToAGroupChannelRequest.spec.js new file mode 100644 index 0000000..19c6b5c --- /dev/null +++ b/test/model/RegisterOperatorsToAGroupChannelRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RegisterOperatorsToAGroupChannelRequest', function() { + it('should create an instance of RegisterOperatorsToAGroupChannelRequest', function() { + // uncomment below and update the code to test RegisterOperatorsToAGroupChannelRequest + //var instance = new SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest); + }); + + it('should have the property operatorIds (base name: "operator_ids")', function() { + // uncomment below and update the code to test the property operatorIds + //var instance = new SendbirdPlatformSdk.RegisterOperatorsToAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RemoveARegistrationOrDeviceTokenResponse.spec.js b/test/model/RemoveARegistrationOrDeviceTokenResponse.spec.js new file mode 100644 index 0000000..6240b89 --- /dev/null +++ b/test/model/RemoveARegistrationOrDeviceTokenResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RemoveARegistrationOrDeviceTokenResponse', function() { + it('should create an instance of RemoveARegistrationOrDeviceTokenResponse', function() { + // uncomment below and update the code to test RemoveARegistrationOrDeviceTokenResponse + //var instance = new SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse); + }); + + it('should have the property token (base name: "token")', function() { + // uncomment below and update the code to test the property token + //var instance = new SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + it('should have the property user (base name: "user")', function() { + // uncomment below and update the code to test the property user + //var instance = new SendbirdPlatformSdk.RemoveARegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RemoveAllRegistrationOrDeviceTokenResponse.spec.js b/test/model/RemoveAllRegistrationOrDeviceTokenResponse.spec.js new file mode 100644 index 0000000..4e3623d --- /dev/null +++ b/test/model/RemoveAllRegistrationOrDeviceTokenResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RemoveAllRegistrationOrDeviceTokenResponse', function() { + it('should create an instance of RemoveAllRegistrationOrDeviceTokenResponse', function() { + // uncomment below and update the code to test RemoveAllRegistrationOrDeviceTokenResponse + //var instance = new SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse); + }); + + it('should have the property token (base name: "token")', function() { + // uncomment below and update the code to test the property token + //var instance = new SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + it('should have the property user (base name: "user")', function() { + // uncomment below and update the code to test the property user + //var instance = new SendbirdPlatformSdk.RemoveAllRegistrationOrDeviceTokenResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RemovePushConfigurationByIdResponse.spec.js b/test/model/RemovePushConfigurationByIdResponse.spec.js deleted file mode 100644 index 4623c8b..0000000 --- a/test/model/RemovePushConfigurationByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RemovePushConfigurationByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RemovePushConfigurationByIdResponse', function() { - it('should create an instance of RemovePushConfigurationByIdResponse', function() { - // uncomment below and update the code to test RemovePushConfigurationByIdResponse - //var instance = new SendbirdPlatformSdk.RemovePushConfigurationByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RemovePushConfigurationByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.RemovePushConfigurationByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RemoveReactionFromAMessageResponse.spec.js b/test/model/RemoveReactionFromAMessageResponse.spec.js deleted file mode 100644 index 0c05960..0000000 --- a/test/model/RemoveReactionFromAMessageResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RemoveReactionFromAMessageResponse', function() { - it('should create an instance of RemoveReactionFromAMessageResponse', function() { - // uncomment below and update the code to test RemoveReactionFromAMessageResponse - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveReactionFromAMessageResponse); - }); - - it('should have the property reaction (base name: "reaction")', function() { - // uncomment below and update the code to test the property reaction - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property success (base name: "success")', function() { - // uncomment below and update the code to test the property success - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property msgId (base name: "msg_id")', function() { - // uncomment below and update the code to test the property msgId - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property operation (base name: "operation")', function() { - // uncomment below and update the code to test the property operation - //var instance = new SendbirdPlatformSdk.RemoveReactionFromAMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RemoveRegistrationOrDeviceTokenByTokenResponse.spec.js b/test/model/RemoveRegistrationOrDeviceTokenByTokenResponse.spec.js deleted file mode 100644 index 2a44117..0000000 --- a/test/model/RemoveRegistrationOrDeviceTokenByTokenResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RemoveRegistrationOrDeviceTokenByTokenResponse', function() { - it('should create an instance of RemoveRegistrationOrDeviceTokenByTokenResponse', function() { - // uncomment below and update the code to test RemoveRegistrationOrDeviceTokenByTokenResponse - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.spec.js b/test/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.spec.js deleted file mode 100644 index c1edfaf..0000000 --- a/test/model/RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse', function() { - it('should create an instance of RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse', function() { - // uncomment below and update the code to test RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenFromOwnerByTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RemoveRegistrationOrDeviceTokenResponse.spec.js b/test/model/RemoveRegistrationOrDeviceTokenResponse.spec.js deleted file mode 100644 index dbeb05c..0000000 --- a/test/model/RemoveRegistrationOrDeviceTokenResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RemoveRegistrationOrDeviceTokenResponse', function() { - it('should create an instance of RemoveRegistrationOrDeviceTokenResponse', function() { - // uncomment below and update the code to test RemoveRegistrationOrDeviceTokenResponse - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.RemoveRegistrationOrDeviceTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportChannelByUrlData.spec.js b/test/model/ReportChannelByUrlData.spec.js deleted file mode 100644 index 66173d2..0000000 --- a/test/model/ReportChannelByUrlData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportChannelByUrlData', function() { - it('should create an instance of ReportChannelByUrlData', function() { - // uncomment below and update the code to test ReportChannelByUrlData - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportChannelByUrlData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUserId (base name: "reporting_user_id")', function() { - // uncomment below and update the code to test the property reportingUserId - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportChannelByUrlResponse.spec.js b/test/model/ReportChannelByUrlResponse.spec.js deleted file mode 100644 index 1445aa0..0000000 --- a/test/model/ReportChannelByUrlResponse.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportChannelByUrlResponse', function() { - it('should create an instance of ReportChannelByUrlResponse', function() { - // uncomment below and update the code to test ReportChannelByUrlResponse - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportChannelByUrlResponse); - }); - - it('should have the property reportType (base name: "report_type")', function() { - // uncomment below and update the code to test the property reportType - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUser (base name: "reporting_user")', function() { - // uncomment below and update the code to test the property reportingUser - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUser (base name: "offending_user")', function() { - // uncomment below and update the code to test the property offendingUser - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportedMessage (base name: "reported_message")', function() { - // uncomment below and update the code to test the property reportedMessage - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ReportChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportMessageByIdData.spec.js b/test/model/ReportMessageByIdData.spec.js deleted file mode 100644 index 2564392..0000000 --- a/test/model/ReportMessageByIdData.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportMessageByIdData', function() { - it('should create an instance of ReportMessageByIdData', function() { - // uncomment below and update the code to test ReportMessageByIdData - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportMessageByIdData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUserId (base name: "offending_user_id")', function() { - // uncomment below and update the code to test the property offendingUserId - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUserId (base name: "reporting_user_id")', function() { - // uncomment below and update the code to test the property reportingUserId - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportMessageByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportMessageByIdResponse.spec.js b/test/model/ReportMessageByIdResponse.spec.js deleted file mode 100644 index 6a2abd2..0000000 --- a/test/model/ReportMessageByIdResponse.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportMessageByIdResponse', function() { - it('should create an instance of ReportMessageByIdResponse', function() { - // uncomment below and update the code to test ReportMessageByIdResponse - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportMessageByIdResponse); - }); - - it('should have the property reportType (base name: "report_type")', function() { - // uncomment below and update the code to test the property reportType - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUser (base name: "reporting_user")', function() { - // uncomment below and update the code to test the property reportingUser - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUser (base name: "offending_user")', function() { - // uncomment below and update the code to test the property offendingUser - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportedMessage (base name: "reported_message")', function() { - // uncomment below and update the code to test the property reportedMessage - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ReportMessageByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportUserByIdData.spec.js b/test/model/ReportUserByIdData.spec.js deleted file mode 100644 index 05b70b5..0000000 --- a/test/model/ReportUserByIdData.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportUserByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportUserByIdData', function() { - it('should create an instance of ReportUserByIdData', function() { - // uncomment below and update the code to test ReportUserByIdData - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportUserByIdData); - }); - - it('should have the property offendingUserId (base name: "offending_user_id")', function() { - // uncomment below and update the code to test the property offendingUserId - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUserId (base name: "reporting_user_id")', function() { - // uncomment below and update the code to test the property reportingUserId - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportUserByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ReportUserByIdResponse.spec.js b/test/model/ReportUserByIdResponse.spec.js deleted file mode 100644 index f30b31e..0000000 --- a/test/model/ReportUserByIdResponse.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ReportUserByIdResponse', function() { - it('should create an instance of ReportUserByIdResponse', function() { - // uncomment below and update the code to test ReportUserByIdResponse - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ReportUserByIdResponse); - }); - - it('should have the property reportType (base name: "report_type")', function() { - // uncomment below and update the code to test the property reportType - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportCategory (base name: "report_category")', function() { - // uncomment below and update the code to test the property reportCategory - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportingUser (base name: "reporting_user")', function() { - // uncomment below and update the code to test the property reportingUser - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property offendingUser (base name: "offending_user")', function() { - // uncomment below and update the code to test the property offendingUser - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportedMessage (base name: "reported_message")', function() { - // uncomment below and update the code to test the property reportedMessage - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reportDescription (base name: "report_description")', function() { - // uncomment below and update the code to test the property reportDescription - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ReportUserByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ResetChatHistoryRequest.spec.js b/test/model/ResetChatHistoryRequest.spec.js new file mode 100644 index 0000000..522eb9c --- /dev/null +++ b/test/model/ResetChatHistoryRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ResetChatHistoryRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResetChatHistoryRequest', function() { + it('should create an instance of ResetChatHistoryRequest', function() { + // uncomment below and update the code to test ResetChatHistoryRequest + //var instance = new SendbirdPlatformSdk.ResetChatHistoryRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ResetChatHistoryRequest); + }); + + it('should have the property resetAll (base name: "reset_all")', function() { + // uncomment below and update the code to test the property resetAll + //var instance = new SendbirdPlatformSdk.ResetChatHistoryRequest(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.ResetChatHistoryRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResetChatHistoryResponse.spec.js b/test/model/ResetChatHistoryResponse.spec.js new file mode 100644 index 0000000..ee0f108 --- /dev/null +++ b/test/model/ResetChatHistoryResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ResetChatHistoryResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResetChatHistoryResponse', function() { + it('should create an instance of ResetChatHistoryResponse', function() { + // uncomment below and update the code to test ResetChatHistoryResponse + //var instance = new SendbirdPlatformSdk.ResetChatHistoryResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ResetChatHistoryResponse); + }); + + it('should have the property tsMessageOffset (base name: "ts_message_offset")', function() { + // uncomment below and update the code to test the property tsMessageOffset + //var instance = new SendbirdPlatformSdk.ResetChatHistoryResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ResetPushPreferencesResponse.spec.js b/test/model/ResetPushPreferencesResponse.spec.js deleted file mode 100644 index 991699f..0000000 --- a/test/model/ResetPushPreferencesResponse.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ResetPushPreferencesResponse', function() { - it('should create an instance of ResetPushPreferencesResponse', function() { - // uncomment below and update the code to test ResetPushPreferencesResponse - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ResetPushPreferencesResponse); - }); - - it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { - // uncomment below and update the code to test the property snoozeStartTs - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property blockPushFromBots (base name: "block_push_from_bots")', function() { - // uncomment below and update the code to test the property blockPushFromBots - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { - // uncomment below and update the code to test the property pushBlockedBotIds - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { - // uncomment below and update the code to test the property enablePushForReplies - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption - //var instance = new SendbirdPlatformSdk.ResetPushPreferencesResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RetrieveAdvancedAnalyticsMetricsResponse.spec.js b/test/model/RetrieveAdvancedAnalyticsMetricsResponse.spec.js deleted file mode 100644 index 5dbe9d5..0000000 --- a/test/model/RetrieveAdvancedAnalyticsMetricsResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RetrieveAdvancedAnalyticsMetricsResponse', function() { - it('should create an instance of RetrieveAdvancedAnalyticsMetricsResponse', function() { - // uncomment below and update the code to test RetrieveAdvancedAnalyticsMetricsResponse - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse); - }); - - it('should have the property segments (base name: "segments")', function() { - // uncomment below and update the code to test the property segments - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property date (base name: "date")', function() { - // uncomment below and update the code to test the property date - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property customChannelType (base name: "custom_channel_type")', function() { - // uncomment below and update the code to test the property customChannelType - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property customMessageType (base name: "custom_message_type")', function() { - // uncomment below and update the code to test the property customMessageType - //var instance = new SendbirdPlatformSdk.RetrieveAdvancedAnalyticsMetricsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RetrieveIpWhitelistResponse.spec.js b/test/model/RetrieveIpWhitelistResponse.spec.js deleted file mode 100644 index 53e9bcb..0000000 --- a/test/model/RetrieveIpWhitelistResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RetrieveIpWhitelistResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RetrieveIpWhitelistResponse', function() { - it('should create an instance of RetrieveIpWhitelistResponse', function() { - // uncomment below and update the code to test RetrieveIpWhitelistResponse - //var instance = new SendbirdPlatformSdk.RetrieveIpWhitelistResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RetrieveIpWhitelistResponse); - }); - - it('should have the property ipWhitelistAddresses (base name: "ip_whitelist_addresses")', function() { - // uncomment below and update the code to test the property ipWhitelistAddresses - //var instance = new SendbirdPlatformSdk.RetrieveIpWhitelistResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RetrieveListOfSubscribedEventsResponse.spec.js b/test/model/RetrieveListOfSubscribedEventsResponse.spec.js deleted file mode 100644 index b6a58a6..0000000 --- a/test/model/RetrieveListOfSubscribedEventsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RetrieveListOfSubscribedEventsResponse', function() { - it('should create an instance of RetrieveListOfSubscribedEventsResponse', function() { - // uncomment below and update the code to test RetrieveListOfSubscribedEventsResponse - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponse); - }); - - it('should have the property webhook (base name: "webhook")', function() { - // uncomment below and update the code to test the property webhook - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RetrieveListOfSubscribedEventsResponseWebhook.spec.js b/test/model/RetrieveListOfSubscribedEventsResponseWebhook.spec.js deleted file mode 100644 index 9b8556b..0000000 --- a/test/model/RetrieveListOfSubscribedEventsResponseWebhook.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RetrieveListOfSubscribedEventsResponseWebhook', function() { - it('should create an instance of RetrieveListOfSubscribedEventsResponseWebhook', function() { - // uncomment below and update the code to test RetrieveListOfSubscribedEventsResponseWebhook - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook); - }); - - it('should have the property enabled (base name: "enabled")', function() { - // uncomment below and update the code to test the property enabled - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property includeMembers (base name: "include_members")', function() { - // uncomment below and update the code to test the property includeMembers - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property enabledEvents (base name: "enabled_events")', function() { - // uncomment below and update the code to test the property enabledEvents - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property allWebhookCategories (base name: "all_webhook_categories")', function() { - // uncomment below and update the code to test the property allWebhookCategories - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - it('should have the property includeUnreadCount (base name: "include_unread_count")', function() { - // uncomment below and update the code to test the property includeUnreadCount - //var instance = new SendbirdPlatformSdk.RetrieveListOfSubscribedEventsResponseWebhook(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/RevokeSecondaryApiTokenByTokenResponse.spec.js b/test/model/RevokeSecondaryApiTokenByTokenResponse.spec.js deleted file mode 100644 index 26876bd..0000000 --- a/test/model/RevokeSecondaryApiTokenByTokenResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('RevokeSecondaryApiTokenByTokenResponse', function() { - it('should create an instance of RevokeSecondaryApiTokenByTokenResponse', function() { - // uncomment below and update the code to test RevokeSecondaryApiTokenByTokenResponse - //var instance = new SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.RevokeSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SBObject.spec.js b/test/model/SBObject.spec.js deleted file mode 100644 index a54bd6c..0000000 --- a/test/model/SBObject.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SBObject(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SBObject', function() { - it('should create an instance of SBObject', function() { - // uncomment below and update the code to test SBObject - //var instance = new SendbirdPlatformSdk.SBObject(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SBObject); - }); - - it('should have the property constructor (base name: "constructor")', function() { - // uncomment below and update the code to test the property constructor - //var instance = new SendbirdPlatformSdk.SBObject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ScheduleAnAnnouncementRequest.spec.js b/test/model/ScheduleAnAnnouncementRequest.spec.js new file mode 100644 index 0000000..edb73d4 --- /dev/null +++ b/test/model/ScheduleAnAnnouncementRequest.spec.js @@ -0,0 +1,167 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ScheduleAnAnnouncementRequest', function() { + it('should create an instance of ScheduleAnAnnouncementRequest', function() { + // uncomment below and update the code to test ScheduleAnAnnouncementRequest + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnAnnouncementRequest); + }); + + it('should have the property announcementGroup (base name: "announcement_group")', function() { + // uncomment below and update the code to test the property announcementGroup + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property assignSenderAsChannelInviter (base name: "assign_sender_as_channel_inviter")', function() { + // uncomment below and update the code to test the property assignSenderAsChannelInviter + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property ceaseAt (base name: "cease_at")', function() { + // uncomment below and update the code to test the property ceaseAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property createChannel (base name: "create_channel")', function() { + // uncomment below and update the code to test the property createChannel + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property createChannelOptions (base name: "create_channel_options")', function() { + // uncomment below and update the code to test the property createChannelOptions + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property enablePush (base name: "enable_push")', function() { + // uncomment below and update the code to test the property enablePush + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property endAt (base name: "end_at")', function() { + // uncomment below and update the code to test the property endAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property keepChannelHiddenForSender (base name: "keep_channel_hidden_for_sender")', function() { + // uncomment below and update the code to test the property keepChannelHiddenForSender + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property resumeAt (base name: "resume_at")', function() { + // uncomment below and update the code to test the property resumeAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property scheduledAt (base name: "scheduled_at")', function() { + // uncomment below and update the code to test the property scheduledAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sendToFrozenChannels (base name: "send_to_frozen_channels")', function() { + // uncomment below and update the code to test the property sendToFrozenChannels + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property targetAt (base name: "target_at")', function() { + // uncomment below and update the code to test the property targetAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property targetChannelType (base name: "target_channel_type")', function() { + // uncomment below and update the code to test the property targetChannelType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property targetCustomType (base name: "target_custom_type")', function() { + // uncomment below and update the code to test the property targetCustomType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property targetList (base name: "target_list")', function() { + // uncomment below and update the code to test the property targetList + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + it('should have the property uniqueId (base name: "unique_id")', function() { + // uncomment below and update the code to test the property uniqueId + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ScheduleAnAnnouncementRequestCreateChannelOptions.spec.js b/test/model/ScheduleAnAnnouncementRequestCreateChannelOptions.spec.js new file mode 100644 index 0000000..0d0668b --- /dev/null +++ b/test/model/ScheduleAnAnnouncementRequestCreateChannelOptions.spec.js @@ -0,0 +1,89 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ScheduleAnAnnouncementRequestCreateChannelOptions', function() { + it('should create an instance of ScheduleAnAnnouncementRequestCreateChannelOptions', function() { + // uncomment below and update the code to test ScheduleAnAnnouncementRequestCreateChannelOptions + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be(); + }); + + it('should have the property distinct (base name: "distinct")', function() { + // uncomment below and update the code to test the property distinct + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestCreateChannelOptions(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ScheduleAnAnnouncementRequestMessage.spec.js b/test/model/ScheduleAnAnnouncementRequestMessage.spec.js new file mode 100644 index 0000000..50bae4e --- /dev/null +++ b/test/model/ScheduleAnAnnouncementRequestMessage.spec.js @@ -0,0 +1,89 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ScheduleAnAnnouncementRequestMessage', function() { + it('should create an instance of ScheduleAnAnnouncementRequestMessage', function() { + // uncomment below and update the code to test ScheduleAnAnnouncementRequestMessage + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementRequestMessage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ScheduleAnAnnouncementResponse.spec.js b/test/model/ScheduleAnAnnouncementResponse.spec.js new file mode 100644 index 0000000..facd083 --- /dev/null +++ b/test/model/ScheduleAnAnnouncementResponse.spec.js @@ -0,0 +1,203 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ScheduleAnAnnouncementResponse', function() { + it('should create an instance of ScheduleAnAnnouncementResponse', function() { + // uncomment below and update the code to test ScheduleAnAnnouncementResponse + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnAnnouncementResponse); + }); + + it('should have the property announcementGroup (base name: "announcement_group")', function() { + // uncomment below and update the code to test the property announcementGroup + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property ceaseAt (base name: "cease_at")', function() { + // uncomment below and update the code to test the property ceaseAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property completedAt (base name: "completed_at")', function() { + // uncomment below and update the code to test the property completedAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createChannel (base name: "create_channel")', function() { + // uncomment below and update the code to test the property createChannel + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createChannelOptions (base name: "create_channel_options")', function() { + // uncomment below and update the code to test the property createChannelOptions + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property enablePush (base name: "enable_push")', function() { + // uncomment below and update the code to test the property enablePush + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property endAt (base name: "end_at")', function() { + // uncomment below and update the code to test the property endAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property openCount (base name: "open_count")', function() { + // uncomment below and update the code to test the property openCount + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property openRate (base name: "open_rate")', function() { + // uncomment below and update the code to test the property openRate + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property priority (base name: "priority")', function() { + // uncomment below and update the code to test the property priority + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property resumeAt (base name: "resume_at")', function() { + // uncomment below and update the code to test the property resumeAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property scheduledAt (base name: "scheduled_at")', function() { + // uncomment below and update the code to test the property scheduledAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sendToFrozenChannels (base name: "send_to_frozen_channels")', function() { + // uncomment below and update the code to test the property sendToFrozenChannels + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sentChannelCount (base name: "sent_channel_count")', function() { + // uncomment below and update the code to test the property sentChannelCount + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sentUserCount (base name: "sent_user_count")', function() { + // uncomment below and update the code to test the property sentUserCount + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property targetAt (base name: "target_at")', function() { + // uncomment below and update the code to test the property targetAt + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property targetChannelCount (base name: "target_channel_count")', function() { + // uncomment below and update the code to test the property targetChannelCount + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property targetChannelType (base name: "target_channel_type")', function() { + // uncomment below and update the code to test the property targetChannelType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property targetCustomType (base name: "target_custom_type")', function() { + // uncomment below and update the code to test the property targetCustomType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property targetUserCount (base name: "target_user_count")', function() { + // uncomment below and update the code to test the property targetUserCount + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + it('should have the property uniqueId (base name: "unique_id")', function() { + // uncomment below and update the code to test the property uniqueId + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ScheduleAnAnnouncementResponseMessage.spec.js b/test/model/ScheduleAnAnnouncementResponseMessage.spec.js new file mode 100644 index 0000000..62569f0 --- /dev/null +++ b/test/model/ScheduleAnAnnouncementResponseMessage.spec.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ScheduleAnAnnouncementResponseMessage', function() { + it('should create an instance of ScheduleAnAnnouncementResponseMessage', function() { + // uncomment below and update the code to test ScheduleAnAnnouncementResponseMessage + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage); + }); + + it('should have the property content (base name: "content")', function() { + // uncomment below and update the code to test the property content + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + it('should have the property messageRetentionHour (base name: "message_retention_hour")', function() { + // uncomment below and update the code to test the property messageRetentionHour + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.ScheduleAnAnnouncementResponseMessage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ScheduleAnnouncementData.spec.js b/test/model/ScheduleAnnouncementData.spec.js deleted file mode 100644 index 63fab5e..0000000 --- a/test/model/ScheduleAnnouncementData.spec.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ScheduleAnnouncementData', function() { - it('should create an instance of ScheduleAnnouncementData', function() { - // uncomment below and update the code to test ScheduleAnnouncementData - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnnouncementData); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property messageType (base name: "message_type")', function() { - // uncomment below and update the code to test the property messageType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property content (base name: "content")', function() { - // uncomment below and update the code to test the property content - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property targetAt (base name: "target_at")', function() { - // uncomment below and update the code to test the property targetAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property targetList (base name: "target_list")', function() { - // uncomment below and update the code to test the property targetList - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelType (base name: "target_channel_type")', function() { - // uncomment below and update the code to test the property targetChannelType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property messageCustomType (base name: "message.custom_type")', function() { - // uncomment below and update the code to test the property messageCustomType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property messageData (base name: "message.data")', function() { - // uncomment below and update the code to test the property messageData - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannel (base name: "create_channel")', function() { - // uncomment below and update the code to test the property createChannel - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptions (base name: "create_channel_options")', function() { - // uncomment below and update the code to test the property createChannelOptions - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsName (base name: "create_channel_options.name")', function() { - // uncomment below and update the code to test the property createChannelOptionsName - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsCoverUrl (base name: "create_channel_options.cover_url")', function() { - // uncomment below and update the code to test the property createChannelOptionsCoverUrl - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsCustomType (base name: "create_channel_options.custom_type")', function() { - // uncomment below and update the code to test the property createChannelOptionsCustomType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsData (base name: "create_channel_options.data")', function() { - // uncomment below and update the code to test the property createChannelOptionsData - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsDistinct (base name: "create_channel_options.distinct")', function() { - // uncomment below and update the code to test the property createChannelOptionsDistinct - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property ceaseAt (base name: "cease_at")', function() { - // uncomment below and update the code to test the property ceaseAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property resumeAt (base name: "resume_at")', function() { - // uncomment below and update the code to test the property resumeAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - it('should have the property assignSenderAsChannelInviter (base name: "assign_sender_as_channel_inviter")', function() { - // uncomment below and update the code to test the property assignSenderAsChannelInviter - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ScheduleAnnouncementDataMessage.spec.js b/test/model/ScheduleAnnouncementDataMessage.spec.js deleted file mode 100644 index e8c7c5d..0000000 --- a/test/model/ScheduleAnnouncementDataMessage.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ScheduleAnnouncementDataMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ScheduleAnnouncementDataMessage', function() { - it('should create an instance of ScheduleAnnouncementDataMessage', function() { - // uncomment below and update the code to test ScheduleAnnouncementDataMessage - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementDataMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnnouncementDataMessage); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementDataMessage(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementDataMessage(); - //expect(instance).to.be(); - }); - - it('should have the property content (base name: "content")', function() { - // uncomment below and update the code to test the property content - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementDataMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ScheduleAnnouncementResponse.spec.js b/test/model/ScheduleAnnouncementResponse.spec.js deleted file mode 100644 index a2c3790..0000000 --- a/test/model/ScheduleAnnouncementResponse.spec.js +++ /dev/null @@ -1,167 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ScheduleAnnouncementResponse', function() { - it('should create an instance of ScheduleAnnouncementResponse', function() { - // uncomment below and update the code to test ScheduleAnnouncementResponse - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnnouncementResponse); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetAt (base name: "target_at")', function() { - // uncomment below and update the code to test the property targetAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetUserCount (base name: "target_user_count")', function() { - // uncomment below and update the code to test the property targetUserCount - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelCount (base name: "target_channel_count")', function() { - // uncomment below and update the code to test the property targetChannelCount - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelType (base name: "target_channel_type")', function() { - // uncomment below and update the code to test the property targetChannelType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptions (base name: "create_channel_options")', function() { - // uncomment below and update the code to test the property createChannelOptions - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ceaseAt (base name: "cease_at")', function() { - // uncomment below and update the code to test the property ceaseAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property resumeAt (base name: "resume_at")', function() { - // uncomment below and update the code to test the property resumeAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property completedAt (base name: "completed_at")', function() { - // uncomment below and update the code to test the property completedAt - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sentUserCount (base name: "sent_user_count")', function() { - // uncomment below and update the code to test the property sentUserCount - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sentChannelCount (base name: "sent_channel_count")', function() { - // uncomment below and update the code to test the property sentChannelCount - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openCount (base name: "open_count")', function() { - // uncomment below and update the code to test the property openCount - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openRate (base name: "open_rate")', function() { - // uncomment below and update the code to test the property openRate - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ScheduleAnnouncementResponseCreateChannelOptions.spec.js b/test/model/ScheduleAnnouncementResponseCreateChannelOptions.spec.js deleted file mode 100644 index 0eab9f0..0000000 --- a/test/model/ScheduleAnnouncementResponseCreateChannelOptions.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ScheduleAnnouncementResponseCreateChannelOptions', function() { - it('should create an instance of ScheduleAnnouncementResponseCreateChannelOptions', function() { - // uncomment below and update the code to test ScheduleAnnouncementResponseCreateChannelOptions - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions); - }); - - it('should have the property distinct (base name: "distinct")', function() { - // uncomment below and update the code to test the property distinct - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseCreateChannelOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ScheduleAnnouncementResponseMessage.spec.js b/test/model/ScheduleAnnouncementResponseMessage.spec.js deleted file mode 100644 index 1f44323..0000000 --- a/test/model/ScheduleAnnouncementResponseMessage.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ScheduleAnnouncementResponseMessage', function() { - it('should create an instance of ScheduleAnnouncementResponseMessage', function() { - // uncomment below and update the code to test ScheduleAnnouncementResponseMessage - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property content (base name: "content")', function() { - // uncomment below and update the code to test the property content - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.ScheduleAnnouncementResponseMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendABotMessageRequest.spec.js b/test/model/SendABotMessageRequest.spec.js new file mode 100644 index 0000000..73c9f26 --- /dev/null +++ b/test/model/SendABotMessageRequest.spec.js @@ -0,0 +1,119 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendABotMessageRequest', function() { + it('should create an instance of SendABotMessageRequest', function() { + // uncomment below and update the code to test SendABotMessageRequest + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendABotMessageRequest); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property dedupId (base name: "dedup_id")', function() { + // uncomment below and update the code to test the property dedupId + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property extendedMessagePayload (base name: "extended_message_payload")', function() { + // uncomment below and update the code to test the property extendedMessagePayload + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property mentioned (base name: "mentioned")', function() { + // uncomment below and update the code to test the property mentioned + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sendPush (base name: "send_push")', function() { + // uncomment below and update the code to test the property sendPush + //var instance = new SendbirdPlatformSdk.SendABotMessageRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendAMessageRequest.spec.js b/test/model/SendAMessageRequest.spec.js new file mode 100644 index 0000000..7d55ade --- /dev/null +++ b/test/model/SendAMessageRequest.spec.js @@ -0,0 +1,209 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendAMessageRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendAMessageRequest', function() { + it('should create an instance of SendAMessageRequest', function() { + // uncomment below and update the code to test SendAMessageRequest + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendAMessageRequest); + }); + + it('should have the property apnsBundleId (base name: "apns_bundle_id")', function() { + // uncomment below and update the code to test the property apnsBundleId + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { + // uncomment below and update the code to test the property appleCriticalAlertOptions + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property dedupId (base name: "dedup_id")', function() { + // uncomment below and update the code to test the property dedupId + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property includePollDetails (base name: "include_poll_details")', function() { + // uncomment below and update the code to test the property includePollDetails + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isSilent (base name: "is_silent")', function() { + // uncomment below and update the code to test the property isSilent + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { + // uncomment below and update the code to test the property mentionedUserIds + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property messageType (base name: "message_type")', function() { + // uncomment below and update the code to test the property messageType + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pollId (base name: "poll_id")', function() { + // uncomment below and update the code to test the property pollId + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pushMessageTemplate (base name: "push_message_template")', function() { + // uncomment below and update the code to test the property pushMessageTemplate + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sendPush (base name: "send_push")', function() { + // uncomment below and update the code to test the property sendPush + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sound (base name: "sound")', function() { + // uncomment below and update the code to test the property sound + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property volume (base name: "volume")', function() { + // uncomment below and update the code to test the property volume + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property files (base name: "files")', function() { + // uncomment below and update the code to test the property files + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property requireAuth (base name: "require_auth")', function() { + // uncomment below and update the code to test the property requireAuth + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail1 (base name: "thumbnail1")', function() { + // uncomment below and update the code to test the property thumbnail1 + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail2 (base name: "thumbnail2")', function() { + // uncomment below and update the code to test the property thumbnail2 + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail3 (base name: "thumbnail3")', function() { + // uncomment below and update the code to test the property thumbnail3 + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnails (base name: "thumbnails")', function() { + // uncomment below and update the code to test the property thumbnails + //var instance = new SendbirdPlatformSdk.SendAMessageRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendAdminMessageRequestBody.spec.js b/test/model/SendAdminMessageRequestBody.spec.js new file mode 100644 index 0000000..d7f7c86 --- /dev/null +++ b/test/model/SendAdminMessageRequestBody.spec.js @@ -0,0 +1,131 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendAdminMessageRequestBody', function() { + it('should create an instance of SendAdminMessageRequestBody', function() { + // uncomment below and update the code to test SendAdminMessageRequestBody + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendAdminMessageRequestBody); + }); + + it('should have the property apnsBundleId (base name: "apns_bundle_id")', function() { + // uncomment below and update the code to test the property apnsBundleId + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property dedupId (base name: "dedup_id")', function() { + // uncomment below and update the code to test the property dedupId + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property isSilent (base name: "is_silent")', function() { + // uncomment below and update the code to test the property isSilent + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { + // uncomment below and update the code to test the property mentionedUserIds + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property messageType (base name: "message_type")', function() { + // uncomment below and update the code to test the property messageType + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property pushMessageTemplate (base name: "push_message_template")', function() { + // uncomment below and update the code to test the property pushMessageTemplate + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sendPush (base name: "send_push")', function() { + // uncomment below and update the code to test the property sendPush + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.SendAdminMessageRequestBody(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendBirdAdminMessage.spec.js b/test/model/SendBirdAdminMessage.spec.js deleted file mode 100644 index 4e1ee0e..0000000 --- a/test/model/SendBirdAdminMessage.spec.js +++ /dev/null @@ -1,203 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdAdminMessage', function() { - it('should create an instance of SendBirdAdminMessage', function() { - // uncomment below and update the code to test SendBirdAdminMessage - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdAdminMessage); - }); - - it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { - // uncomment below and update the code to test the property appleCriticalAlertOptions - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property messageType (base name: "message_type")', function() { - // uncomment below and update the code to test the property messageType - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property metaArray (base name: "meta_array")', function() { - // uncomment below and update the code to test the property metaArray - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrays (base name: "meta_arrays")', function() { - // uncomment below and update the code to test the property metaArrays - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property ogMetaData (base name: "og_meta_data")', function() { - // uncomment below and update the code to test the property ogMetaData - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessage (base name: "parent_message")', function() { - // uncomment below and update the code to test the property parentMessage - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageText (base name: "parent_message_text")', function() { - // uncomment below and update the code to test the property parentMessageText - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property reactions (base name: "reactions")', function() { - // uncomment below and update the code to test the property reactions - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property sendingStatus (base name: "sending_status")', function() { - // uncomment below and update the code to test the property sendingStatus - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property silent (base name: "silent")', function() { - // uncomment below and update the code to test the property silent - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property threadInfo (base name: "thread_info")', function() { - // uncomment below and update the code to test the property threadInfo - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property translations (base name: "translations")', function() { - // uncomment below and update the code to test the property translations - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdAdminMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdAppleCriticalAlertOptions.spec.js b/test/model/SendBirdAppleCriticalAlertOptions.spec.js deleted file mode 100644 index 92a7eef..0000000 --- a/test/model/SendBirdAppleCriticalAlertOptions.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdAppleCriticalAlertOptions', function() { - it('should create an instance of SendBirdAppleCriticalAlertOptions', function() { - // uncomment below and update the code to test SendBirdAppleCriticalAlertOptions - //var instance = new SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions(); - //expect(instance).to.be(); - }); - - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume - //var instance = new SendbirdPlatformSdk.SendBirdAppleCriticalAlertOptions(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdAutoEventMessageSettings.spec.js b/test/model/SendBirdAutoEventMessageSettings.spec.js deleted file mode 100644 index 765c95c..0000000 --- a/test/model/SendBirdAutoEventMessageSettings.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdAutoEventMessageSettings(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdAutoEventMessageSettings', function() { - it('should create an instance of SendBirdAutoEventMessageSettings', function() { - // uncomment below and update the code to test SendBirdAutoEventMessageSettings - //var instance = new SendbirdPlatformSdk.SendBirdAutoEventMessageSettings(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdAutoEventMessageSettings); - }); - - it('should have the property autoEventMessage (base name: "auto_event_message")', function() { - // uncomment below and update the code to test the property autoEventMessage - //var instance = new SendbirdPlatformSdk.SendBirdAutoEventMessageSettings(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdBaseChannel.spec.js b/test/model/SendBirdBaseChannel.spec.js deleted file mode 100644 index 40cabbb..0000000 --- a/test/model/SendBirdBaseChannel.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdBaseChannel', function() { - it('should create an instance of SendBirdBaseChannel', function() { - // uncomment below and update the code to test SendBirdBaseChannel - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdBaseChannel); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property creator (base name: "creator")', function() { - // uncomment below and update the code to test the property creator - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isFrozen (base name: "is_frozen")', function() { - // uncomment below and update the code to test the property isFrozen - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdBaseChannel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdBaseMessageInstance.spec.js b/test/model/SendBirdBaseMessageInstance.spec.js deleted file mode 100644 index f1e6aff..0000000 --- a/test/model/SendBirdBaseMessageInstance.spec.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdBaseMessageInstance', function() { - it('should create an instance of SendBirdBaseMessageInstance', function() { - // uncomment below and update the code to test SendBirdBaseMessageInstance - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdBaseMessageInstance); - }); - - it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { - // uncomment below and update the code to test the property appleCriticalAlertOptions - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property messageType (base name: "message_type")', function() { - // uncomment below and update the code to test the property messageType - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property metaArray (base name: "meta_array")', function() { - // uncomment below and update the code to test the property metaArray - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrays (base name: "meta_arrays")', function() { - // uncomment below and update the code to test the property metaArrays - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property ogMetaData (base name: "og_meta_data")', function() { - // uncomment below and update the code to test the property ogMetaData - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessage (base name: "parent_message")', function() { - // uncomment below and update the code to test the property parentMessage - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageText (base name: "parent_message_text")', function() { - // uncomment below and update the code to test the property parentMessageText - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property reactions (base name: "reactions")', function() { - // uncomment below and update the code to test the property reactions - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property sendingStatus (base name: "sending_status")', function() { - // uncomment below and update the code to test the property sendingStatus - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property silent (base name: "silent")', function() { - // uncomment below and update the code to test the property silent - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property threadInfo (base name: "thread_info")', function() { - // uncomment below and update the code to test the property threadInfo - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdBaseMessageInstance(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdChannelResponse.spec.js b/test/model/SendBirdChannelResponse.spec.js deleted file mode 100644 index 78589a6..0000000 --- a/test/model/SendBirdChannelResponse.spec.js +++ /dev/null @@ -1,335 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdChannelResponse', function() { - it('should create an instance of SendBirdChannelResponse', function() { - // uncomment below and update the code to test SendBirdChannelResponse - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdChannelResponse); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdBy (base name: "created_by")', function() { - // uncomment below and update the code to test the property createdBy - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property creator (base name: "creator")', function() { - // uncomment below and update the code to test the property creator - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property disappearingMessage (base name: "disappearing_message")', function() { - // uncomment below and update the code to test the property disappearingMessage - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property freeze (base name: "freeze")', function() { - // uncomment below and update the code to test the property freeze - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { - // uncomment below and update the code to test the property ignoreProfanityFilter - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property hiddenState (base name: "hidden_state")', function() { - // uncomment below and update the code to test the property hiddenState - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property invitedAt (base name: "invited_at")', function() { - // uncomment below and update the code to test the property invitedAt - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property inviter (base name: "inviter")', function() { - // uncomment below and update the code to test the property inviter - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { - // uncomment below and update the code to test the property isAccessCodeRequired - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isBroadcast (base name: "is_broadcast")', function() { - // uncomment below and update the code to test the property isBroadcast - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isCreated (base name: "is_created")', function() { - // uncomment below and update the code to test the property isCreated - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isDiscoverable (base name: "is_discoverable")', function() { - // uncomment below and update the code to test the property isDiscoverable - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isDistinct (base name: "is_distinct")', function() { - // uncomment below and update the code to test the property isDistinct - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isFrozen (base name: "is_frozen")', function() { - // uncomment below and update the code to test the property isFrozen - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isHidden (base name: "is_hidden")', function() { - // uncomment below and update the code to test the property isHidden - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isPushEnabled (base name: "is_push_enabled")', function() { - // uncomment below and update the code to test the property isPushEnabled - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isSuper (base name: "is_super")', function() { - // uncomment below and update the code to test the property isSuper - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property joinedAt (base name: "joined_at")', function() { - // uncomment below and update the code to test the property joinedAt - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { - // uncomment below and update the code to test the property joinedMemberCount - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property lastMessage (base name: "last_message")', function() { - // uncomment below and update the code to test the property lastMessage - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property maxLengthMessage (base name: "max_length_message")', function() { - // uncomment below and update the code to test the property maxLengthMessage - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property memberCount (base name: "member_count")', function() { - // uncomment below and update the code to test the property memberCount - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property members (base name: "members")', function() { - // uncomment below and update the code to test the property members - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property messageOffsetTimestamp (base name: "message_offset_timestamp")', function() { - // uncomment below and update the code to test the property messageOffsetTimestamp - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myCountPreference (base name: "my_count_preference")', function() { - // uncomment below and update the code to test the property myCountPreference - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myLastRead (base name: "my_last_read")', function() { - // uncomment below and update the code to test the property myLastRead - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myMemberState (base name: "my_member_state")', function() { - // uncomment below and update the code to test the property myMemberState - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myMutedState (base name: "my_muted_state")', function() { - // uncomment below and update the code to test the property myMutedState - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myPushTriggerOption (base name: "my_push_trigger_option")', function() { - // uncomment below and update the code to test the property myPushTriggerOption - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property myRole (base name: "my_role")', function() { - // uncomment below and update the code to test the property myRole - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property smsFallback (base name: "sms_fallback")', function() { - // uncomment below and update the code to test the property smsFallback - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { - // uncomment below and update the code to test the property unreadMentionCount - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { - // uncomment below and update the code to test the property unreadMessageCount - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isDynamicPartitioned (base name: "is_dynamic_partitioned")', function() { - // uncomment below and update the code to test the property isDynamicPartitioned - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - it('should have the property participantCount (base name: "participant_count")', function() { - // uncomment below and update the code to test the property participantCount - //var instance = new SendbirdPlatformSdk.SendBirdChannelResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdEmoji.spec.js b/test/model/SendBirdEmoji.spec.js deleted file mode 100644 index d1576d9..0000000 --- a/test/model/SendBirdEmoji.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdEmoji(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdEmoji', function() { - it('should create an instance of SendBirdEmoji', function() { - // uncomment below and update the code to test SendBirdEmoji - //var instance = new SendbirdPlatformSdk.SendBirdEmoji(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdEmoji); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.SendBirdEmoji(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdEmoji(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdEmojiCategory.spec.js b/test/model/SendBirdEmojiCategory.spec.js deleted file mode 100644 index b1d6183..0000000 --- a/test/model/SendBirdEmojiCategory.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdEmojiCategory', function() { - it('should create an instance of SendBirdEmojiCategory', function() { - // uncomment below and update the code to test SendBirdEmojiCategory - //var instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdEmojiCategory); - }); - - it('should have the property emojis (base name: "emojis")', function() { - // uncomment below and update the code to test the property emojis - //var instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdEmojiCategory(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdFileMessageParams.spec.js b/test/model/SendBirdFileMessageParams.spec.js deleted file mode 100644 index 17593c3..0000000 --- a/test/model/SendBirdFileMessageParams.spec.js +++ /dev/null @@ -1,161 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdFileMessageParams', function() { - it('should create an instance of SendBirdFileMessageParams', function() { - // uncomment below and update the code to test SendBirdFileMessageParams - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdFileMessageParams); - }); - - it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { - // uncomment below and update the code to test the property appleCriticalAlertOptions - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property fileName (base name: "file_name")', function() { - // uncomment below and update the code to test the property fileName - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property fileSize (base name: "file_size")', function() { - // uncomment below and update the code to test the property fileSize - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property fileUrl (base name: "file_url")', function() { - // uncomment below and update the code to test the property fileUrl - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { - // uncomment below and update the code to test the property mentionedUserIds - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrayKeys (base name: "meta_array_keys")', function() { - // uncomment below and update the code to test the property metaArrayKeys - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrays (base name: "meta_arrays")', function() { - // uncomment below and update the code to test the property metaArrays - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mimeType (base name: "mime_type")', function() { - // uncomment below and update the code to test the property mimeType - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property pushNotificationDeliveryOption (base name: "push_notification_delivery_option")', function() { - // uncomment below and update the code to test the property pushNotificationDeliveryOption - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property thumbnailSizes (base name: "thumbnail_sizes")', function() { - // uncomment below and update the code to test the property thumbnailSizes - //var instance = new SendbirdPlatformSdk.SendBirdFileMessageParams(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannel.spec.js b/test/model/SendBirdGroupChannel.spec.js deleted file mode 100644 index fdeca47..0000000 --- a/test/model/SendBirdGroupChannel.spec.js +++ /dev/null @@ -1,323 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannel', function() { - it('should create an instance of SendBirdGroupChannel', function() { - // uncomment below and update the code to test SendBirdGroupChannel - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannel); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property createdBy (base name: "created_by")', function() { - // uncomment below and update the code to test the property createdBy - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property creator (base name: "creator")', function() { - // uncomment below and update the code to test the property creator - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property disappearingMessage (base name: "disappearing_message")', function() { - // uncomment below and update the code to test the property disappearingMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property freeze (base name: "freeze")', function() { - // uncomment below and update the code to test the property freeze - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { - // uncomment below and update the code to test the property ignoreProfanityFilter - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property hiddenState (base name: "hidden_state")', function() { - // uncomment below and update the code to test the property hiddenState - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property invitedAt (base name: "invited_at")', function() { - // uncomment below and update the code to test the property invitedAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property inviter (base name: "inviter")', function() { - // uncomment below and update the code to test the property inviter - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { - // uncomment below and update the code to test the property isAccessCodeRequired - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isBroadcast (base name: "is_broadcast")', function() { - // uncomment below and update the code to test the property isBroadcast - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isCreated (base name: "is_created")', function() { - // uncomment below and update the code to test the property isCreated - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isDiscoverable (base name: "is_discoverable")', function() { - // uncomment below and update the code to test the property isDiscoverable - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isDistinct (base name: "is_distinct")', function() { - // uncomment below and update the code to test the property isDistinct - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isFrozen (base name: "is_frozen")', function() { - // uncomment below and update the code to test the property isFrozen - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isHidden (base name: "is_hidden")', function() { - // uncomment below and update the code to test the property isHidden - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isPublic (base name: "is_public")', function() { - // uncomment below and update the code to test the property isPublic - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isPushEnabled (base name: "is_push_enabled")', function() { - // uncomment below and update the code to test the property isPushEnabled - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isSuper (base name: "is_super")', function() { - // uncomment below and update the code to test the property isSuper - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property joinedAt (base name: "joined_at")', function() { - // uncomment below and update the code to test the property joinedAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { - // uncomment below and update the code to test the property joinedMemberCount - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property lastMessage (base name: "last_message")', function() { - // uncomment below and update the code to test the property lastMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property maxLengthMessage (base name: "max_length_message")', function() { - // uncomment below and update the code to test the property maxLengthMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property memberCount (base name: "member_count")', function() { - // uncomment below and update the code to test the property memberCount - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property members (base name: "members")', function() { - // uncomment below and update the code to test the property members - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property messageOffsetTimestamp (base name: "message_offset_timestamp")', function() { - // uncomment below and update the code to test the property messageOffsetTimestamp - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myCountPreference (base name: "my_count_preference")', function() { - // uncomment below and update the code to test the property myCountPreference - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myLastRead (base name: "my_last_read")', function() { - // uncomment below and update the code to test the property myLastRead - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myMemberState (base name: "my_member_state")', function() { - // uncomment below and update the code to test the property myMemberState - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myMutedState (base name: "my_muted_state")', function() { - // uncomment below and update the code to test the property myMutedState - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myPushTriggerOption (base name: "my_push_trigger_option")', function() { - // uncomment below and update the code to test the property myPushTriggerOption - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property myRole (base name: "my_role")', function() { - // uncomment below and update the code to test the property myRole - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property smsFallback (base name: "sms_fallback")', function() { - // uncomment below and update the code to test the property smsFallback - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { - // uncomment below and update the code to test the property unreadMentionCount - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { - // uncomment below and update the code to test the property unreadMessageCount - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - it('should have the property channel (base name: "channel")', function() { - // uncomment below and update the code to test the property channel - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelChannel.spec.js b/test/model/SendBirdGroupChannelChannel.spec.js deleted file mode 100644 index 86dc4d6..0000000 --- a/test/model/SendBirdGroupChannelChannel.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelChannel', function() { - it('should create an instance of SendBirdGroupChannelChannel', function() { - // uncomment below and update the code to test SendBirdGroupChannelChannel - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelChannel); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property maxLengthMessage (base name: "max_length_message")', function() { - // uncomment below and update the code to test the property maxLengthMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - it('should have the property memberCount (base name: "member_count")', function() { - // uncomment below and update the code to test the property memberCount - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelChannel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelCollection.spec.js b/test/model/SendBirdGroupChannelCollection.spec.js deleted file mode 100644 index 80521f7..0000000 --- a/test/model/SendBirdGroupChannelCollection.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelCollection(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelCollection', function() { - it('should create an instance of SendBirdGroupChannelCollection', function() { - // uncomment below and update the code to test SendBirdGroupChannelCollection - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCollection(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelCollection); - }); - - it('should have the property channelList (base name: "channel_list")', function() { - // uncomment below and update the code to test the property channelList - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCollection(); - //expect(instance).to.be(); - }); - - it('should have the property hasMore (base name: "has_more")', function() { - // uncomment below and update the code to test the property hasMore - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCollection(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelCreatedBy.spec.js b/test/model/SendBirdGroupChannelCreatedBy.spec.js deleted file mode 100644 index 685870c..0000000 --- a/test/model/SendBirdGroupChannelCreatedBy.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelCreatedBy', function() { - it('should create an instance of SendBirdGroupChannelCreatedBy', function() { - // uncomment below and update the code to test SendBirdGroupChannelCreatedBy - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelCreatedBy(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelDisappearingMessage.spec.js b/test/model/SendBirdGroupChannelDisappearingMessage.spec.js deleted file mode 100644 index 9fae439..0000000 --- a/test/model/SendBirdGroupChannelDisappearingMessage.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelDisappearingMessage', function() { - it('should create an instance of SendBirdGroupChannelDisappearingMessage', function() { - // uncomment below and update the code to test SendBirdGroupChannelDisappearingMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage(); - //expect(instance).to.be(); - }); - - it('should have the property isTriggeredByMessageRead (base name: "is_triggered_by_message_read")', function() { - // uncomment below and update the code to test the property isTriggeredByMessageRead - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelDisappearingMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelInviter.spec.js b/test/model/SendBirdGroupChannelInviter.spec.js deleted file mode 100644 index d5cecab..0000000 --- a/test/model/SendBirdGroupChannelInviter.spec.js +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelInviter', function() { - it('should create an instance of SendBirdGroupChannelInviter', function() { - // uncomment below and update the code to test SendBirdGroupChannelInviter - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelInviter); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property isOnline (base name: "is_online")', function() { - // uncomment below and update the code to test the property isOnline - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property accessToken (base name: "access_token")', function() { - // uncomment below and update the code to test the property accessToken - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property hasEverLoggedIn (base name: "has_ever_logged_in")', function() { - // uncomment below and update the code to test the property hasEverLoggedIn - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property lastSeenAt (base name: "last_seen_at")', function() { - // uncomment below and update the code to test the property lastSeenAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property discoveryKeys (base name: "discovery_keys")', function() { - // uncomment below and update the code to test the property discoveryKeys - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property sessionTokens (base name: "session_tokens")', function() { - // uncomment below and update the code to test the property sessionTokens - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property preferredLanguages (base name: "preferred_languages")', function() { - // uncomment below and update the code to test the property preferredLanguages - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property phoneNumber (base name: "phone_number")', function() { - // uncomment below and update the code to test the property phoneNumber - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property local (base name: "local")', function() { - // uncomment below and update the code to test the property local - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property locale (base name: "locale")', function() { - // uncomment below and update the code to test the property locale - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property isHideMeFromFriends (base name: "is_hide_me_from_friends")', function() { - // uncomment below and update the code to test the property isHideMeFromFriends - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property isShadowBlocked (base name: "is_shadow_blocked")', function() { - // uncomment below and update the code to test the property isShadowBlocked - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property isCreated (base name: "is_created")', function() { - // uncomment below and update the code to test the property isCreated - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelInviter(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelLastMessage.spec.js b/test/model/SendBirdGroupChannelLastMessage.spec.js deleted file mode 100644 index f8ea0b6..0000000 --- a/test/model/SendBirdGroupChannelLastMessage.spec.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelLastMessage', function() { - it('should create an instance of SendBirdGroupChannelLastMessage', function() { - // uncomment below and update the code to test SendBirdGroupChannelLastMessage - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelLastMessage); - }); - - it('should have the property requireAuth (base name: "require_auth")', function() { - // uncomment below and update the code to test the property requireAuth - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property translations (base name: "translations")', function() { - // uncomment below and update the code to test the property translations - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property isOpMsg (base name: "is_op_msg")', function() { - // uncomment below and update the code to test the property isOpMsg - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property isRemoved (base name: "is_removed")', function() { - // uncomment below and update the code to test the property isRemoved - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property messageRetentionHour (base name: "message_retention_hour")', function() { - // uncomment below and update the code to test the property messageRetentionHour - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property silent (base name: "silent")', function() { - // uncomment below and update the code to test the property silent - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property reqId (base name: "req_id")', function() { - // uncomment below and update the code to test the property reqId - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property threadInfo (base name: "thread_info")', function() { - // uncomment below and update the code to test the property threadInfo - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageInfo (base name: "parent_message_info")', function() { - // uncomment below and update the code to test the property parentMessageInfo - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelLastMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdGroupChannelSmsFallback.spec.js b/test/model/SendBirdGroupChannelSmsFallback.spec.js deleted file mode 100644 index 666b8dd..0000000 --- a/test/model/SendBirdGroupChannelSmsFallback.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdGroupChannelSmsFallback', function() { - it('should create an instance of SendBirdGroupChannelSmsFallback', function() { - // uncomment below and update the code to test SendBirdGroupChannelSmsFallback - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback); - }); - - it('should have the property waitSeconds (base name: "wait_seconds")', function() { - // uncomment below and update the code to test the property waitSeconds - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback(); - //expect(instance).to.be(); - }); - - it('should have the property excludeUserIds (base name: "exclude_user_ids")', function() { - // uncomment below and update the code to test the property excludeUserIds - //var instance = new SendbirdPlatformSdk.SendBirdGroupChannelSmsFallback(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdMember.spec.js b/test/model/SendBirdMember.spec.js deleted file mode 100644 index 3f8e754..0000000 --- a/test/model/SendBirdMember.spec.js +++ /dev/null @@ -1,179 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdMember(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdMember', function() { - it('should create an instance of SendBirdMember', function() { - // uncomment below and update the code to test SendBirdMember - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdMember); - }); - - it('should have the property connectionStatus (base name: "connection_status")', function() { - // uncomment below and update the code to test the property connectionStatus - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property friendDiscoveryKey (base name: "friend_discovery_key")', function() { - // uncomment below and update the code to test the property friendDiscoveryKey - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property friendName (base name: "friend_name")', function() { - // uncomment below and update the code to test the property friendName - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property isMuted (base name: "is_muted")', function() { - // uncomment below and update the code to test the property isMuted - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property lastSeenAt (base name: "last_seen_at")', function() { - // uncomment below and update the code to test the property lastSeenAt - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property plainProfileUrl (base name: "plain_profile_url")', function() { - // uncomment below and update the code to test the property plainProfileUrl - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property preferredLanguages (base name: "preferred_languages")', function() { - // uncomment below and update the code to test the property preferredLanguages - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property requireAuth (base name: "require_auth")', function() { - // uncomment below and update the code to test the property requireAuth - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property isOnline (base name: "is_online")', function() { - // uncomment below and update the code to test the property isOnline - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property mutedEndAt (base name: "muted_end_at")', function() { - // uncomment below and update the code to test the property mutedEndAt - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property mutedDescription (base name: "muted_description")', function() { - // uncomment below and update the code to test the property mutedDescription - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property restrictionInfo (base name: "restriction_info")', function() { - // uncomment below and update the code to test the property restrictionInfo - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property role (base name: "role")', function() { - // uncomment below and update the code to test the property role - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property state (base name: "state")', function() { - // uncomment below and update the code to test the property state - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdMember(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdMessageMetaArray.spec.js b/test/model/SendBirdMessageMetaArray.spec.js deleted file mode 100644 index c1627c7..0000000 --- a/test/model/SendBirdMessageMetaArray.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdMessageMetaArray(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdMessageMetaArray', function() { - it('should create an instance of SendBirdMessageMetaArray', function() { - // uncomment below and update the code to test SendBirdMessageMetaArray - //var instance = new SendbirdPlatformSdk.SendBirdMessageMetaArray(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdMessageMetaArray); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.SendBirdMessageMetaArray(); - //expect(instance).to.be(); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instance = new SendbirdPlatformSdk.SendBirdMessageMetaArray(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdMessageResponse.spec.js b/test/model/SendBirdMessageResponse.spec.js deleted file mode 100644 index 7e2ade3..0000000 --- a/test/model/SendBirdMessageResponse.spec.js +++ /dev/null @@ -1,221 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdMessageResponse', function() { - it('should create an instance of SendBirdMessageResponse', function() { - // uncomment below and update the code to test SendBirdMessageResponse - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdMessageResponse); - }); - - it('should have the property requireAuth (base name: "require_auth")', function() { - // uncomment below and update the code to test the property requireAuth - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { - // uncomment below and update the code to test the property messageSurvivalSeconds - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property translations (base name: "translations")', function() { - // uncomment below and update the code to test the property translations - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isOpMsg (base name: "is_op_msg")', function() { - // uncomment below and update the code to test the property isOpMsg - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isRemoved (base name: "is_removed")', function() { - // uncomment below and update the code to test the property isRemoved - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property user (base name: "user")', function() { - // uncomment below and update the code to test the property user - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property messageRetentionHour (base name: "message_retention_hour")', function() { - // uncomment below and update the code to test the property messageRetentionHour - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property silent (base name: "silent")', function() { - // uncomment below and update the code to test the property silent - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property reqId (base name: "req_id")', function() { - // uncomment below and update the code to test the property reqId - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property size (base name: "size")', function() { - // uncomment below and update the code to test the property size - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property threadInfo (base name: "thread_info")', function() { - // uncomment below and update the code to test the property threadInfo - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageInfo (base name: "parent_message_info")', function() { - // uncomment below and update the code to test the property parentMessageInfo - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdMessageResponseMentionedUsersInner.spec.js b/test/model/SendBirdMessageResponseMentionedUsersInner.spec.js deleted file mode 100644 index d842015..0000000 --- a/test/model/SendBirdMessageResponseMentionedUsersInner.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdMessageResponseMentionedUsersInner', function() { - it('should create an instance of SendBirdMessageResponseMentionedUsersInner', function() { - // uncomment below and update the code to test SendBirdMessageResponseMentionedUsersInner - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseMentionedUsersInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdMessageResponseUser.spec.js b/test/model/SendBirdMessageResponseUser.spec.js deleted file mode 100644 index d801d62..0000000 --- a/test/model/SendBirdMessageResponseUser.spec.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdMessageResponseUser', function() { - it('should create an instance of SendBirdMessageResponseUser', function() { - // uncomment below and update the code to test SendBirdMessageResponseUser - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdMessageResponseUser); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property role (base name: "role")', function() { - // uncomment below and update the code to test the property role - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdMessageResponseUser(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdOGImage.spec.js b/test/model/SendBirdOGImage.spec.js deleted file mode 100644 index 81b0470..0000000 --- a/test/model/SendBirdOGImage.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdOGImage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdOGImage', function() { - it('should create an instance of SendBirdOGImage', function() { - // uncomment below and update the code to test SendBirdOGImage - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdOGImage); - }); - - it('should have the property alt (base name: "alt")', function() { - // uncomment below and update the code to test the property alt - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - it('should have the property height (base name: "height")', function() { - // uncomment below and update the code to test the property height - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - it('should have the property secureUrl (base name: "secure_url")', function() { - // uncomment below and update the code to test the property secureUrl - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - it('should have the property width (base name: "width")', function() { - // uncomment below and update the code to test the property width - //var instance = new SendbirdPlatformSdk.SendBirdOGImage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdOGMetaData.spec.js b/test/model/SendBirdOGMetaData.spec.js deleted file mode 100644 index cc84392..0000000 --- a/test/model/SendBirdOGMetaData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdOGMetaData', function() { - it('should create an instance of SendBirdOGMetaData', function() { - // uncomment below and update the code to test SendBirdOGMetaData - //var instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdOGMetaData); - }); - - it('should have the property defaultImage (base name: "default_image")', function() { - // uncomment below and update the code to test the property defaultImage - //var instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - //expect(instance).to.be(); - }); - - it('should have the property title (base name: "title")', function() { - // uncomment below and update the code to test the property title - //var instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdOGMetaData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdOpenChannel.spec.js b/test/model/SendBirdOpenChannel.spec.js deleted file mode 100644 index ee20c53..0000000 --- a/test/model/SendBirdOpenChannel.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdOpenChannel', function() { - it('should create an instance of SendBirdOpenChannel', function() { - // uncomment below and update the code to test SendBirdOpenChannel - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdOpenChannel); - }); - - it('should have the property name (base name: "name")', function() { - // uncomment below and update the code to test the property name - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property coverUrl (base name: "cover_url")', function() { - // uncomment below and update the code to test the property coverUrl - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property creator (base name: "creator")', function() { - // uncomment below and update the code to test the property creator - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isDynamicPartitioned (base name: "is_dynamic_partitioned")', function() { - // uncomment below and update the code to test the property isDynamicPartitioned - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isEphemeral (base name: "is_ephemeral")', function() { - // uncomment below and update the code to test the property isEphemeral - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property isFrozen (base name: "is_frozen")', function() { - // uncomment below and update the code to test the property isFrozen - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property maxLengthMessage (base name: "max_length_message")', function() { - // uncomment below and update the code to test the property maxLengthMessage - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property operators (base name: "operators")', function() { - // uncomment below and update the code to test the property operators - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property participantCount (base name: "participant_count")', function() { - // uncomment below and update the code to test the property participantCount - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - it('should have the property freeze (base name: "freeze")', function() { - // uncomment below and update the code to test the property freeze - //var instance = new SendbirdPlatformSdk.SendBirdOpenChannel(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdPlugin.spec.js b/test/model/SendBirdPlugin.spec.js deleted file mode 100644 index accb6b4..0000000 --- a/test/model/SendBirdPlugin.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdPlugin(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdPlugin', function() { - it('should create an instance of SendBirdPlugin', function() { - // uncomment below and update the code to test SendBirdPlugin - //var instance = new SendbirdPlatformSdk.SendBirdPlugin(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdPlugin); - }); - - it('should have the property detail (base name: "detail")', function() { - // uncomment below and update the code to test the property detail - //var instance = new SendbirdPlatformSdk.SendBirdPlugin(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SendBirdPlugin(); - //expect(instance).to.be(); - }); - - it('should have the property vendor (base name: "vendor")', function() { - // uncomment below and update the code to test the property vendor - //var instance = new SendbirdPlatformSdk.SendBirdPlugin(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdPoll.spec.js b/test/model/SendBirdPoll.spec.js deleted file mode 100644 index 4cc9fd8..0000000 --- a/test/model/SendBirdPoll.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdPoll(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdPoll', function() { - it('should create an instance of SendBirdPoll', function() { - // uncomment below and update the code to test SendBirdPoll - //var instance = new SendbirdPlatformSdk.SendBirdPoll(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdPoll); - }); - - it('should have the property details (base name: "details")', function() { - // uncomment below and update the code to test the property details - //var instance = new SendbirdPlatformSdk.SendBirdPoll(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.SendBirdPoll(); - //expect(instance).to.be(); - }); - - it('should have the property title (base name: "title")', function() { - // uncomment below and update the code to test the property title - //var instance = new SendbirdPlatformSdk.SendBirdPoll(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdPollDetails.spec.js b/test/model/SendBirdPollDetails.spec.js deleted file mode 100644 index 5daa59a..0000000 --- a/test/model/SendBirdPollDetails.spec.js +++ /dev/null @@ -1,119 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdPollDetails', function() { - it('should create an instance of SendBirdPollDetails', function() { - // uncomment below and update the code to test SendBirdPollDetails - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdPollDetails); - }); - - it('should have the property allowMultipleVotes (base name: "allow_multiple_votes")', function() { - // uncomment below and update the code to test the property allowMultipleVotes - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property allowUserSuggestion (base name: "allow_user_suggestion")', function() { - // uncomment below and update the code to test the property allowUserSuggestion - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property closeAt (base name: "close_at")', function() { - // uncomment below and update the code to test the property closeAt - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property createdBy (base name: "created_by")', function() { - // uncomment below and update the code to test the property createdBy - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property isAnonymous (base name: "is_anonymous")', function() { - // uncomment below and update the code to test the property isAnonymous - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property options (base name: "options")', function() { - // uncomment below and update the code to test the property options - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - it('should have the property voterCount (base name: "voter_count")', function() { - // uncomment below and update the code to test the property voterCount - //var instance = new SendbirdPlatformSdk.SendBirdPollDetails(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdPollOption.spec.js b/test/model/SendBirdPollOption.spec.js deleted file mode 100644 index a962a52..0000000 --- a/test/model/SendBirdPollOption.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdPollOption(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdPollOption', function() { - it('should create an instance of SendBirdPollOption', function() { - // uncomment below and update the code to test SendBirdPollOption - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdPollOption); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property createdBy (base name: "created_by")', function() { - // uncomment below and update the code to test the property createdBy - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property id (base name: "id")', function() { - // uncomment below and update the code to test the property id - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property partialVoters (base name: "partial_voters")', function() { - // uncomment below and update the code to test the property partialVoters - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property pollId (base name: "poll_id")', function() { - // uncomment below and update the code to test the property pollId - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property text (base name: "text")', function() { - // uncomment below and update the code to test the property text - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - it('should have the property voteCount (base name: "vote_count")', function() { - // uncomment below and update the code to test the property voteCount - //var instance = new SendbirdPlatformSdk.SendBirdPollOption(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdPollUpdatedVoteCount.spec.js b/test/model/SendBirdPollUpdatedVoteCount.spec.js deleted file mode 100644 index 37be081..0000000 --- a/test/model/SendBirdPollUpdatedVoteCount.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdPollUpdatedVoteCount', function() { - it('should create an instance of SendBirdPollUpdatedVoteCount', function() { - // uncomment below and update the code to test SendBirdPollUpdatedVoteCount - //var instance = new SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount); - }); - - it('should have the property optionId (base name: "option_id")', function() { - // uncomment below and update the code to test the property optionId - //var instance = new SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount(); - //expect(instance).to.be(); - }); - - it('should have the property voteCount (base name: "vote_count")', function() { - // uncomment below and update the code to test the property voteCount - //var instance = new SendbirdPlatformSdk.SendBirdPollUpdatedVoteCount(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdReaction.spec.js b/test/model/SendBirdReaction.spec.js deleted file mode 100644 index 2df53f1..0000000 --- a/test/model/SendBirdReaction.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdReaction(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdReaction', function() { - it('should create an instance of SendBirdReaction', function() { - // uncomment below and update the code to test SendBirdReaction - //var instance = new SendbirdPlatformSdk.SendBirdReaction(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdReaction); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.SendBirdReaction(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdReaction(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.SendBirdReaction(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdRestrictionInfo.spec.js b/test/model/SendBirdRestrictionInfo.spec.js deleted file mode 100644 index 6d50fc2..0000000 --- a/test/model/SendBirdRestrictionInfo.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdRestrictionInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdRestrictionInfo', function() { - it('should create an instance of SendBirdRestrictionInfo', function() { - // uncomment below and update the code to test SendBirdRestrictionInfo - //var instance = new SendbirdPlatformSdk.SendBirdRestrictionInfo(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdRestrictionInfo); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.SendBirdRestrictionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.SendBirdRestrictionInfo(); - //expect(instance).to.be(); - }); - - it('should have the property restrictionType (base name: "restriction_type")', function() { - // uncomment below and update the code to test the property restrictionType - //var instance = new SendbirdPlatformSdk.SendBirdRestrictionInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdSender.spec.js b/test/model/SendBirdSender.spec.js deleted file mode 100644 index bbca608..0000000 --- a/test/model/SendBirdSender.spec.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdSender(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdSender', function() { - it('should create an instance of SendBirdSender', function() { - // uncomment below and update the code to test SendBirdSender - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdSender); - }); - - it('should have the property connectionStatus (base name: "connection_status")', function() { - // uncomment below and update the code to test the property connectionStatus - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property friendDiscoveryKey (base name: "friend_discovery_key")', function() { - // uncomment below and update the code to test the property friendDiscoveryKey - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property friendName (base name: "friend_name")', function() { - // uncomment below and update the code to test the property friendName - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property isBlockedByMe (base name: "is_blocked_by_me")', function() { - // uncomment below and update the code to test the property isBlockedByMe - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property lastSeenAt (base name: "last_seen_at")', function() { - // uncomment below and update the code to test the property lastSeenAt - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property plainProfileUrl (base name: "plain_profile_url")', function() { - // uncomment below and update the code to test the property plainProfileUrl - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property preferredLanguages (base name: "preferred_languages")', function() { - // uncomment below and update the code to test the property preferredLanguages - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property requireAuth (base name: "require_auth")', function() { - // uncomment below and update the code to test the property requireAuth - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdSender(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdThreadInfo.spec.js b/test/model/SendBirdThreadInfo.spec.js deleted file mode 100644 index fc34600..0000000 --- a/test/model/SendBirdThreadInfo.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdThreadInfo', function() { - it('should create an instance of SendBirdThreadInfo', function() { - // uncomment below and update the code to test SendBirdThreadInfo - //var instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdThreadInfo); - }); - - it('should have the property lastRepliedAt (base name: "last_replied_at")', function() { - // uncomment below and update the code to test the property lastRepliedAt - //var instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - //expect(instance).to.be(); - }); - - it('should have the property mostRepliedUsers (base name: "most_replied_users")', function() { - // uncomment below and update the code to test the property mostRepliedUsers - //var instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - //expect(instance).to.be(); - }); - - it('should have the property replyCount (base name: "reply_count")', function() { - // uncomment below and update the code to test the property replyCount - //var instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - //expect(instance).to.be(); - }); - - it('should have the property updatedAt (base name: "updated_at")', function() { - // uncomment below and update the code to test the property updatedAt - //var instance = new SendbirdPlatformSdk.SendBirdThreadInfo(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdThumbnailSBObject.spec.js b/test/model/SendBirdThumbnailSBObject.spec.js deleted file mode 100644 index e8682f8..0000000 --- a/test/model/SendBirdThumbnailSBObject.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdThumbnailSBObject', function() { - it('should create an instance of SendBirdThumbnailSBObject', function() { - // uncomment below and update the code to test SendBirdThumbnailSBObject - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdThumbnailSBObject); - }); - - it('should have the property height (base name: "height")', function() { - // uncomment below and update the code to test the property height - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - it('should have the property plainUrl (base name: "plain_url")', function() { - // uncomment below and update the code to test the property plainUrl - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - it('should have the property realHeight (base name: "real_height")', function() { - // uncomment below and update the code to test the property realHeight - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - it('should have the property realWidth (base name: "real_width")', function() { - // uncomment below and update the code to test the property realWidth - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - it('should have the property width (base name: "width")', function() { - // uncomment below and update the code to test the property width - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSBObject(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdThumbnailSize.spec.js b/test/model/SendBirdThumbnailSize.spec.js deleted file mode 100644 index e5a8c52..0000000 --- a/test/model/SendBirdThumbnailSize.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdThumbnailSize(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdThumbnailSize', function() { - it('should create an instance of SendBirdThumbnailSize', function() { - // uncomment below and update the code to test SendBirdThumbnailSize - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSize(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdThumbnailSize); - }); - - it('should have the property maxHeight (base name: "max_height")', function() { - // uncomment below and update the code to test the property maxHeight - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSize(); - //expect(instance).to.be(); - }); - - it('should have the property maxWidth (base name: "max_width")', function() { - // uncomment below and update the code to test the property maxWidth - //var instance = new SendbirdPlatformSdk.SendBirdThumbnailSize(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdUser.spec.js b/test/model/SendBirdUser.spec.js deleted file mode 100644 index 0788c85..0000000 --- a/test/model/SendBirdUser.spec.js +++ /dev/null @@ -1,197 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdUser(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdUser', function() { - it('should create an instance of SendBirdUser', function() { - // uncomment below and update the code to test SendBirdUser - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdUser); - }); - - it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { - // uncomment below and update the code to test the property requireAuthForProfileImage - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property isOnline (base name: "is_online")', function() { - // uncomment below and update the code to test the property isOnline - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property accessToken (base name: "access_token")', function() { - // uncomment below and update the code to test the property accessToken - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property hasEverLoggedIn (base name: "has_ever_logged_in")', function() { - // uncomment below and update the code to test the property hasEverLoggedIn - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property lastSeenAt (base name: "last_seen_at")', function() { - // uncomment below and update the code to test the property lastSeenAt - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property discoveryKeys (base name: "discovery_keys")', function() { - // uncomment below and update the code to test the property discoveryKeys - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property sessionTokens (base name: "session_tokens")', function() { - // uncomment below and update the code to test the property sessionTokens - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property preferredLanguages (base name: "preferred_languages")', function() { - // uncomment below and update the code to test the property preferredLanguages - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property phoneNumber (base name: "phone_number")', function() { - // uncomment below and update the code to test the property phoneNumber - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property local (base name: "local")', function() { - // uncomment below and update the code to test the property local - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property locale (base name: "locale")', function() { - // uncomment below and update the code to test the property locale - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property isHideMeFromFriends (base name: "is_hide_me_from_friends")', function() { - // uncomment below and update the code to test the property isHideMeFromFriends - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property isShadowBlocked (base name: "is_shadow_blocked")', function() { - // uncomment below and update the code to test the property isShadowBlocked - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property isCreated (base name: "is_created")', function() { - // uncomment below and update the code to test the property isCreated - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property description (base name: "description")', function() { - // uncomment below and update the code to test the property description - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - it('should have the property startAt (base name: "start_at")', function() { - // uncomment below and update the code to test the property startAt - //var instance = new SendbirdPlatformSdk.SendBirdUser(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBirdUserMessageParams.spec.js b/test/model/SendBirdUserMessageParams.spec.js deleted file mode 100644 index 17282bd..0000000 --- a/test/model/SendBirdUserMessageParams.spec.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBirdUserMessageParams', function() { - it('should create an instance of SendBirdUserMessageParams', function() { - // uncomment below and update the code to test SendBirdUserMessageParams - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBirdUserMessageParams); - }); - - it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { - // uncomment below and update the code to test the property appleCriticalAlertOptions - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { - // uncomment below and update the code to test the property isReplyToChannel - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { - // uncomment below and update the code to test the property mentionedUserIds - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUsers (base name: "mentioned_users")', function() { - // uncomment below and update the code to test the property mentionedUsers - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrayKeys (base name: "meta_array_keys")', function() { - // uncomment below and update the code to test the property metaArrayKeys - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property metaArrays (base name: "meta_arrays")', function() { - // uncomment below and update the code to test the property metaArrays - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property parentMessageId (base name: "parent_message_id")', function() { - // uncomment below and update the code to test the property parentMessageId - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property pollId (base name: "poll_id")', function() { - // uncomment below and update the code to test the property pollId - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property pushNotificationDeliveryOption (base name: "push_notification_delivery_option")', function() { - // uncomment below and update the code to test the property pushNotificationDeliveryOption - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property targetLanguages (base name: "target_languages")', function() { - // uncomment below and update the code to test the property targetLanguages - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - it('should have the property translationTargetLanguages (base name: "translation_target_languages")', function() { - // uncomment below and update the code to test the property translationTargetLanguages - //var instance = new SendbirdPlatformSdk.SendBirdUserMessageParams(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendBotSMessageData.spec.js b/test/model/SendBotSMessageData.spec.js deleted file mode 100644 index add2336..0000000 --- a/test/model/SendBotSMessageData.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendBotSMessageData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendBotSMessageData', function() { - it('should create an instance of SendBotSMessageData', function() { - // uncomment below and update the code to test SendBotSMessageData - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendBotSMessageData); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sendPush (base name: "send_push")', function() { - // uncomment below and update the code to test the property sendPush - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property mentioned (base name: "mentioned")', function() { - // uncomment below and update the code to test the property mentioned - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property markAsRead (base name: "mark_as_read")', function() { - // uncomment below and update the code to test the property markAsRead - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property dedupId (base name: "dedup_id")', function() { - // uncomment below and update the code to test the property dedupId - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendBotSMessageData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendFileMessageRequestBody.spec.js b/test/model/SendFileMessageRequestBody.spec.js new file mode 100644 index 0000000..6d33d8e --- /dev/null +++ b/test/model/SendFileMessageRequestBody.spec.js @@ -0,0 +1,185 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendFileMessageRequestBody', function() { + it('should create an instance of SendFileMessageRequestBody', function() { + // uncomment below and update the code to test SendFileMessageRequestBody + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendFileMessageRequestBody); + }); + + it('should have the property apnsBundleId (base name: "apns_bundle_id")', function() { + // uncomment below and update the code to test the property apnsBundleId + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { + // uncomment below and update the code to test the property appleCriticalAlertOptions + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property dedupId (base name: "dedup_id")', function() { + // uncomment below and update the code to test the property dedupId + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property files (base name: "files")', function() { + // uncomment below and update the code to test the property files + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property isSilent (base name: "is_silent")', function() { + // uncomment below and update the code to test the property isSilent + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { + // uncomment below and update the code to test the property mentionedUserIds + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property messageType (base name: "message_type")', function() { + // uncomment below and update the code to test the property messageType + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property requireAuth (base name: "require_auth")', function() { + // uncomment below and update the code to test the property requireAuth + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sendPush (base name: "send_push")', function() { + // uncomment below and update the code to test the property sendPush + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sound (base name: "sound")', function() { + // uncomment below and update the code to test the property sound + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail1 (base name: "thumbnail1")', function() { + // uncomment below and update the code to test the property thumbnail1 + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail2 (base name: "thumbnail2")', function() { + // uncomment below and update the code to test the property thumbnail2 + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnail3 (base name: "thumbnail3")', function() { + // uncomment below and update the code to test the property thumbnail3 + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnails (base name: "thumbnails")', function() { + // uncomment below and update the code to test the property thumbnails + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property volume (base name: "volume")', function() { + // uncomment below and update the code to test the property volume + //var instance = new SendbirdPlatformSdk.SendFileMessageRequestBody(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendMessageData.spec.js b/test/model/SendMessageData.spec.js deleted file mode 100644 index f52b9d3..0000000 --- a/test/model/SendMessageData.spec.js +++ /dev/null @@ -1,215 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SendMessageData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SendMessageData', function() { - it('should create an instance of SendMessageData', function() { - // uncomment below and update the code to test SendMessageData - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SendMessageData); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property messageType (base name: "message_type")', function() { - // uncomment below and update the code to test the property messageType - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sendPush (base name: "send_push")', function() { - // uncomment below and update the code to test the property sendPush - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { - // uncomment below and update the code to test the property mentionedUserIds - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property isSilent (base name: "is_silent")', function() { - // uncomment below and update the code to test the property isSilent - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property dedupId (base name: "dedup_id")', function() { - // uncomment below and update the code to test the property dedupId - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsBundleId (base name: "apns_bundle_id")', function() { - // uncomment below and update the code to test the property apnsBundleId - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sound (base name: "sound")', function() { - // uncomment below and update the code to test the property sound - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property fileName (base name: "file_name")', function() { - // uncomment below and update the code to test the property fileName - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property fileSize (base name: "file_size")', function() { - // uncomment below and update the code to test the property fileSize - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property fileType (base name: "file_type")', function() { - // uncomment below and update the code to test the property fileType - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property thumbnails (base name: "thumbnails")', function() { - // uncomment below and update the code to test the property thumbnails - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property thumbnail1 (base name: "thumbnail1")', function() { - // uncomment below and update the code to test the property thumbnail1 - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property thumbnail2 (base name: "thumbnail2")', function() { - // uncomment below and update the code to test the property thumbnail2 - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property thumbnail3 (base name: "thumbnail3")', function() { - // uncomment below and update the code to test the property thumbnail3 - //var instance = new SendbirdPlatformSdk.SendMessageData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SendTextMessageRequestBody.spec.js b/test/model/SendTextMessageRequestBody.spec.js new file mode 100644 index 0000000..2f13c7d --- /dev/null +++ b/test/model/SendTextMessageRequestBody.spec.js @@ -0,0 +1,173 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendTextMessageRequestBody', function() { + it('should create an instance of SendTextMessageRequestBody', function() { + // uncomment below and update the code to test SendTextMessageRequestBody + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendTextMessageRequestBody); + }); + + it('should have the property apnsBundleId (base name: "apns_bundle_id")', function() { + // uncomment below and update the code to test the property apnsBundleId + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property appleCriticalAlertOptions (base name: "apple_critical_alert_options")', function() { + // uncomment below and update the code to test the property appleCriticalAlertOptions + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property dedupId (base name: "dedup_id")', function() { + // uncomment below and update the code to test the property dedupId + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property includePollDetails (base name: "include_poll_details")', function() { + // uncomment below and update the code to test the property includePollDetails + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property isSilent (base name: "is_silent")', function() { + // uncomment below and update the code to test the property isSilent + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property markAsRead (base name: "mark_as_read")', function() { + // uncomment below and update the code to test the property markAsRead + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { + // uncomment below and update the code to test the property mentionedUserIds + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property messageType (base name: "message_type")', function() { + // uncomment below and update the code to test the property messageType + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property pollId (base name: "poll_id")', function() { + // uncomment below and update the code to test the property pollId + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property pushMessageTemplate (base name: "push_message_template")', function() { + // uncomment below and update the code to test the property pushMessageTemplate + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sendPush (base name: "send_push")', function() { + // uncomment below and update the code to test the property sendPush + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property sound (base name: "sound")', function() { + // uncomment below and update the code to test the property sound + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + it('should have the property volume (base name: "volume")', function() { + // uncomment below and update the code to test the property volume + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBody(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendTextMessageRequestBodyPushMessageTemplate.spec.js b/test/model/SendTextMessageRequestBodyPushMessageTemplate.spec.js new file mode 100644 index 0000000..ca3e4f0 --- /dev/null +++ b/test/model/SendTextMessageRequestBodyPushMessageTemplate.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendTextMessageRequestBodyPushMessageTemplate', function() { + it('should create an instance of SendTextMessageRequestBodyPushMessageTemplate', function() { + // uncomment below and update the code to test SendTextMessageRequestBodyPushMessageTemplate + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate); + }); + + it('should have the property title (base name: "title")', function() { + // uncomment below and update the code to test the property title + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate(); + //expect(instance).to.be(); + }); + + it('should have the property body (base name: "body")', function() { + // uncomment below and update the code to test the property body + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.spec.js b/test/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.spec.js new file mode 100644 index 0000000..9eaedb0 --- /dev/null +++ b/test/model/SendTextMessageRequestBodyPushMessageTemplateOneOf.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendTextMessageRequestBodyPushMessageTemplateOneOf', function() { + it('should create an instance of SendTextMessageRequestBodyPushMessageTemplateOneOf', function() { + // uncomment below and update the code to test SendTextMessageRequestBodyPushMessageTemplateOneOf + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf); + }); + + it('should have the property title (base name: "title")', function() { + // uncomment below and update the code to test the property title + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf(); + //expect(instance).to.be(); + }); + + it('should have the property body (base name: "body")', function() { + // uncomment below and update the code to test the property body + //var instance = new SendbirdPlatformSdk.SendTextMessageRequestBodyPushMessageTemplateOneOf(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdBasicUserInfo.spec.js b/test/model/SendbirdBasicUserInfo.spec.js new file mode 100644 index 0000000..b3edb87 --- /dev/null +++ b/test/model/SendbirdBasicUserInfo.spec.js @@ -0,0 +1,107 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdBasicUserInfo', function() { + it('should create an instance of SendbirdBasicUserInfo', function() { + // uncomment below and update the code to test SendbirdBasicUserInfo + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdBasicUserInfo); + }); + + it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { + // uncomment below and update the code to test the property requireAuthForProfileImage + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property isActive (base name: "is_active")', function() { + // uncomment below and update the code to test the property isActive + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property isBlockedByMe (base name: "is_blocked_by_me")', function() { + // uncomment below and update the code to test the property isBlockedByMe + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property nickname (base name: "nickname")', function() { + // uncomment below and update the code to test the property nickname + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property profileUrl (base name: "profile_url")', function() { + // uncomment below and update the code to test the property profileUrl + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.SendbirdBasicUserInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdDisappearingMessage.spec.js b/test/model/SendbirdDisappearingMessage.spec.js new file mode 100644 index 0000000..0340267 --- /dev/null +++ b/test/model/SendbirdDisappearingMessage.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdDisappearingMessage(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdDisappearingMessage', function() { + it('should create an instance of SendbirdDisappearingMessage', function() { + // uncomment below and update the code to test SendbirdDisappearingMessage + //var instance = new SendbirdPlatformSdk.SendbirdDisappearingMessage(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdDisappearingMessage); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.SendbirdDisappearingMessage(); + //expect(instance).to.be(); + }); + + it('should have the property isTriggeredByMessageRead (base name: "is_triggered_by_message_read")', function() { + // uncomment below and update the code to test the property isTriggeredByMessageRead + //var instance = new SendbirdPlatformSdk.SendbirdDisappearingMessage(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdExtendedMessagePayload.spec.js b/test/model/SendbirdExtendedMessagePayload.spec.js new file mode 100644 index 0000000..00b7b33 --- /dev/null +++ b/test/model/SendbirdExtendedMessagePayload.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdExtendedMessagePayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdExtendedMessagePayload', function() { + it('should create an instance of SendbirdExtendedMessagePayload', function() { + // uncomment below and update the code to test SendbirdExtendedMessagePayload + //var instance = new SendbirdPlatformSdk.SendbirdExtendedMessagePayload(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdExtendedMessagePayload); + }); + + it('should have the property customView (base name: "custom_view")', function() { + // uncomment below and update the code to test the property customView + //var instance = new SendbirdPlatformSdk.SendbirdExtendedMessagePayload(); + //expect(instance).to.be(); + }); + + it('should have the property suggestedReplies (base name: "suggested_replies")', function() { + // uncomment below and update the code to test the property suggestedReplies + //var instance = new SendbirdPlatformSdk.SendbirdExtendedMessagePayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdFile.spec.js b/test/model/SendbirdFile.spec.js new file mode 100644 index 0000000..3a1eb58 --- /dev/null +++ b/test/model/SendbirdFile.spec.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdFile(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdFile', function() { + it('should create an instance of SendbirdFile', function() { + // uncomment below and update the code to test SendbirdFile + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdFile); + }); + + it('should have the property url (base name: "url")', function() { + // uncomment below and update the code to test the property url + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + it('should have the property fileName (base name: "file_name")', function() { + // uncomment below and update the code to test the property fileName + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + it('should have the property fileSize (base name: "file_size")', function() { + // uncomment below and update the code to test the property fileSize + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + it('should have the property fileType (base name: "file_type")', function() { + // uncomment below and update the code to test the property fileType + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + it('should have the property thumbnails (base name: "thumbnails")', function() { + // uncomment below and update the code to test the property thumbnails + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + it('should have the property requireAuth (base name: "require_auth")', function() { + // uncomment below and update the code to test the property requireAuth + //var instance = new SendbirdPlatformSdk.SendbirdFile(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdGroupChannel.spec.js b/test/model/SendbirdGroupChannel.spec.js new file mode 100644 index 0000000..e8a9741 --- /dev/null +++ b/test/model/SendbirdGroupChannel.spec.js @@ -0,0 +1,329 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdGroupChannel', function() { + it('should create an instance of SendbirdGroupChannel', function() { + // uncomment below and update the code to test SendbirdGroupChannel + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdGroupChannel); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property countPreference (base name: "count_preference")', function() { + // uncomment below and update the code to test the property countPreference + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "created_by")', function() { + // uncomment below and update the code to test the property createdBy + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property deliveryReceipt (base name: "delivery_receipt")', function() { + // uncomment below and update the code to test the property deliveryReceipt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property disappearingMessage (base name: "disappearing_message")', function() { + // uncomment below and update the code to test the property disappearingMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property hasAiBot (base name: "has_ai_bot")', function() { + // uncomment below and update the code to test the property hasAiBot + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property hasBot (base name: "has_bot")', function() { + // uncomment below and update the code to test the property hasBot + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property hiddenState (base name: "hidden_state")', function() { + // uncomment below and update the code to test the property hiddenState + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { + // uncomment below and update the code to test the property ignoreProfanityFilter + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property invitedAt (base name: "invited_at")', function() { + // uncomment below and update the code to test the property invitedAt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property inviter (base name: "inviter")', function() { + // uncomment below and update the code to test the property inviter + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { + // uncomment below and update the code to test the property isAccessCodeRequired + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isBroadcast (base name: "is_broadcast")', function() { + // uncomment below and update the code to test the property isBroadcast + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isDiscoverable (base name: "is_discoverable")', function() { + // uncomment below and update the code to test the property isDiscoverable + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isExclusive (base name: "is_exclusive")', function() { + // uncomment below and update the code to test the property isExclusive + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isHidden (base name: "is_hidden")', function() { + // uncomment below and update the code to test the property isHidden + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isMuted (base name: "is_muted")', function() { + // uncomment below and update the code to test the property isMuted + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isPushEnabled (base name: "is_push_enabled")', function() { + // uncomment below and update the code to test the property isPushEnabled + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { + // uncomment below and update the code to test the property joinedMemberCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property joinedTs (base name: "joined_ts")', function() { + // uncomment below and update the code to test the property joinedTs + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property lastMessage (base name: "last_message")', function() { + // uncomment below and update the code to test the property lastMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property memberCount (base name: "member_count")', function() { + // uncomment below and update the code to test the property memberCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property memberState (base name: "member_state")', function() { + // uncomment below and update the code to test the property memberState + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property members (base name: "members")', function() { + // uncomment below and update the code to test the property members + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property myRole (base name: "my_role")', function() { + // uncomment below and update the code to test the property myRole + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property readReceipt (base name: "read_receipt")', function() { + // uncomment below and update the code to test the property readReceipt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property smsFallback (base name: "sms_fallback")', function() { + // uncomment below and update the code to test the property smsFallback + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property tsMessageOffset (base name: "ts_message_offset")', function() { + // uncomment below and update the code to test the property tsMessageOffset + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { + // uncomment below and update the code to test the property unreadMentionCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { + // uncomment below and update the code to test the property unreadMessageCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + it('should have the property userLastRead (base name: "user_last_read")', function() { + // uncomment below and update the code to test the property userLastRead + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdGroupChannelDetail.spec.js b/test/model/SendbirdGroupChannelDetail.spec.js new file mode 100644 index 0000000..d82ffd8 --- /dev/null +++ b/test/model/SendbirdGroupChannelDetail.spec.js @@ -0,0 +1,257 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdGroupChannelDetail', function() { + it('should create an instance of SendbirdGroupChannelDetail', function() { + // uncomment below and update the code to test SendbirdGroupChannelDetail + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdGroupChannelDetail); + }); + + it('should have the property channel (base name: "channel")', function() { + // uncomment below and update the code to test the property channel + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property createdBy (base name: "created_by")', function() { + // uncomment below and update the code to test the property createdBy + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property deliveryReceipt (base name: "delivery_receipt")', function() { + // uncomment below and update the code to test the property deliveryReceipt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property disappearingMessage (base name: "disappearing_message")', function() { + // uncomment below and update the code to test the property disappearingMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property hasAiBot (base name: "has_ai_bot")', function() { + // uncomment below and update the code to test the property hasAiBot + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property hasBot (base name: "has_bot")', function() { + // uncomment below and update the code to test the property hasBot + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property ignoreProfanityFilter (base name: "ignore_profanity_filter")', function() { + // uncomment below and update the code to test the property ignoreProfanityFilter + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isAccessCodeRequired (base name: "is_access_code_required")', function() { + // uncomment below and update the code to test the property isAccessCodeRequired + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isBroadcast (base name: "is_broadcast")', function() { + // uncomment below and update the code to test the property isBroadcast + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isDiscoverable (base name: "is_discoverable")', function() { + // uncomment below and update the code to test the property isDiscoverable + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property joinedMemberCount (base name: "joined_member_count")', function() { + // uncomment below and update the code to test the property joinedMemberCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property lastMessage (base name: "last_message")', function() { + // uncomment below and update the code to test the property lastMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property memberCount (base name: "member_count")', function() { + // uncomment below and update the code to test the property memberCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property members (base name: "members")', function() { + // uncomment below and update the code to test the property members + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property operators (base name: "operators")', function() { + // uncomment below and update the code to test the property operators + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property readReceipt (base name: "read_receipt")', function() { + // uncomment below and update the code to test the property readReceipt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property smsFallback (base name: "sms_fallback")', function() { + // uncomment below and update the code to test the property smsFallback + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMentionCount (base name: "unread_mention_count")', function() { + // uncomment below and update the code to test the property unreadMentionCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { + // uncomment below and update the code to test the property unreadMessageCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdGroupChannelDetailChannel.spec.js b/test/model/SendbirdGroupChannelDetailChannel.spec.js new file mode 100644 index 0000000..aae7321 --- /dev/null +++ b/test/model/SendbirdGroupChannelDetailChannel.spec.js @@ -0,0 +1,107 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdGroupChannelDetailChannel', function() { + it('should create an instance of SendbirdGroupChannelDetailChannel', function() { + // uncomment below and update the code to test SendbirdGroupChannelDetailChannel + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property memberCount (base name: "member_count")', function() { + // uncomment below and update the code to test the property memberCount + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.SendbirdGroupChannelDetailChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdMember.spec.js b/test/model/SendbirdMember.spec.js new file mode 100644 index 0000000..dac6e1c --- /dev/null +++ b/test/model/SendbirdMember.spec.js @@ -0,0 +1,191 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdMember(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdMember', function() { + it('should create an instance of SendbirdMember', function() { + // uncomment below and update the code to test SendbirdMember + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdMember); + }); + + it('should have the property deliveredTs (base name: "delivered_ts")', function() { + // uncomment below and update the code to test the property deliveredTs + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { + // uncomment below and update the code to test the property doNotDisturb + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property friendDiscoveryKey (base name: "friend_discovery_key")', function() { + // uncomment below and update the code to test the property friendDiscoveryKey + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property friendName (base name: "friend_name")', function() { + // uncomment below and update the code to test the property friendName + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property isActive (base name: "is_active")', function() { + // uncomment below and update the code to test the property isActive + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property isBlockedByMe (base name: "is_blocked_by_me")', function() { + // uncomment below and update the code to test the property isBlockedByMe + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property isBlockingMe (base name: "is_blocking_me")', function() { + // uncomment below and update the code to test the property isBlockingMe + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property isMuted (base name: "is_muted")', function() { + // uncomment below and update the code to test the property isMuted + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property isOnline (base name: "is_online")', function() { + // uncomment below and update the code to test the property isOnline + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property lastSeenAt (base name: "last_seen_at")', function() { + // uncomment below and update the code to test the property lastSeenAt + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property mutedDescription (base name: "muted_description")', function() { + // uncomment below and update the code to test the property mutedDescription + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property mutedEndAt (base name: "muted_end_at")', function() { + // uncomment below and update the code to test the property mutedEndAt + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property nickname (base name: "nickname")', function() { + // uncomment below and update the code to test the property nickname + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property pushEnabled (base name: "push_enabled")', function() { + // uncomment below and update the code to test the property pushEnabled + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property profileUrl (base name: "profile_url")', function() { + // uncomment below and update the code to test the property profileUrl + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { + // uncomment below and update the code to test the property requireAuthForProfileImage + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property readTs (base name: "read_ts")', function() { + // uncomment below and update the code to test the property readTs + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property role (base name: "role")', function() { + // uncomment below and update the code to test the property role + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property state (base name: "state")', function() { + // uncomment below and update the code to test the property state + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.SendbirdMember(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdMessageResponse.spec.js b/test/model/SendbirdMessageResponse.spec.js new file mode 100644 index 0000000..1528d43 --- /dev/null +++ b/test/model/SendbirdMessageResponse.spec.js @@ -0,0 +1,239 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdMessageResponse', function() { + it('should create an instance of SendbirdMessageResponse', function() { + // uncomment below and update the code to test SendbirdMessageResponse + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdMessageResponse); + }); + + it('should have the property requireAuth (base name: "require_auth")', function() { + // uncomment below and update the code to test the property requireAuth + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageSurvivalSeconds (base name: "message_survival_seconds")', function() { + // uncomment below and update the code to test the property messageSurvivalSeconds + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUsers (base name: "mentioned_users")', function() { + // uncomment below and update the code to test the property mentionedUsers + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property translations (base name: "translations")', function() { + // uncomment below and update the code to test the property translations + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isOpMsg (base name: "is_op_msg")', function() { + // uncomment below and update the code to test the property isOpMsg + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property reactions (base name: "reactions")', function() { + // uncomment below and update the code to test the property reactions + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isRemoved (base name: "is_removed")', function() { + // uncomment below and update the code to test the property isRemoved + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property user (base name: "user")', function() { + // uncomment below and update the code to test the property user + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property file (base name: "file")', function() { + // uncomment below and update the code to test the property file + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property files (base name: "files")', function() { + // uncomment below and update the code to test the property files + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageRetentionHour (base name: "message_retention_hour")', function() { + // uncomment below and update the code to test the property messageRetentionHour + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property silent (base name: "silent")', function() { + // uncomment below and update the code to test the property silent + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property channelType (base name: "channel_type")', function() { + // uncomment below and update the code to test the property channelType + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property reqId (base name: "req_id")', function() { + // uncomment below and update the code to test the property reqId + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageId (base name: "message_id")', function() { + // uncomment below and update the code to test the property messageId + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property threadInfo (base name: "thread_info")', function() { + // uncomment below and update the code to test the property threadInfo + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property parentMessageId (base name: "parent_message_id")', function() { + // uncomment below and update the code to test the property parentMessageId + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property parentMessageInfo (base name: "parent_message_info")', function() { + // uncomment below and update the code to test the property parentMessageInfo + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property isReplyToChannel (base name: "is_reply_to_channel")', function() { + // uncomment below and update the code to test the property isReplyToChannel + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property messageEvents (base name: "message_events")', function() { + // uncomment below and update the code to test the property messageEvents + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property extendedMessagePayload (base name: "extended_message_payload")', function() { + // uncomment below and update the code to test the property extendedMessagePayload + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdMessageResponseMessageEvents.spec.js b/test/model/SendbirdMessageResponseMessageEvents.spec.js new file mode 100644 index 0000000..1b71786 --- /dev/null +++ b/test/model/SendbirdMessageResponseMessageEvents.spec.js @@ -0,0 +1,83 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdMessageResponseMessageEvents', function() { + it('should create an instance of SendbirdMessageResponseMessageEvents', function() { + // uncomment below and update the code to test SendbirdMessageResponseMessageEvents + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents); + }); + + it('should have the property sendPushNotification (base name: "send_push_notification")', function() { + // uncomment below and update the code to test the property sendPushNotification + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + //expect(instance).to.be(); + }); + + it('should have the property updateUnreadCount (base name: "update_unread_count")', function() { + // uncomment below and update the code to test the property updateUnreadCount + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + //expect(instance).to.be(); + }); + + it('should have the property updateMentionCount (base name: "update_mention_count")', function() { + // uncomment below and update the code to test the property updateMentionCount + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + //expect(instance).to.be(); + }); + + it('should have the property updateLastMessage (base name: "update_last_message")', function() { + // uncomment below and update the code to test the property updateLastMessage + //var instance = new SendbirdPlatformSdk.SendbirdMessageResponseMessageEvents(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdOpenChannel.spec.js b/test/model/SendbirdOpenChannel.spec.js new file mode 100644 index 0000000..62bfd86 --- /dev/null +++ b/test/model/SendbirdOpenChannel.spec.js @@ -0,0 +1,137 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdOpenChannel', function() { + it('should create an instance of SendbirdOpenChannel', function() { + // uncomment below and update the code to test SendbirdOpenChannel + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdOpenChannel); + }); + + it('should have the property channelUrl (base name: "channel_url")', function() { + // uncomment below and update the code to test the property channelUrl + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property freeze (base name: "freeze")', function() { + // uncomment below and update the code to test the property freeze + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isDynamicPartitioned (base name: "is_dynamic_partitioned")', function() { + // uncomment below and update the code to test the property isDynamicPartitioned + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property isEphemeral (base name: "is_ephemeral")', function() { + // uncomment below and update the code to test the property isEphemeral + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property maxLengthMessage (base name: "max_length_message")', function() { + // uncomment below and update the code to test the property maxLengthMessage + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property operators (base name: "operators")', function() { + // uncomment below and update the code to test the property operators + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property participantCount (base name: "participant_count")', function() { + // uncomment below and update the code to test the property participantCount + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.SendbirdOpenChannel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdParentMessageInfo.spec.js b/test/model/SendbirdParentMessageInfo.spec.js new file mode 100644 index 0000000..7eb0c5b --- /dev/null +++ b/test/model/SendbirdParentMessageInfo.spec.js @@ -0,0 +1,101 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdParentMessageInfo', function() { + it('should create an instance of SendbirdParentMessageInfo', function() { + // uncomment below and update the code to test SendbirdParentMessageInfo + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdParentMessageInfo); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property ts (base name: "ts")', function() { + // uncomment below and update the code to test the property ts + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property user (base name: "user")', function() { + // uncomment below and update the code to test the property user + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property file (base name: "file")', function() { + // uncomment below and update the code to test the property file + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + it('should have the property files (base name: "files")', function() { + // uncomment below and update the code to test the property files + //var instance = new SendbirdPlatformSdk.SendbirdParentMessageInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdPushTriggerOption.spec.js b/test/model/SendbirdPushTriggerOption.spec.js new file mode 100644 index 0000000..9999173 --- /dev/null +++ b/test/model/SendbirdPushTriggerOption.spec.js @@ -0,0 +1,58 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdPushTriggerOption', function() { + it('should create an instance of SendbirdPushTriggerOption', function() { + // uncomment below and update the code to test SendbirdPushTriggerOption + //var instance = new SendbirdPlatformSdk.SendbirdPushTriggerOption(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdPushTriggerOption); + }); + + }); + +})); diff --git a/test/model/SendbirdReaction.spec.js b/test/model/SendbirdReaction.spec.js new file mode 100644 index 0000000..64f3606 --- /dev/null +++ b/test/model/SendbirdReaction.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdReaction(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdReaction', function() { + it('should create an instance of SendbirdReaction', function() { + // uncomment below and update the code to test SendbirdReaction + //var instance = new SendbirdPlatformSdk.SendbirdReaction(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdReaction); + }); + + it('should have the property key (base name: "key")', function() { + // uncomment below and update the code to test the property key + //var instance = new SendbirdPlatformSdk.SendbirdReaction(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updated_at")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new SendbirdPlatformSdk.SendbirdReaction(); + //expect(instance).to.be(); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.SendbirdReaction(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdSmsFallback.spec.js b/test/model/SendbirdSmsFallback.spec.js new file mode 100644 index 0000000..ed942e6 --- /dev/null +++ b/test/model/SendbirdSmsFallback.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdSmsFallback(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdSmsFallback', function() { + it('should create an instance of SendbirdSmsFallback', function() { + // uncomment below and update the code to test SendbirdSmsFallback + //var instance = new SendbirdPlatformSdk.SendbirdSmsFallback(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdSmsFallback); + }); + + it('should have the property waitSeconds (base name: "wait_seconds")', function() { + // uncomment below and update the code to test the property waitSeconds + //var instance = new SendbirdPlatformSdk.SendbirdSmsFallback(); + //expect(instance).to.be(); + }); + + it('should have the property excludeUserIds (base name: "exclude_user_ids")', function() { + // uncomment below and update the code to test the property excludeUserIds + //var instance = new SendbirdPlatformSdk.SendbirdSmsFallback(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdSortedMetaarrayInner.spec.js b/test/model/SendbirdSortedMetaarrayInner.spec.js new file mode 100644 index 0000000..d5dba59 --- /dev/null +++ b/test/model/SendbirdSortedMetaarrayInner.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdSortedMetaarrayInner(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdSortedMetaarrayInner', function() { + it('should create an instance of SendbirdSortedMetaarrayInner', function() { + // uncomment below and update the code to test SendbirdSortedMetaarrayInner + //var instance = new SendbirdPlatformSdk.SendbirdSortedMetaarrayInner(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdSortedMetaarrayInner); + }); + + it('should have the property key (base name: "key")', function() { + // uncomment below and update the code to test the property key + //var instance = new SendbirdPlatformSdk.SendbirdSortedMetaarrayInner(); + //expect(instance).to.be(); + }); + + it('should have the property value (base name: "value")', function() { + // uncomment below and update the code to test the property value + //var instance = new SendbirdPlatformSdk.SendbirdSortedMetaarrayInner(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdThumbnail.spec.js b/test/model/SendbirdThumbnail.spec.js new file mode 100644 index 0000000..4c1cc70 --- /dev/null +++ b/test/model/SendbirdThumbnail.spec.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdThumbnail', function() { + it('should create an instance of SendbirdThumbnail', function() { + // uncomment below and update the code to test SendbirdThumbnail + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdThumbnail); + }); + + it('should have the property height (base name: "height")', function() { + // uncomment below and update the code to test the property height + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + it('should have the property plainUrl (base name: "plain_url")', function() { + // uncomment below and update the code to test the property plainUrl + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + it('should have the property realHeight (base name: "real_height")', function() { + // uncomment below and update the code to test the property realHeight + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + it('should have the property realWidth (base name: "real_width")', function() { + // uncomment below and update the code to test the property realWidth + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + it('should have the property url (base name: "url")', function() { + // uncomment below and update the code to test the property url + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + it('should have the property width (base name: "width")', function() { + // uncomment below and update the code to test the property width + //var instance = new SendbirdPlatformSdk.SendbirdThumbnail(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SendbirdUser.spec.js b/test/model/SendbirdUser.spec.js new file mode 100644 index 0000000..40af447 --- /dev/null +++ b/test/model/SendbirdUser.spec.js @@ -0,0 +1,191 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.SendbirdUser(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SendbirdUser', function() { + it('should create an instance of SendbirdUser', function() { + // uncomment below and update the code to test SendbirdUser + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be.a(SendbirdPlatformSdk.SendbirdUser); + }); + + it('should have the property accessToken (base name: "access_token")', function() { + // uncomment below and update the code to test the property accessToken + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "created_at")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property discoveryKeys (base name: "discovery_keys")', function() { + // uncomment below and update the code to test the property discoveryKeys + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property hasEverLoggedIn (base name: "has_ever_logged_in")', function() { + // uncomment below and update the code to test the property hasEverLoggedIn + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property isActive (base name: "is_active")', function() { + // uncomment below and update the code to test the property isActive + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property isHideMeFromFriends (base name: "is_hide_me_from_friends")', function() { + // uncomment below and update the code to test the property isHideMeFromFriends + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property isOnline (base name: "is_online")', function() { + // uncomment below and update the code to test the property isOnline + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property isShadowBlocked (base name: "is_shadow_blocked")', function() { + // uncomment below and update the code to test the property isShadowBlocked + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property lastSeenAt (base name: "last_seen_at")', function() { + // uncomment below and update the code to test the property lastSeenAt + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property locale (base name: "locale")', function() { + // uncomment below and update the code to test the property locale + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property nickname (base name: "nickname")', function() { + // uncomment below and update the code to test the property nickname + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property preferredLanguages (base name: "preferred_languages")', function() { + // uncomment below and update the code to test the property preferredLanguages + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property profileUrl (base name: "profile_url")', function() { + // uncomment below and update the code to test the property profileUrl + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property requireAuthForProfileImage (base name: "require_auth_for_profile_image")', function() { + // uncomment below and update the code to test the property requireAuthForProfileImage + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property userId (base name: "user_id")', function() { + // uncomment below and update the code to test the property userId + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property state (base name: "state")', function() { + // uncomment below and update the code to test the property state + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property unreadChannelCount (base name: "unread_channel_count")', function() { + // uncomment below and update the code to test the property unreadChannelCount + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property unreadMessageCount (base name: "unread_message_count")', function() { + // uncomment below and update the code to test the property unreadMessageCount + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property phoneNumber (base name: "phone_number")', function() { + // uncomment below and update the code to test the property phoneNumber + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property isCreated (base name: "is_created")', function() { + // uncomment below and update the code to test the property isCreated + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + it('should have the property sessionTokens (base name: "session_tokens")', function() { + // uncomment below and update the code to test the property sessionTokens + //var instance = new SendbirdPlatformSdk.SendbirdUser(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SetDomainFilterData.spec.js b/test/model/SetDomainFilterData.spec.js deleted file mode 100644 index 937d21a..0000000 --- a/test/model/SetDomainFilterData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterData', function() { - it('should create an instance of SetDomainFilterData', function() { - // uncomment below and update the code to test SetDomainFilterData - //var instance = new SendbirdPlatformSdk.SetDomainFilterData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterData); - }); - - it('should have the property domainFilter (base name: "domain_filter")', function() { - // uncomment below and update the code to test the property domainFilter - //var instance = new SendbirdPlatformSdk.SetDomainFilterData(); - //expect(instance).to.be(); - }); - - it('should have the property profanityFilter (base name: "profanity_filter")', function() { - // uncomment below and update the code to test the property profanityFilter - //var instance = new SendbirdPlatformSdk.SetDomainFilterData(); - //expect(instance).to.be(); - }); - - it('should have the property profanityTriggeredModeration (base name: "profanity_triggered_moderation")', function() { - // uncomment below and update the code to test the property profanityTriggeredModeration - //var instance = new SendbirdPlatformSdk.SetDomainFilterData(); - //expect(instance).to.be(); - }); - - it('should have the property imageModeration (base name: "image_moderation")', function() { - // uncomment below and update the code to test the property imageModeration - //var instance = new SendbirdPlatformSdk.SetDomainFilterData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataDomainFilter.spec.js b/test/model/SetDomainFilterDataDomainFilter.spec.js deleted file mode 100644 index 8afdde8..0000000 --- a/test/model/SetDomainFilterDataDomainFilter.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataDomainFilter(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataDomainFilter', function() { - it('should create an instance of SetDomainFilterDataDomainFilter', function() { - // uncomment below and update the code to test SetDomainFilterDataDomainFilter - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataDomainFilter(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataDomainFilter); - }); - - it('should have the property domains (base name: "domains")', function() { - // uncomment below and update the code to test the property domains - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataDomainFilter(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataDomainFilter(); - //expect(instance).to.be(); - }); - - it('should have the property shouldCheckGlobal (base name: "should_check_global")', function() { - // uncomment below and update the code to test the property shouldCheckGlobal - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataDomainFilter(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataImageModeration.spec.js b/test/model/SetDomainFilterDataImageModeration.spec.js deleted file mode 100644 index c604a17..0000000 --- a/test/model/SetDomainFilterDataImageModeration.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataImageModeration', function() { - it('should create an instance of SetDomainFilterDataImageModeration', function() { - // uncomment below and update the code to test SetDomainFilterDataImageModeration - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataImageModeration); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - //expect(instance).to.be(); - }); - - it('should have the property softBlock (base name: "soft_block")', function() { - // uncomment below and update the code to test the property softBlock - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - //expect(instance).to.be(); - }); - - it('should have the property limits (base name: "limits")', function() { - // uncomment below and update the code to test the property limits - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - //expect(instance).to.be(); - }); - - it('should have the property checkUrls (base name: "check_urls")', function() { - // uncomment below and update the code to test the property checkUrls - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModeration(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataImageModerationLimits.spec.js b/test/model/SetDomainFilterDataImageModerationLimits.spec.js deleted file mode 100644 index a9c8209..0000000 --- a/test/model/SetDomainFilterDataImageModerationLimits.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataImageModerationLimits', function() { - it('should create an instance of SetDomainFilterDataImageModerationLimits', function() { - // uncomment below and update the code to test SetDomainFilterDataImageModerationLimits - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits); - }); - - it('should have the property adult (base name: "adult")', function() { - // uncomment below and update the code to test the property adult - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be(); - }); - - it('should have the property spoof (base name: "spoof")', function() { - // uncomment below and update the code to test the property spoof - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be(); - }); - - it('should have the property medical (base name: "medical")', function() { - // uncomment below and update the code to test the property medical - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be(); - }); - - it('should have the property violence (base name: "violence")', function() { - // uncomment below and update the code to test the property violence - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be(); - }); - - it('should have the property racy (base name: "racy")', function() { - // uncomment below and update the code to test the property racy - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataImageModerationLimits(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataProfanityFilter.spec.js b/test/model/SetDomainFilterDataProfanityFilter.spec.js deleted file mode 100644 index 27a0061..0000000 --- a/test/model/SetDomainFilterDataProfanityFilter.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataProfanityFilter', function() { - it('should create an instance of SetDomainFilterDataProfanityFilter', function() { - // uncomment below and update the code to test SetDomainFilterDataProfanityFilter - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter); - }); - - it('should have the property keywords (base name: "keywords")', function() { - // uncomment below and update the code to test the property keywords - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - //expect(instance).to.be(); - }); - - it('should have the property regexFilters (base name: "regex_filters")', function() { - // uncomment below and update the code to test the property regexFilters - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - //expect(instance).to.be(); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - //expect(instance).to.be(); - }); - - it('should have the property shouldCheckGlobal (base name: "should_check_global")', function() { - // uncomment below and update the code to test the property shouldCheckGlobal - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilter(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.spec.js b/test/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.spec.js deleted file mode 100644 index 2df352c..0000000 --- a/test/model/SetDomainFilterDataProfanityFilterRegexFiltersInner.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilterRegexFiltersInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataProfanityFilterRegexFiltersInner', function() { - it('should create an instance of SetDomainFilterDataProfanityFilterRegexFiltersInner', function() { - // uncomment below and update the code to test SetDomainFilterDataProfanityFilterRegexFiltersInner - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilterRegexFiltersInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataProfanityFilterRegexFiltersInner); - }); - - it('should have the property regex (base name: "regex")', function() { - // uncomment below and update the code to test the property regex - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityFilterRegexFiltersInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/SetDomainFilterDataProfanityTriggeredModeration.spec.js b/test/model/SetDomainFilterDataProfanityTriggeredModeration.spec.js deleted file mode 100644 index 1caaa47..0000000 --- a/test/model/SetDomainFilterDataProfanityTriggeredModeration.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('SetDomainFilterDataProfanityTriggeredModeration', function() { - it('should create an instance of SetDomainFilterDataProfanityTriggeredModeration', function() { - // uncomment below and update the code to test SetDomainFilterDataProfanityTriggeredModeration - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration(); - //expect(instance).to.be.a(SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration); - }); - - it('should have the property count (base name: "count")', function() { - // uncomment below and update the code to test the property count - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration(); - //expect(instance).to.be(); - }); - - it('should have the property duration (base name: "duration")', function() { - // uncomment below and update the code to test the property duration - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration(); - //expect(instance).to.be(); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.SetDomainFilterDataProfanityTriggeredModeration(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/StartTypingIndicatorsRequest.spec.js b/test/model/StartTypingIndicatorsRequest.spec.js new file mode 100644 index 0000000..4ddfb79 --- /dev/null +++ b/test/model/StartTypingIndicatorsRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.StartTypingIndicatorsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('StartTypingIndicatorsRequest', function() { + it('should create an instance of StartTypingIndicatorsRequest', function() { + // uncomment below and update the code to test StartTypingIndicatorsRequest + //var instance = new SendbirdPlatformSdk.StartTypingIndicatorsRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.StartTypingIndicatorsRequest); + }); + + it('should have the property userIds (base name: "user_ids")', function() { + // uncomment below and update the code to test the property userIds + //var instance = new SendbirdPlatformSdk.StartTypingIndicatorsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/TranslateMessageIntoOtherLanguagesData.spec.js b/test/model/TranslateMessageIntoOtherLanguagesData.spec.js deleted file mode 100644 index c576b2d..0000000 --- a/test/model/TranslateMessageIntoOtherLanguagesData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('TranslateMessageIntoOtherLanguagesData', function() { - it('should create an instance of TranslateMessageIntoOtherLanguagesData', function() { - // uncomment below and update the code to test TranslateMessageIntoOtherLanguagesData - //var instance = new SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData); - }); - - it('should have the property targetLangs (base name: "target_langs")', function() { - // uncomment below and update the code to test the property targetLangs - //var instance = new SendbirdPlatformSdk.TranslateMessageIntoOtherLanguagesData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateAChannelMetadataRequest.spec.js b/test/model/UpdateAChannelMetadataRequest.spec.js new file mode 100644 index 0000000..d49f6e8 --- /dev/null +++ b/test/model/UpdateAChannelMetadataRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateAChannelMetadataRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAChannelMetadataRequest', function() { + it('should create an instance of UpdateAChannelMetadataRequest', function() { + // uncomment below and update the code to test UpdateAChannelMetadataRequest + //var instance = new SendbirdPlatformSdk.UpdateAChannelMetadataRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAChannelMetadataRequest); + }); + + it('should have the property metadata (base name: "metadata")', function() { + // uncomment below and update the code to test the property metadata + //var instance = new SendbirdPlatformSdk.UpdateAChannelMetadataRequest(); + //expect(instance).to.be(); + }); + + it('should have the property upsert (base name: "upsert")', function() { + // uncomment below and update the code to test the property upsert + //var instance = new SendbirdPlatformSdk.UpdateAChannelMetadataRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAGroupChannelRequest.spec.js b/test/model/UpdateAGroupChannelRequest.spec.js new file mode 100644 index 0000000..f692be1 --- /dev/null +++ b/test/model/UpdateAGroupChannelRequest.spec.js @@ -0,0 +1,119 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAGroupChannelRequest', function() { + it('should create an instance of UpdateAGroupChannelRequest', function() { + // uncomment below and update the code to test UpdateAGroupChannelRequest + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAGroupChannelRequest); + }); + + it('should have the property accessCode (base name: "access_code")', function() { + // uncomment below and update the code to test the property accessCode + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverFile (base name: "cover_file")', function() { + // uncomment below and update the code to test the property coverFile + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isDistinct (base name: "is_distinct")', function() { + // uncomment below and update the code to test the property isDistinct + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isPublic (base name: "is_public")', function() { + // uncomment below and update the code to test the property isPublic + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isSuper (base name: "is_super")', function() { + // uncomment below and update the code to test the property isSuper + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property operatorIds (base name: "operator_ids")', function() { + // uncomment below and update the code to test the property operatorIds + //var instance = new SendbirdPlatformSdk.UpdateAGroupChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAMessageRequest.spec.js b/test/model/UpdateAMessageRequest.spec.js new file mode 100644 index 0000000..a9b7f4a --- /dev/null +++ b/test/model/UpdateAMessageRequest.spec.js @@ -0,0 +1,101 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAMessageRequest', function() { + it('should create an instance of UpdateAMessageRequest', function() { + // uncomment below and update the code to test UpdateAMessageRequest + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAMessageRequest); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property mentionType (base name: "mention_type")', function() { + // uncomment below and update the code to test the property mentionType + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { + // uncomment below and update the code to test the property mentionedUserIds + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property url (base name: "url")', function() { + // uncomment below and update the code to test the property url + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property messageType (base name: "message_type")', function() { + // uncomment below and update the code to test the property messageType + //var instance = new SendbirdPlatformSdk.UpdateAMessageRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAUserRequest.spec.js b/test/model/UpdateAUserRequest.spec.js new file mode 100644 index 0000000..21c4709 --- /dev/null +++ b/test/model/UpdateAUserRequest.spec.js @@ -0,0 +1,113 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAUserRequest', function() { + it('should create an instance of UpdateAUserRequest', function() { + // uncomment below and update the code to test UpdateAUserRequest + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAUserRequest); + }); + + it('should have the property discoveryKeys (base name: "discovery_keys")', function() { + // uncomment below and update the code to test the property discoveryKeys + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property isActive (base name: "is_active")', function() { + // uncomment below and update the code to test the property isActive + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property issueAccessToken (base name: "issue_access_token")', function() { + // uncomment below and update the code to test the property issueAccessToken + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property lastSeenAt (base name: "last_seen_at")', function() { + // uncomment below and update the code to test the property lastSeenAt + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property leaveAllWhenDeactivated (base name: "leave_all_when_deactivated")', function() { + // uncomment below and update the code to test the property leaveAllWhenDeactivated + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property nickname (base name: "nickname")', function() { + // uncomment below and update the code to test the property nickname + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property preferredLanguages (base name: "preferred_languages")', function() { + // uncomment below and update the code to test the property preferredLanguages + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property profileFile (base name: "profile_file")', function() { + // uncomment below and update the code to test the property profileFile + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + it('should have the property profileUrl (base name: "profile_url")', function() { + // uncomment below and update the code to test the property profileUrl + //var instance = new SendbirdPlatformSdk.UpdateAUserRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAnOpenChannelRequest.spec.js b/test/model/UpdateAnOpenChannelRequest.spec.js new file mode 100644 index 0000000..bfecbc0 --- /dev/null +++ b/test/model/UpdateAnOpenChannelRequest.spec.js @@ -0,0 +1,95 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateAnOpenChannelRequest', function() { + it('should create an instance of UpdateAnOpenChannelRequest', function() { + // uncomment below and update the code to test UpdateAnOpenChannelRequest + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAnOpenChannelRequest); + }); + + it('should have the property coverFile (base name: "cover_file")', function() { + // uncomment below and update the code to test the property coverFile + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property coverUrl (base name: "cover_url")', function() { + // uncomment below and update the code to test the property coverUrl + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property customType (base name: "custom_type")', function() { + // uncomment below and update the code to test the property customType + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property data (base name: "data")', function() { + // uncomment below and update the code to test the property data + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property operatorIds (base name: "operator_ids")', function() { + // uncomment below and update the code to test the property operatorIds + //var instance = new SendbirdPlatformSdk.UpdateAnOpenChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateAnnouncementByIdData.spec.js b/test/model/UpdateAnnouncementByIdData.spec.js deleted file mode 100644 index d2849aa..0000000 --- a/test/model/UpdateAnnouncementByIdData.spec.js +++ /dev/null @@ -1,161 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateAnnouncementByIdData', function() { - it('should create an instance of UpdateAnnouncementByIdData', function() { - // uncomment below and update the code to test UpdateAnnouncementByIdData - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAnnouncementByIdData); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannel (base name: "create_channel")', function() { - // uncomment below and update the code to test the property createChannel - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsName (base name: "create_channel_options.name")', function() { - // uncomment below and update the code to test the property createChannelOptionsName - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsCoverUrl (base name: "create_channel_options.cover_url")', function() { - // uncomment below and update the code to test the property createChannelOptionsCoverUrl - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsCustomType (base name: "create_channel_options.custom_type")', function() { - // uncomment below and update the code to test the property createChannelOptionsCustomType - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsData (base name: "create_channel_options.data")', function() { - // uncomment below and update the code to test the property createChannelOptionsData - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptionsDistinct (base name: "create_channel_options.distinct")', function() { - // uncomment below and update the code to test the property createChannelOptionsDistinct - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageUserId (base name: "message.user_id")', function() { - // uncomment below and update the code to test the property messageUserId - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageContent (base name: "message.content")', function() { - // uncomment below and update the code to test the property messageContent - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageData (base name: "message.data")', function() { - // uncomment below and update the code to test the property messageData - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property ceaseAt (base name: "cease_at")', function() { - // uncomment below and update the code to test the property ceaseAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property resumeAt (base name: "resume_at")', function() { - // uncomment below and update the code to test the property resumeAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateAnnouncementByIdResponse.spec.js b/test/model/UpdateAnnouncementByIdResponse.spec.js deleted file mode 100644 index 97276f0..0000000 --- a/test/model/UpdateAnnouncementByIdResponse.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateAnnouncementByIdResponse', function() { - it('should create an instance of UpdateAnnouncementByIdResponse', function() { - // uncomment below and update the code to test UpdateAnnouncementByIdResponse - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAnnouncementByIdResponse); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateAnnouncementByIdResponseMessage.spec.js b/test/model/UpdateAnnouncementByIdResponseMessage.spec.js deleted file mode 100644 index d17fc5b..0000000 --- a/test/model/UpdateAnnouncementByIdResponseMessage.spec.js +++ /dev/null @@ -1,149 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateAnnouncementByIdResponseMessage', function() { - it('should create an instance of UpdateAnnouncementByIdResponseMessage', function() { - // uncomment below and update the code to test UpdateAnnouncementByIdResponseMessage - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage); - }); - - it('should have the property type (base name: "type")', function() { - // uncomment below and update the code to test the property type - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property content (base name: "content")', function() { - // uncomment below and update the code to test the property content - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property targetAt (base name: "target_at")', function() { - // uncomment below and update the code to test the property targetAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property targetUserCount (base name: "target_user_count")', function() { - // uncomment below and update the code to test the property targetUserCount - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelCount (base name: "target_channel_count")', function() { - // uncomment below and update the code to test the property targetChannelCount - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property completedAt (base name: "completed_at")', function() { - // uncomment below and update the code to test the property completedAt - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property sentUserCount (base name: "sent_user_count")', function() { - // uncomment below and update the code to test the property sentUserCount - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property openCount (base name: "open_count")', function() { - // uncomment below and update the code to test the property openCount - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - it('should have the property openRate (base name: "open_rate")', function() { - // uncomment below and update the code to test the property openRate - //var instance = new SendbirdPlatformSdk.UpdateAnnouncementByIdResponseMessage(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateApnsPushConfigurationByIdData.spec.js b/test/model/UpdateApnsPushConfigurationByIdData.spec.js deleted file mode 100644 index bba2b6e..0000000 --- a/test/model/UpdateApnsPushConfigurationByIdData.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateApnsPushConfigurationByIdData', function() { - it('should create an instance of UpdateApnsPushConfigurationByIdData', function() { - // uncomment below and update the code to test UpdateApnsPushConfigurationByIdData - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData); - }); - - it('should have the property providerId (base name: "provider_id")', function() { - // uncomment below and update the code to test the property providerId - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCert (base name: "apns_cert")', function() { - // uncomment below and update the code to test the property apnsCert - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCertEnvType (base name: "apns_cert_env_type")', function() { - // uncomment below and update the code to test the property apnsCertEnvType - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsCertPassword (base name: "apns_cert_password")', function() { - // uncomment below and update the code to test the property apnsCertPassword - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property hasUnreadCountBadge (base name: "has_unread_count_badge")', function() { - // uncomment below and update the code to test the property hasUnreadCountBadge - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property contentAvailable (base name: "content_available")', function() { - // uncomment below and update the code to test the property contentAvailable - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property mutableContent (base name: "mutable_content")', function() { - // uncomment below and update the code to test the property mutableContent - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property apnsType (base name: "apns_type")', function() { - // uncomment below and update the code to test the property apnsType - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateApnsPushConfigurationByIdResponse.spec.js b/test/model/UpdateApnsPushConfigurationByIdResponse.spec.js deleted file mode 100644 index 35c0674..0000000 --- a/test/model/UpdateApnsPushConfigurationByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateApnsPushConfigurationByIdResponse', function() { - it('should create an instance of UpdateApnsPushConfigurationByIdResponse', function() { - // uncomment below and update the code to test UpdateApnsPushConfigurationByIdResponse - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.UpdateApnsPushConfigurationByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateBotByIdData.spec.js b/test/model/UpdateBotByIdData.spec.js deleted file mode 100644 index 33bda25..0000000 --- a/test/model/UpdateBotByIdData.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateBotByIdData', function() { - it('should create an instance of UpdateBotByIdData', function() { - // uncomment below and update the code to test UpdateBotByIdData - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateBotByIdData); - }); - - it('should have the property botUserid (base name: "bot_userid")', function() { - // uncomment below and update the code to test the property botUserid - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property botNickname (base name: "bot_nickname")', function() { - // uncomment below and update the code to test the property botNickname - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property botProfileUrl (base name: "bot_profile_url")', function() { - // uncomment below and update the code to test the property botProfileUrl - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { - // uncomment below and update the code to test the property botCallbackUrl - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { - // uncomment below and update the code to test the property isPrivacyMode - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { - // uncomment below and update the code to test the property enableMarkAsRead - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference - //var instance = new SendbirdPlatformSdk.UpdateBotByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateBotByIdResponse.spec.js b/test/model/UpdateBotByIdResponse.spec.js deleted file mode 100644 index 94809c2..0000000 --- a/test/model/UpdateBotByIdResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateBotByIdResponse', function() { - it('should create an instance of UpdateBotByIdResponse', function() { - // uncomment below and update the code to test UpdateBotByIdResponse - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateBotByIdResponse); - }); - - it('should have the property bot (base name: "bot")', function() { - // uncomment below and update the code to test the property bot - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { - // uncomment below and update the code to test the property botCallbackUrl - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { - // uncomment below and update the code to test the property enableMarkAsRead - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { - // uncomment below and update the code to test the property isPrivacyMode - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference - //var instance = new SendbirdPlatformSdk.UpdateBotByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateChannelInvitationPreferenceData.spec.js b/test/model/UpdateChannelInvitationPreferenceData.spec.js deleted file mode 100644 index e25f240..0000000 --- a/test/model/UpdateChannelInvitationPreferenceData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateChannelInvitationPreferenceData', function() { - it('should create an instance of UpdateChannelInvitationPreferenceData', function() { - // uncomment below and update the code to test UpdateChannelInvitationPreferenceData - //var instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData); - }); - - it('should have the property autoAccept (base name: "auto_accept")', function() { - // uncomment below and update the code to test the property autoAccept - //var instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateChannelInvitationPreferenceRequest.spec.js b/test/model/UpdateChannelInvitationPreferenceRequest.spec.js new file mode 100644 index 0000000..16b3270 --- /dev/null +++ b/test/model/UpdateChannelInvitationPreferenceRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateChannelInvitationPreferenceRequest', function() { + it('should create an instance of UpdateChannelInvitationPreferenceRequest', function() { + // uncomment below and update the code to test UpdateChannelInvitationPreferenceRequest + //var instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest); + }); + + it('should have the property autoAccept (base name: "auto_accept")', function() { + // uncomment below and update the code to test the property autoAccept + //var instance = new SendbirdPlatformSdk.UpdateChannelInvitationPreferenceRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateChannelInvitationPreferenceResponse.spec.js b/test/model/UpdateChannelInvitationPreferenceResponse.spec.js index ab06894..37780e5 100644 --- a/test/model/UpdateChannelInvitationPreferenceResponse.spec.js +++ b/test/model/UpdateChannelInvitationPreferenceResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/UpdateChannelMetacounterData.spec.js b/test/model/UpdateChannelMetacounterData.spec.js deleted file mode 100644 index 020f7e0..0000000 --- a/test/model/UpdateChannelMetacounterData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateChannelMetacounterData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateChannelMetacounterData', function() { - it('should create an instance of UpdateChannelMetacounterData', function() { - // uncomment below and update the code to test UpdateChannelMetacounterData - //var instance = new SendbirdPlatformSdk.UpdateChannelMetacounterData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateChannelMetacounterData); - }); - - it('should have the property metacounter (base name: "metacounter")', function() { - // uncomment below and update the code to test the property metacounter - //var instance = new SendbirdPlatformSdk.UpdateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - it('should have the property mode (base name: "mode")', function() { - // uncomment below and update the code to test the property mode - //var instance = new SendbirdPlatformSdk.UpdateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - it('should have the property upsert (base name: "upsert")', function() { - // uncomment below and update the code to test the property upsert - //var instance = new SendbirdPlatformSdk.UpdateChannelMetacounterData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateChannelMetadataData.spec.js b/test/model/UpdateChannelMetadataData.spec.js deleted file mode 100644 index 0b6fe9d..0000000 --- a/test/model/UpdateChannelMetadataData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateChannelMetadataData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateChannelMetadataData', function() { - it('should create an instance of UpdateChannelMetadataData', function() { - // uncomment below and update the code to test UpdateChannelMetadataData - //var instance = new SendbirdPlatformSdk.UpdateChannelMetadataData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateChannelMetadataData); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.UpdateChannelMetadataData(); - //expect(instance).to.be(); - }); - - it('should have the property upsert (base name: "upsert")', function() { - // uncomment below and update the code to test the property upsert - //var instance = new SendbirdPlatformSdk.UpdateChannelMetadataData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateCountPreferenceOfAChannelRequest.spec.js b/test/model/UpdateCountPreferenceOfAChannelRequest.spec.js new file mode 100644 index 0000000..1ff1a35 --- /dev/null +++ b/test/model/UpdateCountPreferenceOfAChannelRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateCountPreferenceOfAChannelRequest', function() { + it('should create an instance of UpdateCountPreferenceOfAChannelRequest', function() { + // uncomment below and update the code to test UpdateCountPreferenceOfAChannelRequest + //var instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest); + }); + + it('should have the property countPreference (base name: "count_preference")', function() { + // uncomment below and update the code to test the property countPreference + //var instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfAChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateCountPreferenceOfChannelByUrlData.spec.js b/test/model/UpdateCountPreferenceOfChannelByUrlData.spec.js deleted file mode 100644 index 88101a1..0000000 --- a/test/model/UpdateCountPreferenceOfChannelByUrlData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateCountPreferenceOfChannelByUrlData', function() { - it('should create an instance of UpdateCountPreferenceOfChannelByUrlData', function() { - // uncomment below and update the code to test UpdateCountPreferenceOfChannelByUrlData - //var instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData); - }); - - it('should have the property countPreference (base name: "count_preference")', function() { - // uncomment below and update the code to test the property countPreference - //var instance = new SendbirdPlatformSdk.UpdateCountPreferenceOfChannelByUrlData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js b/test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js index 5a05200..cfbdab9 100644 --- a/test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js +++ b/test/model/UpdateCountPreferenceOfChannelByUrlResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/UpdateDefaultChannelInvitationPreferenceData.spec.js b/test/model/UpdateDefaultChannelInvitationPreferenceData.spec.js deleted file mode 100644 index cb6abb8..0000000 --- a/test/model/UpdateDefaultChannelInvitationPreferenceData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateDefaultChannelInvitationPreferenceData', function() { - it('should create an instance of UpdateDefaultChannelInvitationPreferenceData', function() { - // uncomment below and update the code to test UpdateDefaultChannelInvitationPreferenceData - //var instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData); - }); - - it('should have the property autoAccept (base name: "auto_accept")', function() { - // uncomment below and update the code to test the property autoAccept - //var instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateDefaultChannelInvitationPreferenceResponse.spec.js b/test/model/UpdateDefaultChannelInvitationPreferenceResponse.spec.js deleted file mode 100644 index cdc6c3c..0000000 --- a/test/model/UpdateDefaultChannelInvitationPreferenceResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateDefaultChannelInvitationPreferenceResponse', function() { - it('should create an instance of UpdateDefaultChannelInvitationPreferenceResponse', function() { - // uncomment below and update the code to test UpdateDefaultChannelInvitationPreferenceResponse - //var instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceResponse); - }); - - it('should have the property autoAccept (base name: "auto_accept")', function() { - // uncomment below and update the code to test the property autoAccept - //var instance = new SendbirdPlatformSdk.UpdateDefaultChannelInvitationPreferenceResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateEmojiCategoryUrlByIdData.spec.js b/test/model/UpdateEmojiCategoryUrlByIdData.spec.js deleted file mode 100644 index ffb4cea..0000000 --- a/test/model/UpdateEmojiCategoryUrlByIdData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateEmojiCategoryUrlByIdData', function() { - it('should create an instance of UpdateEmojiCategoryUrlByIdData', function() { - // uncomment below and update the code to test UpdateEmojiCategoryUrlByIdData - //var instance = new SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData); - }); - - it('should have the property emojiCategoryId (base name: "emoji_category_id")', function() { - // uncomment below and update the code to test the property emojiCategoryId - //var instance = new SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.UpdateEmojiCategoryUrlByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateEmojiUrlByKeyData.spec.js b/test/model/UpdateEmojiUrlByKeyData.spec.js deleted file mode 100644 index 527fcc2..0000000 --- a/test/model/UpdateEmojiUrlByKeyData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateEmojiUrlByKeyData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateEmojiUrlByKeyData', function() { - it('should create an instance of UpdateEmojiUrlByKeyData', function() { - // uncomment below and update the code to test UpdateEmojiUrlByKeyData - //var instance = new SendbirdPlatformSdk.UpdateEmojiUrlByKeyData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateEmojiUrlByKeyData); - }); - - it('should have the property emojiKey (base name: "emoji_key")', function() { - // uncomment below and update the code to test the property emojiKey - //var instance = new SendbirdPlatformSdk.UpdateEmojiUrlByKeyData(); - //expect(instance).to.be(); - }); - - it('should have the property url (base name: "url")', function() { - // uncomment below and update the code to test the property url - //var instance = new SendbirdPlatformSdk.UpdateEmojiUrlByKeyData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateExtraDataInAMessageRequest.spec.js b/test/model/UpdateExtraDataInAMessageRequest.spec.js new file mode 100644 index 0000000..18f74e9 --- /dev/null +++ b/test/model/UpdateExtraDataInAMessageRequest.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateExtraDataInAMessageRequest', function() { + it('should create an instance of UpdateExtraDataInAMessageRequest', function() { + // uncomment below and update the code to test UpdateExtraDataInAMessageRequest + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest); + }); + + it('should have the property mode (base name: "mode")', function() { + // uncomment below and update the code to test the property mode + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest(); + //expect(instance).to.be(); + }); + + it('should have the property upsert (base name: "upsert")', function() { + // uncomment below and update the code to test the property upsert + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateExtraDataInAMessageResponse.spec.js b/test/model/UpdateExtraDataInAMessageResponse.spec.js new file mode 100644 index 0000000..3ecbc43 --- /dev/null +++ b/test/model/UpdateExtraDataInAMessageResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateExtraDataInAMessageResponse', function() { + it('should create an instance of UpdateExtraDataInAMessageResponse', function() { + // uncomment below and update the code to test UpdateExtraDataInAMessageResponse + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateExtraDataInAMessageResponse); + }); + + it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { + // uncomment below and update the code to test the property sortedMetaarray + //var instance = new SendbirdPlatformSdk.UpdateExtraDataInAMessageResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateExtraDataInMessageData.spec.js b/test/model/UpdateExtraDataInMessageData.spec.js deleted file mode 100644 index d1831ac..0000000 --- a/test/model/UpdateExtraDataInMessageData.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateExtraDataInMessageData', function() { - it('should create an instance of UpdateExtraDataInMessageData', function() { - // uncomment below and update the code to test UpdateExtraDataInMessageData - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateExtraDataInMessageData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property mode (base name: "mode")', function() { - // uncomment below and update the code to test the property mode - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - it('should have the property upsert (base name: "upsert")', function() { - // uncomment below and update the code to test the property upsert - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateExtraDataInMessageResponse.spec.js b/test/model/UpdateExtraDataInMessageResponse.spec.js deleted file mode 100644 index 93e6320..0000000 --- a/test/model/UpdateExtraDataInMessageResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateExtraDataInMessageResponse', function() { - it('should create an instance of UpdateExtraDataInMessageResponse', function() { - // uncomment below and update the code to test UpdateExtraDataInMessageResponse - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateExtraDataInMessageResponse); - }); - - it('should have the property sortedMetaarray (base name: "sorted_metaarray")', function() { - // uncomment below and update the code to test the property sortedMetaarray - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.spec.js b/test/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.spec.js deleted file mode 100644 index 41dd12a..0000000 --- a/test/model/UpdateExtraDataInMessageResponseSortedMetaarrayInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateExtraDataInMessageResponseSortedMetaarrayInner', function() { - it('should create an instance of UpdateExtraDataInMessageResponseSortedMetaarrayInner', function() { - // uncomment below and update the code to test UpdateExtraDataInMessageResponseSortedMetaarrayInner - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner); - }); - - it('should have the property value (base name: "value")', function() { - // uncomment below and update the code to test the property value - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - //expect(instance).to.be(); - }); - - it('should have the property key (base name: "key")', function() { - // uncomment below and update the code to test the property key - //var instance = new SendbirdPlatformSdk.UpdateExtraDataInMessageResponseSortedMetaarrayInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateFcmPushConfigurationByIdData.spec.js b/test/model/UpdateFcmPushConfigurationByIdData.spec.js deleted file mode 100644 index cff3d66..0000000 --- a/test/model/UpdateFcmPushConfigurationByIdData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateFcmPushConfigurationByIdData', function() { - it('should create an instance of UpdateFcmPushConfigurationByIdData', function() { - // uncomment below and update the code to test UpdateFcmPushConfigurationByIdData - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData); - }); - - it('should have the property providerId (base name: "provider_id")', function() { - // uncomment below and update the code to test the property providerId - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property apiKey (base name: "api_key")', function() { - // uncomment below and update the code to test the property apiKey - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateFcmPushConfigurationByIdResponse.spec.js b/test/model/UpdateFcmPushConfigurationByIdResponse.spec.js deleted file mode 100644 index 06e01d6..0000000 --- a/test/model/UpdateFcmPushConfigurationByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateFcmPushConfigurationByIdResponse', function() { - it('should create an instance of UpdateFcmPushConfigurationByIdResponse', function() { - // uncomment below and update the code to test UpdateFcmPushConfigurationByIdResponse - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.UpdateFcmPushConfigurationByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateHmsPushConfigurationByIdData.spec.js b/test/model/UpdateHmsPushConfigurationByIdData.spec.js deleted file mode 100644 index 248138e..0000000 --- a/test/model/UpdateHmsPushConfigurationByIdData.spec.js +++ /dev/null @@ -1,83 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateHmsPushConfigurationByIdData', function() { - it('should create an instance of UpdateHmsPushConfigurationByIdData', function() { - // uncomment below and update the code to test UpdateHmsPushConfigurationByIdData - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData); - }); - - it('should have the property providerId (base name: "provider_id")', function() { - // uncomment below and update the code to test the property providerId - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiAppId (base name: "huawei_app_id")', function() { - // uncomment below and update the code to test the property huaweiAppId - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property huaweiAppSecret (base name: "huawei_app_secret")', function() { - // uncomment below and update the code to test the property huaweiAppSecret - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateHmsPushConfigurationByIdResponse.spec.js b/test/model/UpdateHmsPushConfigurationByIdResponse.spec.js deleted file mode 100644 index 202ef02..0000000 --- a/test/model/UpdateHmsPushConfigurationByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateHmsPushConfigurationByIdResponse', function() { - it('should create an instance of UpdateHmsPushConfigurationByIdResponse', function() { - // uncomment below and update the code to test UpdateHmsPushConfigurationByIdResponse - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.UpdateHmsPushConfigurationByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateMessageByIdData.spec.js b/test/model/UpdateMessageByIdData.spec.js deleted file mode 100644 index b44d785..0000000 --- a/test/model/UpdateMessageByIdData.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateMessageByIdData', function() { - it('should create an instance of UpdateMessageByIdData', function() { - // uncomment below and update the code to test UpdateMessageByIdData - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateMessageByIdData); - }); - - it('should have the property channelType (base name: "channel_type")', function() { - // uncomment below and update the code to test the property channelType - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrl (base name: "channel_url")', function() { - // uncomment below and update the code to test the property channelUrl - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageId (base name: "message_id")', function() { - // uncomment below and update the code to test the property messageId - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property messageType (base name: "message_type")', function() { - // uncomment below and update the code to test the property messageType - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property customType (base name: "custom_type")', function() { - // uncomment below and update the code to test the property customType - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property data (base name: "data")', function() { - // uncomment below and update the code to test the property data - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property mentionType (base name: "mention_type")', function() { - // uncomment below and update the code to test the property mentionType - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property mentionedUserIds (base name: "mentioned_user_ids")', function() { - // uncomment below and update the code to test the property mentionedUserIds - //var instance = new SendbirdPlatformSdk.UpdateMessageByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushNotificationContentTemplateData.spec.js b/test/model/UpdatePushNotificationContentTemplateData.spec.js deleted file mode 100644 index df2bab3..0000000 --- a/test/model/UpdatePushNotificationContentTemplateData.spec.js +++ /dev/null @@ -1,89 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdatePushNotificationContentTemplateData', function() { - it('should create an instance of UpdatePushNotificationContentTemplateData', function() { - // uncomment below and update the code to test UpdatePushNotificationContentTemplateData - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData); - }); - - it('should have the property templateName (base name: "template_name")', function() { - // uncomment below and update the code to test the property templateName - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be(); - }); - - it('should have the property templateMESG (base name: "template.MESG")', function() { - // uncomment below and update the code to test the property templateMESG - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be(); - }); - - it('should have the property templateFILE (base name: "template.FILE")', function() { - // uncomment below and update the code to test the property templateFILE - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be(); - }); - - it('should have the property templateADMN (base name: "template.ADMN")', function() { - // uncomment below and update the code to test the property templateADMN - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushNotificationContentTemplateResponse.spec.js b/test/model/UpdatePushNotificationContentTemplateResponse.spec.js deleted file mode 100644 index f6ee53c..0000000 --- a/test/model/UpdatePushNotificationContentTemplateResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdatePushNotificationContentTemplateResponse', function() { - it('should create an instance of UpdatePushNotificationContentTemplateResponse', function() { - // uncomment below and update the code to test UpdatePushNotificationContentTemplateResponse - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushNotificationContentTemplateResponse); - }); - - it('should have the property pushMessageTemplates (base name: "push_message_templates")', function() { - // uncomment below and update the code to test the property pushMessageTemplates - //var instance = new SendbirdPlatformSdk.UpdatePushNotificationContentTemplateResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushPreferencesData.spec.js b/test/model/UpdatePushPreferencesData.spec.js deleted file mode 100644 index 031cb68..0000000 --- a/test/model/UpdatePushPreferencesData.spec.js +++ /dev/null @@ -1,137 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdatePushPreferencesData', function() { - it('should create an instance of UpdatePushPreferencesData', function() { - // uncomment below and update the code to test UpdatePushPreferencesData - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesData); - }); - - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { - // uncomment below and update the code to test the property snoozeStartTs - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property blockPushFromBots (base name: "block_push_from_bots")', function() { - // uncomment below and update the code to test the property blockPushFromBots - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { - // uncomment below and update the code to test the property pushBlockedBotIds - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushPreferencesForAChannelRequest.spec.js b/test/model/UpdatePushPreferencesForAChannelRequest.spec.js new file mode 100644 index 0000000..4a9bc96 --- /dev/null +++ b/test/model/UpdatePushPreferencesForAChannelRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdatePushPreferencesForAChannelRequest', function() { + it('should create an instance of UpdatePushPreferencesForAChannelRequest', function() { + // uncomment below and update the code to test UpdatePushPreferencesForAChannelRequest + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdatePushPreferencesForAChannelResponse.spec.js b/test/model/UpdatePushPreferencesForAChannelResponse.spec.js new file mode 100644 index 0000000..d6cc70d --- /dev/null +++ b/test/model/UpdatePushPreferencesForAChannelResponse.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdatePushPreferencesForAChannelResponse', function() { + it('should create an instance of UpdatePushPreferencesForAChannelResponse', function() { + // uncomment below and update the code to test UpdatePushPreferencesForAChannelResponse + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse); + }); + + it('should have the property enable (base name: "enable")', function() { + // uncomment below and update the code to test the property enable + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdatePushPreferencesForChannelByUrlData.spec.js b/test/model/UpdatePushPreferencesForChannelByUrlData.spec.js deleted file mode 100644 index 6eb3cb7..0000000 --- a/test/model/UpdatePushPreferencesForChannelByUrlData.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdatePushPreferencesForChannelByUrlData', function() { - it('should create an instance of UpdatePushPreferencesForChannelByUrlData', function() { - // uncomment below and update the code to test UpdatePushPreferencesForChannelByUrlData - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData); - }); - - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property enable (base name: "enable")', function() { - // uncomment below and update the code to test the property enable - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushPreferencesForChannelByUrlResponse.spec.js b/test/model/UpdatePushPreferencesForChannelByUrlResponse.spec.js deleted file mode 100644 index cc9476a..0000000 --- a/test/model/UpdatePushPreferencesForChannelByUrlResponse.spec.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdatePushPreferencesForChannelByUrlResponse', function() { - it('should create an instance of UpdatePushPreferencesForChannelByUrlResponse', function() { - // uncomment below and update the code to test UpdatePushPreferencesForChannelByUrlResponse - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse); - }); - - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { - // uncomment below and update the code to test the property snoozeStartTs - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enable (base name: "enable")', function() { - // uncomment below and update the code to test the property enable - //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdatePushPreferencesRequest.spec.js b/test/model/UpdatePushPreferencesRequest.spec.js new file mode 100644 index 0000000..7acbc11 --- /dev/null +++ b/test/model/UpdatePushPreferencesRequest.spec.js @@ -0,0 +1,143 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdatePushPreferencesRequest', function() { + it('should create an instance of UpdatePushPreferencesRequest', function() { + // uncomment below and update the code to test UpdatePushPreferencesRequest + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be.a(SendbirdPlatformSdk.UpdatePushPreferencesRequest); + }); + + it('should have the property blockPushFromBots (base name: "block_push_from_bots")', function() { + // uncomment below and update the code to test the property blockPushFromBots + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { + // uncomment below and update the code to test the property doNotDisturb + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { + // uncomment below and update the code to test the property enablePushForReplies + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property endHour (base name: "end_hour")', function() { + // uncomment below and update the code to test the property endHour + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property endMin (base name: "end_min")', function() { + // uncomment below and update the code to test the property endMin + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { + // uncomment below and update the code to test the property pushBlockedBotIds + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { + // uncomment below and update the code to test the property snoozeEnabled + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { + // uncomment below and update the code to test the property snoozeEndTs + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { + // uncomment below and update the code to test the property snoozeStartTs + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startHour (base name: "start_hour")', function() { + // uncomment below and update the code to test the property startHour + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property startMin (base name: "start_min")', function() { + // uncomment below and update the code to test the property startMin + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone + //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdatePushPreferencesResponse.spec.js b/test/model/UpdatePushPreferencesResponse.spec.js index 2ba1246..9bdce8f 100644 --- a/test/model/UpdatePushPreferencesResponse.spec.js +++ b/test/model/UpdatePushPreferencesResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -60,56 +60,56 @@ //expect(instance).to.be(); }); - it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { - // uncomment below and update the code to test the property enablePushForReplies + it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { + // uncomment below and update the code to test the property doNotDisturb //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { - // uncomment below and update the code to test the property pushBlockedBotIds + it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { + // uncomment below and update the code to test the property enablePushForReplies //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption + it('should have the property endHour (base name: "end_hour")', function() { + // uncomment below and update the code to test the property endHour //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb + it('should have the property endMin (base name: "end_min")', function() { + // uncomment below and update the code to test the property endMin //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour + it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { + // uncomment below and update the code to test the property pushBlockedBotIds //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin + it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { + // uncomment below and update the code to test the property snoozeEnabled //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled + it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { + // uncomment below and update the code to test the property snoozeEndTs //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); @@ -120,20 +120,20 @@ //expect(instance).to.be(); }); - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs + it('should have the property startHour (base name: "start_hour")', function() { + // uncomment below and update the code to test the property startHour //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone + it('should have the property startMin (base name: "start_min")', function() { + // uncomment below and update the code to test the property startMin //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone //var instance = new SendbirdPlatformSdk.UpdatePushPreferencesResponse(); //expect(instance).to.be(); }); diff --git a/test/model/UpdateUserByIdData.spec.js b/test/model/UpdateUserByIdData.spec.js deleted file mode 100644 index 0f60ac2..0000000 --- a/test/model/UpdateUserByIdData.spec.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateUserByIdData', function() { - it('should create an instance of UpdateUserByIdData', function() { - // uncomment below and update the code to test UpdateUserByIdData - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateUserByIdData); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property nickname (base name: "nickname")', function() { - // uncomment below and update the code to test the property nickname - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property profileUrl (base name: "profile_url")', function() { - // uncomment below and update the code to test the property profileUrl - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property profileFile (base name: "profile_file")', function() { - // uncomment below and update the code to test the property profileFile - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property issueAccessToken (base name: "issue_access_token")', function() { - // uncomment below and update the code to test the property issueAccessToken - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property issueSessionToken (base name: "issue_session_token")', function() { - // uncomment below and update the code to test the property issueSessionToken - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property sessionTokenExpiresAt (base name: "session_token_expires_at")', function() { - // uncomment below and update the code to test the property sessionTokenExpiresAt - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property isActive (base name: "is_active")', function() { - // uncomment below and update the code to test the property isActive - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property lastSeenAt (base name: "last_seen_at")', function() { - // uncomment below and update the code to test the property lastSeenAt - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property discoveryKeys (base name: "discovery_keys")', function() { - // uncomment below and update the code to test the property discoveryKeys - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property preferredLanguages (base name: "preferred_languages")', function() { - // uncomment below and update the code to test the property preferredLanguages - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - it('should have the property leaveAllWhenDeactivated (base name: "leave_all_when_deactivated")', function() { - // uncomment below and update the code to test the property leaveAllWhenDeactivated - //var instance = new SendbirdPlatformSdk.UpdateUserByIdData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateUserMetadataData.spec.js b/test/model/UpdateUserMetadataData.spec.js deleted file mode 100644 index 11fd1e4..0000000 --- a/test/model/UpdateUserMetadataData.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateUserMetadataData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateUserMetadataData', function() { - it('should create an instance of UpdateUserMetadataData', function() { - // uncomment below and update the code to test UpdateUserMetadataData - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateUserMetadataData); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataData(); - //expect(instance).to.be(); - }); - - it('should have the property upsert (base name: "upsert")', function() { - // uncomment below and update the code to test the property upsert - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UpdateUserMetadataResponse.spec.js b/test/model/UpdateUserMetadataResponse.spec.js deleted file mode 100644 index d533a1b..0000000 --- a/test/model/UpdateUserMetadataResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UpdateUserMetadataResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UpdateUserMetadataResponse', function() { - it('should create an instance of UpdateUserMetadataResponse', function() { - // uncomment below and update the code to test UpdateUserMetadataResponse - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UpdateUserMetadataResponse); - }); - - it('should have the property metadata (base name: "metadata")', function() { - // uncomment below and update the code to test the property metadata - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataResponse(); - //expect(instance).to.be(); - }); - - it('should have the property upsert (base name: "upsert")', function() { - // uncomment below and update the code to test the property upsert - //var instance = new SendbirdPlatformSdk.UpdateUserMetadataResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UseDefaultEmojisData.spec.js b/test/model/UseDefaultEmojisData.spec.js deleted file mode 100644 index f3c2490..0000000 --- a/test/model/UseDefaultEmojisData.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UseDefaultEmojisData(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UseDefaultEmojisData', function() { - it('should create an instance of UseDefaultEmojisData', function() { - // uncomment below and update the code to test UseDefaultEmojisData - //var instance = new SendbirdPlatformSdk.UseDefaultEmojisData(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UseDefaultEmojisData); - }); - - it('should have the property useDefaultEmoji (base name: "use_default_emoji")', function() { - // uncomment below and update the code to test the property useDefaultEmoji - //var instance = new SendbirdPlatformSdk.UseDefaultEmojisData(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/UseDefaultEmojisResponse.spec.js b/test/model/UseDefaultEmojisResponse.spec.js deleted file mode 100644 index 4295519..0000000 --- a/test/model/UseDefaultEmojisResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.UseDefaultEmojisResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('UseDefaultEmojisResponse', function() { - it('should create an instance of UseDefaultEmojisResponse', function() { - // uncomment below and update the code to test UseDefaultEmojisResponse - //var instance = new SendbirdPlatformSdk.UseDefaultEmojisResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.UseDefaultEmojisResponse); - }); - - it('should have the property useDefaultEmoji (base name: "use_default_emoji")', function() { - // uncomment below and update the code to test the property useDefaultEmoji - //var instance = new SendbirdPlatformSdk.UseDefaultEmojisResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewAnnouncementByIdResponse.spec.js b/test/model/ViewAnnouncementByIdResponse.spec.js deleted file mode 100644 index 745326e..0000000 --- a/test/model/ViewAnnouncementByIdResponse.spec.js +++ /dev/null @@ -1,191 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewAnnouncementByIdResponse', function() { - it('should create an instance of ViewAnnouncementByIdResponse', function() { - // uncomment below and update the code to test ViewAnnouncementByIdResponse - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewAnnouncementByIdResponse); - }); - - it('should have the property uniqueId (base name: "unique_id")', function() { - // uncomment below and update the code to test the property uniqueId - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property announcementGroup (base name: "announcement_group")', function() { - // uncomment below and update the code to test the property announcementGroup - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property message (base name: "message")', function() { - // uncomment below and update the code to test the property message - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enablePush (base name: "enable_push")', function() { - // uncomment below and update the code to test the property enablePush - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetAt (base name: "target_at")', function() { - // uncomment below and update the code to test the property targetAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetUserCount (base name: "target_user_count")', function() { - // uncomment below and update the code to test the property targetUserCount - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelCount (base name: "target_channel_count")', function() { - // uncomment below and update the code to test the property targetChannelCount - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property scheduledAt (base name: "scheduled_at")', function() { - // uncomment below and update the code to test the property scheduledAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property ceaseAt (base name: "cease_at")', function() { - // uncomment below and update the code to test the property ceaseAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property resumeAt (base name: "resume_at")', function() { - // uncomment below and update the code to test the property resumeAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property completedAt (base name: "completed_at")', function() { - // uncomment below and update the code to test the property completedAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sentUserCount (base name: "sent_user_count")', function() { - // uncomment below and update the code to test the property sentUserCount - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openCount (base name: "open_count")', function() { - // uncomment below and update the code to test the property openCount - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property openRate (base name: "open_rate")', function() { - // uncomment below and update the code to test the property openRate - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createChannel (base name: "create_channel")', function() { - // uncomment below and update the code to test the property createChannel - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createChannelOptions (base name: "create_channel_options")', function() { - // uncomment below and update the code to test the property createChannelOptions - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endAt (base name: "end_at")', function() { - // uncomment below and update the code to test the property endAt - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property markAsRead (base name: "mark_as_read")', function() { - // uncomment below and update the code to test the property markAsRead - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property sentChannelCount (base name: "sent_channel_count")', function() { - // uncomment below and update the code to test the property sentChannelCount - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetChannelType (base name: "target_channel_type")', function() { - // uncomment below and update the code to test the property targetChannelType - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property targetCustomType (base name: "target_custom_type")', function() { - // uncomment below and update the code to test the property targetCustomType - //var instance = new SendbirdPlatformSdk.ViewAnnouncementByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewBotByIdResponse.spec.js b/test/model/ViewBotByIdResponse.spec.js deleted file mode 100644 index 5008b8a..0000000 --- a/test/model/ViewBotByIdResponse.spec.js +++ /dev/null @@ -1,95 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewBotByIdResponse', function() { - it('should create an instance of ViewBotByIdResponse', function() { - // uncomment below and update the code to test ViewBotByIdResponse - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewBotByIdResponse); - }); - - it('should have the property bot (base name: "bot")', function() { - // uncomment below and update the code to test the property bot - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property botCallbackUrl (base name: "bot_callback_url")', function() { - // uncomment below and update the code to test the property botCallbackUrl - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enableMarkAsRead (base name: "enable_mark_as_read")', function() { - // uncomment below and update the code to test the property enableMarkAsRead - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property isPrivacyMode (base name: "is_privacy_mode")', function() { - // uncomment below and update the code to test the property isPrivacyMode - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property showMember (base name: "show_member")', function() { - // uncomment below and update the code to test the property showMember - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelInvitationPreference (base name: "channel_invitation_preference")', function() { - // uncomment below and update the code to test the property channelInvitationPreference - //var instance = new SendbirdPlatformSdk.ViewBotByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewChannelInvitationPreferenceResponse.spec.js b/test/model/ViewChannelInvitationPreferenceResponse.spec.js deleted file mode 100644 index 77f1f71..0000000 --- a/test/model/ViewChannelInvitationPreferenceResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewChannelInvitationPreferenceResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewChannelInvitationPreferenceResponse', function() { - it('should create an instance of ViewChannelInvitationPreferenceResponse', function() { - // uncomment below and update the code to test ViewChannelInvitationPreferenceResponse - //var instance = new SendbirdPlatformSdk.ViewChannelInvitationPreferenceResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewChannelInvitationPreferenceResponse); - }); - - it('should have the property autoAccept (base name: "auto_accept")', function() { - // uncomment below and update the code to test the property autoAccept - //var instance = new SendbirdPlatformSdk.ViewChannelInvitationPreferenceResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewCountPreferenceOfAChannelResponse.spec.js b/test/model/ViewCountPreferenceOfAChannelResponse.spec.js new file mode 100644 index 0000000..1699142 --- /dev/null +++ b/test/model/ViewCountPreferenceOfAChannelResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ViewCountPreferenceOfAChannelResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ViewCountPreferenceOfAChannelResponse', function() { + it('should create an instance of ViewCountPreferenceOfAChannelResponse', function() { + // uncomment below and update the code to test ViewCountPreferenceOfAChannelResponse + //var instance = new SendbirdPlatformSdk.ViewCountPreferenceOfAChannelResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ViewCountPreferenceOfAChannelResponse); + }); + + it('should have the property countPreference (base name: "count_preference")', function() { + // uncomment below and update the code to test the property countPreference + //var instance = new SendbirdPlatformSdk.ViewCountPreferenceOfAChannelResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ViewCountPreferenceOfChannelByUrlResponse.spec.js b/test/model/ViewCountPreferenceOfChannelByUrlResponse.spec.js deleted file mode 100644 index b05b2a3..0000000 --- a/test/model/ViewCountPreferenceOfChannelByUrlResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewCountPreferenceOfChannelByUrlResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewCountPreferenceOfChannelByUrlResponse', function() { - it('should create an instance of ViewCountPreferenceOfChannelByUrlResponse', function() { - // uncomment below and update the code to test ViewCountPreferenceOfChannelByUrlResponse - //var instance = new SendbirdPlatformSdk.ViewCountPreferenceOfChannelByUrlResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewCountPreferenceOfChannelByUrlResponse); - }); - - it('should have the property countPreference (base name: "count_preference")', function() { - // uncomment below and update the code to test the property countPreference - //var instance = new SendbirdPlatformSdk.ViewCountPreferenceOfChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewDataExportByIdResponse.spec.js b/test/model/ViewDataExportByIdResponse.spec.js deleted file mode 100644 index 3a9e923..0000000 --- a/test/model/ViewDataExportByIdResponse.spec.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewDataExportByIdResponse', function() { - it('should create an instance of ViewDataExportByIdResponse', function() { - // uncomment below and update the code to test ViewDataExportByIdResponse - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewDataExportByIdResponse); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property dataType (base name: "data_type")', function() { - // uncomment below and update the code to test the property dataType - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property format (base name: "format")', function() { - // uncomment below and update the code to test the property format - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property csvDelimiter (base name: "csv_delimiter")', function() { - // uncomment below and update the code to test the property csvDelimiter - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startTs (base name: "start_ts")', function() { - // uncomment below and update the code to test the property startTs - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endTs (base name: "end_ts")', function() { - // uncomment below and update the code to test the property endTs - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelUrls (base name: "channel_urls")', function() { - // uncomment below and update the code to test the property channelUrls - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelCustomTypes (base name: "channel_custom_types")', function() { - // uncomment below and update the code to test the property channelCustomTypes - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property senderIds (base name: "sender_ids")', function() { - // uncomment below and update the code to test the property senderIds - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property file (base name: "file")', function() { - // uncomment below and update the code to test the property file - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.ViewDataExportByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewDefaultChannelInvitationPreferenceResponse.spec.js b/test/model/ViewDefaultChannelInvitationPreferenceResponse.spec.js deleted file mode 100644 index 7af992d..0000000 --- a/test/model/ViewDefaultChannelInvitationPreferenceResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewDefaultChannelInvitationPreferenceResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewDefaultChannelInvitationPreferenceResponse', function() { - it('should create an instance of ViewDefaultChannelInvitationPreferenceResponse', function() { - // uncomment below and update the code to test ViewDefaultChannelInvitationPreferenceResponse - //var instance = new SendbirdPlatformSdk.ViewDefaultChannelInvitationPreferenceResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewDefaultChannelInvitationPreferenceResponse); - }); - - it('should have the property autoAccept (base name: "auto_accept")', function() { - // uncomment below and update the code to test the property autoAccept - //var instance = new SendbirdPlatformSdk.ViewDefaultChannelInvitationPreferenceResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewGdprRequestByIdResponse.spec.js b/test/model/ViewGdprRequestByIdResponse.spec.js deleted file mode 100644 index 558e5b8..0000000 --- a/test/model/ViewGdprRequestByIdResponse.spec.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewGdprRequestByIdResponse', function() { - it('should create an instance of ViewGdprRequestByIdResponse', function() { - // uncomment below and update the code to test ViewGdprRequestByIdResponse - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewGdprRequestByIdResponse); - }); - - it('should have the property requestId (base name: "request_id")', function() { - // uncomment below and update the code to test the property requestId - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property action (base name: "action")', function() { - // uncomment below and update the code to test the property action - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property status (base name: "status")', function() { - // uncomment below and update the code to test the property status - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property files (base name: "files")', function() { - // uncomment below and update the code to test the property files - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property userIds (base name: "user_ids")', function() { - // uncomment below and update the code to test the property userIds - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property channelDeleteOption (base name: "channel_delete_option")', function() { - // uncomment below and update the code to test the property channelDeleteOption - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ViewGdprRequestByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfChannelsByJoinStatusResponse.spec.js b/test/model/ViewNumberOfChannelsByJoinStatusResponse.spec.js deleted file mode 100644 index b6528cb..0000000 --- a/test/model/ViewNumberOfChannelsByJoinStatusResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewNumberOfChannelsByJoinStatusResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewNumberOfChannelsByJoinStatusResponse', function() { - it('should create an instance of ViewNumberOfChannelsByJoinStatusResponse', function() { - // uncomment below and update the code to test ViewNumberOfChannelsByJoinStatusResponse - //var instance = new SendbirdPlatformSdk.ViewNumberOfChannelsByJoinStatusResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewNumberOfChannelsByJoinStatusResponse); - }); - - it('should have the property groupChannelCount (base name: "group_channel_count")', function() { - // uncomment below and update the code to test the property groupChannelCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfChannelsByJoinStatusResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js b/test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js index 71c6251..16e1a42 100644 --- a/test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js +++ b/test/model/ViewNumberOfChannelsWithUnreadMessagesResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ViewNumberOfConcurrentConnectionsResponse.spec.js b/test/model/ViewNumberOfConcurrentConnectionsResponse.spec.js deleted file mode 100644 index 58b3830..0000000 --- a/test/model/ViewNumberOfConcurrentConnectionsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewNumberOfConcurrentConnectionsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewNumberOfConcurrentConnectionsResponse', function() { - it('should create an instance of ViewNumberOfConcurrentConnectionsResponse', function() { - // uncomment below and update the code to test ViewNumberOfConcurrentConnectionsResponse - //var instance = new SendbirdPlatformSdk.ViewNumberOfConcurrentConnectionsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewNumberOfConcurrentConnectionsResponse); - }); - - it('should have the property ccu (base name: "ccu")', function() { - // uncomment below and update the code to test the property ccu - //var instance = new SendbirdPlatformSdk.ViewNumberOfConcurrentConnectionsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfDailyActiveUsersResponse.spec.js b/test/model/ViewNumberOfDailyActiveUsersResponse.spec.js index 8b101b3..8bd39ba 100644 --- a/test/model/ViewNumberOfDailyActiveUsersResponse.spec.js +++ b/test/model/ViewNumberOfDailyActiveUsersResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js b/test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js index c25dd39..e5e5e16 100644 --- a/test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js +++ b/test/model/ViewNumberOfMonthlyActiveUsersResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ViewNumberOfPeakConnectionsResponse.spec.js b/test/model/ViewNumberOfPeakConnectionsResponse.spec.js deleted file mode 100644 index 313bcb2..0000000 --- a/test/model/ViewNumberOfPeakConnectionsResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewNumberOfPeakConnectionsResponse', function() { - it('should create an instance of ViewNumberOfPeakConnectionsResponse', function() { - // uncomment below and update the code to test ViewNumberOfPeakConnectionsResponse - //var instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponse); - }); - - it('should have the property peakConnections (base name: "peak_connections")', function() { - // uncomment below and update the code to test the property peakConnections - //var instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.spec.js b/test/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.spec.js deleted file mode 100644 index 8e349c2..0000000 --- a/test/model/ViewNumberOfPeakConnectionsResponsePeakConnectionsInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewNumberOfPeakConnectionsResponsePeakConnectionsInner', function() { - it('should create an instance of ViewNumberOfPeakConnectionsResponsePeakConnectionsInner', function() { - // uncomment below and update the code to test ViewNumberOfPeakConnectionsResponsePeakConnectionsInner - //var instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner); - }); - - it('should have the property date (base name: "date")', function() { - // uncomment below and update the code to test the property date - //var instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - //expect(instance).to.be(); - }); - - it('should have the property peakConnections (base name: "peak_connections")', function() { - // uncomment below and update the code to test the property peakConnections - //var instance = new SendbirdPlatformSdk.ViewNumberOfPeakConnectionsResponsePeakConnectionsInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfUnreadItemsResponse.spec.js b/test/model/ViewNumberOfUnreadItemsResponse.spec.js deleted file mode 100644 index 5315950..0000000 --- a/test/model/ViewNumberOfUnreadItemsResponse.spec.js +++ /dev/null @@ -1,113 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewNumberOfUnreadItemsResponse', function() { - it('should create an instance of ViewNumberOfUnreadItemsResponse', function() { - // uncomment below and update the code to test ViewNumberOfUnreadItemsResponse - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse); - }); - - it('should have the property nonSuperGroupChannelUnreadMessageCount (base name: "non_super_group_channel_unread_message_count")', function() { - // uncomment below and update the code to test the property nonSuperGroupChannelUnreadMessageCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property superGroupChannelUnreadMessageCount (base name: "super_group_channel_unread_message_count")', function() { - // uncomment below and update the code to test the property superGroupChannelUnreadMessageCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property groupChannelUnreadMessageCount (base name: "group_channel_unread_message_count")', function() { - // uncomment below and update the code to test the property groupChannelUnreadMessageCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property superGroupChannelInvitationCount (base name: "super_group_channel_invitation_count")', function() { - // uncomment below and update the code to test the property superGroupChannelInvitationCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property groupChannelInvitationCount (base name: "group_channel_invitation_count")', function() { - // uncomment below and update the code to test the property groupChannelInvitationCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property superGroupChannelUnreadMentionCount (base name: "super_group_channel_unread_mention_count")', function() { - // uncomment below and update the code to test the property superGroupChannelUnreadMentionCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property groupChannelUnreadMentionCount (base name: "group_channel_unread_mention_count")', function() { - // uncomment below and update the code to test the property groupChannelUnreadMentionCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nonSuperGroupChannelUnreadMentionCount (base name: "non_super_group_channel_unread_mention_count")', function() { - // uncomment below and update the code to test the property nonSuperGroupChannelUnreadMentionCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - it('should have the property nonSuperGroupChannelInvitationCount (base name: "non_super_group_channel_invitation_count")', function() { - // uncomment below and update the code to test the property nonSuperGroupChannelInvitationCount - //var instance = new SendbirdPlatformSdk.ViewNumberOfUnreadItemsResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewNumberOfUnreadMessagesResponse.spec.js b/test/model/ViewNumberOfUnreadMessagesResponse.spec.js index 8e8f843..994890f 100644 --- a/test/model/ViewNumberOfUnreadMessagesResponse.spec.js +++ b/test/model/ViewNumberOfUnreadMessagesResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com diff --git a/test/model/ViewPushConfigurationByIdResponse.spec.js b/test/model/ViewPushConfigurationByIdResponse.spec.js deleted file mode 100644 index ee112f1..0000000 --- a/test/model/ViewPushConfigurationByIdResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewPushConfigurationByIdResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewPushConfigurationByIdResponse', function() { - it('should create an instance of ViewPushConfigurationByIdResponse', function() { - // uncomment below and update the code to test ViewPushConfigurationByIdResponse - //var instance = new SendbirdPlatformSdk.ViewPushConfigurationByIdResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushConfigurationByIdResponse); - }); - - it('should have the property pushConfigurations (base name: "push_configurations")', function() { - // uncomment below and update the code to test the property pushConfigurations - //var instance = new SendbirdPlatformSdk.ViewPushConfigurationByIdResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewPushNotificationContentTemplateResponse.spec.js b/test/model/ViewPushNotificationContentTemplateResponse.spec.js deleted file mode 100644 index c984c01..0000000 --- a/test/model/ViewPushNotificationContentTemplateResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewPushNotificationContentTemplateResponse', function() { - it('should create an instance of ViewPushNotificationContentTemplateResponse', function() { - // uncomment below and update the code to test ViewPushNotificationContentTemplateResponse - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponse); - }); - - it('should have the property pushMessageTemplates (base name: "push_message_templates")', function() { - // uncomment below and update the code to test the property pushMessageTemplates - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.spec.js b/test/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.spec.js deleted file mode 100644 index d335833..0000000 --- a/test/model/ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner.spec.js +++ /dev/null @@ -1,77 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner', function() { - it('should create an instance of ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner', function() { - // uncomment below and update the code to test ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner); - }); - - it('should have the property templateName (base name: "template_name")', function() { - // uncomment below and update the code to test the property templateName - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - //expect(instance).to.be(); - }); - - it('should have the property template (base name: "template")', function() { - // uncomment below and update the code to test the property template - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - //expect(instance).to.be(); - }); - - it('should have the property pushMessagePreview (base name: "push_message_preview")', function() { - // uncomment below and update the code to test the property pushMessagePreview - //var instance = new SendbirdPlatformSdk.ViewPushNotificationContentTemplateResponsePushMessageTemplatesInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewPushPreferencesForAChannelResponse.spec.js b/test/model/ViewPushPreferencesForAChannelResponse.spec.js new file mode 100644 index 0000000..8c542f3 --- /dev/null +++ b/test/model/ViewPushPreferencesForAChannelResponse.spec.js @@ -0,0 +1,77 @@ +/** + * Sendbird Platform SDK + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) + * + * The version of the OpenAPI document: 1.0.0 + * Contact: support@sendbird.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.SendbirdPlatformSdk); + } +}(this, function(expect, SendbirdPlatformSdk) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ViewPushPreferencesForAChannelResponse', function() { + it('should create an instance of ViewPushPreferencesForAChannelResponse', function() { + // uncomment below and update the code to test ViewPushPreferencesForAChannelResponse + //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse(); + //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse); + }); + + it('should have the property enable (base name: "enable")', function() { + // uncomment below and update the code to test the property enable + //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound + //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption + //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForAChannelResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ViewPushPreferencesForChannelByUrlResponse.spec.js b/test/model/ViewPushPreferencesForChannelByUrlResponse.spec.js deleted file mode 100644 index 396c6d5..0000000 --- a/test/model/ViewPushPreferencesForChannelByUrlResponse.spec.js +++ /dev/null @@ -1,131 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewPushPreferencesForChannelByUrlResponse', function() { - it('should create an instance of ViewPushPreferencesForChannelByUrlResponse', function() { - // uncomment below and update the code to test ViewPushPreferencesForChannelByUrlResponse - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse); - }); - - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { - // uncomment below and update the code to test the property snoozeStartTs - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - it('should have the property enable (base name: "enable")', function() { - // uncomment below and update the code to test the property enable - //var instance = new SendbirdPlatformSdk.ViewPushPreferencesForChannelByUrlResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewPushPreferencesResponse.spec.js b/test/model/ViewPushPreferencesResponse.spec.js index 514db27..acd50a7 100644 --- a/test/model/ViewPushPreferencesResponse.spec.js +++ b/test/model/ViewPushPreferencesResponse.spec.js @@ -1,6 +1,6 @@ /** * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api + * Sendbird Platform API SDK [https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api](https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api) Contact Support: Name: Sendbird Email: [support@sendbird.com](https://mailto:support@sendbird.com) * * The version of the OpenAPI document: 1.0.0 * Contact: support@sendbird.com @@ -54,86 +54,86 @@ //expect(instance).to.be.a(SendbirdPlatformSdk.ViewPushPreferencesResponse); }); - it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { - // uncomment below and update the code to test the property snoozeStartTs + it('should have the property blockPushFromBots (base name: "block_push_from_bots")', function() { + // uncomment below and update the code to test the property blockPushFromBots //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property startHour (base name: "start_hour")', function() { - // uncomment below and update the code to test the property startHour + it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { + // uncomment below and update the code to test the property doNotDisturb //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { - // uncomment below and update the code to test the property snoozeEnabled + it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { + // uncomment below and update the code to test the property enablePushForReplies //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property endMin (base name: "end_min")', function() { - // uncomment below and update the code to test the property endMin + it('should have the property endHour (base name: "end_hour")', function() { + // uncomment below and update the code to test the property endHour //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property timezone (base name: "timezone")', function() { - // uncomment below and update the code to test the property timezone + it('should have the property endMin (base name: "end_min")', function() { + // uncomment below and update the code to test the property endMin //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property blockPushFromBots (base name: "block_push_from_bots")', function() { - // uncomment below and update the code to test the property blockPushFromBots + it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { + // uncomment below and update the code to test the property pushBlockedBotIds //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushBlockedBotIds (base name: "push_blocked_bot_ids")', function() { - // uncomment below and update the code to test the property pushBlockedBotIds + it('should have the property pushSound (base name: "push_sound")', function() { + // uncomment below and update the code to test the property pushSound //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property startMin (base name: "start_min")', function() { - // uncomment below and update the code to test the property startMin + it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { + // uncomment below and update the code to test the property pushTriggerOption //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { - // uncomment below and update the code to test the property snoozeEndTs + it('should have the property snoozeEnabled (base name: "snooze_enabled")', function() { + // uncomment below and update the code to test the property snoozeEnabled //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property doNotDisturb (base name: "do_not_disturb")', function() { - // uncomment below and update the code to test the property doNotDisturb + it('should have the property snoozeEndTs (base name: "snooze_end_ts")', function() { + // uncomment below and update the code to test the property snoozeEndTs //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property endHour (base name: "end_hour")', function() { - // uncomment below and update the code to test the property endHour + it('should have the property snoozeStartTs (base name: "snooze_start_ts")', function() { + // uncomment below and update the code to test the property snoozeStartTs //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property enablePushForReplies (base name: "enable_push_for_replies")', function() { - // uncomment below and update the code to test the property enablePushForReplies + it('should have the property startHour (base name: "start_hour")', function() { + // uncomment below and update the code to test the property startHour //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushSound (base name: "push_sound")', function() { - // uncomment below and update the code to test the property pushSound + it('should have the property startMin (base name: "start_min")', function() { + // uncomment below and update the code to test the property startMin //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); - it('should have the property pushTriggerOption (base name: "push_trigger_option")', function() { - // uncomment below and update the code to test the property pushTriggerOption + it('should have the property timezone (base name: "timezone")', function() { + // uncomment below and update the code to test the property timezone //var instance = new SendbirdPlatformSdk.ViewPushPreferencesResponse(); //expect(instance).to.be(); }); diff --git a/test/model/ViewSecondaryApiTokenByTokenResponse.spec.js b/test/model/ViewSecondaryApiTokenByTokenResponse.spec.js deleted file mode 100644 index 85f45ce..0000000 --- a/test/model/ViewSecondaryApiTokenByTokenResponse.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewSecondaryApiTokenByTokenResponse', function() { - it('should create an instance of ViewSecondaryApiTokenByTokenResponse', function() { - // uncomment below and update the code to test ViewSecondaryApiTokenByTokenResponse - //var instance = new SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse); - }); - - it('should have the property token (base name: "token")', function() { - // uncomment below and update the code to test the property token - //var instance = new SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - it('should have the property createdAt (base name: "created_at")', function() { - // uncomment below and update the code to test the property createdAt - //var instance = new SendbirdPlatformSdk.ViewSecondaryApiTokenByTokenResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewTotalNumberOfMessagesInChannelResponse.spec.js b/test/model/ViewTotalNumberOfMessagesInChannelResponse.spec.js deleted file mode 100644 index b4def95..0000000 --- a/test/model/ViewTotalNumberOfMessagesInChannelResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewTotalNumberOfMessagesInChannelResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewTotalNumberOfMessagesInChannelResponse', function() { - it('should create an instance of ViewTotalNumberOfMessagesInChannelResponse', function() { - // uncomment below and update the code to test ViewTotalNumberOfMessagesInChannelResponse - //var instance = new SendbirdPlatformSdk.ViewTotalNumberOfMessagesInChannelResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewTotalNumberOfMessagesInChannelResponse); - }); - - it('should have the property total (base name: "total")', function() { - // uncomment below and update the code to test the property total - //var instance = new SendbirdPlatformSdk.ViewTotalNumberOfMessagesInChannelResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewUserMetadataResponse.spec.js b/test/model/ViewUserMetadataResponse.spec.js deleted file mode 100644 index 91fe232..0000000 --- a/test/model/ViewUserMetadataResponse.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewUserMetadataResponse(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewUserMetadataResponse', function() { - it('should create an instance of ViewUserMetadataResponse', function() { - // uncomment below and update the code to test ViewUserMetadataResponse - //var instance = new SendbirdPlatformSdk.ViewUserMetadataResponse(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewUserMetadataResponse); - }); - - it('should have the property anyOf (base name: "anyOf")', function() { - // uncomment below and update the code to test the property anyOf - //var instance = new SendbirdPlatformSdk.ViewUserMetadataResponse(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.spec.js b/test/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.spec.js deleted file mode 100644 index 405a0eb..0000000 --- a/test/model/ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner.spec.js +++ /dev/null @@ -1,65 +0,0 @@ -/** - * Sendbird Platform SDK - * Sendbird Platform API SDK https://sendbird.com/docs/chat/v3/platform-api/getting-started/prepare-to-use-api - * - * The version of the OpenAPI document: 1.0.0 - * Contact: support@sendbird.com - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.SendbirdPlatformSdk); - } -}(this, function(expect, SendbirdPlatformSdk) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new SendbirdPlatformSdk.ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner', function() { - it('should create an instance of ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner', function() { - // uncomment below and update the code to test ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner - //var instance = new SendbirdPlatformSdk.ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner(); - //expect(instance).to.be.a(SendbirdPlatformSdk.ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner); - }); - - it('should have the property userId (base name: "user_id")', function() { - // uncomment below and update the code to test the property userId - //var instance = new SendbirdPlatformSdk.ViewWhoOwnsRegistrationOrDeviceTokenByTokenResponseInner(); - //expect(instance).to.be(); - }); - - }); - -}));