@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
@@ -20,37 +20,37 @@ export interface CustomPipelineSettings {
20
20
  * @type {string}
21
21
  * @memberof CustomPipelineSettings
22
22
  */
23
- repository?: string;
23
+ repository: string;
24
24
  /**
25
25
  *
26
26
  * @type {string}
27
27
  * @memberof CustomPipelineSettings
28
28
  */
29
- branch?: string;
29
+ branch: string;
30
30
  /**
31
31
  *
32
32
  * @type {string}
33
33
  * @memberof CustomPipelineSettings
34
34
  */
35
- folder?: string;
35
+ folder: string;
36
36
  /**
37
37
  *
38
38
  * @type {Date}
39
39
  * @memberof CustomPipelineSettings
40
40
  */
41
- lastSync?: Date;
41
+ lastSync: Date;
42
42
  /**
43
43
  *
44
44
  * @type {string}
45
45
  * @memberof CustomPipelineSettings
46
46
  */
47
- syncStatus?: string;
47
+ syncStatus: string;
48
48
  /**
49
49
  *
50
50
  * @type {string}
51
51
  * @memberof CustomPipelineSettings
52
52
  */
53
- commitHash?: string;
53
+ commitHash: string;
54
54
  }
55
55
  /**
56
56
  * Check if a given object implements the CustomPipelineSettings interface.
@@ -14,12 +14,17 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.CustomPipelineSettingsToJSON = exports.CustomPipelineSettingsFromJSONTyped = exports.CustomPipelineSettingsFromJSON = exports.instanceOfCustomPipelineSettings = void 0;
17
- var runtime_1 = require("../runtime");
18
17
  /**
19
18
  * Check if a given object implements the CustomPipelineSettings interface.
20
19
  */
21
20
  function instanceOfCustomPipelineSettings(value) {
22
21
  var isInstance = true;
22
+ isInstance = isInstance && "repository" in value;
23
+ isInstance = isInstance && "branch" in value;
24
+ isInstance = isInstance && "folder" in value;
25
+ isInstance = isInstance && "lastSync" in value;
26
+ isInstance = isInstance && "syncStatus" in value;
27
+ isInstance = isInstance && "commitHash" in value;
23
28
  return isInstance;
24
29
  }
25
30
  exports.instanceOfCustomPipelineSettings = instanceOfCustomPipelineSettings;
@@ -32,12 +37,12 @@ function CustomPipelineSettingsFromJSONTyped(json, ignoreDiscriminator) {
32
37
  return json;
33
38
  }
34
39
  return {
35
- 'repository': !(0, runtime_1.exists)(json, 'repository') ? undefined : json['repository'],
36
- 'branch': !(0, runtime_1.exists)(json, 'branch') ? undefined : json['branch'],
37
- 'folder': !(0, runtime_1.exists)(json, 'folder') ? undefined : json['folder'],
38
- 'lastSync': !(0, runtime_1.exists)(json, 'lastSync') ? undefined : (new Date(json['lastSync'])),
39
- 'syncStatus': !(0, runtime_1.exists)(json, 'syncStatus') ? undefined : json['syncStatus'],
40
- 'commitHash': !(0, runtime_1.exists)(json, 'commitHash') ? undefined : json['commitHash'],
40
+ 'repository': json['repository'],
41
+ 'branch': json['branch'],
42
+ 'folder': json['folder'],
43
+ 'lastSync': (new Date(json['lastSync'])),
44
+ 'syncStatus': json['syncStatus'],
45
+ 'commitHash': json['commitHash'],
41
46
  };
42
47
  }
43
48
  exports.CustomPipelineSettingsFromJSONTyped = CustomPipelineSettingsFromJSONTyped;
@@ -52,7 +57,7 @@ function CustomPipelineSettingsToJSON(value) {
52
57
  'repository': value.repository,
53
58
  'branch': value.branch,
54
59
  'folder': value.folder,
55
- 'lastSync': value.lastSync === undefined ? undefined : (value.lastSync.toISOString()),
60
+ 'lastSync': (value.lastSync.toISOString()),
56
61
  'syncStatus': value.syncStatus,
57
62
  'commitHash': value.commitHash,
58
63
  };
@@ -15,10 +15,8 @@
15
15
  * @enum {string}
16
16
  */
17
17
  export declare enum CustomerType {
18
- Free = "FREE",
19
- Usage = "USAGE",
20
- Marketplace = "MARKETPLACE",
21
- Contract = "CONTRACT"
18
+ Internal = "INTERNAL",
19
+ External = "EXTERNAL"
22
20
  }
