@cirrobio/api-client 0.1.0 → 0.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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +1 -1
  3. package/dist/apis/AuditApi.d.ts +44 -0
  4. package/dist/apis/AuditApi.js +175 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AuditEvent.d.ts +89 -0
  8. package/dist/models/AuditEvent.js +68 -0
  9. package/dist/models/ColumnDefinition.d.ts +43 -0
  10. package/dist/models/ColumnDefinition.js +54 -0
  11. package/dist/models/DatasetAssetsManifest.d.ts +7 -0
  12. package/dist/models/DatasetAssetsManifest.js +3 -0
  13. package/dist/models/LoginProvider.d.ts +49 -0
  14. package/dist/models/LoginProvider.js +59 -0
  15. package/dist/models/Process.d.ts +6 -0
  16. package/dist/models/Process.js +2 -0
  17. package/dist/models/ProcessDetail.d.ts +6 -0
  18. package/dist/models/ProcessDetail.js +2 -0
  19. package/dist/models/SystemInfoResponse.d.ts +8 -1
  20. package/dist/models/SystemInfoResponse.js +7 -3
  21. package/dist/models/Table.d.ts +62 -0
  22. package/dist/models/Table.js +63 -0
  23. package/dist/models/TenantInfo.d.ts +80 -0
  24. package/dist/models/TenantInfo.js +75 -0
  25. package/dist/models/index.d.ts +5 -0
  26. package/dist/models/index.js +5 -0
  27. package/package.json +1 -1
  28. package/src/apis/AuditApi.ts +106 -0
  29. package/src/apis/index.ts +1 -0
  30. package/src/models/AuditEvent.ts +137 -0
  31. package/src/models/ColumnDefinition.ts +81 -0
  32. package/src/models/DatasetAssetsManifest.ts +14 -0
  33. package/src/models/LoginProvider.ts +93 -0
  34. package/src/models/Process.ts +8 -0
  35. package/src/models/ProcessDetail.ts +8 -0
  36. package/src/models/SystemInfoResponse.ts +19 -4
  37. package/src/models/Table.ts +114 -0
  38. package/src/models/TenantInfo.ts +145 -0
  39. package/src/models/index.ts +5 -0
@@ -2,6 +2,7 @@
2
2
  .npmignore
3
3
  README.md
4
4
  package.json
5
+ src/apis/AuditApi.ts
5
6
  src/apis/BillingApi.ts
6
7
  src/apis/DashboardsApi.ts
7
8
  src/apis/DatasetsApi.ts
@@ -20,11 +21,13 @@ src/index.ts
20
21
  src/models/AWSCredentials.ts
21
22
  src/models/AccessType.ts
22
23
  src/models/AllowedDataType.ts
24
+ src/models/AuditEvent.ts
23
25
  src/models/BillingAccount.ts
24
26
  src/models/BillingAccountRequest.ts
25
27
  src/models/BillingMethod.ts
26
28
  src/models/BudgetPeriod.ts
27
29
  src/models/CloudAccount.ts
30
+ src/models/ColumnDefinition.ts
28
31
  src/models/Contact.ts
29
32
  src/models/CreateNotebookInstanceRequest.ts
30
33
  src/models/CreateReferenceRequest.ts
@@ -50,6 +53,7 @@ src/models/ImportDataRequest.ts
50
53
  src/models/InviteUserRequest.ts
51
54
  src/models/InviteUserResponse.ts
52
55
  src/models/LogEntry.ts
56
+ src/models/LoginProvider.ts
53
57
  src/models/MetricRecord.ts
54
58
  src/models/NotebookInstance.ts
55
59
  src/models/NotebookInstanceStatusResponse.ts
@@ -81,8 +85,10 @@ src/models/Status.ts
81
85
  src/models/StopExecutionResponse.ts
82
86
  src/models/SyncStatus.ts
83
87
  src/models/SystemInfoResponse.ts
88
+ src/models/Table.ts
84
89
  src/models/Tag.ts
85
90
  src/models/Task.ts
91
+ src/models/TenantInfo.ts
86
92
  src/models/UpdateDatasetRequest.ts
87
93
  src/models/UpdateUserRequest.ts
