@cirrobio/api-client 0.9.4 → 0.10.0

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 (64) hide show
  1. package/README.md +1 -1
  2. package/dist/apis/FeedApi.d.ts +148 -0
  3. package/dist/apis/FeedApi.js +414 -0
  4. package/dist/apis/MetadataApi.d.ts +14 -0
  5. package/dist/apis/MetadataApi.js +40 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/FeedApi.d.ts +148 -0
  9. package/dist/esm/apis/FeedApi.js +410 -0
  10. package/dist/esm/apis/MetadataApi.d.ts +14 -0
  11. package/dist/esm/apis/MetadataApi.js +40 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +1 -0
  14. package/dist/esm/models/Discussion.d.ts +80 -0
  15. package/dist/esm/models/Discussion.js +68 -0
  16. package/dist/esm/models/DiscussionInput.d.ts +50 -0
  17. package/dist/esm/models/DiscussionInput.js +53 -0
  18. package/dist/esm/models/Entity.d.ts +38 -0
  19. package/dist/esm/models/Entity.js +47 -0
  20. package/dist/esm/models/EntityType.d.ts +31 -0
  21. package/dist/esm/models/EntityType.js +40 -0
  22. package/dist/esm/models/Message.d.ts +81 -0
  23. package/dist/esm/models/Message.js +69 -0
  24. package/dist/esm/models/MessageInput.d.ts +37 -0
  25. package/dist/esm/models/MessageInput.js +46 -0
  26. package/dist/esm/models/MessageType.d.ts +23 -0
  27. package/dist/esm/models/MessageType.js +32 -0
  28. package/dist/esm/models/PaginatedResponseDiscussion.d.ts +38 -0
  29. package/dist/esm/models/PaginatedResponseDiscussion.js +47 -0
  30. package/dist/esm/models/PaginatedResponseMessage.d.ts +38 -0
  31. package/dist/esm/models/PaginatedResponseMessage.js +47 -0
  32. package/dist/esm/models/ProjectDetail.d.ts +1 -1
  33. package/dist/esm/models/ProjectDetail.js +2 -2
  34. package/dist/esm/models/SortOrder.d.ts +23 -0
  35. package/dist/esm/models/SortOrder.js +32 -0
  36. package/dist/esm/models/index.d.ts +10 -0
  37. package/dist/esm/models/index.js +10 -0
  38. package/dist/esm/runtime.js +1 -1
  39. package/dist/models/Discussion.d.ts +80 -0
  40. package/dist/models/Discussion.js +75 -0
  41. package/dist/models/DiscussionInput.d.ts +50 -0
  42. package/dist/models/DiscussionInput.js +60 -0
  43. package/dist/models/Entity.d.ts +38 -0
  44. package/dist/models/Entity.js +54 -0
  45. package/dist/models/EntityType.d.ts +31 -0
  46. package/dist/models/EntityType.js +46 -0
  47. package/dist/models/Message.d.ts +81 -0
  48. package/dist/models/Message.js +76 -0
  49. package/dist/models/MessageInput.d.ts +37 -0
  50. package/dist/models/MessageInput.js +53 -0
  51. package/dist/models/MessageType.d.ts +23 -0
  52. package/dist/models/MessageType.js +38 -0
  53. package/dist/models/PaginatedResponseDiscussion.d.ts +38 -0
  54. package/dist/models/PaginatedResponseDiscussion.js +54 -0
  55. package/dist/models/PaginatedResponseMessage.d.ts +38 -0
  56. package/dist/models/PaginatedResponseMessage.js +54 -0
  57. package/dist/models/ProjectDetail.d.ts +1 -1
  58. package/dist/models/ProjectDetail.js +2 -2
  59. package/dist/models/SortOrder.d.ts +23 -0
  60. package/dist/models/SortOrder.js +38 -0
  61. package/dist/models/index.d.ts +10 -0
  62. package/dist/models/index.js +10 -0
  63. package/dist/runtime.js +1 -1
  64. package/package.json +1 -1
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var MessageType;
20
+ (function (MessageType) {
21
+ MessageType["System"] = "SYSTEM";
22
+ MessageType["User"] = "USER";
23
+ })(MessageType || (MessageType = {}));
24
+ export function MessageTypeFromJSON(json) {
25
+ return MessageTypeFromJSONTyped(json, false);
26
+ }
27
+ export function MessageTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function MessageTypeToJSON(value) {
31
+ return value;
32
+ }
@@ -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 { Discussion } from './Discussion';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseDiscussion
17
+ */
18
+ export interface PaginatedResponseDiscussion {
19
+ /**
20
+ *
21
+ * @type {Array<Discussion>}
22
+ * @memberof PaginatedResponseDiscussion
23
+ */
24
+ data: Array<Discussion>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PaginatedResponseDiscussion
29
+ */
30
+ nextToken: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedResponseDiscussion interface.
34
+ */
35
+ export declare function instanceOfPaginatedResponseDiscussion(value: object): boolean;
36
+ export declare function PaginatedResponseDiscussionFromJSON(json: any): PaginatedResponseDiscussion;
37
+ export declare function PaginatedResponseDiscussionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseDiscussion;
38
+ export declare function PaginatedResponseDiscussionToJSON(value?: PaginatedResponseDiscussion | null): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { DiscussionFromJSON, DiscussionToJSON, } from './Discussion';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseDiscussion interface.
17
+ */
18
+ export function instanceOfPaginatedResponseDiscussion(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "data" in value;
21
+ isInstance = isInstance && "nextToken" in value;
22
+ return isInstance;
23
+ }
24
+ export function PaginatedResponseDiscussionFromJSON(json) {
25
+ return PaginatedResponseDiscussionFromJSONTyped(json, false);
26
+ }
27
+ export function PaginatedResponseDiscussionFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'data': (json['data'].map(DiscussionFromJSON)),
33
+ 'nextToken': json['nextToken'],
34
+ };
35
+ }
36
+ export function PaginatedResponseDiscussionToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'data': (value.data.map(DiscussionToJSON)),
45
+ 'nextToken': value.nextToken,
46
+ };
47
+ }
@@ -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 { Message } from './Message';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedResponseMessage
17
+ */
18
+ export interface PaginatedResponseMessage {
19
+ /**
20
+ *
21
+ * @type {Array<Message>}
22
+ * @memberof PaginatedResponseMessage
23
+ */
24
+ data: Array<Message>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof PaginatedResponseMessage
29
+ */
30
+ nextToken: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedResponseMessage interface.
34
+ */
35
+ export declare function instanceOfPaginatedResponseMessage(value: object): boolean;
36
+ export declare function PaginatedResponseMessageFromJSON(json: any): PaginatedResponseMessage;
37
+ export declare function PaginatedResponseMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedResponseMessage;
38
+ export declare function PaginatedResponseMessageToJSON(value?: PaginatedResponseMessage | null): any;
@@ -0,0 +1,47 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ import { MessageFromJSON, MessageToJSON, } from './Message';
15
+ /**
16
+ * Check if a given object implements the PaginatedResponseMessage interface.
17
+ */
18
+ export function instanceOfPaginatedResponseMessage(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "data" in value;
21
+ isInstance = isInstance && "nextToken" in value;
22
+ return isInstance;
23
+ }
24
+ export function PaginatedResponseMessageFromJSON(json) {
25
+ return PaginatedResponseMessageFromJSONTyped(json, false);
26
+ }
27
+ export function PaginatedResponseMessageFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'data': (json['data'].map(MessageFromJSON)),
33
+ 'nextToken': json['nextToken'],
34
+ };
35
+ }
36
+ export function PaginatedResponseMessageToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'data': (value.data.map(MessageToJSON)),
45
+ 'nextToken': value.nextToken,
46
+ };
47
+ }
@@ -73,7 +73,7 @@ export interface ProjectDetail {
73
73
  * @type {CloudAccount}
74
74
  * @memberof ProjectDetail
75
75
  */
76
- account?: CloudAccount | null;
76
+ account: CloudAccount;
77
77
  /**
78
78
  *
79
79
  * @type {string}
@@ -11,7 +11,6 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { exists } from '../runtime';
15
14
  import { CloudAccountFromJSON, CloudAccountToJSON, } from './CloudAccount';
16
15
  import { ContactFromJSON, ContactToJSON, } from './Contact';
17
16
  import { ProjectSettingsFromJSON, ProjectSettingsToJSON, } from './ProjectSettings';
@@ -30,6 +29,7 @@ export function instanceOfProjectDetail(value) {
30
29
  isInstance = isInstance && "organization" in value;
31
30
  isInstance = isInstance && "status" in value;
32
31
  isInstance = isInstance && "settings" in value;
32
+ isInstance = isInstance && "account" in value;
33
33
  isInstance = isInstance && "statusMessage" in value;
34
34
  isInstance = isInstance && "tags" in value;
35
35
  isInstance = isInstance && "classificationIds" in value;
@@ -54,7 +54,7 @@ export function ProjectDetailFromJSONTyped(json, ignoreDiscriminator) {
54
54
  'organization': json['organization'],
55
55
  'status': StatusFromJSON(json['status']),
56
56
  'settings': ProjectSettingsFromJSON(json['settings']),
57
- 'account': !exists(json, 'account') ? undefined : CloudAccountFromJSON(json['account']),
57
+ 'account': CloudAccountFromJSON(json['account']),
58
58
  'statusMessage': json['statusMessage'],
59
59
  'tags': (json['tags'].map(TagFromJSON)),
60
60
  'classificationIds': json['classificationIds'],
@@ -0,0 +1,23 @@
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
+ * @enum {string}
16
+ */
17
+ export declare enum SortOrder {
18
+ Ascending = "ASCENDING",
19
+ Descending = "DESCENDING"
20
+ }
21
+ export declare function SortOrderFromJSON(json: any): SortOrder;
22
+ export declare function SortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SortOrder;
23
+ export declare function SortOrderToJSON(value?: SortOrder | null): any;
@@ -0,0 +1,32 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Cirro Data
5
+ * Cirro Data Platform service API
6
+ *
7
+ * The version of the OpenAPI document: latest
8
+ * Contact: support@cirro.bio
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @enum {string}
18
+ */
19
+ export var SortOrder;
20
+ (function (SortOrder) {
21
+ SortOrder["Ascending"] = "ASCENDING";
22
+ SortOrder["Descending"] = "DESCENDING";
23
+ })(SortOrder || (SortOrder = {}));
24
+ export function SortOrderFromJSON(json) {
25
+ return SortOrderFromJSONTyped(json, false);
26
+ }
27
+ export function SortOrderFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function SortOrderToJSON(value) {
31
+ return value;
32
+ }
@@ -38,6 +38,10 @@ export * from './DatasetCondition';
38
38
  export * from './DatasetConditionField';
39
39
  export * from './DatasetDetail';
40
40
  export * from './DatasetViz';
41
+ export * from './Discussion';
42
+ export * from './DiscussionInput';
43
+ export * from './Entity';
44
+ export * from './EntityType';
41
45
  export * from './EnvironmentType';
42
46
  export * from './ErrorMessage';
43
47
  export * from './Executor';
@@ -68,6 +72,9 @@ export * from './InviteUserRequest';
68
72
  export * from './InviteUserResponse';
69
73
  export * from './LogEntry';
70
74
  export * from './LoginProvider';
75
+ export * from './Message';
76
+ export * from './MessageInput';
77
+ export * from './MessageType';
71
78
  export * from './MetricRecord';
72
79
  export * from './MoveDatasetInput';
73
80
  export * from './MoveDatasetResponse';
@@ -76,6 +83,8 @@ export * from './NotebookInstance';
76
83
  export * from './NotebookInstanceStatusResponse';
77
84
  export * from './OpenNotebookInstanceResponse';
78
85
  export * from './PaginatedResponseDatasetListDto';
86
+ export * from './PaginatedResponseDiscussion';
87
+ export * from './PaginatedResponseMessage';
79
88
  export * from './PaginatedResponseSampleDto';
80
89
  export * from './PaginatedResponseUserDto';
81
90
  export * from './PipelineCode';
@@ -113,6 +122,7 @@ export * from './Share';
113
122
  export * from './ShareDetail';
114
123
  export * from './ShareInput';
115
124
  export * from './ShareType';
125
+ export * from './SortOrder';
116
126
  export * from './Status';
117
127
  export * from './StopExecutionResponse';
118
128
  export * from './SyncStatus';
@@ -40,6 +40,10 @@ export * from './DatasetCondition';
40
40
  export * from './DatasetConditionField';
41
41
  export * from './DatasetDetail';
42
42
  export * from './DatasetViz';
43
+ export * from './Discussion';
44
+ export * from './DiscussionInput';
45
+ export * from './Entity';
46
+ export * from './EntityType';
43
47
  export * from './EnvironmentType';
44
48
  export * from './ErrorMessage';
45
49
  export * from './Executor';
@@ -70,6 +74,9 @@ export * from './InviteUserRequest';
70
74
  export * from './InviteUserResponse';
71
75
  export * from './LogEntry';
72
76
  export * from './LoginProvider';
77
+ export * from './Message';
78
+ export * from './MessageInput';
79
+ export * from './MessageType';
73
80
  export * from './MetricRecord';
74
81
  export * from './MoveDatasetInput';
75
82
  export * from './MoveDatasetResponse';
@@ -78,6 +85,8 @@ export * from './NotebookInstance';
78
85
  export * from './NotebookInstanceStatusResponse';
79
86
  export * from './OpenNotebookInstanceResponse';
80
87
  export * from './PaginatedResponseDatasetListDto';
88
+ export * from './PaginatedResponseDiscussion';
89
+ export * from './PaginatedResponseMessage';
81
90
  export * from './PaginatedResponseSampleDto';
82
91
  export * from './PaginatedResponseUserDto';
83
92
  export * from './PipelineCode';
@@ -115,6 +124,7 @@ export * from './Share';
115
124
  export * from './ShareDetail';
116
125
  export * from './ShareInput';
117
126
  export * from './ShareType';
127
+ export * from './SortOrder';
118
128
  export * from './Status';
119
129
  export * from './StopExecutionResponse';
120
130
  export * from './SyncStatus';
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
20
20
  step((generator = generator.apply(thisArg, _arguments || [])).next());
21
21
  });