23
21
  export declare function CustomerTypeFromJSON(json: any): CustomerType;
24
22
  export declare function CustomerTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerType;
@@ -21,10 +21,8 @@ exports.CustomerTypeToJSON = exports.CustomerTypeFromJSONTyped = exports.Custome
21
21
  */
22
22
  var CustomerType;
23
23
  (function (CustomerType) {
24
- CustomerType["Free"] = "FREE";
25
- CustomerType["Usage"] = "USAGE";
26
- CustomerType["Marketplace"] = "MARKETPLACE";
27
- CustomerType["Contract"] = "CONTRACT";
24
+ CustomerType["Internal"] = "INTERNAL";
25
+ CustomerType["External"] = "EXTERNAL";
28
26
  })(CustomerType = exports.CustomerType || (exports.CustomerType = {}));
29
27
  function CustomerTypeFromJSON(json) {
30
28
  return CustomerTypeFromJSONTyped(json, false);
@@ -0,0 +1,69 @@
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 Dashboard
16
+ */
17
+ export interface Dashboard {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof Dashboard
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof Dashboard
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof Dashboard
34
+ */
35
+ description: string;
36
+ /**
37
+ *
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof Dashboard
40
+ */
41
+ dashboardData: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof Dashboard
48
+ */
49
+ createdBy: string;
50
+ /**
51
+ *
52
+ * @type {Date}
53
+ * @memberof Dashboard
54
+ */
55
+ createdAt: Date;
56
+ /**
57
+ *
58
+ * @type {Date}
59
+ * @memberof Dashboard
60
+ */
61
+ updatedAt: Date;
62
+ }
63
+ /**
64
+ * Check if a given object implements the Dashboard interface.
65
+ */
66
+ export declare function instanceOfDashboard(value: object): boolean;
67
+ export declare function DashboardFromJSON(json: any): Dashboard;
68
+ export declare function DashboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Dashboard;
69
+ export declare function DashboardToJSON(value?: Dashboard | 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.DashboardToJSON = exports.DashboardFromJSONTyped = exports.DashboardFromJSON = exports.instanceOfDashboard = void 0;
17
+ /**
18
+ * Check if a given object implements the Dashboard interface.
19
+ */
20
+ function instanceOfDashboard(value) {
21
+ var isInstance = true;
22
+ isInstance = isInstance && "id" in value;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "dashboardData" in value;
26
+ isInstance = isInstance && "createdBy" in value;
27
+ isInstance = isInstance && "createdAt" in value;
28
+ isInstance = isInstance && "updatedAt" in value;
29
+ return isInstance;
30
+ }
31
+ exports.instanceOfDashboard = instanceOfDashboard;
32
+ function DashboardFromJSON(json) {
33
+ return DashboardFromJSONTyped(json, false);
34
+ }
35
+ exports.DashboardFromJSON = DashboardFromJSON;
36
+ function DashboardFromJSONTyped(json, ignoreDiscriminator) {
37
+ if ((json === undefined) || (json === null)) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'description': json['description'],
44
+ 'dashboardData': json['dashboardData'],
45
+ 'createdBy': json['createdBy'],
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ exports.DashboardFromJSONTyped = DashboardFromJSONTyped;
51
+ function DashboardToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+ 'id': value.id,
60
+ 'name': value.name,
61
+ 'description': value.description,
62
+ 'dashboardData': value.dashboardData,
63
+ 'createdBy': value.createdBy,
64
+ 'createdAt': (value.createdAt.toISOString()),
65
+ 'updatedAt': (value.updatedAt.toISOString()),
66
+ };
67
+ }
68
+ exports.DashboardToJSON = DashboardToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Status } from './Status';
12
13
  import type { Tag } from './Tag';
13
14
  /**
14
15
  *
@@ -33,7 +34,7 @@ export interface Dataset {
33
34
  * @type {string}
34
35
  * @memberof Dataset
35
36
  */
36
- desc: string;
37
+ description: string;
37
38
  /**
38
39
  *
39
40
  * @type {string}
@@ -48,10 +49,10 @@ export interface Dataset {
48
49
  sourceDatasets: Array<string>;
49
50
  /**
50
51
  *
51
- * @type {string}
52
+ * @type {Status}
52
53
  * @memberof Dataset
53
54
  */
54
- status: string;
55
+ status: Status;
55
56
  /**
56
57
  *
57
58
  * @type {Array<Tag>}
@@ -66,16 +67,16 @@ export interface Dataset {
66
67
  createdBy: string;
67
68
  /**
68
69
  *
69
- * @type {string}
70
+ * @type {Date}
70
71
  * @memberof Dataset
71
72
  */
