From e35a7205cb1916ebe57b8aacff3cbed327372767 Mon Sep 17 00:00:00 2001 From: Muhamad Ridwan Date: Thu, 3 Jul 2025 12:05:22 +0700 Subject: [PATCH 1/2] feat: run build and scope update --- CHANGELOG | 80 ++++ README.md | 11 +- dist/api/GroupChannelApi.js | 20 +- dist/api/MessageApi.js | 7 +- dist/api/MetadataApi.js | 5 +- dist/api/UserApi.js | 36 +- dist/index.js | 42 ++ .../MigrateMessagesAdminMessageRequest.js | 158 ++++++++ .../MigrateMessagesFileMessageRequest.js | 201 ++++++++++ ...ssagesFileMessageRequestThumbnailsInner.js | 67 ++++ dist/model/MigrateMessagesRequest.js | 91 +++++ .../MigrateMessagesRequestMessagesInner.js | 371 ++++++++++++++++++ .../MigrateMessagesTextMessageRequest.js | 160 ++++++++ dist/model/SendbirdPushTriggerOption.js | 5 - package.json | 7 +- 15 files changed, 1207 insertions(+), 54 deletions(-) create mode 100644 CHANGELOG create mode 100644 dist/model/MigrateMessagesAdminMessageRequest.js create mode 100644 dist/model/MigrateMessagesFileMessageRequest.js create mode 100644 dist/model/MigrateMessagesFileMessageRequestThumbnailsInner.js create mode 100644 dist/model/MigrateMessagesRequest.js create mode 100644 dist/model/MigrateMessagesRequestMessagesInner.js create mode 100644 dist/model/MigrateMessagesTextMessageRequest.js diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..0f24787 --- /dev/null +++ b/CHANGELOG @@ -0,0 +1,80 @@ +# šŸ“¦ CHANGELOG + +All notable changes to this project will be documented in this file. + +--- + +## [2.0.0] - 2024-06-24 + +### Added +- Test code + +### Fixed +- Miss types + +--- + +## [1.0.27] - 2024-09-24 + +### Added +- Optional fields for channel/user updates: + - `PUT /group_channels/{channel_url}` and `PUT /open_channels/{channel_url}`: all fields except `channel_url` are now optional. + - `PUT /users/{user_id}`: `nickname` and `profile_url` made optional. + - `GET /group_channels/{channel_url}/messages/unread_count`: now supports multiple `user_ids`. + - `read_receipt` added to `GroupChannel` model. +- Support for multiple file messages via `files` array. +- `GET /{channel_type}/{channel_url}/messages`: + - New support for `include_reply_type`, `include_parent_message_info`, and `parent_message_info`. +- `GET /{channel_type}/{channel_url}/messages/{message_id}`: `include_parent_message_info` now supported. +- New typing indicator endpoints: + - `POST /v3/group_channels/{channel_url}/typing` + - `PUT /v3/group_channels/{channel_url}/typing` +- `POST /v3/group_channels/{channel_url}/invite`: `users`, `invitation_status`, `hidden_status` are now optional. +- `PUT /v3/users/{user_id}/push_preference`: `block_push_from_bots`, `push_blocked_bot_ids` are optional. +- `/v3/bots/{bot_userid}/send`: added support for `extended_message_payload` and `target_message_id`. + +### Fixed +- OG image type was missing from metadata in `GET /{channel_type}/{channel_url}/messages`. +- Incorrect date types in API responses. +- Removed `isFrozen` property (use `freeze` instead). +- Fixed `DELETE /users/{user_id}/push/{token_type}/{token}`: `token` must now be a string, not an array. + +### Changed +- `apiToken()` is no longer required in every request. + +--- + +## [1.0.15] - 2023-10-25 + +### Changed +- Switched to group parameter format. + +--- + +## [0.0.14] - 2023-10-10 + +### Added +- Tagged release. No additional notes. + +--- + +## [1.0.7] - 2023-08-03 + +### Changed +- Internal improvements via OpenAPI generator (PR #12). + +--- + +## [1.0.3] - 2023-06-29 + +### Added +- Introduced: + - Announcement API + - Metadata API + +### Changed +- Restructured Moderation APIs under dedicated Moderation module. + +--- + +> This CHANGELOG follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) principles. diff --git a/README.md b/README.md index 62b7b77..3377cad 100644 --- a/README.md +++ b/README.md @@ -6,13 +6,16 @@ [![NPM](https://img.shields.io/npm/v/sendbird-platform-sdk.svg)](https://www.npmjs.com/package/sendbird-platform-sdk) 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. + +>__Note__: Platform API SDK v2 includes only the APIs that were actively used in v1. If you need help getting started with the new SDK, [contact us](https://dashboard-dev.sendbird.com/settings/contact_us). + # Install -```npm install sendbird-platform-sdk``` +```npm install @sendbird/sendbird-platform-sdk-javascript``` # šŸ”„ Quick start ```javascript -import SendbirdPlatformSdk from 'sendbird-platform-sdk'; +import SendbirdPlatformSdk from '@sendbird/sendbird-platform-sdk-javascript'; const userId = "1234"; const name = "bob"; @@ -59,10 +62,10 @@ You will need [Node.js](https://nodejs.org/en/download/) installed. This has bee You can install the SDK directly from npm: ``` # Using npm -npm install sendbird-platform-sdk +npm install @sendbird/sendbird-platform-sdk-javascript # Using yarn -yarn add sendbird-platform-sdk +yarn add @sendbird/sendbird-platform-sdk-javascript ``` > āš ļø This SDK is intended for use in server-side environments only. Do not use it in browsers or frontend applications. diff --git a/dist/api/GroupChannelApi.js b/dist/api/GroupChannelApi.js index 40a7c56..49905ad 100644 --- a/dist/api/GroupChannelApi.js +++ b/dist/api/GroupChannelApi.js @@ -618,12 +618,6 @@ var GroupChannelApi = exports["default"] = /*#__PURE__*/function () { * @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 */ }, { @@ -672,13 +666,7 @@ var GroupChannelApi = exports["default"] = /*#__PURE__*/function () { 'metacounter_value_gte': opts['metacounterValueGte'], 'metacounter_value_lt': opts['metacounterValueLt'], 'metacounter_value_lte': opts['metacounterValueLte'], - '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['userId'] + 'include_sorted_metaarray_in_last_message': opts['includeSortedMetaarrayInLastMessage'] }; var headerParams = { 'api-token': apiToken @@ -732,12 +720,6 @@ var GroupChannelApi = exports["default"] = /*#__PURE__*/function () { * @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} */ }, { diff --git a/dist/api/MessageApi.js b/dist/api/MessageApi.js index 2a7757a..a4ee87b 100644 --- a/dist/api/MessageApi.js +++ b/dist/api/MessageApi.js @@ -10,6 +10,7 @@ var _AddExtraDataToAMessageResponse = _interopRequireDefault(require("../model/A var _GetTotalNumberOfMessagesInAChannelResponse = _interopRequireDefault(require("../model/GetTotalNumberOfMessagesInAChannelResponse")); var _ListMessagesResponse = _interopRequireDefault(require("../model/ListMessagesResponse")); var _MarkChannelMessagesAsReadRequest = _interopRequireDefault(require("../model/MarkChannelMessagesAsReadRequest")); +var _MigrateMessagesRequest = _interopRequireDefault(require("../model/MigrateMessagesRequest")); var _SendAMessageRequest = _interopRequireDefault(require("../model/SendAMessageRequest")); var _SendbirdMessageResponse = _interopRequireDefault(require("../model/SendbirdMessageResponse")); var _UpdateAMessageRequest = _interopRequireDefault(require("../model/UpdateAMessageRequest")); @@ -490,14 +491,14 @@ var MessageApi = exports["default"] = /*#__PURE__*/function () { * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.apiToken - * @param {Object.} opts.body + * @param {module:model/MigrateMessagesRequest} opts.migrateMessagesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ }, { key: "migrateMessagesWithHttpInfo", value: function migrateMessagesWithHttpInfo(targetChannelUrl, opts) { opts = opts || {}; - var postBody = opts['body']; + var postBody = opts['migrateMessagesRequest']; // verify the required parameter 'targetChannelUrl' is set if (targetChannelUrl === undefined || targetChannelUrl === null) { throw new Error("Missing the required parameter 'targetChannelUrl' when calling migrateMessages"); @@ -523,7 +524,7 @@ var MessageApi = exports["default"] = /*#__PURE__*/function () { * @param {String} targetChannelUrl (Required) * @param {Object} opts Optional parameters * @param {String} opts.apiToken - * @param {Object.} opts.body + * @param {module:model/MigrateMessagesRequest} opts.migrateMessagesRequest * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ }, { diff --git a/dist/api/MetadataApi.js b/dist/api/MetadataApi.js index ec134d0..b4cdb46 100644 --- a/dist/api/MetadataApi.js +++ b/dist/api/MetadataApi.js @@ -126,11 +126,10 @@ var MetadataApi = exports["default"] = /*#__PURE__*/function () { } var pathParams = { 'channel_type': channelType, - 'channel_url': channelUrl - }; - var queryParams = { + 'channel_url': channelUrl, 'key': opts['key'] }; + var queryParams = {}; var headerParams = { 'api-token': opts['apiToken'] }; diff --git a/dist/api/UserApi.js b/dist/api/UserApi.js index 8b747b6..3992ef7 100644 --- a/dist/api/UserApi.js +++ b/dist/api/UserApi.js @@ -449,6 +449,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { * @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.membersNicknameStartswith Searches for group channels with members whose nicknames begin with the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. + * @param {String} opts.searchQuery Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn't case-sensitive and should be specified in conjunction with the search_fields parameter below. URL encoding the value is recommended. + * @param {String} opts.searchFields Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields (OR search condition). Acceptable values are channel_name and member_nickname. This is effective only when the search_query parameter above is specified. (Default: channel_name, member_nickname together) * @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. @@ -459,12 +462,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { * @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. + * @param {module:model/String} opts.hiddenMode Restricts the search scope to group channels that match a specific hidden_status and operating behavior + * @param {module:model/String} opts.unreadFilter Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn't support Supergroup channels. Acceptable values are all and unread_message. (Default: all) + * @param {module:model/String} opts.memberStateFilter * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ListMyGroupChannelsResponse} and HTTP response */ }, { @@ -510,6 +510,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { 'query_type': opts['queryType'], 'members_nickname': opts['membersNickname'], 'members_nickname_contains': opts['membersNicknameContains'], + 'members_nickname_startswith': opts['membersNicknameStartswith'], + 'search_query': opts['searchQuery'], + 'search_fields': opts['searchFields'], 'metadata_key': opts['metadataKey'], 'metadata_values': opts['metadataValues'], 'metadata_value_startswith': opts['metadataValueStartswith'], @@ -520,12 +523,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { 'metacounter_value_lt': opts['metacounterValueLt'], 'metacounter_value_lte': opts['metacounterValueLte'], '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'] + 'hidden_mode': opts['hiddenMode'], + 'unread_filter': opts['unreadFilter'], + 'member_state_filter': opts['memberStateFilter'] }; var headerParams = { 'api-token': apiToken @@ -570,6 +570,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { * @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.membersNicknameStartswith Searches for group channels with members whose nicknames begin with the specified value. This parameter isn't case-sensitive. URL encoding the value is recommended. + * @param {String} opts.searchQuery Searches for group channels where the specified query string matches the channel name or the nickname of the member. This parameter isn't case-sensitive and should be specified in conjunction with the search_fields parameter below. URL encoding the value is recommended. + * @param {String} opts.searchFields Specifies a comma-separated string of one or more search fields to apply to the query, which restricts the results within the specified fields (OR search condition). Acceptable values are channel_name and member_nickname. This is effective only when the search_query parameter above is specified. (Default: channel_name, member_nickname together) * @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. @@ -580,12 +583,9 @@ var UserApi = exports["default"] = /*#__PURE__*/function () { * @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. + * @param {module:model/String} opts.hiddenMode Restricts the search scope to group channels that match a specific hidden_status and operating behavior + * @param {module:model/String} opts.unreadFilter Restricts the search scope to only retrieve group channels with one or more unread messages. This filter doesn't support Supergroup channels. Acceptable values are all and unread_message. (Default: all) + * @param {module:model/String} opts.memberStateFilter * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ListMyGroupChannelsResponse} */ }, { diff --git a/dist/index.js b/dist/index.js index d136870..e3f1c40 100644 --- a/dist/index.js +++ b/dist/index.js @@ -369,6 +369,42 @@ Object.defineProperty(exports, "MetadataApi", { return _MetadataApi["default"]; } }); +Object.defineProperty(exports, "MigrateMessagesAdminMessageRequest", { + enumerable: true, + get: function get() { + return _MigrateMessagesAdminMessageRequest["default"]; + } +}); +Object.defineProperty(exports, "MigrateMessagesFileMessageRequest", { + enumerable: true, + get: function get() { + return _MigrateMessagesFileMessageRequest["default"]; + } +}); +Object.defineProperty(exports, "MigrateMessagesFileMessageRequestThumbnailsInner", { + enumerable: true, + get: function get() { + return _MigrateMessagesFileMessageRequestThumbnailsInner["default"]; + } +}); +Object.defineProperty(exports, "MigrateMessagesRequest", { + enumerable: true, + get: function get() { + return _MigrateMessagesRequest["default"]; + } +}); +Object.defineProperty(exports, "MigrateMessagesRequestMessagesInner", { + enumerable: true, + get: function get() { + return _MigrateMessagesRequestMessagesInner["default"]; + } +}); +Object.defineProperty(exports, "MigrateMessagesTextMessageRequest", { + enumerable: true, + get: function get() { + return _MigrateMessagesTextMessageRequest["default"]; + } +}); Object.defineProperty(exports, "ModerationApi", { enumerable: true, get: function get() { @@ -797,6 +833,12 @@ var _ListRegistrationOrDeviceTokensResponse = _interopRequireDefault(require("./ var _ListUsersResponse = _interopRequireDefault(require("./model/ListUsersResponse")); var _MarkAllMessagesAsReadRequest = _interopRequireDefault(require("./model/MarkAllMessagesAsReadRequest")); var _MarkChannelMessagesAsReadRequest = _interopRequireDefault(require("./model/MarkChannelMessagesAsReadRequest")); +var _MigrateMessagesAdminMessageRequest = _interopRequireDefault(require("./model/MigrateMessagesAdminMessageRequest")); +var _MigrateMessagesFileMessageRequest = _interopRequireDefault(require("./model/MigrateMessagesFileMessageRequest")); +var _MigrateMessagesFileMessageRequestThumbnailsInner = _interopRequireDefault(require("./model/MigrateMessagesFileMessageRequestThumbnailsInner")); +var _MigrateMessagesRequest = _interopRequireDefault(require("./model/MigrateMessagesRequest")); +var _MigrateMessagesRequestMessagesInner = _interopRequireDefault(require("./model/MigrateMessagesRequestMessagesInner")); +var _MigrateMessagesTextMessageRequest = _interopRequireDefault(require("./model/MigrateMessagesTextMessageRequest")); var _RegisterOperatorsToAGroupChannelRequest = _interopRequireDefault(require("./model/RegisterOperatorsToAGroupChannelRequest")); var _RemoveARegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/RemoveARegistrationOrDeviceTokenResponse")); var _RemoveAllRegistrationOrDeviceTokenResponse = _interopRequireDefault(require("./model/RemoveAllRegistrationOrDeviceTokenResponse")); diff --git a/dist/model/MigrateMessagesAdminMessageRequest.js b/dist/model/MigrateMessagesAdminMessageRequest.js new file mode 100644 index 0000000..5c03eaf --- /dev/null +++ b/dist/model/MigrateMessagesAdminMessageRequest.js @@ -0,0 +1,158 @@ +"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 MigrateMessagesAdminMessageRequest model module. + * @module model/MigrateMessagesAdminMessageRequest + * @version 2.0.0 + */ +var MigrateMessagesAdminMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesAdminMessageRequest. + * @alias module:model/MigrateMessagesAdminMessageRequest + * @param messageType {module:model/MigrateMessagesAdminMessageRequest.MessageTypeEnum} + * @param message {String} + * @param timestamp {Number} + */ + function MigrateMessagesAdminMessageRequest(messageType, message, timestamp) { + _classCallCheck(this, MigrateMessagesAdminMessageRequest); + MigrateMessagesAdminMessageRequest.initialize(this, messageType, message, 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. + */ + return _createClass(MigrateMessagesAdminMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, messageType, message, timestamp) { + obj['message_type'] = messageType; + obj['message'] = message; + obj['timestamp'] = timestamp; + } + + /** + * Constructs a MigrateMessagesAdminMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesAdminMessageRequest} obj Optional instance to populate. + * @return {module:model/MigrateMessagesAdminMessageRequest} The populated MigrateMessagesAdminMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesAdminMessageRequest(); + 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('timestamp')) { + obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['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('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); + } + } + return obj; + } + }]); +}(); +/** + * @member {module:model/MigrateMessagesAdminMessageRequest.MessageTypeEnum} message_type + */ +MigrateMessagesAdminMessageRequest.prototype['message_type'] = undefined; + +/** + * @member {String} message + */ +MigrateMessagesAdminMessageRequest.prototype['message'] = undefined; + +/** + * @member {Number} timestamp + */ +MigrateMessagesAdminMessageRequest.prototype['timestamp'] = undefined; + +/** + * @member {String} custom_type + */ +MigrateMessagesAdminMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {Boolean} is_silent + */ +MigrateMessagesAdminMessageRequest.prototype['is_silent'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +MigrateMessagesAdminMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} data + */ +MigrateMessagesAdminMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +MigrateMessagesAdminMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +MigrateMessagesAdminMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +MigrateMessagesAdminMessageRequest['MessageTypeEnum'] = { + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; +var _default = exports["default"] = MigrateMessagesAdminMessageRequest; \ No newline at end of file diff --git a/dist/model/MigrateMessagesFileMessageRequest.js b/dist/model/MigrateMessagesFileMessageRequest.js new file mode 100644 index 0000000..450aab5 --- /dev/null +++ b/dist/model/MigrateMessagesFileMessageRequest.js @@ -0,0 +1,201 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _MigrateMessagesFileMessageRequestThumbnailsInner = _interopRequireDefault(require("./MigrateMessagesFileMessageRequestThumbnailsInner")); +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 MigrateMessagesFileMessageRequest model module. + * @module model/MigrateMessagesFileMessageRequest + * @version 2.0.0 + */ +var MigrateMessagesFileMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesFileMessageRequest. + * @alias module:model/MigrateMessagesFileMessageRequest + * @param userId {String} + * @param messageType {module:model/MigrateMessagesFileMessageRequest.MessageTypeEnum} + * @param url {String} + * @param timestamp {Number} + */ + function MigrateMessagesFileMessageRequest(userId, messageType, url, timestamp) { + _classCallCheck(this, MigrateMessagesFileMessageRequest); + MigrateMessagesFileMessageRequest.initialize(this, userId, messageType, url, 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. + */ + return _createClass(MigrateMessagesFileMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId, messageType, url, timestamp) { + obj['user_id'] = userId; + obj['message_type'] = messageType; + obj['url'] = url; + obj['timestamp'] = timestamp; + } + + /** + * Constructs a MigrateMessagesFileMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesFileMessageRequest} obj Optional instance to populate. + * @return {module:model/MigrateMessagesFileMessageRequest} The populated MigrateMessagesFileMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesFileMessageRequest(); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], 'String'); + } + if (data.hasOwnProperty('message_type')) { + obj['message_type'] = _ApiClient["default"].convertToType(data['message_type'], 'String'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = _ApiClient["default"].convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('timestamp')) { + obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'Number'); + } + 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'], [_MigrateMessagesFileMessageRequestThumbnailsInner["default"]]); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('custom_field')) { + obj['custom_field'] = _ApiClient["default"].convertToType(data['custom_field'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['String']); + } + if (data.hasOwnProperty('dedup_id')) { + obj['dedup_id'] = _ApiClient["default"].convertToType(data['dedup_id'], 'String'); + } + if (data.hasOwnProperty('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} user_id + */ +MigrateMessagesFileMessageRequest.prototype['user_id'] = undefined; + +/** + * @member {module:model/MigrateMessagesFileMessageRequest.MessageTypeEnum} message_type + */ +MigrateMessagesFileMessageRequest.prototype['message_type'] = undefined; + +/** + * @member {String} url + */ +MigrateMessagesFileMessageRequest.prototype['url'] = undefined; + +/** + * @member {Number} timestamp + */ +MigrateMessagesFileMessageRequest.prototype['timestamp'] = undefined; + +/** + * @member {String} file_name + */ +MigrateMessagesFileMessageRequest.prototype['file_name'] = undefined; + +/** + * @member {Number} file_size + */ +MigrateMessagesFileMessageRequest.prototype['file_size'] = undefined; + +/** + * @member {String} file_type + */ +MigrateMessagesFileMessageRequest.prototype['file_type'] = undefined; + +/** + * @member {Array.} thumbnails + */ +MigrateMessagesFileMessageRequest.prototype['thumbnails'] = undefined; + +/** + * @member {Boolean} require_auth + */ +MigrateMessagesFileMessageRequest.prototype['require_auth'] = undefined; + +/** + * @member {String} custom_type + */ +MigrateMessagesFileMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {String} custom_field + */ +MigrateMessagesFileMessageRequest.prototype['custom_field'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +MigrateMessagesFileMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} dedup_id + */ +MigrateMessagesFileMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +MigrateMessagesFileMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +MigrateMessagesFileMessageRequest['MessageTypeEnum'] = { + /** + * value: "FILE" + * @const + */ + "FILE": "FILE" +}; +var _default = exports["default"] = MigrateMessagesFileMessageRequest; \ No newline at end of file diff --git a/dist/model/MigrateMessagesFileMessageRequestThumbnailsInner.js b/dist/model/MigrateMessagesFileMessageRequestThumbnailsInner.js new file mode 100644 index 0000000..b8b16b7 --- /dev/null +++ b/dist/model/MigrateMessagesFileMessageRequestThumbnailsInner.js @@ -0,0 +1,67 @@ +"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 MigrateMessagesFileMessageRequestThumbnailsInner model module. + * @module model/MigrateMessagesFileMessageRequestThumbnailsInner + * @version 2.0.0 + */ +var MigrateMessagesFileMessageRequestThumbnailsInner = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesFileMessageRequestThumbnailsInner. + * @alias module:model/MigrateMessagesFileMessageRequestThumbnailsInner + */ + function MigrateMessagesFileMessageRequestThumbnailsInner() { + _classCallCheck(this, MigrateMessagesFileMessageRequestThumbnailsInner); + MigrateMessagesFileMessageRequestThumbnailsInner.initialize(this); + } + + /** + * Initializes the fields of 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(MigrateMessagesFileMessageRequestThumbnailsInner, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MigrateMessagesFileMessageRequestThumbnailsInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesFileMessageRequestThumbnailsInner} obj Optional instance to populate. + * @return {module:model/MigrateMessagesFileMessageRequestThumbnailsInner} The populated MigrateMessagesFileMessageRequestThumbnailsInner instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesFileMessageRequestThumbnailsInner(); + } + return obj; + } + }]); +}(); +var _default = exports["default"] = MigrateMessagesFileMessageRequestThumbnailsInner; \ No newline at end of file diff --git a/dist/model/MigrateMessagesRequest.js b/dist/model/MigrateMessagesRequest.js new file mode 100644 index 0000000..c157845 --- /dev/null +++ b/dist/model/MigrateMessagesRequest.js @@ -0,0 +1,91 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _MigrateMessagesRequestMessagesInner = _interopRequireDefault(require("./MigrateMessagesRequestMessagesInner")); +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 MigrateMessagesRequest model module. + * @module model/MigrateMessagesRequest + * @version 2.0.0 + */ +var MigrateMessagesRequest = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesRequest. + * @alias module:model/MigrateMessagesRequest + */ + function MigrateMessagesRequest() { + _classCallCheck(this, MigrateMessagesRequest); + MigrateMessagesRequest.initialize(this); + } + + /** + * Initializes the fields of 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(MigrateMessagesRequest, null, [{ + key: "initialize", + value: function initialize(obj) {} + + /** + * Constructs a MigrateMessagesRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesRequest} obj Optional instance to populate. + * @return {module:model/MigrateMessagesRequest} The populated MigrateMessagesRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesRequest(); + if (data.hasOwnProperty('messages')) { + obj['messages'] = _ApiClient["default"].convertToType(data['messages'], [_MigrateMessagesRequestMessagesInner["default"]]); + } + if (data.hasOwnProperty('update_read_ts')) { + obj['update_read_ts'] = _ApiClient["default"].convertToType(data['update_read_ts'], 'Boolean'); + } + if (data.hasOwnProperty('rewind_read_ts')) { + obj['rewind_read_ts'] = _ApiClient["default"].convertToType(data['rewind_read_ts'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {Array.} messages + */ +MigrateMessagesRequest.prototype['messages'] = undefined; + +/** + * @member {Boolean} update_read_ts + */ +MigrateMessagesRequest.prototype['update_read_ts'] = undefined; + +/** + * @member {Boolean} rewind_read_ts + */ +MigrateMessagesRequest.prototype['rewind_read_ts'] = undefined; +var _default = exports["default"] = MigrateMessagesRequest; \ No newline at end of file diff --git a/dist/model/MigrateMessagesRequestMessagesInner.js b/dist/model/MigrateMessagesRequestMessagesInner.js new file mode 100644 index 0000000..d2f8b00 --- /dev/null +++ b/dist/model/MigrateMessagesRequestMessagesInner.js @@ -0,0 +1,371 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports["default"] = void 0; +var _ApiClient = _interopRequireDefault(require("../ApiClient")); +var _MigrateMessagesAdminMessageRequest = _interopRequireDefault(require("./MigrateMessagesAdminMessageRequest")); +var _MigrateMessagesFileMessageRequest = _interopRequireDefault(require("./MigrateMessagesFileMessageRequest")); +var _MigrateMessagesFileMessageRequestThumbnailsInner = _interopRequireDefault(require("./MigrateMessagesFileMessageRequestThumbnailsInner")); +var _MigrateMessagesTextMessageRequest = _interopRequireDefault(require("./MigrateMessagesTextMessageRequest")); +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 MigrateMessagesRequestMessagesInner model module. + * @module model/MigrateMessagesRequestMessagesInner + * @version 2.0.0 + */ +var MigrateMessagesRequestMessagesInner = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesRequestMessagesInner. + * @alias module:model/MigrateMessagesRequestMessagesInner + * @implements module:model/MigrateMessagesTextMessageRequest + * @implements module:model/MigrateMessagesFileMessageRequest + * @implements module:model/MigrateMessagesAdminMessageRequest + * @param userId {String} + * @param messageType {module:model/MigrateMessagesRequestMessagesInner.MessageTypeEnum} + * @param message {String} + * @param timestamp {Number} + * @param url {String} + */ + function MigrateMessagesRequestMessagesInner(userId, messageType, message, timestamp, url) { + _classCallCheck(this, MigrateMessagesRequestMessagesInner); + _MigrateMessagesTextMessageRequest["default"].initialize(this, userId, messageType, message, timestamp); + _MigrateMessagesFileMessageRequest["default"].initialize(this, userId, messageType, url, timestamp); + _MigrateMessagesAdminMessageRequest["default"].initialize(this, messageType, message, timestamp); + MigrateMessagesRequestMessagesInner.initialize(this, userId, messageType, message, timestamp, 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. + */ + return _createClass(MigrateMessagesRequestMessagesInner, null, [{ + key: "initialize", + value: function initialize(obj, userId, messageType, message, timestamp, url) { + obj['user_id'] = userId; + obj['message_type'] = messageType; + obj['message'] = message; + obj['timestamp'] = timestamp; + obj['url'] = url; + } + + /** + * Constructs a MigrateMessagesRequestMessagesInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesRequestMessagesInner} obj Optional instance to populate. + * @return {module:model/MigrateMessagesRequestMessagesInner} The populated MigrateMessagesRequestMessagesInner instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesRequestMessagesInner(); + _MigrateMessagesTextMessageRequest["default"].constructFromObject(data, obj); + _MigrateMessagesFileMessageRequest["default"].constructFromObject(data, obj); + _MigrateMessagesAdminMessageRequest["default"].constructFromObject(data, obj); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], '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('timestamp')) { + obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['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('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); + } + 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'], [_MigrateMessagesFileMessageRequestThumbnailsInner["default"]]); + } + if (data.hasOwnProperty('require_auth')) { + obj['require_auth'] = _ApiClient["default"].convertToType(data['require_auth'], 'Boolean'); + } + if (data.hasOwnProperty('custom_field')) { + obj['custom_field'] = _ApiClient["default"].convertToType(data['custom_field'], 'String'); + } + if (data.hasOwnProperty('is_silent')) { + obj['is_silent'] = _ApiClient["default"].convertToType(data['is_silent'], 'Boolean'); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} user_id + */ +MigrateMessagesRequestMessagesInner.prototype['user_id'] = undefined; + +/** + * @member {module:model/MigrateMessagesRequestMessagesInner.MessageTypeEnum} message_type + */ +MigrateMessagesRequestMessagesInner.prototype['message_type'] = undefined; + +/** + * @member {String} message + */ +MigrateMessagesRequestMessagesInner.prototype['message'] = undefined; + +/** + * @member {Number} timestamp + */ +MigrateMessagesRequestMessagesInner.prototype['timestamp'] = undefined; + +/** + * @member {String} custom_type + */ +MigrateMessagesRequestMessagesInner.prototype['custom_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +MigrateMessagesRequestMessagesInner.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} data + */ +MigrateMessagesRequestMessagesInner.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +MigrateMessagesRequestMessagesInner.prototype['dedup_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +MigrateMessagesRequestMessagesInner.prototype['sorted_metaarray'] = undefined; + +/** + * @member {String} url + */ +MigrateMessagesRequestMessagesInner.prototype['url'] = undefined; + +/** + * @member {String} file_name + */ +MigrateMessagesRequestMessagesInner.prototype['file_name'] = undefined; + +/** + * @member {Number} file_size + */ +MigrateMessagesRequestMessagesInner.prototype['file_size'] = undefined; + +/** + * @member {String} file_type + */ +MigrateMessagesRequestMessagesInner.prototype['file_type'] = undefined; + +/** + * @member {Array.} thumbnails + */ +MigrateMessagesRequestMessagesInner.prototype['thumbnails'] = undefined; + +/** + * @member {Boolean} require_auth + */ +MigrateMessagesRequestMessagesInner.prototype['require_auth'] = undefined; + +/** + * @member {String} custom_field + */ +MigrateMessagesRequestMessagesInner.prototype['custom_field'] = undefined; + +/** + * @member {Boolean} is_silent + */ +MigrateMessagesRequestMessagesInner.prototype['is_silent'] = undefined; + +// Implement MigrateMessagesTextMessageRequest interface: +/** + * @member {String} user_id + */ +_MigrateMessagesTextMessageRequest["default"].prototype['user_id'] = undefined; +/** + * @member {module:model/MigrateMessagesTextMessageRequest.MessageTypeEnum} message_type + */ +_MigrateMessagesTextMessageRequest["default"].prototype['message_type'] = undefined; +/** + * @member {String} message + */ +_MigrateMessagesTextMessageRequest["default"].prototype['message'] = undefined; +/** + * @member {Number} timestamp + */ +_MigrateMessagesTextMessageRequest["default"].prototype['timestamp'] = undefined; +/** + * @member {String} custom_type + */ +_MigrateMessagesTextMessageRequest["default"].prototype['custom_type'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_MigrateMessagesTextMessageRequest["default"].prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} data + */ +_MigrateMessagesTextMessageRequest["default"].prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +_MigrateMessagesTextMessageRequest["default"].prototype['dedup_id'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_MigrateMessagesTextMessageRequest["default"].prototype['sorted_metaarray'] = undefined; +// Implement MigrateMessagesFileMessageRequest interface: +/** + * @member {String} user_id + */ +_MigrateMessagesFileMessageRequest["default"].prototype['user_id'] = undefined; +/** + * @member {module:model/MigrateMessagesFileMessageRequest.MessageTypeEnum} message_type + */ +_MigrateMessagesFileMessageRequest["default"].prototype['message_type'] = undefined; +/** + * @member {String} url + */ +_MigrateMessagesFileMessageRequest["default"].prototype['url'] = undefined; +/** + * @member {Number} timestamp + */ +_MigrateMessagesFileMessageRequest["default"].prototype['timestamp'] = undefined; +/** + * @member {String} file_name + */ +_MigrateMessagesFileMessageRequest["default"].prototype['file_name'] = undefined; +/** + * @member {Number} file_size + */ +_MigrateMessagesFileMessageRequest["default"].prototype['file_size'] = undefined; +/** + * @member {String} file_type + */ +_MigrateMessagesFileMessageRequest["default"].prototype['file_type'] = undefined; +/** + * @member {Array.} thumbnails + */ +_MigrateMessagesFileMessageRequest["default"].prototype['thumbnails'] = undefined; +/** + * @member {Boolean} require_auth + */ +_MigrateMessagesFileMessageRequest["default"].prototype['require_auth'] = undefined; +/** + * @member {String} custom_type + */ +_MigrateMessagesFileMessageRequest["default"].prototype['custom_type'] = undefined; +/** + * @member {String} custom_field + */ +_MigrateMessagesFileMessageRequest["default"].prototype['custom_field'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_MigrateMessagesFileMessageRequest["default"].prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} dedup_id + */ +_MigrateMessagesFileMessageRequest["default"].prototype['dedup_id'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_MigrateMessagesFileMessageRequest["default"].prototype['sorted_metaarray'] = undefined; +// Implement MigrateMessagesAdminMessageRequest interface: +/** + * @member {module:model/MigrateMessagesAdminMessageRequest.MessageTypeEnum} message_type + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['message_type'] = undefined; +/** + * @member {String} message + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['message'] = undefined; +/** + * @member {Number} timestamp + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['timestamp'] = undefined; +/** + * @member {String} custom_type + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['custom_type'] = undefined; +/** + * @member {Boolean} is_silent + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['is_silent'] = undefined; +/** + * @member {Array.} mentioned_user_ids + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['mentioned_user_ids'] = undefined; +/** + * @member {String} data + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['data'] = undefined; +/** + * @member {String} dedup_id + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['dedup_id'] = undefined; +/** + * @member {Array.} sorted_metaarray + */ +_MigrateMessagesAdminMessageRequest["default"].prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +MigrateMessagesRequestMessagesInner['MessageTypeEnum'] = { + /** + * value: "ADMM" + * @const + */ + "ADMM": "ADMM" +}; +var _default = exports["default"] = MigrateMessagesRequestMessagesInner; \ No newline at end of file diff --git a/dist/model/MigrateMessagesTextMessageRequest.js b/dist/model/MigrateMessagesTextMessageRequest.js new file mode 100644 index 0000000..7b04fab --- /dev/null +++ b/dist/model/MigrateMessagesTextMessageRequest.js @@ -0,0 +1,160 @@ +"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 MigrateMessagesTextMessageRequest model module. + * @module model/MigrateMessagesTextMessageRequest + * @version 2.0.0 + */ +var MigrateMessagesTextMessageRequest = /*#__PURE__*/function () { + /** + * Constructs a new MigrateMessagesTextMessageRequest. + * @alias module:model/MigrateMessagesTextMessageRequest + * @param userId {String} + * @param messageType {module:model/MigrateMessagesTextMessageRequest.MessageTypeEnum} + * @param message {String} + * @param timestamp {Number} + */ + function MigrateMessagesTextMessageRequest(userId, messageType, message, timestamp) { + _classCallCheck(this, MigrateMessagesTextMessageRequest); + MigrateMessagesTextMessageRequest.initialize(this, userId, messageType, message, 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. + */ + return _createClass(MigrateMessagesTextMessageRequest, null, [{ + key: "initialize", + value: function initialize(obj, userId, messageType, message, timestamp) { + obj['user_id'] = userId; + obj['message_type'] = messageType; + obj['message'] = message; + obj['timestamp'] = timestamp; + } + + /** + * Constructs a MigrateMessagesTextMessageRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MigrateMessagesTextMessageRequest} obj Optional instance to populate. + * @return {module:model/MigrateMessagesTextMessageRequest} The populated MigrateMessagesTextMessageRequest instance. + */ + }, { + key: "constructFromObject", + value: function constructFromObject(data, obj) { + if (data) { + obj = obj || new MigrateMessagesTextMessageRequest(); + if (data.hasOwnProperty('user_id')) { + obj['user_id'] = _ApiClient["default"].convertToType(data['user_id'], '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('timestamp')) { + obj['timestamp'] = _ApiClient["default"].convertToType(data['timestamp'], 'Number'); + } + if (data.hasOwnProperty('custom_type')) { + obj['custom_type'] = _ApiClient["default"].convertToType(data['custom_type'], 'String'); + } + if (data.hasOwnProperty('mentioned_user_ids')) { + obj['mentioned_user_ids'] = _ApiClient["default"].convertToType(data['mentioned_user_ids'], ['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('sorted_metaarray')) { + obj['sorted_metaarray'] = _ApiClient["default"].convertToType(data['sorted_metaarray'], [Object]); + } + } + return obj; + } + }]); +}(); +/** + * @member {String} user_id + */ +MigrateMessagesTextMessageRequest.prototype['user_id'] = undefined; + +/** + * @member {module:model/MigrateMessagesTextMessageRequest.MessageTypeEnum} message_type + */ +MigrateMessagesTextMessageRequest.prototype['message_type'] = undefined; + +/** + * @member {String} message + */ +MigrateMessagesTextMessageRequest.prototype['message'] = undefined; + +/** + * @member {Number} timestamp + */ +MigrateMessagesTextMessageRequest.prototype['timestamp'] = undefined; + +/** + * @member {String} custom_type + */ +MigrateMessagesTextMessageRequest.prototype['custom_type'] = undefined; + +/** + * @member {Array.} mentioned_user_ids + */ +MigrateMessagesTextMessageRequest.prototype['mentioned_user_ids'] = undefined; + +/** + * @member {String} data + */ +MigrateMessagesTextMessageRequest.prototype['data'] = undefined; + +/** + * @member {String} dedup_id + */ +MigrateMessagesTextMessageRequest.prototype['dedup_id'] = undefined; + +/** + * @member {Array.} sorted_metaarray + */ +MigrateMessagesTextMessageRequest.prototype['sorted_metaarray'] = undefined; + +/** + * Allowed values for the message_type property. + * @enum {String} + * @readonly + */ +MigrateMessagesTextMessageRequest['MessageTypeEnum'] = { + /** + * value: "MESG" + * @const + */ + "MESG": "MESG" +}; +var _default = exports["default"] = MigrateMessagesTextMessageRequest; \ No newline at end of file diff --git a/dist/model/SendbirdPushTriggerOption.js b/dist/model/SendbirdPushTriggerOption.js index 49f47d9..71aff87 100644 --- a/dist/model/SendbirdPushTriggerOption.js +++ b/dist/model/SendbirdPushTriggerOption.js @@ -47,11 +47,6 @@ var SendbirdPushTriggerOption = exports["default"] = /*#__PURE__*/function () { * @const */ _defineProperty(this, "off", "off"); - /** - * value: "default" - * @const - */ - _defineProperty(this, "default", "default"); } return _createClass(SendbirdPushTriggerOption, null, [{ key: "constructFromObject", diff --git a/package.json b/package.json index a882be3..6cfd767 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "sendbird-platform-sdk", + "name": "@sendbird/sendbird-platform-sdk-javascript", "version": "2.0.0", "description": "Server side JavaScript SDK for Sendbirds Platform API", "license": "MIT", @@ -42,5 +42,8 @@ }, "files": [ "dist" - ] + ], + "publishConfig": { + "access": "public" + } } From 325b9a1f31b482494de274595a802bacf35db29c Mon Sep 17 00:00:00 2001 From: Muhamad Ridwan Date: Thu, 3 Jul 2025 12:07:51 +0700 Subject: [PATCH 2/2] docs: update contact us link --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3377cad..9dd8fa1 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ 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. ->__Note__: Platform API SDK v2 includes only the APIs that were actively used in v1. If you need help getting started with the new SDK, [contact us](https://dashboard-dev.sendbird.com/settings/contact_us). +>__Note__: Platform API SDK v2 includes only the APIs that were actively used in v1. If you need help getting started with the new SDK, [contact us](https://dashboard.sendbird.com/settings/contact_us). # Install ```npm install @sendbird/sendbird-platform-sdk-javascript```