88
94
  src/models/UploadDatasetCreateResponse.ts
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.0 --save
39
+ npm install @cirrobio/api-client@0.1.1 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -0,0 +1,44 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { AuditEvent } from '../models/index';
14
+ export interface GetEventRequest {
15
+ auditEventId: string;
16
+ }
17
+ export interface ListEventsRequest {
18
+ username: string;
19
+ }
20
+ /**
21
+ *
22
+ */
23
+ export declare class AuditApi extends runtime.BaseAPI {
24
+ /**
25
+ * Get audit event detailed information
26
+ * Get audit event
27
+ */
28
+ getEventRaw(requestParameters: GetEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<AuditEvent>>;
29
+ /**
30
+ * Get audit event detailed information
31
+ * Get audit event
32
+ */
33
+ getEvent(requestParameters: GetEventRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<AuditEvent>;
34
+ /**
35
+ * Gets a list of audit events
36
+ * List audit events
37
+ */
38
+ listEventsRaw(requestParameters: ListEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AuditEvent>>>;
39
+ /**
40
+ * Gets a list of audit events
41
+ * List audit events
42
+ */
43
+ listEvents(requestParameters: ListEventsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AuditEvent>>;
44
+ }
@@ -0,0 +1,175 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
+ return new (P || (P = Promise))(function (resolve, reject) {
33
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
37
+ });
38
+ };
39
+ var __generator = (this && this.__generator) || function (thisArg, body) {
40
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
+ function verb(n) { return function (v) { return step([n, v]); }; }
43
+ function step(op) {
44
+ if (f) throw new TypeError("Generator is already executing.");
45
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
+ if (y = 0, t) op = [op[0] & 2, t.value];
48
+ switch (op[0]) {
49
+ case 0: case 1: t = op; break;
50
+ case 4: _.label++; return { value: op[1], done: false };
51
+ case 5: _.label++; y = op[1]; op = [0]; continue;
52
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
+ default:
54
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
+ if (t[2]) _.ops.pop();
59
+ _.trys.pop(); continue;
60
+ }
61
+ op = body.call(thisArg, _);
62
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
+ }
65
+ };
66
+ Object.defineProperty(exports, "__esModule", { value: true });
67
+ exports.AuditApi = void 0;
68
+ var runtime = require("../runtime");
69
+ var index_1 = require("../models/index");
70
+ /**
71
+ *
72
+ */
73
+ var AuditApi = /** @class */ (function (_super) {
74
+ __extends(AuditApi, _super);
75
+ function AuditApi() {
76
+ return _super !== null && _super.apply(this, arguments) || this;
77
+ }
78
+ /**
79
+ * Get audit event detailed information
80
+ * Get audit event
81
+ */
82
+ AuditApi.prototype.getEventRaw = function (requestParameters, initOverrides) {
83
+ return __awaiter(this, void 0, void 0, function () {
84
+ var queryParameters, headerParameters, response;
85
+ return __generator(this, function (_a) {
86
+ switch (_a.label) {
87
+ case 0:
88
+ if (requestParameters.auditEventId === null || requestParameters.auditEventId === undefined) {
89
+ throw new runtime.RequiredError('auditEventId', 'Required parameter requestParameters.auditEventId was null or undefined when calling getEvent.');
90
+ }
91
+ queryParameters = {};
92
+ headerParameters = {};
93
+ return [4 /*yield*/, this.request({
94
+ path: "/audit-events/{auditEventId}".replace("{".concat("auditEventId", "}"), encodeURIComponent(String(requestParameters.auditEventId))),
95
+ method: 'GET',
96
+ headers: headerParameters,
97
+ query: queryParameters,
98
+ }, initOverrides)];
99
+ case 1:
100
+ response = _a.sent();
101
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.AuditEventFromJSON)(jsonValue); })];
102
+ }
103
+ });
104
+ });
105
+ };
106
+ /**
107
+ * Get audit event detailed information
108
+ * Get audit event
109
+ */
110
+ AuditApi.prototype.getEvent = function (requestParameters, initOverrides) {
111
+ return __awaiter(this, void 0, void 0, function () {
112
+ var response;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
115
+ case 0: return [4 /*yield*/, this.getEventRaw(requestParameters, initOverrides)];
116
+ case 1:
117
+ response = _a.sent();
118
+ return [4 /*yield*/, response.value()];
119
+ case 2: return [2 /*return*/, _a.sent()];
120
+ }
121
+ });
122
+ });
123
+ };
124
+ /**
125
+ * Gets a list of audit events
126
+ * List audit events
127
+ */
128
+ AuditApi.prototype.listEventsRaw = function (requestParameters, initOverrides) {
129
+ return __awaiter(this, void 0, void 0, function () {
130
+ var queryParameters, headerParameters, response;
131
+ return __generator(this, function (_a) {
132
+ switch (_a.label) {
133
+ case 0:
134
+ if (requestParameters.username === null || requestParameters.username === undefined) {
135
+ throw new runtime.RequiredError('username', 'Required parameter requestParameters.username was null or undefined when calling listEvents.');
136
+ }
137
+ queryParameters = {};
138
+ if (requestParameters.username !== undefined) {
139
+ queryParameters['username'] = requestParameters.username;
140
+ }
141
+ headerParameters = {};
142
+ return [4 /*yield*/, this.request({
143
+ path: "/audit-events",
144
+ method: 'GET',
145
+ headers: headerParameters,
146
+ query: queryParameters,
147
+ }, initOverrides)];
148
+ case 1:
149
+ response = _a.sent();
150
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.AuditEventFromJSON); })];
151
+ }
152
+ });
153
+ });
154
+ };
155
+ /**
156
+ * Gets a list of audit events
157
+ * List audit events
158
+ */
159
+ AuditApi.prototype.listEvents = function (requestParameters, initOverrides) {
160
+ return __awaiter(this, void 0, void 0, function () {
161
+ var response;
162
+ return __generator(this, function (_a) {
163
+ switch (_a.label) {
164
+ case 0: return [4 /*yield*/, this.listEventsRaw(requestParameters, initOverrides)];
165
+ case 1:
166
+ response = _a.sent();
167
+ return [4 /*yield*/, response.value()];
168
+ case 2: return [2 /*return*/, _a.sent()];
169
+ }
170
+ });
171
+ });
172
+ };
173
+ return AuditApi;
174
+ }(runtime.BaseAPI));
175
+ exports.AuditApi = AuditApi;
@@ -1,3 +1,4 @@
1
+ export * from './AuditApi';
1
2
  export * from './BillingApi';