72
- createdAt: string;
73
+ createdAt: Date;
73
74
  /**
74
75
  *
75
- * @type {string}
76
+ * @type {Date}
76
77
  * @memberof Dataset
77
78
  */
78
- updatedAt: string;
79
+ updatedAt: Date;
79
80
  }
80
81
  /**
81
82
  * Check if a given object implements the Dataset interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DatasetToJSON = exports.DatasetFromJSONTyped = exports.DatasetFromJSON = exports.instanceOfDataset = void 0;
17
+ var Status_1 = require("./Status");
17
18
  var Tag_1 = require("./Tag");
18
19
  /**
19
20
  * Check if a given object implements the Dataset interface.
@@ -22,7 +23,7 @@ function instanceOfDataset(value) {
22
23
  var isInstance = true;
23
24
  isInstance = isInstance && "id" in value;
24
25
  isInstance = isInstance && "name" in value;
25
- isInstance = isInstance && "desc" in value;
26
+ isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "processId" in value;
27
28
  isInstance = isInstance && "sourceDatasets" in value;
28
29
  isInstance = isInstance && "status" in value;
@@ -44,14 +45,14 @@ function DatasetFromJSONTyped(json, ignoreDiscriminator) {
44
45
  return {
45
46
  'id': json['id'],
46
47
  'name': json['name'],
47
- 'desc': json['desc'],
48
+ 'description': json['description'],
48
49
  'processId': json['processId'],
49
50
  'sourceDatasets': json['sourceDatasets'],
50
- 'status': json['status'],
51
+ 'status': (0, Status_1.StatusFromJSON)(json['status']),
51
52
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
52
53
  'createdBy': json['createdBy'],
53
- 'createdAt': json['createdAt'],
54
- 'updatedAt': json['updatedAt'],
54
+ 'createdAt': (new Date(json['createdAt'])),
55
+ 'updatedAt': (new Date(json['updatedAt'])),
55
56
  };
56
57
  }
57
58
  exports.DatasetFromJSONTyped = DatasetFromJSONTyped;
@@ -65,14 +66,14 @@ function DatasetToJSON(value) {
65
66
  return {
66
67
  'id': value.id,
67
68
  'name': value.name,
68
- 'desc': value.desc,
69
+ 'description': value.description,
69
70
  'processId': value.processId,
70
71
  'sourceDatasets': value.sourceDatasets,
71
- 'status': value.status,
72
+ 'status': (0, Status_1.StatusToJSON)(value.status),
72
73
  'tags': (value.tags.map(Tag_1.TagToJSON)),
73
74
  'createdBy': value.createdBy,
74
- 'createdAt': value.createdAt,
75
- 'updatedAt': value.updatedAt,
75
+ 'createdAt': (value.createdAt.toISOString()),
76
+ 'updatedAt': (value.updatedAt.toISOString()),
76
77
  };
77
78
  }
78
79
  exports.DatasetToJSON = DatasetToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Status } from './Status';
12
13
  import type { Tag } from './Tag';
13
14
  /**
14
15
  *
@@ -33,7 +34,7 @@ export interface DatasetDetail {
33
34
  * @type {string}
34
35
  * @memberof DatasetDetail
35
36
  */
36
- desc: string;
37
+ description: string;
37
38
  /**
38
39
  *
39
40
  * @type {string}
@@ -48,22 +49,22 @@ export interface DatasetDetail {
48
49
  processId: string;
49
50
  /**
50
51
  *
51
- * @type {string}
52
+ * @type {Array<string>}
52
53
  * @memberof DatasetDetail
53
54
  */
54
- processName: string;
55
+ sourceDatasets: Array<string>;
55
56
  /**
56
57
  *
57
- * @type {Array<string>}
58
+ * @type {Status}
58
59
  * @memberof DatasetDetail
59
60
  */
60
- sourceDatasets: Array<string>;
61
+ status: Status;
61
62
  /**
62
63
  *
63
64
  * @type {string}
64
65
  * @memberof DatasetDetail
65
66
  */
66
- status: string;
67
+ statusMessage: string;
67
68
  /**
68
69
  *
69
70
  * @type {Array<Tag>}
@@ -94,16 +95,16 @@ export interface DatasetDetail {
94
95
  createdBy: string;
95
96
  /**
96
97
  *
97
- * @type {string}
98
+ * @type {Date}
98
99
  * @memberof DatasetDetail
99
100
  */
