@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,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,68 @@
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 { EntityFromJSON, EntityToJSON, } from './Entity';
15
+ /**
16
+ * Check if a given object implements the Discussion interface.
17
+ */
18
+ export function instanceOfDiscussion(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "id" in value;
21
+ isInstance = isInstance && "name" in value;
22
+ isInstance = isInstance && "description" in value;
23
+ isInstance = isInstance && "entity" in value;
24
+ isInstance = isInstance && "projectId" in value;
25
+ isInstance = isInstance && "createdBy" in value;
26
+ isInstance = isInstance && "lastMessageTime" in value;
27
+ isInstance = isInstance && "createdAt" in value;
28
+ isInstance = isInstance && "updatedAt" in value;
29
+ return isInstance;
30
+ }
31
+ export function DiscussionFromJSON(json) {
32
+ return DiscussionFromJSONTyped(json, false);
33
+ }
34
+ export function DiscussionFromJSONTyped(json, ignoreDiscriminator) {
35
+ if ((json === undefined) || (json === null)) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'id': json['id'],
40
+ 'name': json['name'],
41
+ 'description': json['description'],
42
+ 'entity': EntityFromJSON(json['entity']),
43
+ 'projectId': json['projectId'],
44
+ 'createdBy': json['createdBy'],
45
+ 'lastMessageTime': (new Date(json['lastMessageTime'])),
46
+ 'createdAt': (new Date(json['createdAt'])),
47
+ 'updatedAt': (new Date(json['updatedAt'])),
48
+ };
49
+ }
50
+ export function DiscussionToJSON(value) {
51
+ if (value === undefined) {
52
+ return undefined;
53
+ }
54
+ if (value === null) {
55
+ return null;
56
+ }
57
+ return {
58
+ 'id': value.id,
59
+ 'name': value.name,
60
+ 'description': value.description,
61
+ 'entity': EntityToJSON(value.entity),
62
+ 'projectId': value.projectId,
63
+ 'createdBy': value.createdBy,
64
+ 'lastMessageTime': (value.lastMessageTime.toISOString()),
65
+ 'createdAt': (value.createdAt.toISOString()),
66
+ 'updatedAt': (value.updatedAt.toISOString()),
67
+ };
68
+ }
@@ -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,53 @@
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 { EntityFromJSON, EntityToJSON, } from './Entity';
15
+ /**
16
+ * Check if a given object implements the DiscussionInput interface.
17
+ */
18
+ export function instanceOfDiscussionInput(value) {
19
+ let isInstance = true;
20
+ isInstance = isInstance && "name" in value;
21
+ isInstance = isInstance && "description" in value;
22
+ isInstance = isInstance && "entity" in value;
23
+ isInstance = isInstance && "projectId" in value;
24
+ return isInstance;
25
+ }
26
+ export function DiscussionInputFromJSON(json) {
27
+ return DiscussionInputFromJSONTyped(json, false);
28
+ }
29
+ export function DiscussionInputFromJSONTyped(json, ignoreDiscriminator) {
30
+ if ((json === undefined) || (json === null)) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'name': json['name'],
35
+ 'description': json['description'],
36
+ 'entity': EntityFromJSON(json['entity']),
37
+ 'projectId': json['projectId'],
38
+ };
39
+ }
40
+ export function DiscussionInputToJSON(value) {
41
+ if (value === undefined) {
42
+ return undefined;
43
+ }
44
+ if (value === null) {
45
+ return null;
46
+ }
47
+ return {
48
+ 'name': value.name,
49
+ 'description': value.description,
50
+ 'entity': EntityToJSON(value.entity),
51
+ 'projectId': value.projectId,
52
+ };
53
+ }
@@ -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,31 @@
1
+ /**
2
+ * Cirro Data
3
+ * Cirro Data Platform service API
4
+ *
5
+ * The version of the OpenAPI document: latest
6
+ * Contact: support@cirro.bio
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @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
+ Unknown = "UNKNOWN"
28
+ }
29
+ export declare function EntityTypeFromJSON(json: any): EntityType;
30
+ export declare function EntityTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EntityType;
31
+ export declare function EntityTypeToJSON(value?: EntityType | null): any;
@@ -0,0 +1,40 @@
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["Unknown"] = "UNKNOWN";
31
+ })(EntityType || (EntityType = {}));
32
+ export function EntityTypeFromJSON(json) {
33
+ return EntityTypeFromJSONTyped(json, false);
34
+ }
35
+ export function EntityTypeFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function EntityTypeToJSON(value) {
39
+ return value;
40
+ }
@@ -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;
@@ -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;