mirror of
https://github.com/m1k1o/neko-rooms.git
synced 2026-11-03 07:01:35 -06:00
return RoomEntry on created.
This commit is contained in:
+2
-15
@@ -76,19 +76,6 @@ export interface RoomEntry {
|
||||
*/
|
||||
created?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RoomID
|
||||
*/
|
||||
export interface RoomID {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RoomID
|
||||
*/
|
||||
id?: string;
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
@@ -432,7 +419,7 @@ export const RoomsApiFp = function(configuration?: Configuration) {
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
async roomCreate(roomSettings?: RoomSettings, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomID>> {
|
||||
async roomCreate(roomSettings?: RoomSettings, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RoomEntry>> {
|
||||
const localVarAxiosArgs = await localVarAxiosParamCreator.roomCreate(roomSettings, options);
|
||||
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
||||
},
|
||||
@@ -518,7 +505,7 @@ export const RoomsApiFactory = function (configuration?: Configuration, basePath
|
||||
* @param {*} [options] Override http request option.
|
||||
* @throws {RequiredError}
|
||||
*/
|
||||
roomCreate(roomSettings?: RoomSettings, options?: any): AxiosPromise<RoomID> {
|
||||
roomCreate(roomSettings?: RoomSettings, options?: any): AxiosPromise<RoomEntry> {
|
||||
return localVarFp.roomCreate(roomSettings, options).then((request) => request(axios, basePath));
|
||||
},
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user