@cirrobio/api-client 0.0.9-alpha → 0.0.11-alpha

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 (81) hide show
  1. package/.openapi-generator/FILES +6 -2
  2. package/README.md +1 -1
  3. package/dist/apis/BillingApi.d.ts +15 -2
  4. package/dist/apis/BillingApi.js +57 -3
  5. package/dist/apis/DashboardsApi.d.ts +88 -0
  6. package/dist/apis/DashboardsApi.js +374 -0
  7. package/dist/apis/DatasetsApi.d.ts +19 -5
  8. package/dist/apis/DatasetsApi.js +64 -4
  9. package/dist/apis/MetadataApi.d.ts +12 -0
  10. package/dist/apis/MetadataApi.js +59 -1
  11. package/dist/apis/ProjectsApi.d.ts +13 -1
  12. package/dist/apis/ProjectsApi.js +54 -4
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.js +1 -0
  15. package/dist/models/BillingAccount.d.ts +6 -0
  16. package/dist/models/BillingAccount.js +3 -0
  17. package/dist/models/BudgetPeriod.d.ts +1 -1
  18. package/dist/models/BudgetPeriod.js +1 -1
  19. package/dist/models/CloudAccount.d.ts +3 -10
  20. package/dist/models/CloudAccount.js +0 -3
  21. package/dist/models/Contact.d.ts +4 -4
  22. package/dist/models/Contact.js +8 -5
  23. package/dist/models/CreateDashboardRequest.d.ts +31 -0
  24. package/dist/models/CreateDashboardRequest.js +50 -0
  25. package/dist/models/CustomPipelineSettings.d.ts +6 -6
  26. package/dist/models/CustomPipelineSettings.js +13 -8
  27. package/dist/models/CustomerType.d.ts +2 -4
  28. package/dist/models/CustomerType.js +2 -4
  29. package/dist/models/Dashboard.d.ts +69 -0
  30. package/dist/models/Dashboard.js +68 -0
  31. package/dist/models/Dataset.d.ts +8 -7
  32. package/dist/models/Dataset.js +10 -9
  33. package/dist/models/DatasetDetail.d.ts +11 -10
  34. package/dist/models/DatasetDetail.js +13 -12
  35. package/dist/models/PaginatedResponseDatasetListDto.d.ts +38 -0
  36. package/dist/models/PaginatedResponseDatasetListDto.js +54 -0
  37. package/dist/models/Project.d.ts +9 -2
  38. package/dist/models/Project.js +6 -2
  39. package/dist/models/ProjectDetail.d.ts +7 -6
  40. package/dist/models/ProjectDetail.js +7 -6
  41. package/dist/models/ProjectSettings.d.ts +26 -26
  42. package/dist/models/ProjectSettings.js +14 -26
  43. package/dist/models/RegisterDatasetRequest.d.ts +20 -2
  44. package/dist/models/RegisterDatasetRequest.js +11 -2
  45. package/dist/models/RegisterPublicDataRequest.d.ts +43 -0
  46. package/dist/models/RegisterPublicDataRequest.js +56 -0
  47. package/dist/models/Sample.d.ts +12 -0
  48. package/dist/models/Sample.js +6 -0
  49. package/dist/models/SetUserProjectRoleRequest.d.ts +15 -2
  50. package/dist/models/SetUserProjectRoleRequest.js +9 -2
  51. package/dist/models/Status.d.ts +29 -0
  52. package/dist/models/Status.js +44 -0
  53. package/dist/models/index.d.ts +5 -2
  54. package/dist/models/index.js +5 -2
  55. package/package.json +1 -1
  56. package/src/apis/BillingApi.ts +46 -3
  57. package/src/apis/DashboardsApi.ts +287 -0
  58. package/src/apis/DatasetsApi.ts +64 -9
  59. package/src/apis/MetadataApi.ts +51 -1
  60. package/src/apis/ProjectsApi.ts +44 -6
  61. package/src/apis/index.ts +1 -0
  62. package/src/models/BillingAccount.ts +9 -0
  63. package/src/models/BudgetPeriod.ts +1 -1
  64. package/src/models/CloudAccount.ts +3 -18
  65. package/src/models/Contact.ts +12 -8
  66. package/src/models/CreateDashboardRequest.ts +65 -0
  67. package/src/models/CustomPipelineSettings.ts +19 -13
  68. package/src/models/CustomerType.ts +2 -4
  69. package/src/models/Dashboard.ts +120 -0
  70. package/src/models/Dataset.ts +22 -16
  71. package/src/models/DatasetDetail.ts +28 -22
  72. package/src/models/PaginatedResponseDatasetListDto.ts +82 -0
  73. package/src/models/Project.ts +19 -4
  74. package/src/models/ProjectDetail.ts +18 -12
  75. package/src/models/ProjectSettings.ts +39 -52
  76. package/src/models/RegisterDatasetRequest.ts +31 -4
  77. package/src/models/RegisterPublicDataRequest.ts +83 -0
  78. package/src/models/Sample.ts +18 -0
  79. package/src/models/SetUserProjectRoleRequest.ts +29 -4
  80. package/src/models/Status.ts +43 -0
  81. package/src/models/index.ts +5 -2
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { CreateResponse, Dataset, DatasetDetail, RegisterDatasetRequest, UpdateDatasetRequest } from '../models/index';
13
+ import type { CreateResponse, DatasetDetail, PaginatedResponseDatasetListDto, RegisterDatasetRequest, RegisterPublicDataRequest, UpdateDatasetRequest } from '../models/index';
14
14
  export interface DeleteDatasetRequest {
15
15
  projectId: string;
16
16
  datasetId: string;
@@ -26,6 +26,10 @@ export interface RegisterDatasetOperationRequest {
26
26
  projectId: string;
27
27
  registerDatasetRequest: RegisterDatasetRequest;
28
28
  }
29
+ export interface RegisterPublicDatasetRequest {
30
+ projectId: string;
31
+ registerPublicDataRequest: RegisterPublicDataRequest;
32
+ }
29
33
  export interface UpdateDatasetOperationRequest {
30
34
  projectId: string;
31
35
  datasetId: string;
@@ -59,22 +63,32 @@ export declare class DatasetsApi extends runtime.BaseAPI {
59
63
  * Retrieves a list of datasets for a given project
60
64
  * List datasets
61
65
  */
62
- getDatasetsRaw(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Dataset>>>;
66
+ getDatasetsRaw(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<PaginatedResponseDatasetListDto>>;
63
67
  /**
64
68
  * Retrieves a list of datasets for a given project
65
69
  * List datasets
66
70
  */
67
- getDatasets(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Dataset>>;
71
+ getDatasets(requestParameters: GetDatasetsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PaginatedResponseDatasetListDto>;
68
72
  /**
69
73
  * Registers a dataset in the system
70
- * Register dataset
74
+ * Register private dataset
71
75
  */
72
76
  registerDatasetRaw(requestParameters: RegisterDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
73
77
  /**
74
78
  * Registers a dataset in the system
75
- * Register dataset
79
+ * Register private dataset
76
80
  */
77
81
  registerDataset(requestParameters: RegisterDatasetOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
82
+ /**
83
+ * Download data from public repositories
84
+ * Register public dataset
85
+ */
86
+ registerPublicDatasetRaw(requestParameters: RegisterPublicDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
87
+ /**
88
+ * Download data from public repositories
89
+ * Register public dataset
90
+ */
91
+ registerPublicDataset(requestParameters: RegisterPublicDatasetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
78
92
  /**
79
93
  * Update info on a dataset
80
94
  * Update dataset
@@ -229,7 +229,7 @@ var DatasetsApi = /** @class */ (function (_super) {
229
229
  }, initOverrides)];
230
230
  case 3:
231
231
  response = _a.sent();
232
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.DatasetFromJSON); })];
232
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.PaginatedResponseDatasetListDtoFromJSON)(jsonValue); })];
233
233
  }
234
234
  });