100
- createdAt: string;
101
+ createdAt: Date;
101
102
  /**
102
103
  *
103
- * @type {string}
104
+ * @type {Date}
104
105
  * @memberof DatasetDetail
105
106
  */
106
- updatedAt: string;
107
+ updatedAt: Date;
107
108
  }
108
109
  /**
109
110
  * Check if a given object implements the DatasetDetail interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.DatasetDetailToJSON = exports.DatasetDetailFromJSONTyped = exports.DatasetDetailFromJSON = exports.instanceOfDatasetDetail = void 0;
17
+ var Status_1 = require("./Status");
17
18
  var Tag_1 = require("./Tag");
18
19
  /**
19
20
  * Check if a given object implements the DatasetDetail interface.
@@ -22,12 +23,12 @@ function instanceOfDatasetDetail(value) {
22
23
  var isInstance = true;
23
24
  isInstance = isInstance && "id" in value;
24
25
  isInstance = isInstance && "name" in value;
25
- isInstance = isInstance && "desc" in value;
26
+ isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "s3" in value;
27
28
  isInstance = isInstance && "processId" in value;
28
- isInstance = isInstance && "processName" in value;
29
29
  isInstance = isInstance && "sourceDatasets" in value;
30
30
  isInstance = isInstance && "status" in value;
31
+ isInstance = isInstance && "statusMessage" in value;
31
32
  isInstance = isInstance && "tags" in value;
32
33
  isInstance = isInstance && "params" in value;
33
34
  isInstance = isInstance && "info" in value;
@@ -48,18 +49,18 @@ function DatasetDetailFromJSONTyped(json, ignoreDiscriminator) {
48
49
  return {
49
50
  'id': json['id'],
50
51
  'name': json['name'],
51
- 'desc': json['desc'],
52
+ 'description': json['description'],
52
53
  's3': json['s3'],
53
54
  'processId': json['processId'],
54
- 'processName': json['processName'],
55
55
  'sourceDatasets': json['sourceDatasets'],
56
- 'status': json['status'],
56
+ 'status': (0, Status_1.StatusFromJSON)(json['status']),
57
+ 'statusMessage': json['statusMessage'],
57
58
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
58
59
  'params': json['params'],
59
60
  'info': json['info'],
60
61
  'createdBy': json['createdBy'],
61
- 'createdAt': json['createdAt'],
62
- 'updatedAt': json['updatedAt'],
62
+ 'createdAt': (new Date(json['createdAt'])),
63
+ 'updatedAt': (new Date(json['updatedAt'])),
63
64
  };
64
65
  }
65
66
  exports.DatasetDetailFromJSONTyped = DatasetDetailFromJSONTyped;
@@ -73,18 +74,18 @@ function DatasetDetailToJSON(value) {
73
74
  return {
74
75
  'id': value.id,
75
76
  'name': value.name,
76
- 'desc': value.desc,
77
+ 'description': value.description,
77
78
  's3': value.s3,
78
79
  'processId': value.processId,
79
- 'processName': value.processName,
80
80
  'sourceDatasets': value.sourceDatasets,
81
- 'status': value.status,
81
+ 'status': (0, Status_1.StatusToJSON)(value.status),
82
+ 'statusMessage': value.statusMessage,
82
83
  'tags': (value.tags.map(Tag_1.TagToJSON)),
83
84
  'params': value.params,
84
85
  'info': value.info,
85
86
  'createdBy': value.createdBy,
86
- 'createdAt': value.createdAt,
87
- 'updatedAt': value.updatedAt,
87
+ 'createdAt': (value.createdAt.toISOString()),
88
+ 'updatedAt': (value.updatedAt.toISOString()),
88
89
  };
89
90
  }
90
91
  exports.DatasetDetailToJSON = DatasetDetailToJSON;
@@ -0,0 +1,38 @@
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 type { Dataset } from './Dataset';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseDatasetListDto
17
+ */
18
+ export interface PaginatedResponseDatasetListDto {
19
+ /**
20
+ *
21
+ * @type {Array<Dataset>}
22
+ * @memberof PaginatedResponseDatasetListDto
23
+ */
24
+ data: Array<Dataset>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PaginatedResponseDatasetListDto
29
+ */
30
+ nextToken: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedResponseDatasetListDto interface.
34
+ */
35
+ export declare function instanceOfPaginatedResponseDatasetListDto(value: object): boolean;
36
+ export declare function PaginatedResponseDatasetListDtoFromJSON(json: any): PaginatedResponseDatasetListDto;
37
+ export declare function PaginatedResponseDatasetListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDatasetListDto;
38
+ export declare function PaginatedResponseDatasetListDtoToJSON(value?: PaginatedResponseDatasetListDto | 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.PaginatedResponseDatasetListDtoToJSON = exports.PaginatedResponseDatasetListDtoFromJSONTyped = exports.PaginatedResponseDatasetListDtoFromJSON = exports.instanceOfPaginatedResponseDatasetListDto = void 0;
17
+ var Dataset_1 = require("./Dataset");
18
+ /**
19
+ * Check if a given object implements the PaginatedResponseDatasetListDto interface.
20
+ */
21
+ function instanceOfPaginatedResponseDatasetListDto(value) {
22
+ var isInstance = true;
23
+ isInstance = isInstance && "data" in value;
24
+ isInstance = isInstance && "nextToken" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPaginatedResponseDatasetListDto = instanceOfPaginatedResponseDatasetListDto;
28
+ function PaginatedResponseDatasetListDtoFromJSON(json) {
29
+ return PaginatedResponseDatasetListDtoFromJSONTyped(json, false);
30
+ }
31
+ exports.PaginatedResponseDatasetListDtoFromJSON = PaginatedResponseDatasetListDtoFromJSON;
32
+ function PaginatedResponseDatasetListDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'data': (json['data'].map(Dataset_1.DatasetFromJSON)),
38
+ 'nextToken': json['nextToken'],
39
+ };
40
+ }
41
+ exports.PaginatedResponseDatasetListDtoFromJSONTyped = PaginatedResponseDatasetListDtoFromJSONTyped;
42
+ function PaginatedResponseDatasetListDtoToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'data': (value.data.map(Dataset_1.DatasetToJSON)),
51
+ 'nextToken': value.nextToken,
52
+ };
53
+ }
54
+ exports.PaginatedResponseDatasetListDtoToJSON = PaginatedResponseDatasetListDtoToJSON;
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { Status } from './Status';
12
13
  import type { Tag } from './Tag';
