@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.umd.js CHANGED
@@ -2680,18 +2680,15 @@
2680
2680
  *
2681
2681
  * @summary This method deletes a given file
2682
2682
  * @param {string} resourceId Id of the resource
2683
- * @param {string} path Path to the file
2683
+ * @param {string} [path] Path to the file
2684
2684
  * @param {*} [options] Override http request option.
2685
2685
  * @throws {RequiredError}
2686
2686
  */
2687
- blobDeleteFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2687
+ blobDeleteFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2688
2688
  // verify required parameter 'resourceId' is not null or undefined
2689
- assertParamExists$9('blobDeleteFile', 'resourceId', resourceId);
2690
- // verify required parameter 'path' is not null or undefined
2691
- assertParamExists$9('blobDeleteFile', 'path', path);
2692
- const localVarPath = `/Blob/{resourceId}/{path}`
2693
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2694
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2689
+ assertParamExists$9('blobDeleteFileWithParameter', 'resourceId', resourceId);
2690
+ const localVarPath = `/Blob/{resourceId}`
2691
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2695
2692
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2696
2693
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2697
2694
  let baseOptions;
@@ -2703,6 +2700,9 @@
2703
2700
  const localVarQueryParameter = {};
2704
2701
  // authentication JWT token required
2705
2702
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2703
+ if (path !== undefined) {
2704
+ localVarQueryParameter['path'] = path;
2705
+ }
2706
2706
  setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
2707
2707
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2708
2708
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2715,18 +2715,15 @@
2715
2715
  *
2716
2716
  * @summary This method checks if the given file exists and returns it
2717
2717
  * @param {string} resourceId Id of the resource
2718
- * @param {string} path Path to the file
2718
+ * @param {string} [path] Path to the file
2719
2719
  * @param {*} [options] Override http request option.
2720
2720
  * @throws {RequiredError}
2721
2721
  */
2722
- blobGetFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2722
+ blobGetFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
2723
2723
  // verify required parameter 'resourceId' is not null or undefined
2724
- assertParamExists$9('blobGetFile', 'resourceId', resourceId);
2725
- // verify required parameter 'path' is not null or undefined
2726
- assertParamExists$9('blobGetFile', 'path', path);
2727
- const localVarPath = `/Blob/{resourceId}/{path}`
2728
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2729
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2724
+ assertParamExists$9('blobGetFileWithParameter', 'resourceId', resourceId);
2725
+ const localVarPath = `/Blob/{resourceId}`
2726
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2730
2727
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2731
2728
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2732
2729
  let baseOptions;
@@ -2738,6 +2735,9 @@
2738
2735
  const localVarQueryParameter = {};
2739
2736
  // authentication JWT token required
2740
2737
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2738
+ if (path !== undefined) {
2739
+ localVarQueryParameter['path'] = path;
2740
+ }
2741
2741
  setSearchParams$9(localVarUrlObj, localVarQueryParameter, options.query);
2742
2742
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2743
2743
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -2813,19 +2813,16 @@
2813
2813
  *
2814
2814
  * @summary This method uploads a given File
2815
2815
  * @param {string} resourceId Id of the resource
2816
- * @param {string} path Path to the file
2816
+ * @param {string} [path] Path to the file
2817
2817
  * @param {Array<any>} [files]
2818
2818
  * @param {*} [options] Override http request option.
2819
2819
  * @throws {RequiredError}
2820
2820
  */