2
3
  export * from './DashboardsApi';
3
4
  export * from './DatasetsApi';
@@ -16,6 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
+ __exportStar(require("./AuditApi"), exports);
19
20
  __exportStar(require("./BillingApi"), exports);
20
21
  __exportStar(require("./DashboardsApi"), exports);
21
22
  __exportStar(require("./DatasetsApi"), exports);
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AuditEvent
16
+ */
17
+ export interface AuditEvent {
18
+ /**
19
+ * The unique identifier for the audit event
20
+ * @type {string}
21
+ * @memberof AuditEvent
22
+ */
23
+ id?: string;
24
+ /**
25
+ * The type of event
26
+ * @type {string}
27
+ * @memberof AuditEvent
28
+ */
29
+ eventType?: string;
30
+ /**
31
+ * The project ID associated with the event (if applicable)
32
+ * @type {string}
33
+ * @memberof AuditEvent
34
+ */
35
+ projectId?: string;
36
+ /**
37
+ * The entity ID associated with the event
38
+ * @type {string}
39
+ * @memberof AuditEvent
40
+ */
41
+ entityId?: string;
42
+ /**
43
+ * The entity type associated with the event
44
+ * @type {string}
45
+ * @memberof AuditEvent
46
+ */
47
+ entityType?: string;
48
+ /**
49
+ * The details of the event, such as the request details sent from the client
50
+ * @type {{ [key: string]: any; }}
51
+ * @memberof AuditEvent
52
+ */
53
+ eventDetail?: {
54
+ [key: string]: any;
55
+ };
56
+ /**
57
+ * The changes made to the entity (if applicable)
58
+ * @type {{ [key: string]: string; }}
59
+ * @memberof AuditEvent
60
+ */
61
+ changes?: {
62
+ [key: string]: string;
63
+ };
64
+ /**
65
+ * The username of the user who performed the action
66
+ * @type {string}
67
+ * @memberof AuditEvent
68
+ */
69
+ username?: string;
70
+ /**
71
+ * The IP address of the user who performed the action
72
+ * @type {string}
73
+ * @memberof AuditEvent
74
+ */
75
+ ipAddress?: string;
76
+ /**
77
+ * The date and time the event was created
78
+ * @type {Date}
79
+ * @memberof AuditEvent
80
+ */
81
+ createdAt?: Date;
82
+ }
83
+ /**
84
+ * Check if a given object implements the AuditEvent interface.
85
+ */
86
+ export declare function instanceOfAuditEvent(value: object): boolean;
87
+ export declare function AuditEventFromJSON(json: any): AuditEvent;
88
+ export declare function AuditEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuditEvent;
89
+ export declare function AuditEventToJSON(value?: AuditEvent | null): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AuditEventToJSON = exports.AuditEventFromJSONTyped = exports.AuditEventFromJSON = exports.instanceOfAuditEvent = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the AuditEvent interface.
20
+ */
21
+ function instanceOfAuditEvent(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfAuditEvent = instanceOfAuditEvent;
26
+ function AuditEventFromJSON(json) {
27
+ return AuditEventFromJSONTyped(json, false);
28
+ }
29
+ exports.AuditEventFromJSON = AuditEventFromJSON;
30
+ function AuditEventFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'id': !(0, runtime_1.exists)(json, 'id') ? undefined : json['id'],
36
+ 'eventType': !(0, runtime_1.exists)(json, 'eventType') ? undefined : json['eventType'],
37
+ 'projectId': !(0, runtime_1.exists)(json, 'projectId') ? undefined : json['projectId'],
38
+ 'entityId': !(0, runtime_1.exists)(json, 'entityId') ? undefined : json['entityId'],
39
+ 'entityType': !(0, runtime_1.exists)(json, 'entityType') ? undefined : json['entityType'],
40
+ 'eventDetail': !(0, runtime_1.exists)(json, 'eventDetail') ? undefined : json['eventDetail'],
41
+ 'changes': !(0, runtime_1.exists)(json, 'changes') ? undefined : json['changes'],
42
+ 'username': !(0, runtime_1.exists)(json, 'username') ? undefined : json['username'],
43
+ 'ipAddress': !(0, runtime_1.exists)(json, 'ipAddress') ? undefined : json['ipAddress'],
44
+ 'createdAt': !(0, runtime_1.exists)(json, 'createdAt') ? undefined : (new Date(json['createdAt'])),
45
+ };
46
+ }
47
+ exports.AuditEventFromJSONTyped = AuditEventFromJSONTyped;
48
+ function AuditEventToJSON(value) {
49
+ if (value === undefined) {
50
+ return undefined;
51
+ }
52
+ if (value === null) {
53
+ return null;
54
+ }
55
+ return {
56
+ 'id': value.id,
57
+ 'eventType': value.eventType,
58
+ 'projectId': value.projectId,
59
+ 'entityId': value.entityId,
60
+ 'entityType': value.entityType,
61
+ 'eventDetail': value.eventDetail,
62
+ 'changes': value.changes,
63
+ 'username': value.username,
64
+ 'ipAddress': value.ipAddress,
65
+ 'createdAt': value.createdAt === undefined ? undefined : (value.createdAt.toISOString()),
66
+ };
67
+ }
68
+ exports.AuditEventToJSON = AuditEventToJSON;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface ColumnDefinition
16
+ */
17
+ export interface ColumnDefinition {
18
+ /**
19
+ * Column name in asset file
20
+ * @type {string}
21
+ * @memberof ColumnDefinition
22
+ */
23
+ col?: string;
24
+ /**
25
+ * User-friendly column name
26
+ * @type {string}
27
+ * @memberof ColumnDefinition
28
+ */
29
+ name?: string;
30
+ /**
31
+ * Description of the column
32
+ * @type {string}
33
+ * @memberof ColumnDefinition
34
+ */
35
+ desc?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ColumnDefinition interface.
39
+ */
40
+ export declare function instanceOfColumnDefinition(value: object): boolean;
41
+ export declare function ColumnDefinitionFromJSON(json: any): ColumnDefinition;
42
+ export declare function ColumnDefinitionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ColumnDefinition;
43
+ export declare function ColumnDefinitionToJSON(value?: ColumnDefinition | null): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ColumnDefinitionToJSON = exports.ColumnDefinitionFromJSONTyped = exports.ColumnDefinitionFromJSON = exports.instanceOfColumnDefinition = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the ColumnDefinition interface.
20
+ */
21
+ function instanceOfColumnDefinition(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfColumnDefinition = instanceOfColumnDefinition;
26
+ function ColumnDefinitionFromJSON(json) {
27
+ return ColumnDefinitionFromJSONTyped(json, false);
28
+ }
29
+ exports.ColumnDefinitionFromJSON = ColumnDefinitionFromJSON;
30
+ function ColumnDefinitionFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'col': !(0, runtime_1.exists)(json, 'col') ? undefined : json['col'],
36
+ 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
37
+ 'desc': !(0, runtime_1.exists)(json, 'desc') ? undefined : json['desc'],
38
+ };
39
+ }
40
+ exports.ColumnDefinitionFromJSONTyped = ColumnDefinitionFromJSONTyped;
41
+ function ColumnDefinitionToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'col': value.col,
50
+ 'name': value.name,
51
+ 'desc': value.desc,
52
+ };
53
+ }
54
+ exports.ColumnDefinitionToJSON = ColumnDefinitionToJSON;
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { DatasetViz } from './DatasetViz';
13
13
  import type { FileEntry } from './FileEntry';
