@closerplatform/spinner-openapi 0.12.390 → 0.12.392

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.d.ts CHANGED
@@ -8923,10 +8923,11 @@ export declare const FilesApiFetchParamCreator: (configuration?: Configuration)
8923
8923
  /**
8924
8924
  *
8925
8925
  * @summary Get link for file. File should be uploaded via this link.
8926
+ * @param {string} roomId
8926
8927
  * @param {*} [options] Override http request option.
8927
8928
  * @throws {RequiredError}
8928
8929
  */
8929
- getFileHandle(options?: any): FetchArgs;
8930
+ getFileHandleForUpload(roomId: string, options?: any): FetchArgs;
8930
8931
  /**
8931
8932
  *
8932
8933
  * @summary Get temporary token for file.
@@ -8944,10 +8945,11 @@ export declare const FilesApiFp: (configuration?: Configuration) => {
8944
8945
  /**
8945
8946
  *
8946
8947
  * @summary Get link for file. File should be uploaded via this link.
8948
+ * @param {string} roomId
8947
8949
  * @param {*} [options] Override http request option.
8948
8950
  * @throws {RequiredError}
8949
8951
  */
8950
- getFileHandle(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
8952
+ getFileHandleForUpload(roomId: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
8951
8953
  /**
8952
8954
  *
8953
8955
  * @summary Get temporary token for file.
@@ -8965,10 +8967,11 @@ export declare const FilesApiFactory: (configuration?: Configuration, fetch?: Fe
8965
8967
  /**
8966
8968
  *
8967
8969
  * @summary Get link for file. File should be uploaded via this link.
8970
+ * @param {string} roomId
8968
8971
  * @param {*} [options] Override http request option.
8969
8972
  * @throws {RequiredError}
8970
8973
  */
8971
- getFileHandle(options?: any): Promise<FileHandle>;
8974
+ getFileHandleForUpload(roomId: string, options?: any): Promise<FileHandle>;
8972
8975
  /**
8973
8976
  *
8974
8977
  * @summary Get temporary token for file.
@@ -8988,11 +8991,12 @@ export declare class FilesApi extends BaseAPI {
8988
8991
  /**
8989
8992
  *
8990
8993
  * @summary Get link for file. File should be uploaded via this link.
8994
+ * @param {string} roomId
8991
8995
  * @param {*} [options] Override http request option.
8992
8996
  * @throws {RequiredError}
8993
8997
  * @memberof FilesApi
8994
8998
  */
8995
- getFileHandle(options?: any): Promise<FileHandle>;
8999
+ getFileHandleForUpload(roomId: string, options?: any): Promise<FileHandle>;
8996
9000
  /**
8997
9001
  *
8998
9002
  * @summary Get temporary token for file.
package/dist/api.js CHANGED
@@ -4223,11 +4223,17 @@ const FilesApiFetchParamCreator = function (configuration) {
4223
4223
  /**
4224
4224
  *
4225
4225
  * @summary Get link for file. File should be uploaded via this link.
4226
+ * @param {string} roomId
4226
4227
  * @param {*} [options] Override http request option.
4227
4228
  * @throws {RequiredError}
4228
4229
  */
4229
- getFileHandle(options = {}) {
4230
- const localVarPath = `/files/handle`;
4230
+ getFileHandleForUpload(roomId, options = {}) {
4231
+ // verify required parameter 'roomId' is not null or undefined
4232
+ if (roomId === null || roomId === undefined) {
4233
+ throw new RequiredError('roomId', 'Required parameter roomId was null or undefined when calling getFileHandleForUpload.');
4234
+ }
4235
+ const localVarPath = `/files/handle/{roomId}`
4236
+ .replace(`{${"roomId"}}`, encodeURIComponent(String(roomId)));
4231
4237
  const localVarUrlObj = url.parse(localVarPath, true);
4232
4238
  const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
4233
4239
  const localVarHeaderParameter = {};
@@ -4308,11 +4314,12 @@ const FilesApiFp = function (configuration) {
4308
4314
  /**
4309
4315
  *
4310
4316
  * @summary Get link for file. File should be uploaded via this link.
4317
+ * @param {string} roomId
4311
4318
  * @param {*} [options] Override http request option.
4312
4319
  * @throws {RequiredError}
4313
4320
  */
4314
- getFileHandle(options) {
4315
- const localVarFetchArgs = (0, exports.FilesApiFetchParamCreator)(configuration).getFileHandle(options);
4321
+ getFileHandleForUpload(roomId, options) {
4322
+ const localVarFetchArgs = (0, exports.FilesApiFetchParamCreator)(configuration).getFileHandleForUpload(roomId, options);
4316
4323
  return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
4317
4324
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
4318
4325
  if (response.status >= 200 && response.status < 300) {
@@ -4356,11 +4363,12 @@ const FilesApiFactory = function (configuration, fetch, basePath) {
4356
4363
  /**
4357
4364
  *
4358
4365
  * @summary Get link for file. File should be uploaded via this link.
4366
+ * @param {string} roomId
4359
4367
  * @param {*} [options] Override http request option.
4360
4368
  * @throws {RequiredError}
4361
4369
  */
4362
- getFileHandle(options) {
4363
- return (0, exports.FilesApiFp)(configuration).getFileHandle(options)(fetch, basePath);
4370
+ getFileHandleForUpload(roomId, options) {
4371
+ return (0, exports.FilesApiFp)(configuration).getFileHandleForUpload(roomId, options)(fetch, basePath);
4364
4372
  },
4365
4373
  /**
4366
4374
  *
@@ -4385,12 +4393,13 @@ class FilesApi extends BaseAPI {
4385
4393
  /**
4386
4394
  *
4387
4395
  * @summary Get link for file. File should be uploaded via this link.
4396
+ * @param {string} roomId
4388
4397
  * @param {*} [options] Override http request option.
4389
4398
  * @throws {RequiredError}
4390
4399
  * @memberof FilesApi
4391
4400
  */
4392
- getFileHandle(options) {
4393
- return (0, exports.FilesApiFp)(this.configuration).getFileHandle(options)(this.fetch, this.basePath);
4401
+ getFileHandleForUpload(roomId, options) {
4402
+ return (0, exports.FilesApiFp)(this.configuration).getFileHandleForUpload(roomId, options)(this.fetch, this.basePath);
4394
4403
  }
4395
4404
  /**
4396
4405
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@closerplatform/spinner-openapi",
3
- "version": "0.12.390",
3
+ "version": "0.12.392",
4
4
  "description": "swagger client for @closerplatform/spinner-openapi",
5
5
  "author": "Swagger Codegen Contributors",
6
6
  "keywords": [