22
22
  };
23
- export const BASE_PATH = "https://dev.cirro.bio/api".replace(/\/+$/, "");
23
+ export const BASE_PATH = "http://localhost:8080/api".replace(/\/+$/, "");
24
24
  export class Configuration {
25
25
  constructor(configuration = {}) {
26
26
  this.configuration = configuration;
@@ -0,0 +1,80 @@
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 { Entity } from './Entity';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Discussion
17
+ */
18
+ export interface Discussion {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof Discussion
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Discussion
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof Discussion
35
+ */
36
+ description: string;
37
+ /**
38
+ *
39
+ * @type {Entity}
40
+ * @memberof Discussion
41
+ */
42
+ entity: Entity;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof Discussion
47
+ */
48
+ projectId: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof Discussion
53
+ */
54
+ createdBy: string;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof Discussion
59
+ */
60
+ lastMessageTime: Date;
61
+ /**
62
+ *
63
+ * @type {Date}
64
+ * @memberof Discussion
65
+ */
66
+ createdAt: Date;
67
+ /**
68
+ *
69
+ * @type {Date}
70
+ * @memberof Discussion
71
+ */
72
+ updatedAt: Date;
73
+ }
74
+ /**
75
+ * Check if a given object implements the Discussion interface.
76
+ */
77
+ export declare function instanceOfDiscussion(value: object): boolean;
78
+ export declare function DiscussionFromJSON(json: any): Discussion;
79
+ export declare function DiscussionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Discussion;
80
+ export declare function DiscussionToJSON(value?: Discussion | null): any;
@@ -0,0 +1,75 @@
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.DiscussionToJSON = exports.DiscussionFromJSONTyped = exports.DiscussionFromJSON = exports.instanceOfDiscussion = void 0;
17
+ const Entity_1 = require("./Entity");
18
+ /**
19
+ * Check if a given object implements the Discussion interface.
20
+ */
21
+ function instanceOfDiscussion(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "name" in value;
25
+ isInstance = isInstance && "description" in value;
26
+ isInstance = isInstance && "entity" in value;
27
+ isInstance = isInstance && "projectId" in value;
28
+ isInstance = isInstance && "createdBy" in value;
29
+ isInstance = isInstance && "lastMessageTime" in value;
30
+ isInstance = isInstance && "createdAt" in value;
31
+ isInstance = isInstance && "updatedAt" in value;
32
+ return isInstance;
33
+ }
34
+ exports.instanceOfDiscussion = instanceOfDiscussion;
35
+ function DiscussionFromJSON(json) {
36
+ return DiscussionFromJSONTyped(json, false);
37
+ }
38
+ exports.DiscussionFromJSON = DiscussionFromJSON;
39
+ function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
40
+ if ((json === undefined) || (json === null)) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'name': json['name'],
46
+ 'description': json['description'],
47
+ 'entity': (0, Entity_1.EntityFromJSON)(json['entity']),
48
+ 'projectId': json['projectId'],
49
+ 'createdBy': json['createdBy'],
50
+ 'lastMessageTime': (new Date(json['lastMessageTime'])),
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ };
54
+ }
55
+ exports.DiscussionFromJSONTyped = DiscussionFromJSONTyped;
56
+ function DiscussionToJSON(value) {
57
+ if (value === undefined) {
58
+ return undefined;
59
+ }
60
+ if (value === null) {
61
+ return null;
62
+ }
63
+ return {
64
+ 'id': value.id,
65
+ 'name': value.name,
66
+ 'description': value.description,
67
+ 'entity': (0, Entity_1.EntityToJSON)(value.entity),
68
+ 'projectId': value.projectId,
69
+ 'createdBy': value.createdBy,
70
+ 'lastMessageTime': (value.lastMessageTime.toISOString()),
71
+ 'createdAt': (value.createdAt.toISOString()),
72
+ 'updatedAt': (value.updatedAt.toISOString()),
73
+ };
74
+ }
75
+ exports.DiscussionToJSON = DiscussionToJSON;
@@ -0,0 +1,50 @@
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 { Entity } from './Entity';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DiscussionInput
17
+ */
18
+ export interface DiscussionInput {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DiscussionInput
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof DiscussionInput
29
+ */
30
+ description: string;
31
+ /**
32
+ *
33
+ * @type {Entity}
34
+ * @memberof DiscussionInput
35
+ */
36
+ entity: Entity;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof DiscussionInput
41
+ */
42
+ projectId: string;
43
+ }
44
+ /**
45
+ * Check if a given object implements the DiscussionInput interface.
46
+ */
47
+ export declare function instanceOfDiscussionInput(value: object): boolean;
48
+ export declare function DiscussionInputFromJSON(json: any): DiscussionInput;
49
+ export declare function DiscussionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscussionInput;
50
+ export declare function DiscussionInputToJSON(value?: DiscussionInput | null): any;
@@ -0,0 +1,60 @@
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.DiscussionInputToJSON = exports.DiscussionInputFromJSONTyped = exports.DiscussionInputFromJSON = exports.instanceOfDiscussionInput = void 0;
17
+ const Entity_1 = require("./Entity");
18
+ /**
19
+ * Check if a given object implements the DiscussionInput interface.
20
+ */
21
+ function instanceOfDiscussionInput(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "name" in value;
24
+ isInstance = isInstance && "description" in value;
25
+ isInstance = isInstance && "entity" in value;
26
+ isInstance = isInstance && "projectId" in value;
27
+ return isInstance;
28
+ }
29
+ exports.instanceOfDiscussionInput = instanceOfDiscussionInput;
30
+ function DiscussionInputFromJSON(json) {
31
+ return DiscussionInputFromJSONTyped(json, false);
32
+ }
33
+ exports.DiscussionInputFromJSON = DiscussionInputFromJSON;
34
+ function DiscussionInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'description': json['description'],
41
+ 'entity': (0, Entity_1.EntityFromJSON)(json['entity']),
42
+ 'projectId': json['projectId'],
43
+ };
44
+ }
45
+ exports.DiscussionInputFromJSONTyped = DiscussionInputFromJSONTyped;
46
+ function DiscussionInputToJSON(value) {
47
+ if (value === undefined) {
48
+ return undefined;
49
+ }
50
+ if (value === null) {
51
+ return null;
52
+ }
53
+ return {
54
+ 'name': value.name,
55
+ 'description': value.description,
56
+ 'entity': (0, Entity_1.EntityToJSON)(value.entity),
57
+ 'projectId': value.projectId,
58
+ };
59
+ }
60
+ exports.DiscussionInputToJSON = DiscussionInputToJSON;