14
+ import type { Table } from './Table';
14
15
  /**
15
16
  *
16
17
  * @export
@@ -35,6 +36,12 @@ export interface DatasetAssetsManifest {
35
36
  * @memberof DatasetAssetsManifest
36
37
  */
37
38
  viz?: Array<DatasetViz>;
39
+ /**
40
+ * List of web optimized tables for the dataset
41
+ * @type {Array<Table>}
42
+ * @memberof DatasetAssetsManifest
43
+ */
44
+ tables?: Array<Table>;
38
45
  }
39
46
  /**
40
47
  * Check if a given object implements the DatasetAssetsManifest interface.
@@ -17,6 +17,7 @@ exports.DatasetAssetsManifestToJSON = exports.DatasetAssetsManifestFromJSONTyped
17
17
  var runtime_1 = require("../runtime");
18
18
  var DatasetViz_1 = require("./DatasetViz");
19
19
  var FileEntry_1 = require("./FileEntry");
20
+ var Table_1 = require("./Table");
20
21
  /**
21
22
  * Check if a given object implements the DatasetAssetsManifest interface.
22
23
  */
@@ -37,6 +38,7 @@ function DatasetAssetsManifestFromJSONTyped(json, ignoreDiscriminator) {
37
38
  'domain': !(0, runtime_1.exists)(json, 'domain') ? undefined : json['domain'],
38
39
  'files': !(0, runtime_1.exists)(json, 'files') ? undefined : (json['files'].map(FileEntry_1.FileEntryFromJSON)),
39
40
  'viz': !(0, runtime_1.exists)(json, 'viz') ? undefined : (json['viz'].map(DatasetViz_1.DatasetVizFromJSON)),
41
+ 'tables': !(0, runtime_1.exists)(json, 'tables') ? undefined : (json['tables'].map(Table_1.TableFromJSON)),
40
42
  };