13
14
  /**
14
15
  *
@@ -36,16 +37,22 @@ export interface Project {
36
37
  description: string;
37
38
  /**
38
39
  *
39
- * @type {string}
40
+ * @type {Status}
40
41
  * @memberof Project
41
42
  */
42
- status: string;
43
+ status: Status;
43
44
  /**
44
45
  *
45
46
  * @type {Array<Tag>}
46
47
  * @memberof Project
47
48
  */
48
49
  tags: Array<Tag>;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Project
54
+ */
55
+ billingAccountId: string;
49
56
  }
50
57
  /**
51
58
  * Check if a given object implements the Project interface.
@@ -14,6 +14,7 @@
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
16
  exports.ProjectToJSON = exports.ProjectFromJSONTyped = exports.ProjectFromJSON = exports.instanceOfProject = void 0;
17
+ var Status_1 = require("./Status");
17
18
  var Tag_1 = require("./Tag");
18
19
  /**
19
20
  * Check if a given object implements the Project interface.
@@ -25,6 +26,7 @@ function instanceOfProject(value) {
25
26
  isInstance = isInstance && "description" in value;
26
27
  isInstance = isInstance && "status" in value;
27
28
  isInstance = isInstance && "tags" in value;
29
+ isInstance = isInstance && "billingAccountId" in value;
28
30
  return isInstance;
29
31
  }
30
32
  exports.instanceOfProject = instanceOfProject;
@@ -40,8 +42,9 @@ function ProjectFromJSONTyped(json, ignoreDiscriminator) {
40
42
  'id': json['id'],
41
43
  'name': json['name'],
42
44
  'description': json['description'],
43
- 'status': json['status'],
45
+ 'status': (0, Status_1.StatusFromJSON)(json['status']),
44
46
  'tags': (json['tags'].map(Tag_1.TagFromJSON)),
47
+ 'billingAccountId': json['billingAccountId'],
45
48
  };
46
49
  }
47
50
  exports.ProjectFromJSONTyped = ProjectFromJSONTyped;
@@ -56,8 +59,9 @@ function ProjectToJSON(value) {
56
59
  'id': value.id,
57
60
  'name': value.name,
58
61
  'description': value.description,
59
- 'status': value.status,
62
+ 'status': (0, Status_1.StatusToJSON)(value.status),
60
63
  'tags': (value.tags.map(Tag_1.TagToJSON)),
64
+ 'billingAccountId': value.billingAccountId,
61
65
  };
62
66
  }
63
67
  exports.ProjectToJSON = ProjectToJSON;