Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: GetStream/stream-chat-js
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6cc98f5a85de83efd437fa2e60dc4c71ac266ead
Choose a base ref
..
head repository: GetStream/stream-chat-js
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d6e08980fedfe685a15417f3c24f51c98c4da4a8
Choose a head ref
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/client.ts
12 changes: 6 additions & 6 deletions src/client.ts
Original file line number Diff line number Diff line change
@@ -3075,7 +3075,7 @@ export class StreamChat<
}

/**
* createImport - Create an Import Task.
* _createImport - Create an Import Task.
*
* Note: Do not use this.
* It is present for internal usage only.
@@ -3086,14 +3086,14 @@ export class StreamChat<
*
* @return {APIResponse} An ImportTask
*/
async createImport(filename: string) {
async _createImport(filename: string) {
return await this.post<APIResponse & { import_task: {}; upload_url: string }>(this.baseURL + `/imports`, {
filename,
});
}

/**
* getImport - Get an Import Task.
* _getImport - Get an Import Task.
*
* Note: Do not use this.
* It is present for internal usage only.
@@ -3104,12 +3104,12 @@ export class StreamChat<
*
* @return {APIResponse} An ImportTask
*/
async getImport(id: string) {
async _getImport(id: string) {
return await this.get<APIResponse & { import_task: {} }>(this.baseURL + `/imports/${id}`);
}

/**
* listImports - Lists Import Tasks.
* _listImports - Lists Import Tasks.
*
* Note: Do not use this.
* It is present for internal usage only.
@@ -3120,7 +3120,7 @@ export class StreamChat<
*
* @return {APIResponse} An ImportTask
*/
async listImports(options: { limit?: number; offset?: number }) {
async _listImports(options: { limit?: number; offset?: number }) {
return await this.get<APIResponse & { import_tasks: {}[] }>(this.baseURL + `/imports`, options);
}
}