@cirrobio/api-client 0.9.4 → 0.10.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 (68) 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 +87 -0
  15. package/dist/esm/models/Discussion.js +72 -0
  16. package/dist/esm/models/DiscussionInput.d.ts +57 -0
  17. package/dist/esm/models/DiscussionInput.js +57 -0
  18. package/dist/esm/models/DiscussionType.d.ts +23 -0
  19. package/dist/esm/models/DiscussionType.js +32 -0
  20. package/dist/esm/models/Entity.d.ts +38 -0
  21. package/dist/esm/models/Entity.js +47 -0
  22. package/dist/esm/models/EntityType.d.ts +32 -0
  23. package/dist/esm/models/EntityType.js +41 -0
  24. package/dist/esm/models/Message.d.ts +81 -0
  25. package/dist/esm/models/Message.js +69 -0
  26. package/dist/esm/models/MessageInput.d.ts +37 -0
  27. package/dist/esm/models/MessageInput.js +46 -0
  28. package/dist/esm/models/MessageType.d.ts +23 -0
  29. package/dist/esm/models/MessageType.js +32 -0
  30. package/dist/esm/models/PaginatedResponseDiscussion.d.ts +38 -0
  31. package/dist/esm/models/PaginatedResponseDiscussion.js +47 -0
  32. package/dist/esm/models/PaginatedResponseMessage.d.ts +38 -0
  33. package/dist/esm/models/PaginatedResponseMessage.js +47 -0
  34. package/dist/esm/models/ProjectDetail.d.ts +1 -1
  35. package/dist/esm/models/ProjectDetail.js +2 -2
  36. package/dist/esm/models/SortOrder.d.ts +23 -0
  37. package/dist/esm/models/SortOrder.js +32 -0
  38. package/dist/esm/models/index.d.ts +11 -0
  39. package/dist/esm/models/index.js +11 -0
  40. package/dist/esm/runtime.js +1 -1
  41. package/dist/models/Discussion.d.ts +87 -0
  42. package/dist/models/Discussion.js +79 -0
  43. package/dist/models/DiscussionInput.d.ts +57 -0
  44. package/dist/models/DiscussionInput.js +64 -0
  45. package/dist/models/DiscussionType.d.ts +23 -0
  46. package/dist/models/DiscussionType.js +38 -0
  47. package/dist/models/Entity.d.ts +38 -0
  48. package/dist/models/Entity.js +54 -0
  49. package/dist/models/EntityType.d.ts +32 -0
  50. package/dist/models/EntityType.js +47 -0
  51. package/dist/models/Message.d.ts +81 -0
  52. package/dist/models/Message.js +76 -0
  53. package/dist/models/MessageInput.d.ts +37 -0
  54. package/dist/models/MessageInput.js +53 -0
  55. package/dist/models/MessageType.d.ts +23 -0
  56. package/dist/models/MessageType.js +38 -0
  57. package/dist/models/PaginatedResponseDiscussion.d.ts +38 -0
  58. package/dist/models/PaginatedResponseDiscussion.js +54 -0
  59. package/dist/models/PaginatedResponseMessage.d.ts +38 -0
  60. package/dist/models/PaginatedResponseMessage.js +54 -0
  61. package/dist/models/ProjectDetail.d.ts +1 -1
  62. package/dist/models/ProjectDetail.js +2 -2
  63. package/dist/models/SortOrder.d.ts +23 -0
  64. package/dist/models/SortOrder.js +38 -0
  65. package/dist/models/index.d.ts +11 -0
  66. package/dist/models/index.js +11 -0
  67. package/dist/runtime.js +1 -1
  68. package/package.json +1 -1