235
235
  });
@@ -254,7 +254,7 @@ var DatasetsApi = /** @class */ (function (_super) {
254
254
  };
255
255
  /**
256
256
  * Registers a dataset in the system
257
- * Register dataset
257
+ * Register private dataset
258
258
  */
259
259
  DatasetsApi.prototype.registerDatasetRaw = function (requestParameters, initOverrides) {
260
260
  return __awaiter(this, void 0, void 0, function () {
@@ -281,7 +281,7 @@ var DatasetsApi = /** @class */ (function (_super) {
281
281
  }
282
282
  _a.label = 2;
283
283
  case 2: return [4 /*yield*/, this.request({
284
- path: "/projects/{projectId}/datasets".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
284
+ path: "/projects/{projectId}/datasets/upload".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
285
285
  method: 'POST',
286
286
  headers: headerParameters,
287
287
  query: queryParameters,
@@ -296,7 +296,7 @@ var DatasetsApi = /** @class */ (function (_super) {
296
296
  };
297
297
  /**
298
298
  * Registers a dataset in the system
299
- * Register dataset
299
+ * Register private dataset
300
300
  */
301
301
  DatasetsApi.prototype.registerDataset = function (requestParameters, initOverrides) {
302
302
  return __awaiter(this, void 0, void 0, function () {
@@ -312,6 +312,66 @@ var DatasetsApi = /** @class */ (function (_super) {
312
312
  });
313
313
  });
314
314
  };
315
+ /**
316
+ * Download data from public repositories
317
+ * Register public dataset
318
+ */
319
+ DatasetsApi.prototype.registerPublicDatasetRaw = function (requestParameters, initOverrides) {
320
+ return __awaiter(this, void 0, void 0, function () {
321
+ var queryParameters, headerParameters, token, tokenString, response;
322
+ return __generator(this, function (_a) {
323
+ switch (_a.label) {
324
+ case 0:
325
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
326
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling registerPublicDataset.');
327
+ }
328
+ if (requestParameters.registerPublicDataRequest === null || requestParameters.registerPublicDataRequest === undefined) {
329
+ throw new runtime.RequiredError('registerPublicDataRequest', 'Required parameter requestParameters.registerPublicDataRequest was null or undefined when calling registerPublicDataset.');
330
+ }
331
+ queryParameters = {};
332
+ headerParameters = {};
333
+ headerParameters['Content-Type'] = 'application/json';
334
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
335
+ token = this.configuration.accessToken;
336
+ return [4 /*yield*/, token("accessToken", [])];
337
+ case 1:
338
+ tokenString = _a.sent();
339
+ if (tokenString) {
340
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
341
+ }
342
+ _a.label = 2;
343
+ case 2: return [4 /*yield*/, this.request({
344
+ path: "/projects/{projectId}/datasets/public".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
345
+ method: 'POST',
346
+ headers: headerParameters,
347
+ query: queryParameters,
348
+ body: (0, index_1.RegisterPublicDataRequestToJSON)(requestParameters.registerPublicDataRequest),
349
+ }, initOverrides)];
350
+ case 3:
351
+ response = _a.sent();
352
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
353
+ }
354
+ });
355
+ });
356
+ };
357
+ /**
358
+ * Download data from public repositories
359
+ * Register public dataset
360
+ */
361
+ DatasetsApi.prototype.registerPublicDataset = function (requestParameters, initOverrides) {
362
+ return __awaiter(this, void 0, void 0, function () {
363
+ var response;
364
+ return __generator(this, function (_a) {
365
+ switch (_a.label) {
366
+ case 0: return [4 /*yield*/, this.registerPublicDatasetRaw(requestParameters, initOverrides)];
367
+ case 1:
368
+ response = _a.sent();
369
+ return [4 /*yield*/, response.value()];
370
+ case 2: return [2 /*return*/, _a.sent()];
371
+ }
372
+ });
373
+ });
374
+ };
315
375
  /**
316
376
  * Update info on a dataset
317
377
  * Update dataset
@@ -14,6 +14,10 @@ import type { Sample } from '../models/index';
14
14
  export interface GetProjectSamplesRequest {
15
15
  projectId: string;
16
16
  }
17
+ export interface UpdateSampleRequest {
18
+ projectId: string;
19
+ sample: Sample;
20
+ }
17
21
  /**
18
22
  *
19
23
  */
@@ -26,4 +30,12 @@ export declare class MetadataApi extends runtime.BaseAPI {
26
30
  * Get project samples
27
31
  */
28
32
  getProjectSamples(requestParameters: GetProjectSamplesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Sample>>;
33
+ /**
34
+ * Update sample
35
+ */
36
+ updateSampleRaw(requestParameters: UpdateSampleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Sample>>;
37
+ /**
38
+ * Update sample
39
+ */
40
+ updateSample(requestParameters: UpdateSampleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Sample>;
29
41
  }
@@ -99,7 +99,7 @@ var MetadataApi = /** @class */ (function (_super) {
99
99
  }
100
100
  _a.label = 2;
101
101
  case 2: return [4 /*yield*/, this.request({
102
- path: "/projects/{projectId}/metadata/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
102
+ path: "/projects/{projectId}/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
103
103
  method: 'GET',
104
104
  headers: headerParameters,
105
105
  query: queryParameters,
@@ -128,6 +128,64 @@ var MetadataApi = /** @class */ (function (_super) {
128
128
  });
129
129
  });
130
130
  };
131
+ /**
132
+ * Update sample
133
+ */
134
+ MetadataApi.prototype.updateSampleRaw = function (requestParameters, initOverrides) {
135
+ return __awaiter(this, void 0, void 0, function () {
136
+ var queryParameters, headerParameters, token, tokenString, response;
137
+ return __generator(this, function (_a) {
138
+ switch (_a.label) {
139
+ case 0:
140
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
141
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling updateSample.');
142
+ }
143
+ if (requestParameters.sample === null || requestParameters.sample === undefined) {
144
+ throw new runtime.RequiredError('sample', 'Required parameter requestParameters.sample was null or undefined when calling updateSample.');
145
+ }
146
+ queryParameters = {};
147
+ headerParameters = {};
148
+ headerParameters['Content-Type'] = 'application/json';
149
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
150
+ token = this.configuration.accessToken;
151
+ return [4 /*yield*/, token("accessToken", [])];
152
+ case 1:
153
+ tokenString = _a.sent();
154
+ if (tokenString) {
155
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
156
+ }
157
+ _a.label = 2;
158
+ case 2: return [4 /*yield*/, this.request({
159
+ path: "/projects/{projectId}/samples".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
160
+ method: 'PUT',
161
+ headers: headerParameters,
162
+ query: queryParameters,
163
+ body: (0, index_1.SampleToJSON)(requestParameters.sample),
164
+ }, initOverrides)];
165
+ case 3:
166
+ response = _a.sent();
167
+ return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.SampleFromJSON)(jsonValue); })];
168
+ }
169
+ });
170
+ });
171
+ };
172
+ /**
173
+ * Update sample
174
+ */
175
+ MetadataApi.prototype.updateSample = function (requestParameters, initOverrides) {
176
+ return __awaiter(this, void 0, void 0, function () {
177
+ var response;
178
+ return __generator(this, function (_a) {
179
+ switch (_a.label) {
180
+ case 0: return [4 /*yield*/, this.updateSampleRaw(requestParameters, initOverrides)];
181
+ case 1:
182
+ response = _a.sent();
183
+ return [4 /*yield*/, response.value()];
184
+ case 2: return [2 /*return*/, _a.sent()];
185
+ }
186
+ });
187
+ });
188
+ };
131
189
  return MetadataApi;
132
190
  }(runtime.BaseAPI));
133
191
  exports.MetadataApi = MetadataApi;
@@ -20,9 +20,11 @@ export interface GetProjectRequest {
20
20
  export interface GetProjectUsersRequest {
21
21
  projectId: string;
22
22
  }
23
+ export interface RedeployProjectRequest {
24
+ projectId: string;
25
+ }
23
26
  export interface SetUserProjectRoleOperationRequest {
24
27
  projectId: string;
25
- username: string;
26
28
  setUserProjectRoleRequest: SetUserProjectRoleRequest;
27
29
  }
28
30
  export interface UpdateProjectRequest {
@@ -77,6 +79,16 @@ export declare class ProjectsApi extends runtime.BaseAPI {
77
79
  * Get projects
78
80
  */
79
81
  getProjects(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Project>>;
82
+ /**
83
+ * Redeploys cloud resources for a project
84
+ * Redeploy project
85
+ */
86
+ redeployProjectRaw(requestParameters: RedeployProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
87
+ /**
88
+ * Redeploys cloud resources for a project
89
+ * Redeploy project
90
+ */
91
+ redeployProject(requestParameters: RedeployProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
80
92
  /**
81
93
  * Sets a user\'s role within a project
82
94
  * Set role
@@ -294,6 +294,59 @@ var ProjectsApi = /** @class */ (function (_super) {
294
294
  });
295
295
  });
296
296
  };
297
+ /**
298
+ * Redeploys cloud resources for a project
299
+ * Redeploy project
300
+ */
301
+ ProjectsApi.prototype.redeployProjectRaw = function (requestParameters, initOverrides) {
302
+ return __awaiter(this, void 0, void 0, function () {
303
+ var queryParameters, headerParameters, token, tokenString, response;
304
+ return __generator(this, function (_a) {
305
+ switch (_a.label) {
306
+ case 0:
307
+ if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
308
+ throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling redeployProject.');
309
+ }
310
+ queryParameters = {};
311
+ headerParameters = {};
312
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
313
+ token = this.configuration.accessToken;
314
+ return [4 /*yield*/, token("accessToken", [])];
315
+ case 1:
316
+ tokenString = _a.sent();
317
+ if (tokenString) {
318
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
319
+ }
320
+ _a.label = 2;
321
+ case 2: return [4 /*yield*/, this.request({
322
+ path: "/projects/{projectId}:re-deploy".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
323
+ method: 'PUT',
324
+ headers: headerParameters,
325
+ query: queryParameters,
326
+ }, initOverrides)];
327
+ case 3:
328
+ response = _a.sent();
329
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
330
+ }
331
+ });
332
+ });
333
+ };
334
+ /**
335
+ * Redeploys cloud resources for a project
336
+ * Redeploy project
337
+ */
338
+ ProjectsApi.prototype.redeployProject = function (requestParameters, initOverrides) {
339
+ return __awaiter(this, void 0, void 0, function () {
340
+ return __generator(this, function (_a) {
341
+ switch (_a.label) {
342
+ case 0: return [4 /*yield*/, this.redeployProjectRaw(requestParameters, initOverrides)];
343
+ case 1:
344
+ _a.sent();
345
+ return [2 /*return*/];
346
+ }
347
+ });
348
+ });
349
+ };
297
350
  /**
298
351
  * Sets a user\'s role within a project
299
352
  * Set role
@@ -307,9 +360,6 @@ var ProjectsApi = /** @class */ (function (_super) {
307
360
  if (requestParameters.projectId === null || requestParameters.projectId === undefined) {
308
361
  throw new runtime.RequiredError('projectId', 'Required parameter requestParameters.projectId was null or undefined when calling setUserProjectRole.');
309
362
  }
310
- if (requestParameters.username === null || requestParameters.username === undefined) {
311
- throw new runtime.RequiredError('username', 'Required parameter requestParameters.username was null or undefined when calling setUserProjectRole.');
312
- }
313
363
  if (requestParameters.setUserProjectRoleRequest === null || requestParameters.setUserProjectRoleRequest === undefined) {
314
364
  throw new runtime.RequiredError('setUserProjectRoleRequest', 'Required parameter requestParameters.setUserProjectRoleRequest was null or undefined when calling setUserProjectRole.');
315
365
  }
@@ -326,7 +376,7 @@ var ProjectsApi = /** @class */ (function (_super) {
326
376
  }
327
377
  _a.label = 2;
328
378
  case 2: return [4 /*yield*/, this.request({
329
- path: "/projects/{projectId}/permissions/{username}".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))).replace("{".concat("username", "}"), encodeURIComponent(String(requestParameters.username))),
379
+ path: "/projects/{projectId}/permissions".replace("{".concat("projectId", "}"), encodeURIComponent(String(requestParameters.projectId))),
330
380
  method: 'PUT',
331
381
  headers: headerParameters,
332
382
  query: queryParameters,
@@ -1,4 +1,5 @@
1
1
  export * from './BillingApi';
2
+ export * from './DashboardsApi';
2
3
  export * from './DatasetsApi';
3
4
  export * from './ExecutionApi';
4
5
  export * from './MetadataApi';
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./BillingApi"), exports);
20
+ __exportStar(require("./DashboardsApi"), exports);
20
21
  __exportStar(require("./DatasetsApi"), exports);
21
22
  __exportStar(require("./ExecutionApi"), exports);
22
23
  __exportStar(require("./MetadataApi"), exports);
@@ -72,6 +72,12 @@ export interface BillingAccount {
72
72
  * @memberof BillingAccount
73
73
  */
74
74
  sharedWith: Array<string>;
75
+ /**
76
+ *
77
+ * @type {boolean}
78
+ * @memberof BillingAccount
79
+ */
80
+ isArchived: boolean;
75
81
  }
76
82
  /**
77
83
  * Check if a given object implements the BillingAccount interface.
@@ -31,6 +31,7 @@ function instanceOfBillingAccount(value) {
31
31
  isInstance = isInstance && "primaryBudgetNumber" in value;
32
32
  isInstance = isInstance && "owner" in value;
33
33
  isInstance = isInstance && "sharedWith" in value;
34
+ isInstance = isInstance && "isArchived" in value;
34
35
  return isInstance;
35
36
  }
36
37
  exports.instanceOfBillingAccount = instanceOfBillingAccount;
@@ -52,6 +53,7 @@ function BillingAccountFromJSONTyped(json, ignoreDiscriminator) {
52
53
  'primaryBudgetNumber': json['primaryBudgetNumber'],
53
54
  'owner': json['owner'],
54
55
  'sharedWith': json['sharedWith'],
56
+ 'isArchived': json['isArchived'],
55
57
  };
56
58
  }
57
59
  exports.BillingAccountFromJSONTyped = BillingAccountFromJSONTyped;
@@ -72,6 +74,7 @@ function BillingAccountToJSON(value) {
72
74
  'primaryBudgetNumber': value.primaryBudgetNumber,
73
75
  'owner': value.owner,
74
76
  'sharedWith': value.sharedWith,
77
+ 'isArchived': value.isArchived,
75
78
  };
76
79
  }
77
80
  exports.BillingAccountToJSON = BillingAccountToJSON;
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- *
13
+ * Time period associated with the budget amount
14
14
  * @export
15
15
  * @enum {string}
16
16
  */
@@ -15,7 +15,7 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.BudgetPeriodToJSON = exports.BudgetPeriodFromJSONTyped = exports.BudgetPeriodFromJSON = exports.BudgetPeriod = void 0;
17
17
  /**
18
- *
18
+ * Time period associated with the budget amount
19
19
  * @export
20
20
  * @enum {string}
21
21
  */
@@ -9,7 +9,6 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
- import type { Region } from './Region';
13
12
  /**
14
13
  *
15
14
  * @export
@@ -17,25 +16,19 @@ import type { Region } from './Region';
17
16
  */
18
17
  export interface CloudAccount {
19
18
  /**
20
- *
21
- * @type {Region}
22
- * @memberof CloudAccount
23
- */
24
- region?: Region;
25
- /**
26
- *
19
+ * AWS Account ID
27
20
  * @type {string}
28
21
  * @memberof CloudAccount
29
22
  */
30
23
  accountId?: string;
31
24
  /**
32
- *
25
+ * Name used to describe the account
33
26
  * @type {string}
34
27
  * @memberof CloudAccount
35
28
  */
36
29
  accountName?: string;
37
30
  /**
38
- *
31
+ * AWS Region Code
39
32
  * @type {string}
40
33
  * @memberof CloudAccount
41
34
  */
@@ -15,7 +15,6 @@
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CloudAccountToJSON = exports.CloudAccountFromJSONTyped = exports.CloudAccountFromJSON = exports.instanceOfCloudAccount = void 0;
17
17
  var runtime_1 = require("../runtime");
18
- var Region_1 = require("./Region");
19
18
  /**
20
19
  * Check if a given object implements the CloudAccount interface.
21
20
  */
@@ -33,7 +32,6 @@ function CloudAccountFromJSONTyped(json, ignoreDiscriminator) {
33
32
  return json;
34
33
  }
35
34
  return {
36
- 'region': !(0, runtime_1.exists)(json, 'region') ? undefined : (0, Region_1.RegionFromJSON)(json['region']),
37
35
  'accountId': !(0, runtime_1.exists)(json, 'accountId') ? undefined : json['accountId'],
38
36
  'accountName': !(0, runtime_1.exists)(json, 'accountName') ? undefined : json['accountName'],
39
37
  'regionName': !(0, runtime_1.exists)(json, 'regionName') ? undefined : json['regionName'],
@@ -48,7 +46,6 @@ function CloudAccountToJSON(value) {
48
46
  return null;
49
47
  }
50
48
  return {
51
- 'region': (0, Region_1.RegionToJSON)(value.region),
52
49
  'accountId': value.accountId,
53
50
  'accountName': value.accountName,
54
51
  'regionName': value.regionName,
@@ -20,25 +20,25 @@ export interface Contact {
20
20
  * @type {string}
21
21
  * @memberof Contact
22
22
  */
23
- name?: string;
23
+ name: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof Contact
28
28
  */
29
- organization?: string;
29
+ organization: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof Contact
34
34
  */
35
- email?: string;
35
+ email: string;
36
36
  /**
37
37
  *
38
38
  * @type {string}
39
39
  * @memberof Contact
40
40
  */
41
- phone?: string;
41
+ phone: string;
42
42
  }
43
43
  /**
44
44
  * Check if a given object implements the Contact interface.
@@ -14,12 +14,15 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ContactToJSON = exports.ContactFromJSONTyped = exports.ContactFromJSON = exports.instanceOfContact = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the Contact interface.
20
19
  */
21
20
  function instanceOfContact(value) {
22
21
  var isInstance = true;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "organization" in value;
24
+ isInstance = isInstance && "email" in value;
25
+ isInstance = isInstance && "phone" in value;
23
26
  return isInstance;
24
27
  }
25
28
  exports.instanceOfContact = instanceOfContact;
@@ -32,10 +35,10 @@ function ContactFromJSONTyped(json, ignoreDiscriminator) {
32
35
  return json;
33
36
  }
34
37
  return {
35
- 'name': !(0, runtime_1.exists)(json, 'name') ? undefined : json['name'],
36
- 'organization': !(0, runtime_1.exists)(json, 'organization') ? undefined : json['organization'],
37
- 'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
38
- 'phone': !(0, runtime_1.exists)(json, 'phone') ? undefined : json['phone'],
38
+ 'name': json['name'],
39
+ 'organization': json['organization'],
40
+ 'email': json['email'],
41
+ 'phone': json['phone'],
39
42
  };
40
43
  }
41
44
  exports.ContactFromJSONTyped = ContactFromJSONTyped;
@@ -0,0 +1,31 @@
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 CreateDashboardRequest
16
+ */
17
+ export interface CreateDashboardRequest {
18
+ /**
19
+ *
20
+ * @type {object}
21
+ * @memberof CreateDashboardRequest
22
+ */
23
+ dashboardRequest?: object;
24
+ }
25
+ /**
26
+ * Check if a given object implements the CreateDashboardRequest interface.
27
+ */
28
+ export declare function instanceOfCreateDashboardRequest(value: object): boolean;
29
+ export declare function CreateDashboardRequestFromJSON(json: any): CreateDashboardRequest;
30
+ export declare function CreateDashboardRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateDashboardRequest;
31
+ export declare function CreateDashboardRequestToJSON(value?: CreateDashboardRequest | null): any;
@@ -0,0 +1,50 @@
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.CreateDashboardRequestToJSON = exports.CreateDashboardRequestFromJSONTyped = exports.CreateDashboardRequestFromJSON = exports.instanceOfCreateDashboardRequest = void 0;
17
+ var runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the CreateDashboardRequest interface.
20
+ */
21
+ function instanceOfCreateDashboardRequest(value) {
22
+ var isInstance = true;
23
+ return isInstance;
24
+ }
25
+ exports.instanceOfCreateDashboardRequest = instanceOfCreateDashboardRequest;
26
+ function CreateDashboardRequestFromJSON(json) {
27
+ return CreateDashboardRequestFromJSONTyped(json, false);
28
+ }
29
+ exports.CreateDashboardRequestFromJSON = CreateDashboardRequestFromJSON;
30
+ function CreateDashboardRequestFromJSONTyped(json, ignoreDiscriminator) {
31
+ if ((json === undefined) || (json === null)) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'dashboardRequest': !(0, runtime_1.exists)(json, 'dashboardRequest') ? undefined : json['dashboardRequest'],
36
+ };
37
+ }
38
+ exports.CreateDashboardRequestFromJSONTyped = CreateDashboardRequestFromJSONTyped;
39
+ function CreateDashboardRequestToJSON(value) {
40
+ if (value === undefined) {
41
+ return undefined;
42
+ }
43
+ if (value === null) {
44
+ return null;
45
+ }
46
+ return {
47
+ 'dashboardRequest': value.dashboardRequest,
48
+ };
49
+ }
50
+ exports.CreateDashboardRequestToJSON = CreateDashboardRequestToJSON;