@cirrobio/api-client 0.1.6 → 0.1.8

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/README.md CHANGED
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @cirrobio/api-client@0.1.6 --save
39
+ npm install @cirrobio/api-client@0.1.8 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -22,6 +22,8 @@ export interface GetDatasetRequest {
22
22
  export interface GetDatasetManifestRequest {
23
23
  datasetId: string;
24
24
  projectId: string;
25
+ fileOffset?: number;
26
+ fileLimit?: number;
25
27
  }
26
28
  export interface GetDatasetsRequest {
27
29
  projectId: string;
@@ -206,6 +206,12 @@ var DatasetsApi = /** @class */ (function (_super) {
206
206
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getDatasetManifest.');
207
207
  }
208
208
  queryParameters = {};
209
+ if (requestParameters.fileOffset !== undefined) {
210
+ queryParameters['fileOffset'] = requestParameters.fileOffset;
211
+ }
212
+ if (requestParameters.fileLimit !== undefined) {
213
+ queryParameters['fileLimit'] = requestParameters.fileLimit;
214
+ }
209
215
  headerParameters = {};
210
216
  if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
211
217
  token = this.configuration.accessToken;
@@ -30,6 +30,12 @@ export interface DatasetAssetsManifest {
30
30
  * @memberof DatasetAssetsManifest
31
31
  */
32
32
  files?: Array<FileEntry>;
33
+ /**
34
+ * Total number of files in the dataset, used for pagination
35
+ * @type {number}
36
+ * @memberof DatasetAssetsManifest
37
+ */
38
+ totalFiles?: number;
33
39
  /**
34
40
  * List of viz to render for the dataset
35
41
  * @type {Array<DatasetViz>}
@@ -37,6 +37,7 @@ function DatasetAssetsManifestFromJSONTyped(json, ignoreDiscriminator) {
37
37
  return {
38
38
  'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'],
39
39
  'files': !(0, runtime_1.exists)(json, 'files') ? undefined : (json['files'].map(FileEntry_1.FileEntryFromJSON)),
40
+ 'totalFiles': !(0, runtime_1.exists)(json, 'totalFiles') ? undefined : json['totalFiles'],
40
41
  'viz': !(0, runtime_1.exists)(json, 'viz') ? undefined : (json['viz'].map(DatasetViz_1.DatasetVizFromJSON)),
41
42
  'tables': !(0, runtime_1.exists)(json, 'tables') ? undefined : (json['tables'].map(Table_1.TableFromJSON)),
42
43
  };
@@ -52,6 +53,7 @@ function DatasetAssetsManifestToJSON(value) {
52
53
  return {
53
54
  'domain': value.domain,
54
55
  'files': value.files === undefined ? undefined : (value.files.map(FileEntry_1.FileEntryToJSON)),
56
+ 'totalFiles': value.totalFiles,
55
57
  'viz': value.viz === undefined ? undefined : (value.viz.map(DatasetViz_1.DatasetVizToJSON)),
56
58
  'tables': value.tables === undefined ? undefined : (value.tables.map(Table_1.TableToJSON)),
57
59
  };
package/dist/runtime.js CHANGED
@@ -76,7 +76,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
76
76
  };
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
78
  exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.canConsumeForm = exports.mapValues = exports.querystring = exports.exists = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0;
79
- exports.BASE_PATH = "https://api.cirro.bio".replace(/\/+$/, "");
79
+ exports.BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
80
80
  var Configuration = /** @class */ (function () {
81
81
  function Configuration(configuration) {
82
82
  if (configuration === void 0) { configuration = {}; }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cirrobio/api-client",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "API client for Cirro",
5
5
  "author": "CirroBio",
6
6
  "repository": {
@@ -56,6 +56,8 @@ export interface GetDatasetRequest {
56
56
  export interface GetDatasetManifestRequest {
57
57
  datasetId: string;
58
58
  projectId: string;
59
+ fileOffset?: number;
60
+ fileLimit?: number;
59
61
  }
60
62
 
61
63
  export interface GetDatasetsRequest {
@@ -202,6 +204,14 @@ export class DatasetsApi extends runtime.BaseAPI {
202
204
 
203
205
  const queryParameters: any = {};
204
206
 
207
+ if (requestParameters.fileOffset !== undefined) {
208
+ queryParameters['fileOffset'] = requestParameters.fileOffset;
209
+ }
210
+
211
+ if (requestParameters.fileLimit !== undefined) {
212
+ queryParameters['fileLimit'] = requestParameters.fileLimit;
213
+ }
214
+
205
215
  const headerParameters: runtime.HTTPHeaders = {};
206
216
 
207
217
  if (this.configuration && this.configuration.accessToken) {
@@ -50,6 +50,12 @@ export interface DatasetAssetsManifest {
50
50
  * @memberof DatasetAssetsManifest
51
51
  */
52
52
  files?: Array<FileEntry>;
53
+ /**
54
+ * Total number of files in the dataset, used for pagination
55
+ * @type {number}
56
+ * @memberof DatasetAssetsManifest
57
+ */
58
+ totalFiles?: number;
53
59
  /**
54
60
  * List of viz to render for the dataset
55
61
  * @type {Array<DatasetViz>}
@@ -85,6 +91,7 @@ export function DatasetAssetsManifestFromJSONTyped(json: any, ignoreDiscriminato
85
91
 
86
92
  'domain': !exists(json, 'domain') ? undefined : json['domain'],
87
93
  'files': !exists(json, 'files') ? undefined : ((json['files'] as Array<any>).map(FileEntryFromJSON)),
94
+ 'totalFiles': !exists(json, 'totalFiles') ? undefined : json['totalFiles'],
88
95
  'viz': !exists(json, 'viz') ? undefined : ((json['viz'] as Array<any>).map(DatasetVizFromJSON)),
89
96
  'tables': !exists(json, 'tables') ? undefined : ((json['tables'] as Array<any>).map(TableFromJSON)),
90
97
  };
@@ -101,6 +108,7 @@ export function DatasetAssetsManifestToJSON(value?: DatasetAssetsManifest | null
101
108
 
102
109
  'domain': value.domain,
103
110
  'files': value.files === undefined ? undefined : ((value.files as Array<any>).map(FileEntryToJSON)),
111
+ 'totalFiles': value.totalFiles,
104
112
  'viz': value.viz === undefined ? undefined : ((value.viz as Array<any>).map(DatasetVizToJSON)),
105
113
  'tables': value.tables === undefined ? undefined : ((value.tables as Array<any>).map(TableToJSON)),
106
114
  };
package/src/runtime.ts CHANGED
@@ -13,7 +13,7 @@
13
13
  */
14
14
 
15
15
 
16
- export const BASE_PATH = "https://api.cirro.bio".replace(/\/+$/, "");
16
+ export const BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
17
17
 
18
18
  export interface ConfigurationParameters {
19
19
  basePath?: string; // override base path