2821
- blobUploadFile: (resourceId, path, files, options = {}) => __awaiter(this, void 0, void 0, function* () {
2821
+ blobUploadFileWithParameter: (resourceId, path, files, options = {}) => __awaiter(this, void 0, void 0, function* () {
2822
2822
  // verify required parameter 'resourceId' is not null or undefined
2823
- assertParamExists$9('blobUploadFile', 'resourceId', resourceId);
2824
- // verify required parameter 'path' is not null or undefined
2825
- assertParamExists$9('blobUploadFile', 'path', path);
2826
- const localVarPath = `/Blob/{resourceId}/{path}`
2827
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
2828
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
2823
+ assertParamExists$9('blobUploadFileWithParameter', 'resourceId', resourceId);
2824
+ const localVarPath = `/Blob/{resourceId}`
2825
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
2829
2826
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2830
2827
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$9);
2831
2828
  let baseOptions;
@@ -2838,6 +2835,9 @@
2838
2835
  const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
2839
2836
  // authentication JWT token required
2840
2837
  yield setApiKeyToObject$9(localVarHeaderParameter, "Authorization", configuration);
2838
+ if (path !== undefined) {
2839
+ localVarQueryParameter['path'] = path;
2840
+ }
2841
2841
  if (files) {
2842
2842
  files.forEach((element) => {
2843
2843
  localVarFormParams.append('files', element);
@@ -2866,13 +2866,13 @@
2866
2866
  *
2867
2867
  * @summary This method deletes a given file
2868
2868
  * @param {string} resourceId Id of the resource
2869
- * @param {string} path Path to the file
2869
+ * @param {string} [path] Path to the file
2870
2870
  * @param {*} [options] Override http request option.
2871
2871
  * @throws {RequiredError}
2872
2872
  */
2873
- blobDeleteFile(resourceId, path, options) {
2873
+ blobDeleteFileWithParameter(resourceId, path, options) {
2874
2874
  return __awaiter(this, void 0, void 0, function* () {
2875
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobDeleteFile(resourceId, path, options);
2875
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobDeleteFileWithParameter(resourceId, path, options);
2876
2876
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2877
2877
  });
2878
2878
  },
@@ -2880,13 +2880,13 @@
2880
2880
  *
2881
2881
  * @summary This method checks if the given file exists and returns it
2882
2882
  * @param {string} resourceId Id of the resource
2883
- * @param {string} path Path to the file
2883
+ * @param {string} [path] Path to the file
2884
2884
  * @param {*} [options] Override http request option.
2885
2885
  * @throws {RequiredError}
2886
2886
  */
2887
- blobGetFile(resourceId, path, options) {
2887
+ blobGetFileWithParameter(resourceId, path, options) {
2888
2888
  return __awaiter(this, void 0, void 0, function* () {
2889
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetFile(resourceId, path, options);
2889
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobGetFileWithParameter(resourceId, path, options);
2890
2890
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2891
2891
  });
2892
2892
  },
@@ -2920,14 +2920,14 @@
2920
2920
  *
2921
2921
  * @summary This method uploads a given File
2922
2922
  * @param {string} resourceId Id of the resource
2923
- * @param {string} path Path to the file
2923
+ * @param {string} [path] Path to the file
2924
2924
  * @param {Array<any>} [files]
2925
2925
  * @param {*} [options] Override http request option.
2926
2926
  * @throws {RequiredError}
2927
2927
  */
2928
- blobUploadFile(resourceId, path, files, options) {
2928
+ blobUploadFileWithParameter(resourceId, path, files, options) {
2929
2929
  return __awaiter(this, void 0, void 0, function* () {
2930
- const localVarAxiosArgs = yield localVarAxiosParamCreator.blobUploadFile(resourceId, path, files, options);
2930
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.blobUploadFileWithParameter(resourceId, path, files, options);
2931
2931
  return createRequestFunction$9(localVarAxiosArgs, axios, BASE_PATH$9, configuration);
2932
2932
  });
2933
2933
  },
@@ -2944,23 +2944,23 @@
2944
2944
  *
2945
2945
  * @summary This method deletes a given file
2946
2946
  * @param {string} resourceId Id of the resource
2947
- * @param {string} path Path to the file
2947
+ * @param {string} [path] Path to the file
2948
2948
  * @param {*} [options] Override http request option.
2949
2949
  * @throws {RequiredError}
2950
2950
  */
2951
- blobDeleteFile(resourceId, path, options) {
2952
- return localVarFp.blobDeleteFile(resourceId, path, options).then((request) => request(axios, basePath));
2951
+ blobDeleteFileWithParameter(resourceId, path, options) {
2952
+ return localVarFp.blobDeleteFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
2953
2953
  },
2954
2954
  /**
2955
2955
  *
2956
2956
  * @summary This method checks if the given file exists and returns it
2957
2957
  * @param {string} resourceId Id of the resource
2958
- * @param {string} path Path to the file
2958
+ * @param {string} [path] Path to the file
2959
2959
  * @param {*} [options] Override http request option.
2960
2960
  * @throws {RequiredError}
2961
2961
  */
2962
- blobGetFile(resourceId, path, options) {
2963
- return localVarFp.blobGetFile(resourceId, path, options).then((request) => request(axios, basePath));
2962
+ blobGetFileWithParameter(resourceId, path, options) {
2963
+ return localVarFp.blobGetFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
2964
2964
  },
2965
2965
  /**
2966
2966
  *
@@ -2986,13 +2986,13 @@
2986
2986
  *
2987
2987
  * @summary This method uploads a given File
2988
2988
  * @param {string} resourceId Id of the resource
2989
- * @param {string} path Path to the file
2989
+ * @param {string} [path] Path to the file
2990
2990
  * @param {Array<any>} [files]
2991
2991
  * @param {*} [options] Override http request option.
2992
2992
  * @throws {RequiredError}
2993
2993
  */
2994
- blobUploadFile(resourceId, path, files, options) {
2995
- return localVarFp.blobUploadFile(resourceId, path, files, options).then((request) => request(axios, basePath));
2994
+ blobUploadFileWithParameter(resourceId, path, files, options) {
2995
+ return localVarFp.blobUploadFileWithParameter(resourceId, path, files, options).then((request) => request(axios, basePath));
2996
2996
  },
2997
2997
  };
2998
2998
  };
@@ -7452,18 +7452,15 @@
7452
7452
  *
7453
7453
  * @summary This method retrieves the metadata
7454
7454
  * @param {string} resourceId Id of a resource
7455
- * @param {string} path Path to the file
7455
+ * @param {string} [path] Path to the file
7456
7456
  * @param {*} [options] Override http request option.
7457
7457
  * @throws {RequiredError}
7458
7458
  */
7459
- treeGetMetadata: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7459
+ treeGetMetadataWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7460
7460
  // verify required parameter 'resourceId' is not null or undefined
7461
- assertParamExists$1('treeGetMetadata', 'resourceId', resourceId);
7462
- // verify required parameter 'path' is not null or undefined
7463
- assertParamExists$1('treeGetMetadata', 'path', path);
7464
- const localVarPath = `/Tree/{resourceId}/{path}`
7465
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
7466
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
7461
+ assertParamExists$1('treeGetMetadataWithParameter', 'resourceId', resourceId);
7462
+ const localVarPath = `/Tree/{resourceId}`
7463
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
7467
7464
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7468
7465
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
7469
7466
  let baseOptions;
@@ -7475,6 +7472,9 @@
7475
7472
  const localVarQueryParameter = {};
7476
7473
  // authentication JWT token required
7477
7474
  yield setApiKeyToObject$1(localVarHeaderParameter, "Authorization", configuration);
7475
+ if (path !== undefined) {
7476
+ localVarQueryParameter['path'] = path;
7477
+ }
7478
7478
  setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
7479
7479
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7480
7480
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7487,18 +7487,15 @@
7487
7487
  *
7488
7488
  * @summary This method stores the metadata of the file
7489
7489
  * @param {string} resourceId Id of the resource
7490
- * @param {string} path Path to the file
7490
+ * @param {string} [path] Path to the file
7491
7491
  * @param {*} [options] Override http request option.
7492
7492
  * @throws {RequiredError}
7493
7493
  */
7494
- treeStoreMetadataForFile: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7494
+ treeStoreMetadataForFileWithParameter: (resourceId, path, options = {}) => __awaiter(this, void 0, void 0, function* () {
7495
7495
  // verify required parameter 'resourceId' is not null or undefined
7496
- assertParamExists$1('treeStoreMetadataForFile', 'resourceId', resourceId);
7497
- // verify required parameter 'path' is not null or undefined
7498
- assertParamExists$1('treeStoreMetadataForFile', 'path', path);
7499
- const localVarPath = `/Tree/{resourceId}/{path}`
7500
- .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)))
7501
- .replace(`{${"path"}}`, encodeURIComponent(String(path)));
7496
+ assertParamExists$1('treeStoreMetadataForFileWithParameter', 'resourceId', resourceId);
7497
+ const localVarPath = `/Tree/{resourceId}`
7498
+ .replace(`{${"resourceId"}}`, encodeURIComponent(String(resourceId)));
7502
7499
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7503
7500
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
7504
7501
  let baseOptions;
@@ -7510,6 +7507,9 @@
7510
7507
  const localVarQueryParameter = {};
7511
7508
  // authentication JWT token required
7512
7509
  yield setApiKeyToObject$1(localVarHeaderParameter, "Authorization", configuration);
7510
+ if (path !== undefined) {
7511
+ localVarQueryParameter['path'] = path;
7512
+ }
7513
7513
  setSearchParams$1(localVarUrlObj, localVarQueryParameter, options.query);
7514
7514
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7515
7515
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7531,13 +7531,13 @@
7531
7531
  *
7532
7532
  * @summary This method retrieves the metadata
7533
7533
  * @param {string} resourceId Id of a resource
7534
- * @param {string} path Path to the file
7534
+ * @param {string} [path] Path to the file
7535
7535
  * @param {*} [options] Override http request option.
7536
7536
  * @throws {RequiredError}
7537
7537
  */
7538
- treeGetMetadata(resourceId, path, options) {
7538
+ treeGetMetadataWithParameter(resourceId, path, options) {
7539
7539
  return __awaiter(this, void 0, void 0, function* () {
7540
- const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadata(resourceId, path, options);
7540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.treeGetMetadataWithParameter(resourceId, path, options);
7541
7541
  return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
7542
7542
  });
7543
7543
  },
@@ -7545,13 +7545,13 @@
7545
7545
  *
7546
7546
  * @summary This method stores the metadata of the file
7547
7547
  * @param {string} resourceId Id of the resource
7548
- * @param {string} path Path to the file
7548
+ * @param {string} [path] Path to the file
7549
7549
  * @param {*} [options] Override http request option.
7550
7550
  * @throws {RequiredError}
7551
7551
  */
7552
- treeStoreMetadataForFile(resourceId, path, options) {
7552
+ treeStoreMetadataForFileWithParameter(resourceId, path, options) {
7553
7553
  return __awaiter(this, void 0, void 0, function* () {
7554
- const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFile(resourceId, path, options);
7554
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.treeStoreMetadataForFileWithParameter(resourceId, path, options);
7555
7555
  return createRequestFunction$1(localVarAxiosArgs, axios, BASE_PATH$1, configuration);
7556
7556
  });
7557
7557
  },
@@ -7568,23 +7568,23 @@
7568
7568
  *
7569
7569
  * @summary This method retrieves the metadata
7570
7570
  * @param {string} resourceId Id of a resource
7571
- * @param {string} path Path to the file
7571
+ * @param {string} [path] Path to the file
7572
7572
  * @param {*} [options] Override http request option.
7573
7573
  * @throws {RequiredError}
7574
7574
  */
7575
- treeGetMetadata(resourceId, path, options) {
7576
- return localVarFp.treeGetMetadata(resourceId, path, options).then((request) => request(axios, basePath));
7575
+ treeGetMetadataWithParameter(resourceId, path, options) {
7576
+ return localVarFp.treeGetMetadataWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
7577
7577
  },
7578
7578
  /**
7579
7579
  *
7580
7580
  * @summary This method stores the metadata of the file
7581
7581
  * @param {string} resourceId Id of the resource
7582
- * @param {string} path Path to the file
7582
+ * @param {string} [path] Path to the file
7583
7583
  * @param {*} [options] Override http request option.
7584
7584
  * @throws {RequiredError}
7585
7585
  */
7586
- treeStoreMetadataForFile(resourceId, path, options) {
7587
- return localVarFp.treeStoreMetadataForFile(resourceId, path, options).then((request) => request(axios, basePath));
7586
+ treeStoreMetadataForFileWithParameter(resourceId, path, options) {
7587
+ return localVarFp.treeStoreMetadataForFileWithParameter(resourceId, path, options).then((request) => request(axios, basePath));
7588
7588
  },
7589
7589
  };
7590
7590
  };