41
43
  }
42
44
  exports.DatasetAssetsManifestFromJSONTyped = DatasetAssetsManifestFromJSONTyped;
@@ -51,6 +53,7 @@ function DatasetAssetsManifestToJSON(value) {
51
53
  'domain': value.domain,
52
54
  'files': value.files === undefined ? undefined : (value.files.map(FileEntry_1.FileEntryToJSON)),
53
55
  'viz': value.viz === undefined ? undefined : (value.viz.map(DatasetViz_1.DatasetVizToJSON)),
56
+ 'tables': value.tables === undefined ? undefined : (value.tables.map(Table_1.TableToJSON)),
54
57
  };
55
58
  }
56
59
  exports.DatasetAssetsManifestToJSON = DatasetAssetsManifestToJSON;
@@ -0,0 +1,49 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface LoginProvider
16
+ */
17
+ export interface LoginProvider {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof LoginProvider
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LoginProvider
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof LoginProvider
34
+ */
35
+ description: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof LoginProvider
40
+ */
41
+ logoUrl: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the LoginProvider interface.
45
+ */
46
+ export declare function instanceOfLoginProvider(value: object): boolean;
47
+ export declare function LoginProviderFromJSON(json: any): LoginProvider;
48
+ export declare function LoginProviderFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginProvider;
49
+ export declare function LoginProviderToJSON(value?: LoginProvider | null): any;