@@ -0,0 +1,46 @@
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 { exists } from '../runtime';
15
+ /**
16
+ * Check if a given object implements the MessageInput interface.
17
+ */
18
+ export function instanceOfMessageInput(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "message" in value;
21
+ return isInstance;
22
+ }
23
+ export function MessageInputFromJSON(json) {
24
+ return MessageInputFromJSONTyped(json, false);
25
+ }
26
+ export function MessageInputFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'parentMessageId': !exists(json, 'parentMessageId') ? undefined : json['parentMessageId'],
32
+ 'message': json['message'],
33
+ };
34
+ }
35
+ export function MessageInputToJSON(value) {
36
+ if (value === undefined) {
37
+ return undefined;
38
+ }
39
+ if (value === null) {
40
+ return null;
41
+ }
42
+ return {
43
+ 'parentMessageId': value.parentMessageId,
44
+ 'message': value.message,
45
+ };
46
+ }
@@ -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 MessageType {
18
+ System = "SYSTEM",
19
+ User = "USER"
20
+ }
21
+ export declare function MessageTypeFromJSON(json: any): MessageType;
22
+ export declare function MessageTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageType;
23
+ export declare function MessageTypeToJSON(value?: MessageType | 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 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,11 @@ 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 './DiscussionType';
44
+ export * from './Entity';
45
+ export * from './EntityType';
41
46
  export * from './EnvironmentType';
42
47
  export * from './ErrorMessage';
43
48
  export * from './Executor';
@@ -68,6 +73,9 @@ export * from './InviteUserRequest';
68
73
  export * from './InviteUserResponse';
69
74
  export * from './LogEntry';
70
75
  export * from './LoginProvider';
76
+ export * from './Message';
77
+ export * from './MessageInput';
78
+ export * from './MessageType';
71
79
  export * from './MetricRecord';
72
80
  export * from './MoveDatasetInput';
73
81
  export * from './MoveDatasetResponse';
@@ -76,6 +84,8 @@ export * from './NotebookInstance';
76
84
  export * from './NotebookInstanceStatusResponse';
77
85
  export * from './OpenNotebookInstanceResponse';
78
86
  export * from './PaginatedResponseDatasetListDto';
87
+ export * from './PaginatedResponseDiscussion';
88
+ export * from './PaginatedResponseMessage';
79
89
  export * from './PaginatedResponseSampleDto';
80
90
  export * from './PaginatedResponseUserDto';
81
91
  export * from './PipelineCode';
@@ -113,6 +123,7 @@ export * from './Share';
113
123
  export * from './ShareDetail';
114
124
  export * from './ShareInput';
115
125
  export * from './ShareType';
126
+ export * from './SortOrder';
116
127
  export * from './Status';
117
128
  export * from './StopExecutionResponse';
118
129
  export * from './SyncStatus';
@@ -40,6 +40,11 @@ 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 './DiscussionType';
46
+ export * from './Entity';
47
+ export * from './EntityType';
43
48
  export * from './EnvironmentType';
44
49
  export * from './ErrorMessage';
45
50
  export * from './Executor';
@@ -70,6 +75,9 @@ export * from './InviteUserRequest';
70
75
  export * from './InviteUserResponse';
71
76
  export * from './LogEntry';
72
77
  export * from './LoginProvider';
78
+ export * from './Message';
79
+ export * from './MessageInput';
80
+ export * from './MessageType';
73
81
  export * from './MetricRecord';
74
82
  export * from './MoveDatasetInput';
75
83
  export * from './MoveDatasetResponse';
@@ -78,6 +86,8 @@ export * from './NotebookInstance';
78
86
  export * from './NotebookInstanceStatusResponse';
79
87
  export * from './OpenNotebookInstanceResponse';
80
88
  export * from './PaginatedResponseDatasetListDto';
89
+ export * from './PaginatedResponseDiscussion';
90
+ export * from './PaginatedResponseMessage';
81
91
  export * from './PaginatedResponseSampleDto';
82
92
  export * from './PaginatedResponseUserDto';
83
93
  export * from './PipelineCode';
@@ -115,6 +125,7 @@ export * from './Share';
115
125
  export * from './ShareDetail';
116
126
  export * from './ShareInput';
117
127
  export * from './ShareType';
128
+ export * from './SortOrder';
118
129
  export * from './Status';
119
130
  export * from './StopExecutionResponse';
120
131
  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,87 @@
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 { DiscussionType } from './DiscussionType';
13
+ import type { Entity } from './Entity';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Discussion
18
+ */
19
+ export interface Discussion {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof Discussion
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof Discussion
30
+ */
31
+ name: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Discussion
36
+ */
37
+ description: string;
38
+ /**
39
+ *
40
+ * @type {Entity}
41
+ * @memberof Discussion
42
+ */
43
+ entity: Entity;
44
+ /**
45
+ *
46
+ * @type {DiscussionType}
47
+ * @memberof Discussion
48
+ */
49
+ type: DiscussionType;
50
+ /**
51
+ *
52
+ * @type {string}
53
+ * @memberof Discussion
54
+ */
55
+ projectId: string;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof Discussion
60
+ */
61
+ createdBy: string;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof Discussion
66
+ */
67
+ lastMessageTime: Date;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof Discussion
72
+ */
73
+ createdAt: Date;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof Discussion
78
+ */
79
+ updatedAt: Date;
80
+ }
81
+ /**
82
+ * Check if a given object implements the Discussion interface.
83
+ */
84
+ export declare function instanceOfDiscussion(value: object): boolean;
85
+ export declare function DiscussionFromJSON(json: any): Discussion;
86
+ export declare function DiscussionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Discussion;
87
+ export declare function DiscussionToJSON(value?: Discussion | null): any;
@@ -0,0 +1,79 @@
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 DiscussionType_1 = require("./DiscussionType");
18
+ const Entity_1 = require("./Entity");
19
+ /**
20
+ * Check if a given object implements the Discussion interface.
21
+ */
22
+ function instanceOfDiscussion(value) {
23
+ let isInstance = true;
24
+ isInstance = isInstance && "id" in value;
25
+ isInstance = isInstance && "name" in value;
26
+ isInstance = isInstance && "description" in value;
27
+ isInstance = isInstance && "entity" in value;
28
+ isInstance = isInstance && "type" in value;
29
+ isInstance = isInstance && "projectId" in value;
30
+ isInstance = isInstance && "createdBy" in value;
31
+ isInstance = isInstance && "lastMessageTime" in value;
32
+ isInstance = isInstance && "createdAt" in value;
33
+ isInstance = isInstance && "updatedAt" in value;
34
+ return isInstance;
35
+ }
36
+ exports.instanceOfDiscussion = instanceOfDiscussion;
37
+ function DiscussionFromJSON(json) {
38
+ return DiscussionFromJSONTyped(json, false);
39
+ }
40
+ exports.DiscussionFromJSON = DiscussionFromJSON;
41
+ function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
42
+ if ((json === undefined) || (json === null)) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'id': json['id'],
47
+ 'name': json['name'],
48
+ 'description': json['description'],
49
+ 'entity': (0, Entity_1.EntityFromJSON)(json['entity']),
50
+ 'type': (0, DiscussionType_1.DiscussionTypeFromJSON)(json['type']),
51
+ 'projectId': json['projectId'],
52
+ 'createdBy': json['createdBy'],
53
+ 'lastMessageTime': (new Date(json['lastMessageTime'])),
54
+ 'createdAt': (new Date(json['createdAt'])),
55
+ 'updatedAt': (new Date(json['updatedAt'])),
56
+ };
57
+ }
58
+ exports.DiscussionFromJSONTyped = DiscussionFromJSONTyped;
59
+ function DiscussionToJSON(value) {
60
+ if (value === undefined) {
61
+ return undefined;
62
+ }
63
+ if (value === null) {
64
+ return null;
65
+ }
66
+ return {
67
+ 'id': value.id,
68
+ 'name': value.name,
69
+ 'description': value.description,
70
+ 'entity': (0, Entity_1.EntityToJSON)(value.entity),
71
+ 'type': (0, DiscussionType_1.DiscussionTypeToJSON)(value.type),
72
+ 'projectId': value.projectId,
73
+ 'createdBy': value.createdBy,
74
+ 'lastMessageTime': (value.lastMessageTime.toISOString()),
75
+ 'createdAt': (value.createdAt.toISOString()),
76
+ 'updatedAt': (value.updatedAt.toISOString()),
77
+ };
78
+ }
79
+ exports.DiscussionToJSON = DiscussionToJSON;
@@ -0,0 +1,57 @@
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 { DiscussionType } from './DiscussionType';
13
+ import type { Entity } from './Entity';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface DiscussionInput
18
+ */
19
+ export interface DiscussionInput {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof DiscussionInput
24
+ */
25
+ name: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof DiscussionInput
30
+ */
31
+ description: string;
32
+ /**
33
+ *
34
+ * @type {Entity}
35
+ * @memberof DiscussionInput
36
+ */
37
+ entity: Entity;
38
+ /**
39
+ *
40
+ * @type {DiscussionType}
41
+ * @memberof DiscussionInput
42
+ */
43
+ type: DiscussionType;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof DiscussionInput
48
+ */
49
+ projectId: string;
50
+ }
51
+ /**
52
+ * Check if a given object implements the DiscussionInput interface.
53
+ */
54
+ export declare function instanceOfDiscussionInput(value: object): boolean;
55
+ export declare function DiscussionInputFromJSON(json: any): DiscussionInput;
56
+ export declare function DiscussionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscussionInput;
57
+ export declare function DiscussionInputToJSON(value?: DiscussionInput | null): any;