@closerplatform/spinner-openapi 0.12.378 → 0.12.380
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 +46 -0
- package/dist/api.js +82 -0
- package/package.json +1 -1
package/dist/api.d.ts
CHANGED
|
@@ -6203,6 +6203,19 @@ export interface TagMappingDto {
|
|
|
6203
6203
|
*/
|
|
6204
6204
|
tag: TagDto;
|
|
6205
6205
|
}
|
|
6206
|
+
/**
|
|
6207
|
+
*
|
|
6208
|
+
* @export
|
|
6209
|
+
* @interface TemporaryToken
|
|
6210
|
+
*/
|
|
6211
|
+
export interface TemporaryToken {
|
|
6212
|
+
/**
|
|
6213
|
+
*
|
|
6214
|
+
* @type {string}
|
|
6215
|
+
* @memberof TemporaryToken
|
|
6216
|
+
*/
|
|
6217
|
+
temporaryToken: string;
|
|
6218
|
+
}
|
|
6206
6219
|
/**
|
|
6207
6220
|
*
|
|
6208
6221
|
* @export
|
|
@@ -8914,6 +8927,14 @@ export declare const FilesApiFetchParamCreator: (configuration?: Configuration)
|
|
|
8914
8927
|
* @throws {RequiredError}
|
|
8915
8928
|
*/
|
|
8916
8929
|
getFileHandle(options?: any): FetchArgs;
|
|
8930
|
+
/**
|
|
8931
|
+
*
|
|
8932
|
+
* @summary Get temporary token for file.
|
|
8933
|
+
* @param {string} token
|
|
8934
|
+
* @param {*} [options] Override http request option.
|
|
8935
|
+
* @throws {RequiredError}
|
|
8936
|
+
*/
|
|
8937
|
+
getTemporaryToken(token: string, options?: any): FetchArgs;
|
|
8917
8938
|
};
|
|
8918
8939
|
/**
|
|
8919
8940
|
* FilesApi - functional programming interface
|
|
@@ -8927,6 +8948,14 @@ export declare const FilesApiFp: (configuration?: Configuration) => {
|
|
|
8927
8948
|
* @throws {RequiredError}
|
|
8928
8949
|
*/
|
|
8929
8950
|
getFileHandle(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<FileHandle>;
|
|
8951
|
+
/**
|
|
8952
|
+
*
|
|
8953
|
+
* @summary Get temporary token for file.
|
|
8954
|
+
* @param {string} token
|
|
8955
|
+
* @param {*} [options] Override http request option.
|
|
8956
|
+
* @throws {RequiredError}
|
|
8957
|
+
*/
|
|
8958
|
+
getTemporaryToken(token: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<TemporaryToken>;
|
|
8930
8959
|
};
|
|
8931
8960
|
/**
|
|
8932
8961
|
* FilesApi - factory interface
|
|
@@ -8940,6 +8969,14 @@ export declare const FilesApiFactory: (configuration?: Configuration, fetch?: Fe
|
|
|
8940
8969
|
* @throws {RequiredError}
|
|
8941
8970
|
*/
|
|
8942
8971
|
getFileHandle(options?: any): Promise<FileHandle>;
|
|
8972
|
+
/**
|
|
8973
|
+
*
|
|
8974
|
+
* @summary Get temporary token for file.
|
|
8975
|
+
* @param {string} token
|
|
8976
|
+
* @param {*} [options] Override http request option.
|
|
8977
|
+
* @throws {RequiredError}
|
|
8978
|
+
*/
|
|
8979
|
+
getTemporaryToken(token: string, options?: any): Promise<TemporaryToken>;
|
|
8943
8980
|
};
|
|
8944
8981
|
/**
|
|
8945
8982
|
* FilesApi - object-oriented interface
|
|
@@ -8956,6 +8993,15 @@ export declare class FilesApi extends BaseAPI {
|
|
|
8956
8993
|
* @memberof FilesApi
|
|
8957
8994
|
*/
|
|
8958
8995
|
getFileHandle(options?: any): Promise<FileHandle>;
|
|
8996
|
+
/**
|
|
8997
|
+
*
|
|
8998
|
+
* @summary Get temporary token for file.
|
|
8999
|
+
* @param {string} token
|
|
9000
|
+
* @param {*} [options] Override http request option.
|
|
9001
|
+
* @throws {RequiredError}
|
|
9002
|
+
* @memberof FilesApi
|
|
9003
|
+
*/
|
|
9004
|
+
getTemporaryToken(token: string, options?: any): Promise<TemporaryToken>;
|
|
8959
9005
|
}
|
|
8960
9006
|
/**
|
|
8961
9007
|
* InviteesApi - fetch parameter creator
|
package/dist/api.js
CHANGED
|
@@ -4255,6 +4255,47 @@ const FilesApiFetchParamCreator = function (configuration) {
|
|
|
4255
4255
|
options: localVarRequestOptions,
|
|
4256
4256
|
};
|
|
4257
4257
|
},
|
|
4258
|
+
/**
|
|
4259
|
+
*
|
|
4260
|
+
* @summary Get temporary token for file.
|
|
4261
|
+
* @param {string} token
|
|
4262
|
+
* @param {*} [options] Override http request option.
|
|
4263
|
+
* @throws {RequiredError}
|
|
4264
|
+
*/
|
|
4265
|
+
getTemporaryToken(token, options = {}) {
|
|
4266
|
+
// verify required parameter 'token' is not null or undefined
|
|
4267
|
+
if (token === null || token === undefined) {
|
|
4268
|
+
throw new RequiredError('token', 'Required parameter token was null or undefined when calling getTemporaryToken.');
|
|
4269
|
+
}
|
|
4270
|
+
const localVarPath = `/files/token/{token}/temporary`
|
|
4271
|
+
.replace(`{${"token"}}`, encodeURIComponent(String(token)));
|
|
4272
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
4273
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
4274
|
+
const localVarHeaderParameter = {};
|
|
4275
|
+
const localVarQueryParameter = {};
|
|
4276
|
+
// authentication apiKey required
|
|
4277
|
+
if (configuration && configuration.apiKey) {
|
|
4278
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4279
|
+
? configuration.apiKey("X-Api-Key")
|
|
4280
|
+
: configuration.apiKey;
|
|
4281
|
+
localVarHeaderParameter["X-Api-Key"] = localVarApiKeyValue;
|
|
4282
|
+
}
|
|
4283
|
+
// authentication fingerprintAuth required
|
|
4284
|
+
if (configuration && configuration.apiKey) {
|
|
4285
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
4286
|
+
? configuration.apiKey("X-Fingerprint")
|
|
4287
|
+
: configuration.apiKey;
|
|
4288
|
+
localVarHeaderParameter["X-Fingerprint"] = localVarApiKeyValue;
|
|
4289
|
+
}
|
|
4290
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
4291
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
4292
|
+
delete localVarUrlObj.search;
|
|
4293
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
4294
|
+
return {
|
|
4295
|
+
url: url.format(localVarUrlObj),
|
|
4296
|
+
options: localVarRequestOptions,
|
|
4297
|
+
};
|
|
4298
|
+
},
|
|
4258
4299
|
};
|
|
4259
4300
|
};
|
|
4260
4301
|
exports.FilesApiFetchParamCreator = FilesApiFetchParamCreator;
|
|
@@ -4283,6 +4324,26 @@ const FilesApiFp = function (configuration) {
|
|
|
4283
4324
|
});
|
|
4284
4325
|
};
|
|
4285
4326
|
},
|
|
4327
|
+
/**
|
|
4328
|
+
*
|
|
4329
|
+
* @summary Get temporary token for file.
|
|
4330
|
+
* @param {string} token
|
|
4331
|
+
* @param {*} [options] Override http request option.
|
|
4332
|
+
* @throws {RequiredError}
|
|
4333
|
+
*/
|
|
4334
|
+
getTemporaryToken(token, options) {
|
|
4335
|
+
const localVarFetchArgs = (0, exports.FilesApiFetchParamCreator)(configuration).getTemporaryToken(token, options);
|
|
4336
|
+
return (fetch = isomorphicFetch, basePath = BASE_PATH) => {
|
|
4337
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
4338
|
+
if (response.status >= 200 && response.status < 300) {
|
|
4339
|
+
return response.json();
|
|
4340
|
+
}
|
|
4341
|
+
else {
|
|
4342
|
+
throw response;
|
|
4343
|
+
}
|
|
4344
|
+
});
|
|
4345
|
+
};
|
|
4346
|
+
},
|
|
4286
4347
|
};
|
|
4287
4348
|
};
|
|
4288
4349
|
exports.FilesApiFp = FilesApiFp;
|
|
@@ -4301,6 +4362,16 @@ const FilesApiFactory = function (configuration, fetch, basePath) {
|
|
|
4301
4362
|
getFileHandle(options) {
|
|
4302
4363
|
return (0, exports.FilesApiFp)(configuration).getFileHandle(options)(fetch, basePath);
|
|
4303
4364
|
},
|
|
4365
|
+
/**
|
|
4366
|
+
*
|
|
4367
|
+
* @summary Get temporary token for file.
|
|
4368
|
+
* @param {string} token
|
|
4369
|
+
* @param {*} [options] Override http request option.
|
|
4370
|
+
* @throws {RequiredError}
|
|
4371
|
+
*/
|
|
4372
|
+
getTemporaryToken(token, options) {
|
|
4373
|
+
return (0, exports.FilesApiFp)(configuration).getTemporaryToken(token, options)(fetch, basePath);
|
|
4374
|
+
},
|
|
4304
4375
|
};
|
|
4305
4376
|
};
|
|
4306
4377
|
exports.FilesApiFactory = FilesApiFactory;
|
|
@@ -4321,6 +4392,17 @@ class FilesApi extends BaseAPI {
|
|
|
4321
4392
|
getFileHandle(options) {
|
|
4322
4393
|
return (0, exports.FilesApiFp)(this.configuration).getFileHandle(options)(this.fetch, this.basePath);
|
|
4323
4394
|
}
|
|
4395
|
+
/**
|
|
4396
|
+
*
|
|
4397
|
+
* @summary Get temporary token for file.
|
|
4398
|
+
* @param {string} token
|
|
4399
|
+
* @param {*} [options] Override http request option.
|
|
4400
|
+
* @throws {RequiredError}
|
|
4401
|
+
* @memberof FilesApi
|
|
4402
|
+
*/
|
|
4403
|
+
getTemporaryToken(token, options) {
|
|
4404
|
+
return (0, exports.FilesApiFp)(this.configuration).getTemporaryToken(token, options)(this.fetch, this.basePath);
|
|
4405
|
+
}
|
|
4324
4406
|
}
|
|
4325
4407
|
exports.FilesApi = FilesApi;
|
|
4326
4408
|
/**
|