@cirrobio/api-client 0.1.6 → 0.1.7
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 +1 -1
- package/dist/apis/DatasetsApi.d.ts +2 -0
- package/dist/apis/DatasetsApi.js +12 -0
- package/dist/models/DatasetAssetsManifest.d.ts +6 -0
- package/dist/models/DatasetAssetsManifest.js +2 -0
- package/dist/runtime.js +1 -1
- package/package.json +1 -1
- package/src/apis/DatasetsApi.ts +18 -0
- package/src/models/DatasetAssetsManifest.ts +8 -0
- package/src/runtime.ts +1 -1
package/README.md
CHANGED
package/dist/apis/DatasetsApi.js
CHANGED
|
@@ -205,7 +205,19 @@ var DatasetsApi = /** @class */ (function (_super) {
|
|
|
205
205
|
if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
|
|
206
206
|
throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling getDatasetManifest.');
|
|
207
207
|
}
|
|
208
|
+
if (requestParameters.fileOffset === null || requestParameters.fileOffset === undefined) {
|
|
209
|
+
throw new runtime.RequiredError('fileOffset', 'Required parameter requestParameters.fileOffset was null or undefined when calling getDatasetManifest.');
|
|
210
|
+
}
|
|
211
|
+
if (requestParameters.fileLimit === null || requestParameters.fileLimit === undefined) {
|
|
212
|
+
throw new runtime.RequiredError('fileLimit', 'Required parameter requestParameters.fileLimit was null or undefined when calling getDatasetManifest.');
|
|
213
|
+
}
|
|
208
214
|
queryParameters = {};
|
|
215
|
+
if (requestParameters.fileOffset !== undefined) {
|
|
216
|
+
queryParameters['fileOffset'] = requestParameters.fileOffset;
|
|
217
|
+
}
|
|
218
|
+
if (requestParameters.fileLimit !== undefined) {
|
|
219
|
+
queryParameters['fileLimit'] = requestParameters.fileLimit;
|
|
220
|
+
}
|
|
209
221
|
headerParameters = {};
|
|
210
222
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
211
223
|
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 = "
|
|
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
package/src/apis/DatasetsApi.ts
CHANGED
|
@@ -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 {
|
|
@@ -200,8 +202,24 @@ export class DatasetsApi extends runtime.BaseAPI {
|
|
|
200
202
|
throw new runtime.RequiredError('projectId','Required parameter requestParameters.projectId was null or undefined when calling getDatasetManifest.');
|
|
201
203
|
}
|
|
202
204
|
|
|
205
|
+
if (requestParameters.fileOffset === null || requestParameters.fileOffset === undefined) {
|
|
206
|
+
throw new runtime.RequiredError('fileOffset','Required parameter requestParameters.fileOffset was null or undefined when calling getDatasetManifest.');
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
if (requestParameters.fileLimit === null || requestParameters.fileLimit === undefined) {
|
|
210
|
+
throw new runtime.RequiredError('fileLimit','Required parameter requestParameters.fileLimit was null or undefined when calling getDatasetManifest.');
|
|
211
|
+
}
|
|
212
|
+
|
|
203
213
|
const queryParameters: any = {};
|
|
204
214
|
|
|
215
|
+
if (requestParameters.fileOffset !== undefined) {
|
|
216
|
+
queryParameters['fileOffset'] = requestParameters.fileOffset;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (requestParameters.fileLimit !== undefined) {
|
|
220
|
+
queryParameters['fileLimit'] = requestParameters.fileLimit;
|
|
221
|
+
}
|
|
222
|
+
|
|
205
223
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
206
224
|
|
|
207
225
|
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