@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,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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.EntityToJSON = exports.EntityFromJSONTyped = exports.EntityFromJSON = exports.instanceOfEntity = void 0;
17
+ const EntityType_1 = require("./EntityType");
18
+ /**
19
+ * Check if a given object implements the Entity interface.
20
+ */
21
+ function instanceOfEntity(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "type" in value;
24
+ isInstance = isInstance && "id" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfEntity = instanceOfEntity;
28
+ function EntityFromJSON(json) {
29
+ return EntityFromJSONTyped(json, false);
30
+ }
31
+ exports.EntityFromJSON = EntityFromJSON;
32
+ function EntityFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'type': (0, EntityType_1.EntityTypeFromJSON)(json['type']),
38
+ 'id': json['id'],
39
+ };
40
+ }
41
+ exports.EntityFromJSONTyped = EntityFromJSONTyped;
42
+ function EntityToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'type': (0, EntityType_1.EntityTypeToJSON)(value.type),
51
+ 'id': value.id,
52
+ };
53
+ }
54
+ exports.EntityToJSON = EntityToJSON;
@@ -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,46 @@
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.EntityTypeToJSON = exports.EntityTypeFromJSONTyped = exports.EntityTypeFromJSON = exports.EntityType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var EntityType;
23
+ (function (EntityType) {
24
+ EntityType["User"] = "USER";
25
+ EntityType["Discussion"] = "DISCUSSION";
26
+ EntityType["Dataset"] = "DATASET";
27
+ EntityType["Project"] = "PROJECT";
28
+ EntityType["Process"] = "PROCESS";
29
+ EntityType["Reference"] = "REFERENCE";
30
+ EntityType["Notebook"] = "NOTEBOOK";
31
+ EntityType["Sample"] = "SAMPLE";
32
+ EntityType["Share"] = "SHARE";
33
+ EntityType["Unknown"] = "UNKNOWN";
34
+ })(EntityType = exports.EntityType || (exports.EntityType = {}));
35
+ function EntityTypeFromJSON(json) {
36
+ return EntityTypeFromJSONTyped(json, false);
37
+ }
38
+ exports.EntityTypeFromJSON = EntityTypeFromJSON;
39
+ function EntityTypeFromJSONTyped(json, ignoreDiscriminator) {
40
+ return json;
41
+ }
42
+ exports.EntityTypeFromJSONTyped = EntityTypeFromJSONTyped;
43
+ function EntityTypeToJSON(value) {
44
+ return value;
45
+ }
46
+ exports.EntityTypeToJSON = EntityTypeToJSON;
@@ -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,76 @@
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.MessageToJSON = exports.MessageFromJSONTyped = exports.MessageFromJSON = exports.instanceOfMessage = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ const Entity_1 = require("./Entity");
19
+ const MessageType_1 = require("./MessageType");
20
+ /**
21
+ * Check if a given object implements the Message interface.
22
+ */
23
+ function instanceOfMessage(value) {
24
+ let isInstance = true;
25
+ isInstance = isInstance && "messageType" in value;
26
+ isInstance = isInstance && "id" in value;
27
+ isInstance = isInstance && "message" in value;
28
+ isInstance = isInstance && "links" in value;
29
+ isInstance = isInstance && "hasReplies" in value;
30
+ isInstance = isInstance && "createdBy" in value;
31
+ isInstance = isInstance && "createdAt" in value;
32
+ isInstance = isInstance && "updatedAt" in value;
33
+ return isInstance;
34
+ }
35
+ exports.instanceOfMessage = instanceOfMessage;
36
+ function MessageFromJSON(json) {
37
+ return MessageFromJSONTyped(json, false);
38
+ }
39
+ exports.MessageFromJSON = MessageFromJSON;
40
+ function MessageFromJSONTyped(json, ignoreDiscriminator) {
41
+ if ((json === undefined) || (json === null)) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'messageType': (0, MessageType_1.MessageTypeFromJSON)(json['messageType']),
46
+ 'id': json['id'],
47
+ 'message': json['message'],
48
+ 'parentMessageId': !(0, runtime_1.exists)(json, 'parentMessageId') ? undefined : json['parentMessageId'],
49
+ 'links': (json['links'].map(Entity_1.EntityFromJSON)),
50
+ 'hasReplies': json['hasReplies'],
51
+ 'createdBy': json['createdBy'],
52
+ 'createdAt': (new Date(json['createdAt'])),
53
+ 'updatedAt': (new Date(json['updatedAt'])),
54
+ };
55
+ }
56
+ exports.MessageFromJSONTyped = MessageFromJSONTyped;
57
+ function MessageToJSON(value) {
58
+ if (value === undefined) {
59
+ return undefined;
60
+ }
61
+ if (value === null) {
62
+ return null;
63
+ }
64
+ return {
65
+ 'messageType': (0, MessageType_1.MessageTypeToJSON)(value.messageType),
66
+ 'id': value.id,
67
+ 'message': value.message,
68
+ 'parentMessageId': value.parentMessageId,
69
+ 'links': (value.links.map(Entity_1.EntityToJSON)),
70
+ 'hasReplies': value.hasReplies,
71
+ 'createdBy': value.createdBy,
72
+ 'createdAt': (value.createdAt.toISOString()),
73
+ 'updatedAt': (value.updatedAt.toISOString()),
74
+ };
75
+ }
76
+ exports.MessageToJSON = MessageToJSON;
@@ -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,53 @@
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.MessageInputToJSON = exports.MessageInputFromJSONTyped = exports.MessageInputFromJSON = exports.instanceOfMessageInput = void 0;
17
+ const runtime_1 = require("../runtime");
18
+ /**
19
+ * Check if a given object implements the MessageInput interface.
20
+ */
21
+ function instanceOfMessageInput(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "message" in value;
24
+ return isInstance;
25
+ }
26
+ exports.instanceOfMessageInput = instanceOfMessageInput;
27
+ function MessageInputFromJSON(json) {
28
+ return MessageInputFromJSONTyped(json, false);
29
+ }
30
+ exports.MessageInputFromJSON = MessageInputFromJSON;
31
+ function MessageInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if ((json === undefined) || (json === null)) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'parentMessageId': !(0, runtime_1.exists)(json, 'parentMessageId') ? undefined : json['parentMessageId'],
37
+ 'message': json['message'],
38
+ };
39
+ }
40
+ exports.MessageInputFromJSONTyped = MessageInputFromJSONTyped;
41
+ function MessageInputToJSON(value) {
42
+ if (value === undefined) {
43
+ return undefined;
44
+ }
45
+ if (value === null) {
46
+ return null;
47
+ }
48
+ return {
49
+ 'parentMessageId': value.parentMessageId,
50
+ 'message': value.message,
51
+ };
52
+ }
53
+ exports.MessageInputToJSON = MessageInputToJSON;
@@ -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,38 @@
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.MessageTypeToJSON = exports.MessageTypeFromJSONTyped = exports.MessageTypeFromJSON = exports.MessageType = void 0;
17
+ /**
18
+ *
19
+ * @export
20
+ * @enum {string}
21
+ */
22
+ var MessageType;
23
+ (function (MessageType) {
24
+ MessageType["System"] = "SYSTEM";
25
+ MessageType["User"] = "USER";
26
+ })(MessageType = exports.MessageType || (exports.MessageType = {}));
27
+ function MessageTypeFromJSON(json) {
28
+ return MessageTypeFromJSONTyped(json, false);
29
+ }
30
+ exports.MessageTypeFromJSON = MessageTypeFromJSON;
31
+ function MessageTypeFromJSONTyped(json, ignoreDiscriminator) {
32
+ return json;
33
+ }
34
+ exports.MessageTypeFromJSONTyped = MessageTypeFromJSONTyped;
35
+ function MessageTypeToJSON(value) {
36
+ return value;
37
+ }
38
+ exports.MessageTypeToJSON = MessageTypeToJSON;
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaginatedResponseDiscussionToJSON = exports.PaginatedResponseDiscussionFromJSONTyped = exports.PaginatedResponseDiscussionFromJSON = exports.instanceOfPaginatedResponseDiscussion = void 0;
17
+ const Discussion_1 = require("./Discussion");
18
+ /**
19
+ * Check if a given object implements the PaginatedResponseDiscussion interface.
20
+ */
21
+ function instanceOfPaginatedResponseDiscussion(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "data" in value;
24
+ isInstance = isInstance && "nextToken" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPaginatedResponseDiscussion = instanceOfPaginatedResponseDiscussion;
28
+ function PaginatedResponseDiscussionFromJSON(json) {
29
+ return PaginatedResponseDiscussionFromJSONTyped(json, false);
30
+ }
31
+ exports.PaginatedResponseDiscussionFromJSON = PaginatedResponseDiscussionFromJSON;
32
+ function PaginatedResponseDiscussionFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'data': (json['data'].map(Discussion_1.DiscussionFromJSON)),
38
+ 'nextToken': json['nextToken'],
39
+ };
40
+ }
41
+ exports.PaginatedResponseDiscussionFromJSONTyped = PaginatedResponseDiscussionFromJSONTyped;
42
+ function PaginatedResponseDiscussionToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'data': (value.data.map(Discussion_1.DiscussionToJSON)),
51
+ 'nextToken': value.nextToken,
52
+ };
53
+ }
54
+ exports.PaginatedResponseDiscussionToJSON = PaginatedResponseDiscussionToJSON;
@@ -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,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Cirro Data
6
+ * Cirro Data Platform service API
7
+ *
8
+ * The version of the OpenAPI document: latest
9
+ * Contact: support@cirro.bio
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.PaginatedResponseMessageToJSON = exports.PaginatedResponseMessageFromJSONTyped = exports.PaginatedResponseMessageFromJSON = exports.instanceOfPaginatedResponseMessage = void 0;
17
+ const Message_1 = require("./Message");
18
+ /**
19
+ * Check if a given object implements the PaginatedResponseMessage interface.
20
+ */
21
+ function instanceOfPaginatedResponseMessage(value) {
22
+ let isInstance = true;
23
+ isInstance = isInstance && "data" in value;
24
+ isInstance = isInstance && "nextToken" in value;
25
+ return isInstance;
26
+ }
27
+ exports.instanceOfPaginatedResponseMessage = instanceOfPaginatedResponseMessage;
28
+ function PaginatedResponseMessageFromJSON(json) {
29
+ return PaginatedResponseMessageFromJSONTyped(json, false);
30
+ }
31
+ exports.PaginatedResponseMessageFromJSON = PaginatedResponseMessageFromJSON;
32
+ function PaginatedResponseMessageFromJSONTyped(json, ignoreDiscriminator) {
33
+ if ((json === undefined) || (json === null)) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'data': (json['data'].map(Message_1.MessageFromJSON)),
38
+ 'nextToken': json['nextToken'],
39
+ };
40
+ }
41
+ exports.PaginatedResponseMessageFromJSONTyped = PaginatedResponseMessageFromJSONTyped;
42
+ function PaginatedResponseMessageToJSON(value) {
43
+ if (value === undefined) {
44
+ return undefined;
45
+ }
46
+ if (value === null) {
47
+ return null;
48
+ }
49
+ return {
50
+ 'data': (value.data.map(Message_1.MessageToJSON)),
51
+ 'nextToken': value.nextToken,
52
+ };
53
+ }
54
+ exports.PaginatedResponseMessageToJSON = PaginatedResponseMessageToJSON;
@@ -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}