Skip to content

Commit

Permalink
v4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
liamcho committed Oct 26, 2022
1 parent 63cedd1 commit 9e6c7d5
Show file tree
Hide file tree
Showing 18 changed files with 52 additions and 32 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Changelog
## v4.1.1 (Oct 26, 2022)
- Exported existing interfaces, `MessageSearchQueryParams` and others (twenty two in total)
- Exported existing interfaces including `MessageSearchQueryParams` and others (22 in total)

## v4.1.0 (Oct 14, 2022)
# Features
Expand Down
2 changes: 1 addition & 1 deletion __bundle-7712e6bc.js → __bundle-23f58002.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion __bundle-ab2e85ac.js → __bundle-9bb57a9e.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __bundle-583cb5bc.js → __bundle-c9501107.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion __bundle-5f264dab.js → __bundle-fb9f599d.js

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions groupChannel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,16 @@ export {
Member,
MemberListOrder,
MemberListQuery,
MemberListQueryParams,
MembershipFilter,
MemberState,
MemberStateFilter,
MessageCollection,
MessageCollectionEventHandler,
MessageCollectionInitHandler,
MessageCollectionInitPolicy,
MessageCollectionInitResultHandler,
MessageCollectionParams,
MessageEventContext,
MessageEventSource,
MessageFilter,
Expand All @@ -46,8 +49,14 @@ export {
PublicGroupChannelListQueryParams,
QueryType,
ReadStatus,
ScheduledFileMessageCreateParams,
ScheduledFileMessageUpdateParams,
ScheduledMessageListOrder,
ScheduledMessageListQuery,
ScheduledMessageListQueryParams,
ScheduledStatus,
ScheduledUserMessageCreateParams,
ScheduledUserMessageUpdateParams,
SendbirdGroupChat,
SuperChannelFilter,
TotalScheduledMessageCountParams,
Expand Down
2 changes: 1 addition & 1 deletion groupChannel.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export {
InvitationPreference,
LogLevel,
MemoryStore,
MemoryStoreParams,
MetaCounter,
MetaData,
MutedInfo,
Expand All @@ -51,6 +52,7 @@ export {
SendbirdError,
SessionHandler,
SnoozePeriod,
StoreItem,
User,
UserEventHandler,
UserOnlineState,
Expand Down
40 changes: 20 additions & 20 deletions lib/__definition.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export declare type FailedMessageHandler = (err: Error, message: SendableMessage

export declare type FileCompat = File | Blob | FileInfo;

declare interface FileInfo {
export declare interface FileInfo {
name: string;
uri: string;
type: string;
Expand Down Expand Up @@ -542,7 +542,7 @@ export declare class MemberListQuery extends ChannelDataListQuery {
next(): Promise<Member[]>;
}

declare interface MemberListQueryParams extends BaseListQueryParams {
export declare interface MemberListQueryParams extends BaseListQueryParams {
mutedMemberFilter?: MutedMemberFilter;
memberStateFilter?: MemberStateFilter;
nicknameStartsWithFilter?: string;
Expand Down Expand Up @@ -584,7 +584,7 @@ export declare class MemoryStore implements BaseStore {
clear(): Promise<void>;
}

declare interface MemoryStoreParams {
export declare interface MemoryStoreParams {
itemSizeLimit?: number;
delay?: number;
encryption?: Encryption;
Expand All @@ -595,7 +595,7 @@ export declare enum MentionType {
CHANNEL = 'channel',
}

declare interface MessageChangelogs {
export declare interface MessageChangelogs {
updatedMessages: BaseMessage[];
deletedMessageIds: number[];
hasMore: boolean;
Expand Down Expand Up @@ -644,9 +644,9 @@ export declare enum MessageCollectionInitPolicy {
CACHE_AND_REPLACE_BY_API = 'cache_and_replace_by_api',
}

declare type MessageCollectionInitResultHandler = (err: Error, messages: BaseMessage[]) => void;
export declare type MessageCollectionInitResultHandler = (err: Error, messages: BaseMessage[]) => void;

declare interface MessageCollectionParams {
export declare interface MessageCollectionParams {
filter?: MessageFilter;
startingPoint?: number;
limit?: number;
Expand Down Expand Up @@ -767,7 +767,7 @@ export declare class MessageSearchQuery extends BaseListQuery {
next(): Promise<BaseMessage[]>;
}

declare interface MessageSearchQueryParams extends BaseListQueryParams {
export declare interface MessageSearchQueryParams extends BaseListQueryParams {
keyword: string;
reverse?: boolean;
exactMatch?: boolean;
Expand Down Expand Up @@ -902,7 +902,7 @@ export declare class ParticipantListQuery extends ChannelDataListQuery {
next(): Promise<User[]>;
}

type ParticipantListQueryParams = BaseListQueryParams;
export type ParticipantListQueryParams = BaseListQueryParams;

export declare class Plugin {
readonly type: string;
Expand Down Expand Up @@ -930,7 +930,7 @@ export declare class Poll {
applyPollVoteEvent(event: PollVoteEvent): boolean;
}

declare interface PollChangelogs {
export declare interface PollChangelogs {
updatedPolls: Poll[];
deletedPollIds: number[];
hasMore: boolean;
Expand Down Expand Up @@ -1036,7 +1036,7 @@ export declare class PreviousMessageListQuery extends ChannelDataListQuery {
load(): Promise<BaseMessage[]>;
}

declare interface PreviousMessageListQueryParams extends BaseListQueryParams {
export declare interface PreviousMessageListQueryParams extends BaseListQueryParams {
reverse?: boolean;
messageTypeFilter?: MessageTypeFilter;
customTypesFilter?: string[];
Expand Down Expand Up @@ -1146,11 +1146,11 @@ export declare enum Role {
NONE = 'none',
}

declare interface ScheduledFileMessageCreateParams extends FileMessageCreateParams {
export declare interface ScheduledFileMessageCreateParams extends FileMessageCreateParams {
scheduledAt: number;
}

declare interface ScheduledFileMessageUpdateParams extends BaseMessageUpdateParams {
export declare interface ScheduledFileMessageUpdateParams extends BaseMessageUpdateParams {
scheduledAt?: number;
file?: FileCompat;
fileUrl?: string;
Expand All @@ -1161,22 +1161,22 @@ declare interface ScheduledFileMessageUpdateParams extends BaseMessageUpdatePara
requireAuth?: boolean;
}

declare interface ScheduledInfo {
export declare interface ScheduledInfo {
scheduledMessageId: number;
scheduledAt: number;
scheduledMessageParams?: ScheduledUserMessageCreateParams | ScheduledFileMessageCreateParams;
}

declare interface ScheduledMessageRetrievalParams {
export declare interface ScheduledMessageRetrievalParams {
channelUrl: string;
scheduledMessageId: number;
}

declare interface ScheduledUserMessageCreateParams extends UserMessageCreateParams {
export declare interface ScheduledUserMessageCreateParams extends UserMessageCreateParams {
scheduledAt: number;
}

declare interface ScheduledUserMessageUpdateParams extends UserMessageUpdateParams {
export declare interface ScheduledUserMessageUpdateParams extends UserMessageUpdateParams {
scheduledAt?: number;
}

Expand Down Expand Up @@ -1361,7 +1361,7 @@ export declare interface SnoozePeriod {
endTs?: number;
}

declare interface StoreItem {
export declare interface StoreItem {
key: string;
value: object;
generation: number;
Expand Down Expand Up @@ -1403,7 +1403,7 @@ export declare class Thumbnail {
get plainUrl(): string;
}

declare interface ThumbnailSize {
export declare interface ThumbnailSize {
maxWidth: number;
maxHeight: number;
}
Expand Down Expand Up @@ -1805,7 +1805,7 @@ export declare enum ScheduledMessageListOrder {
SCHEDULED_AT = 'scheduled_at',
}

declare class ScheduledMessageListQuery extends BaseListQuery {
export declare class ScheduledMessageListQuery extends BaseListQuery {
readonly channelUrl: string;
readonly order: ScheduledMessageListOrder;
readonly reverse: boolean;
Expand All @@ -1814,7 +1814,7 @@ declare class ScheduledMessageListQuery extends BaseListQuery {
next(): Promise<BaseMessage[]>;
}

declare interface ScheduledMessageListQueryParams extends BaseListQueryParams {
export declare interface ScheduledMessageListQueryParams extends BaseListQueryParams {
channelUrl?: string;
order?: ScheduledMessageListOrder;
reverse?: boolean;
Expand Down
7 changes: 7 additions & 0 deletions message.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@ export {
AppleCriticalAlertOptions,
BaseMessage,
FailedMessageHandler,
FileInfo,
FileMessage,
FileMessageCreateParams,
FileMessageUpdateParams,
MentionType,
MessageChangelogs,
MessageChangeLogsParams,
MessageHandler,
MessageListParams,
Expand All @@ -16,22 +18,27 @@ export {
MessageRetrievalParams,
MessageSearchOrder,
MessageSearchQuery,
MessageSearchQueryParams,
MessageType,
MessageTypeFilter,
OGImage,
OGMetaData,
PreviousMessageListQuery,
PreviousMessageListQueryParams,
PushNotificationDeliveryOption,
Reaction,
ReactionEvent,
ReactionEventOperation,
ReplyType,
ScheduledInfo,
ScheduledMessageRetrievalParams,
Sender,
SendingStatus,
ThreadedMessageListParams,
ThreadInfo,
ThreadInfoUpdateEvent,
Thumbnail,
ThumbnailSize,
UserMessage,
UserMessageCreateParams,
UserMessageUpdateParams,
Expand Down
2 changes: 1 addition & 1 deletion message.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions openChannel.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ export {
OpenChannelModule,
OpenChannelUpdateParams,
ParticipantListQuery,
ParticipantListQueryParams,
SendbirdOpenChat,
} from './lib/__definition';
2 changes: 1 addition & 1 deletion openChannel.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "4.1.0",
"version": "4.1.1",
"description": "Sendbird SDK for JavaScript",
"name": "@sendbird/chat",
"author": "Sendbird <[email protected]>",
Expand Down
1 change: 1 addition & 0 deletions poll.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export {
Poll,
PollChangelogs,
PollCreateParams,
PollData,
PollListQuery,
Expand Down
2 changes: 1 addition & 1 deletion poll.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sendbird.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9e6c7d5

Please sign in to comment.