@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,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,72 @@
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 { DiscussionTypeFromJSON, DiscussionTypeToJSON, } from './DiscussionType';
15
+ import { EntityFromJSON, EntityToJSON, } from './Entity';
16
+ /**
17
+ * Check if a given object implements the Discussion interface.
18
+ */
19
+ export function instanceOfDiscussion(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "id" in value;
22
+ isInstance = isInstance && "name" in value;
23
+ isInstance = isInstance && "description" in value;
24
+ isInstance = isInstance && "entity" in value;
25
+ isInstance = isInstance && "type" in value;
26
+ isInstance = isInstance && "projectId" in value;
27
+ isInstance = isInstance && "createdBy" in value;
28
+ isInstance = isInstance && "lastMessageTime" in value;
29
+ isInstance = isInstance && "createdAt" in value;
30
+ isInstance = isInstance && "updatedAt" in value;
31
+ return isInstance;
32
+ }
33
+ export function DiscussionFromJSON(json) {
34
+ return DiscussionFromJSONTyped(json, false);
35
+ }
36
+ export function DiscussionFromJSONTyped(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
+ 'entity': EntityFromJSON(json['entity']),
45
+ 'type': DiscussionTypeFromJSON(json['type']),
46
+ 'projectId': json['projectId'],
47
+ 'createdBy': json['createdBy'],
48
+ 'lastMessageTime': (new Date(json['lastMessageTime'])),
49
+ 'createdAt': (new Date(json['createdAt'])),
50
+ 'updatedAt': (new Date(json['updatedAt'])),
51
+ };
52
+ }
53
+ export function DiscussionToJSON(value) {
54
+ if (value === undefined) {
55
+ return undefined;
56
+ }
57
+ if (value === null) {
58
+ return null;
59
+ }
60
+ return {
61
+ 'id': value.id,
62
+ 'name': value.name,
63
+ 'description': value.description,
64
+ 'entity': EntityToJSON(value.entity),
65
+ 'type': DiscussionTypeToJSON(value.type),
66
+ 'projectId': value.projectId,
67
+ 'createdBy': value.createdBy,
68
+ 'lastMessageTime': (value.lastMessageTime.toISOString()),
69
+ 'createdAt': (value.createdAt.toISOString()),
70
+ 'updatedAt': (value.updatedAt.toISOString()),
71
+ };
72
+ }
@@ -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;
@@ -0,0 +1,57 @@
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 { DiscussionTypeFromJSON, DiscussionTypeToJSON, } from './DiscussionType';
15
+ import { EntityFromJSON, EntityToJSON, } from './Entity';
16
+ /**
17
+ * Check if a given object implements the DiscussionInput interface.
18
+ */
19
+ export function instanceOfDiscussionInput(value) {
20
+ let isInstance = true;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "description" in value;
23
+ isInstance = isInstance && "entity" in value;
24
+ isInstance = isInstance && "type" in value;
25
+ isInstance = isInstance && "projectId" in value;
26
+ return isInstance;
27
+ }
28
+ export function DiscussionInputFromJSON(json) {
29
+ return DiscussionInputFromJSONTyped(json, false);
30
+ }
31
+ export function DiscussionInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'name': json['name'],
37
+ 'description': json['description'],
38
+ 'entity': EntityFromJSON(json['entity']),
39
+ 'type': DiscussionTypeFromJSON(json['type']),
40
+ 'projectId': json['projectId'],
41
+ };
42
+ }
43
+ export function DiscussionInputToJSON(value) {
44
+ if (value === undefined) {
45
+ return undefined;
46
+ }
47
+ if (value === null) {
48
+ return null;
49
+ }
50
+ return {
51
+ 'name': value.name,
52
+ 'description': value.description,
53
+ 'entity': EntityToJSON(value.entity),
54
+ 'type': DiscussionTypeToJSON(value.type),
55
+ 'projectId': value.projectId,
56
+ };
57
+ }
@@ -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 DiscussionType {
18
+ Discussion = "DISCUSSION",
19
+ Notes = "NOTES"
20
+ }
21
+ export declare function DiscussionTypeFromJSON(json: any): DiscussionType;
22
+ export declare function DiscussionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DiscussionType;
23
+ export declare function DiscussionTypeToJSON(value?: DiscussionType | 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 DiscussionType;
20
+ (function (DiscussionType) {
21
+ DiscussionType["Discussion"] = "DISCUSSION";
22
+ DiscussionType["Notes"] = "NOTES";
23
+ })(DiscussionType || (DiscussionType = {}));
24
+ export function DiscussionTypeFromJSON(json) {
25
+ return DiscussionTypeFromJSONTyped(json, false);
26
+ }
27
+ export function DiscussionTypeFromJSONTyped(json, ignoreDiscriminator) {
28
+ return json;
29
+ }
30
+ export function DiscussionTypeToJSON(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 { EntityType } from './EntityType';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface Entity
17
+ */
18
+ export interface Entity {
19
+ /**
20
+ *
21
+ * @type {EntityType}
22
+ * @memberof Entity
23
+ */
24
+ type: EntityType;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof Entity
29
+ */
30
+ id: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the Entity interface.
34
+ */
35
+ export declare function instanceOfEntity(value: object): boolean;
36
+ export declare function EntityFromJSON(json: any): Entity;
37
+ export declare function EntityFromJSONTyped(json: any, ignoreDiscriminator: boolean): Entity;
38
+ export declare function EntityToJSON(value?: Entity | 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 { EntityTypeFromJSON, EntityTypeToJSON, } from './EntityType';
15
+ /**
16
+ * Check if a given object implements the Entity interface.
17
+ */
18
+ export function instanceOfEntity(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "type" in value;
21
+ isInstance = isInstance && "id" in value;
22
+ return isInstance;
23
+ }
24
+ export function EntityFromJSON(json) {
25
+ return EntityFromJSONTyped(json, false);
26
+ }
27
+ export function EntityFromJSONTyped(json, ignoreDiscriminator) {
28
+ if ((json === undefined) || (json === null)) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'type': EntityTypeFromJSON(json['type']),
33
+ 'id': json['id'],
34
+ };
35
+ }
36
+ export function EntityToJSON(value) {
37
+ if (value === undefined) {
38
+ return undefined;
39
+ }
40
+ if (value === null) {
41
+ return null;
42
+ }
43
+ return {
44
+ 'type': EntityTypeToJSON(value.type),
45
+ 'id': value.id,
46
+ };
47
+ }
@@ -0,0 +1,32 @@
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 EntityType {
18
+ User = "USER",
19
+ Discussion = "DISCUSSION",
20
+ Dataset = "DATASET",
21
+ Project = "PROJECT",
22
+ Process = "PROCESS",
23
+ Reference = "REFERENCE",
24
+ Notebook = "NOTEBOOK",
25
+ Sample = "SAMPLE",
26
+ Share = "SHARE",
27
+ Tag = "TAG",
28
+ Unknown = "UNKNOWN"
29
+ }
30
+ export declare function EntityTypeFromJSON(json: any): EntityType;
31
+ export declare function EntityTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityType;
32
+ export declare function EntityTypeToJSON(value?: EntityType | null): any;
@@ -0,0 +1,41 @@
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 EntityType;
20
+ (function (EntityType) {
21
+ EntityType["User"] = "USER";
22
+ EntityType["Discussion"] = "DISCUSSION";
23
+ EntityType["Dataset"] = "DATASET";
24
+ EntityType["Project"] = "PROJECT";
25
+ EntityType["Process"] = "PROCESS";
26
+ EntityType["Reference"] = "REFERENCE";
27
+ EntityType["Notebook"] = "NOTEBOOK";
28
+ EntityType["Sample"] = "SAMPLE";
29
+ EntityType["Share"] = "SHARE";
30
+ EntityType["Tag"] = "TAG";
31
+ EntityType["Unknown"] = "UNKNOWN";
32
+ })(EntityType || (EntityType = {}));
33
+ export function EntityTypeFromJSON(json) {
34
+ return EntityTypeFromJSONTyped(json, false);
35
+ }
36
+ export function EntityTypeFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function EntityTypeToJSON(value) {
40
+ return value;
41
+ }
@@ -0,0 +1,81 @@
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
+ import type { MessageType } from './MessageType';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface Message
18
+ */
19
+ export interface Message {
20
+ /**
21
+ *
22
+ * @type {MessageType}
23
+ * @memberof Message
24
+ */
25
+ messageType: MessageType;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof Message
30
+ */
31
+ id: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof Message
36
+ */
37
+ message: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Message
42
+ */
43
+ parentMessageId?: string | null;
44
+ /**
45
+ *
46
+ * @type {Array<Entity>}
47
+ * @memberof Message
48
+ */
49
+ links: Array<Entity>;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof Message
54
+ */
55
+ hasReplies: boolean;
56
+ /**
57
+ *
58
+ * @type {string}
59
+ * @memberof Message
60
+ */
61
+ createdBy: string;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof Message
66
+ */
67
+ createdAt: Date;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof Message
72
+ */
73
+ updatedAt: Date;
74
+ }
75
+ /**
76
+ * Check if a given object implements the Message interface.
77
+ */
78
+ export declare function instanceOfMessage(value: object): boolean;
79
+ export declare function MessageFromJSON(json: any): Message;
80
+ export declare function MessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): Message;
81
+ export declare function MessageToJSON(value?: Message | null): any;
@@ -0,0 +1,69 @@
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
+ import { EntityFromJSON, EntityToJSON, } from './Entity';
16
+ import { MessageTypeFromJSON, MessageTypeToJSON, } from './MessageType';
17
+ /**
18
+ * Check if a given object implements the Message interface.
19
+ */
20
+ export function instanceOfMessage(value) {
21
+ let isInstance = true;
22
+ isInstance = isInstance && "messageType" in value;
23
+ isInstance = isInstance && "id" in value;
24
+ isInstance = isInstance && "message" in value;
25
+ isInstance = isInstance && "links" in value;
26
+ isInstance = isInstance && "hasReplies" in value;
27
+ isInstance = isInstance && "createdBy" in value;
28
+ isInstance = isInstance && "createdAt" in value;
29
+ isInstance = isInstance && "updatedAt" in value;
30
+ return isInstance;
31
+ }
32
+ export function MessageFromJSON(json) {
33
+ return MessageFromJSONTyped(json, false);
34
+ }
35
+ export function MessageFromJSONTyped(json, ignoreDiscriminator) {
36
+ if ((json === undefined) || (json === null)) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'messageType': MessageTypeFromJSON(json['messageType']),
41
+ 'id': json['id'],
42
+ 'message': json['message'],
43
+ 'parentMessageId': !exists(json, 'parentMessageId') ? undefined : json['parentMessageId'],
44
+ 'links': (json['links'].map(EntityFromJSON)),
45
+ 'hasReplies': json['hasReplies'],
46
+ 'createdBy': json['createdBy'],
47
+ 'createdAt': (new Date(json['createdAt'])),
48
+ 'updatedAt': (new Date(json['updatedAt'])),
49
+ };
50
+ }
51
+ export function MessageToJSON(value) {
52
+ if (value === undefined) {
53
+ return undefined;
54
+ }
55
+ if (value === null) {
56
+ return null;
57
+ }
58
+ return {
59
+ 'messageType': MessageTypeToJSON(value.messageType),
60
+ 'id': value.id,
61
+ 'message': value.message,
62
+ 'parentMessageId': value.parentMessageId,
63
+ 'links': (value.links.map(EntityToJSON)),
64
+ 'hasReplies': value.hasReplies,
65
+ 'createdBy': value.createdBy,
66
+ 'createdAt': (value.createdAt.toISOString()),
67
+ 'updatedAt': (value.updatedAt.toISOString()),
68
+ };
69
+ }
@@ -0,0 +1,37 @@
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 MessageInput
16
+ */
17
+ export interface MessageInput {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof MessageInput
22
+ */
23
+ parentMessageId?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof MessageInput
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the MessageInput interface.
33
+ */
34
+ export declare function instanceOfMessageInput(value: object): boolean;
35
+ export declare function MessageInputFromJSON(json: any): MessageInput;
36
+ export declare function MessageInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): MessageInput;
37
+ export declare function MessageInputToJSON(value?: MessageInput | null): any;