@coscine/api-client 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -2674,18 +2674,15 @@ const BlobApiAxiosParamCreator = function (configuration) {
2674
2674
  *
2675
2675
  * @summary This method deletes a given file
2676
2676
  * @param {string} resourceId Id of the resource
2677
- * @param {string} path Path to the file
2677
+ * @param {string} [path] Path to the file
2678
2678
  * @param {*} [options] Override http request option.
2679
2679
  * @throws {RequiredError}
2680
2680
  */
2681
- blobDeleteFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2681
+ blobDeleteFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2682
2682
  // verify required parameter 'resourceId' is not null or undefined
2683
- assertParamExists$9('blobDeleteFile', 'resourceId', resourceId);
2684
- // verify required parameter 'path' is not null or undefined
2685
- assertParamExists$9('blobDeleteFile', 'path', path);
2686
- const localVarPath = `/Blob/{resourceId}/{path}`
2687
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2688
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2683
+ assertParamExists$9('blobDeleteFileWithParameter', 'resourceId', resourceId);
2684
+ const localVarPath = `/Blob/{resourceId}`
2685
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2689
2686
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2690
2687
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2691
2688
  let baseOptions;
@@ -2697,6 +2694,9 @@ const BlobApiAxiosParamCreator = function (configuration) {
2697
2694
  const localVarQueryParameter = {};
2698
2695
  // authentication JWT token required
2699
2696
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2697
+ if (path !== undefined) {
2698
+ localVarQueryParameter['path'] = path;
2699
+ }
2700
2700
  setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
2701
2701
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2702
2702
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2709,18 +2709,15 @@ const BlobApiAxiosParamCreator = function (configuration) {
2709
2709
  *
2710
2710
  * @summary This method checks if the given file exists and returns it
2711
2711
  * @param {string} resourceId Id of the resource
2712
- * @param {string} path Path to the file
2712
+ * @param {string} [path] Path to the file
2713
2713
  * @param {*} [options] Override http request option.
2714
2714
  * @throws {RequiredError}
2715
2715
  */
2716
- blobGetFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2716
+ blobGetFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2717
2717
  // verify required parameter 'resourceId' is not null or undefined
2718
- assertParamExists$9('blobGetFile', 'resourceId', resourceId);
2719
- // verify required parameter 'path' is not null or undefined
2720
- assertParamExists$9('blobGetFile', 'path', path);
2721
- const localVarPath = `/Blob/{resourceId}/{path}`
2722
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2723
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2718
+ assertParamExists$9('blobGetFileWithParameter', 'resourceId', resourceId);
2719
+ const localVarPath = `/Blob/{resourceId}`
2720
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2724
2721
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2725
2722
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2726
2723
  let baseOptions;
@@ -2732,6 +2729,9 @@ const BlobApiAxiosParamCreator = function (configuration) {
2732
2729
  const localVarQueryParameter = {};
2733
2730
  // authentication JWT token required
2734
2731
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2732
+ if (path !== undefined) {
2733
+ localVarQueryParameter['path'] = path;
2734
+ }
2735
2735
  setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
2736
2736
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2737
2737
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2807,19 +2807,16 @@ const BlobApiAxiosParamCreator = function (configuration) {
2807
2807
  *
2808
2808
  * @summary This method uploads a given File
2809
2809
  * @param {string} resourceId Id of the resource
2810
- * @param {string} path Path to the file
2810
+ * @param {string} [path] Path to the file
2811
2811
  * @param {Array<any>} [files]
2812
2812
  * @param {*} [options] Override http request option.
2813
2813
  * @throws {RequiredError}
2814
2814
  */
2815
- blobUploadFile: (resourceId, path, files, options = {}) => __awaiter(this, void 0, void 0, function* () {
2815
+ blobUploadFileWithParameter: (resourceId, path, files, options = {}) => __awaiter(this, void 0, void 0, function* () {
2816
2816
  // verify required parameter 'resourceId' is not null or undefined
2817
- assertParamExists$9('blobUploadFile', 'resourceId', resourceId);
2818
- // verify required parameter 'path' is not null or undefined
2819
- assertParamExists$9('blobUploadFile', 'path', path);
2820
- const localVarPath = `/Blob/{resourceId}/{path}`
2821
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2822
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2817
+ assertParamExists$9('blobUploadFileWithParameter', 'resourceId', resourceId);
2818
+ const localVarPath = `/Blob/{resourceId}`
2819
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2823
2820
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2824
2821
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2825
2822
  let baseOptions;
@@ -2832,6 +2829,9 @@ const BlobApiAxiosParamCreator = function (configuration) {
2832
2829
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
2833
2830
  // authentication JWT token required
2834
2831
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2832
+ if (path !== undefined) {
2833
+ localVarQueryParameter['path'] = path;
2834
+ }
2835
2835
  if (files) {
2836
2836
  files.forEach((element) => {
2837
2837
  localVarFormParams.append('files', element);
@@ -2860,13 +2860,13 @@ const BlobApiFp = function (configuration) {
2860
2860
  *
2861
2861
  * @summary This method deletes a given file
2862
2862
  * @param {string} resourceId Id of the resource
2863
- * @param {string} path Path to the file
2863
+ * @param {string} [path] Path to the file
2864
2864
  * @param {*} [options] Override http request option.
2865
2865
  * @throws {RequiredError}
2866
2866
  */
2867
- blobDeleteFile(resourceId, path, options) {
2867
+ blobDeleteFileWithParameter(resourceId, path, options) {
2868
2868
  return __awaiter(this, void 0, void 0, function* () {
2869
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobDeleteFile(resourceId, path, options);
2869
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobDeleteFileWithParameter(resourceId, path, options);
2870
2870
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2871
2871
  });
2872
2872
  },
@@ -2874,13 +2874,13 @@ const BlobApiFp = function (configuration) {
2874
2874
  *
2875
2875
  * @summary This method checks if the given file exists and returns it
2876
2876
  * @param {string} resourceId Id of the resource
2877
- * @param {string} path Path to the file
2877
+ * @param {string} [path] Path to the file
2878
2878
  * @param {*} [options] Override http request option.
2879
2879
  * @throws {RequiredError}
2880
2880
  */
2881
- blobGetFile(resourceId, path, options) {
2881
+ blobGetFileWithParameter(resourceId, path, options) {
2882
2882
  return __awaiter(this, void 0, void 0, function* () {
2883
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetFile(resourceId, path, options);
2883
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetFileWithParameter(resourceId, path, options);
2884
2884
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2885
2885
  });
2886
2886
  },
@@ -2914,14 +2914,14 @@ const BlobApiFp = function (configuration) {
2914
2914
  *
2915
2915
  * @summary This method uploads a given File
2916
2916
  * @param {string} resourceId Id of the resource
2917
- * @param {string} path Path to the file
2917
+ * @param {string} [path] Path to the file
2918
2918
  * @param {Array<any>} [files]
2919
2919
  * @param {*} [options] Override http request option.
2920
2920
  * @throws {RequiredError}
2921
2921
  */
2922
- blobUploadFile(resourceId, path, files, options) {
2922
+ blobUploadFileWithParameter(resourceId, path, files, options) {
2923
2923
  return __awaiter(this, void 0, void 0, function* () {
2924
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobUploadFile(resourceId, path, files, options);
2924
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobUploadFileWithParameter(resourceId, path, files, options);
2925
2925
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2926
2926
  });
2927
2927
  },
@@ -2938,23 +2938,23 @@ const BlobApiFactory = function (configuration, basePath, axios) {
2938
2938
  *
2939
2939
  * @summary This method deletes a given file
2940
2940
  * @param {string} resourceId Id of the resource
2941
- * @param {string} path Path to the file
2941
+ * @param {string} [path] Path to the file
2942
2942
  * @param {*} [options] Override http request option.
2943
2943
  * @throws {RequiredError}
2944
2944
  */
2945
- blobDeleteFile(resourceId, path, options) {
2946
- return localVarFp.blobDeleteFile(resourceId, path, options).then((request) => request(axios, basePath));
2945
+ blobDeleteFileWithParameter(resourceId, path, options) {
2946
+ return localVarFp.blobDeleteFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
2947
2947
  },
2948
2948
  /**
2949
2949
  *
2950
2950
  * @summary This method checks if the given file exists and returns it
2951
2951
  * @param {string} resourceId Id of the resource
2952
- * @param {string} path Path to the file
2952
+ * @param {string} [path] Path to the file
2953
2953
  * @param {*} [options] Override http request option.
2954
2954
  * @throws {RequiredError}
2955
2955
  */
2956
- blobGetFile(resourceId, path, options) {
2957
- return localVarFp.blobGetFile(resourceId, path, options).then((request) => request(axios, basePath));
2956
+ blobGetFileWithParameter(resourceId, path, options) {
2957
+ return localVarFp.blobGetFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
2958
2958
  },
2959
2959
  /**
2960
2960
  *
@@ -2980,13 +2980,13 @@ const BlobApiFactory = function (configuration, basePath, axios) {
2980
2980
  *
2981
2981
  * @summary This method uploads a given File
2982
2982
  * @param {string} resourceId Id of the resource
2983
- * @param {string} path Path to the file
2983
+ * @param {string} [path] Path to the file
2984
2984
  * @param {Array<any>} [files]
2985
2985
  * @param {*} [options] Override http request option.
2986
2986
  * @throws {RequiredError}
2987
2987
  */
2988
- blobUploadFile(resourceId, path, files, options) {
2989
- return localVarFp.blobUploadFile(resourceId, path, files, options).then((request) => request(axios, basePath));
2988
+ blobUploadFileWithParameter(resourceId, path, files, options) {
2989
+ return localVarFp.blobUploadFileWithParameter(resourceId, path, files, options).then((request) => request(axios, basePath));
2990
2990
  },
2991
2991
  };
2992
2992
  };
@@ -7446,18 +7446,15 @@ const TreeApiAxiosParamCreator = function (configuration) {
7446
7446
  *
7447
7447
  * @summary This method retrieves the metadata
7448
7448
  * @param {string} resourceId Id of a resource
7449
- * @param {string} path Path to the file
7449
+ * @param {string} [path] Path to the file
7450
7450
  * @param {*} [options] Override http request option.
7451
7451
  * @throws {RequiredError}
7452
7452
  */
7453
- treeGetMetadata: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7453
+ treeGetMetadataWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7454
7454
  // verify required parameter 'resourceId' is not null or undefined
7455
- assertParamExists$1('treeGetMetadata', 'resourceId', resourceId);
7456
- // verify required parameter 'path' is not null or undefined
7457
- assertParamExists$1('treeGetMetadata', 'path', path);
7458
- const localVarPath = `/Tree/{resourceId}/{path}`
7459
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
7460
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
7455
+ assertParamExists$1('treeGetMetadataWithParameter', 'resourceId', resourceId);
7456
+ const localVarPath = `/Tree/{resourceId}`
7457
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
7461
7458
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7462
7459
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
7463
7460
  let baseOptions;
@@ -7469,6 +7466,9 @@ const TreeApiAxiosParamCreator = function (configuration) {
7469
7466
  const localVarQueryParameter = {};
7470
7467
  // authentication JWT token required
7471
7468
  yield setApiKeyToObject$1(localVarHeaderParameter, "Authorization", configuration);
7469
+ if (path !== undefined) {
7470
+ localVarQueryParameter['path'] = path;
7471
+ }
7472
7472
  setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
7473
7473
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7474
7474
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7481,18 +7481,15 @@ const TreeApiAxiosParamCreator = function (configuration) {
7481
7481
  *
7482
7482
  * @summary This method stores the metadata of the file
7483
7483
  * @param {string} resourceId Id of the resource
7484
- * @param {string} path Path to the file
7484
+ * @param {string} [path] Path to the file
7485
7485
  * @param {*} [options] Override http request option.
7486
7486
  * @throws {RequiredError}
7487
7487
  */
7488
- treeStoreMetadataForFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7488
+ treeStoreMetadataForFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7489
7489
  // verify required parameter 'resourceId' is not null or undefined
7490
- assertParamExists$1('treeStoreMetadataForFile', 'resourceId', resourceId);
7491
- // verify required parameter 'path' is not null or undefined
7492
- assertParamExists$1('treeStoreMetadataForFile', 'path', path);
7493
- const localVarPath = `/Tree/{resourceId}/{path}`
7494
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
7495
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
7490
+ assertParamExists$1('treeStoreMetadataForFileWithParameter', 'resourceId', resourceId);
7491
+ const localVarPath = `/Tree/{resourceId}`
7492
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
7496
7493
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7497
7494
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
7498
7495
  let baseOptions;
@@ -7504,6 +7501,9 @@ const TreeApiAxiosParamCreator = function (configuration) {
7504
7501
  const localVarQueryParameter = {};
7505
7502
  // authentication JWT token required
7506
7503
  yield setApiKeyToObject$1(localVarHeaderParameter, "Authorization", configuration);
7504
+ if (path !== undefined) {
7505
+ localVarQueryParameter['path'] = path;
7506
+ }
7507
7507
  setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
7508
7508
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7509
7509
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7525,13 +7525,13 @@ const TreeApiFp = function (configuration) {
7525
7525
  *
7526
7526
  * @summary This method retrieves the metadata
7527
7527
  * @param {string} resourceId Id of a resource
7528
- * @param {string} path Path to the file
7528
+ * @param {string} [path] Path to the file
7529
7529
  * @param {*} [options] Override http request option.
7530
7530
  * @throws {RequiredError}
7531
7531
  */
7532
- treeGetMetadata(resourceId, path, options) {
7532
+ treeGetMetadataWithParameter(resourceId, path, options) {
7533
7533
  return __awaiter(this, void 0, void 0, function* () {
7534
- const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadata(resourceId, path, options);
7534
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, options);
7535
7535
  return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
7536
7536
  });
7537
7537
  },
@@ -7539,13 +7539,13 @@ const TreeApiFp = function (configuration) {
7539
7539
  *
7540
7540
  * @summary This method stores the metadata of the file
7541
7541
  * @param {string} resourceId Id of the resource
7542
- * @param {string} path Path to the file
7542
+ * @param {string} [path] Path to the file
7543
7543
  * @param {*} [options] Override http request option.
7544
7544
  * @throws {RequiredError}
7545
7545
  */
7546
- treeStoreMetadataForFile(resourceId, path, options) {
7546
+ treeStoreMetadataForFileWithParameter(resourceId, path, options) {
7547
7547
  return __awaiter(this, void 0, void 0, function* () {
7548
- const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFile(resourceId, path, options);
7548
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, options);
7549
7549
  return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
7550
7550
  });
7551
7551
  },
@@ -7562,23 +7562,23 @@ const TreeApiFactory = function (configuration, basePath, axios) {
7562
7562
  *
7563
7563
  * @summary This method retrieves the metadata
7564
7564
  * @param {string} resourceId Id of a resource
7565
- * @param {string} path Path to the file
7565
+ * @param {string} [path] Path to the file
7566
7566
  * @param {*} [options] Override http request option.
7567
7567
  * @throws {RequiredError}
7568
7568
  */
7569
- treeGetMetadata(resourceId, path, options) {
7570
- return localVarFp.treeGetMetadata(resourceId, path, options).then((request) => request(axios, basePath));
7569
+ treeGetMetadataWithParameter(resourceId, path, options) {
7570
+ return localVarFp.treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
7571
7571
  },
7572
7572
  /**
7573
7573
  *
7574
7574
  * @summary This method stores the metadata of the file
7575
7575
  * @param {string} resourceId Id of the resource
7576
- * @param {string} path Path to the file
7576
+ * @param {string} [path] Path to the file
7577
7577
  * @param {*} [options] Override http request option.
7578
7578
  * @throws {RequiredError}
7579
7579
  */
7580
- treeStoreMetadataForFile(resourceId, path, options) {
7581
- return localVarFp.treeStoreMetadataForFile(resourceId, path, options).then((request) => request(axios, basePath));
7580
+ treeStoreMetadataForFileWithParameter(resourceId, path, options) {
7581
+ return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
7582
7582
  },
7583
7583
  };
7584
7584
  };