@instructure/athena-api-client 3.41.8 → 3.42.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 (50) hide show
  1. package/README.md +9 -0
  2. package/dist/apis/ConceptDiagramsApi.d.ts +47 -0
  3. package/dist/apis/ConceptDiagramsApi.js +117 -0
  4. package/dist/apis/ConceptImagesApi.d.ts +33 -0
  5. package/dist/apis/ConceptImagesApi.js +76 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +2 -0
  8. package/dist/esm/apis/ConceptDiagramsApi.d.ts +47 -0
  9. package/dist/esm/apis/ConceptDiagramsApi.js +113 -0
  10. package/dist/esm/apis/ConceptImagesApi.d.ts +33 -0
  11. package/dist/esm/apis/ConceptImagesApi.js +72 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +2 -0
  14. package/dist/esm/models/Chat.d.ts +7 -0
  15. package/dist/esm/models/Chat.js +5 -0
  16. package/dist/esm/models/ConceptDiagramDetail.d.ts +74 -0
  17. package/dist/esm/models/ConceptDiagramDetail.js +71 -0
  18. package/dist/esm/models/ConceptDiagramGalleryItem.d.ts +68 -0
  19. package/dist/esm/models/ConceptDiagramGalleryItem.js +67 -0
  20. package/dist/esm/models/ConceptImageGalleryItem.d.ts +86 -0
  21. package/dist/esm/models/ConceptImageGalleryItem.js +79 -0
  22. package/dist/esm/models/LevelUpClose.d.ts +94 -0
  23. package/dist/esm/models/LevelUpClose.js +92 -0
  24. package/dist/esm/models/PaginatedConceptDiagrams.d.ts +39 -0
  25. package/dist/esm/models/PaginatedConceptDiagrams.js +48 -0
  26. package/dist/esm/models/PaginatedConceptImages.d.ts +39 -0
  27. package/dist/esm/models/PaginatedConceptImages.js +48 -0
  28. package/dist/esm/models/UserConcept.d.ts +6 -0
  29. package/dist/esm/models/UserConcept.js +4 -0
  30. package/dist/esm/models/index.d.ts +6 -0
  31. package/dist/esm/models/index.js +6 -0
  32. package/dist/models/Chat.d.ts +7 -0
  33. package/dist/models/Chat.js +5 -0
  34. package/dist/models/ConceptDiagramDetail.d.ts +74 -0
  35. package/dist/models/ConceptDiagramDetail.js +78 -0
  36. package/dist/models/ConceptDiagramGalleryItem.d.ts +68 -0
  37. package/dist/models/ConceptDiagramGalleryItem.js +74 -0
  38. package/dist/models/ConceptImageGalleryItem.d.ts +86 -0
  39. package/dist/models/ConceptImageGalleryItem.js +86 -0
  40. package/dist/models/LevelUpClose.d.ts +94 -0
  41. package/dist/models/LevelUpClose.js +100 -0
  42. package/dist/models/PaginatedConceptDiagrams.d.ts +39 -0
  43. package/dist/models/PaginatedConceptDiagrams.js +55 -0
  44. package/dist/models/PaginatedConceptImages.d.ts +39 -0
  45. package/dist/models/PaginatedConceptImages.js +55 -0
  46. package/dist/models/UserConcept.d.ts +6 -0
  47. package/dist/models/UserConcept.js +4 -0
  48. package/dist/models/index.d.ts +6 -0
  49. package/dist/models/index.js +6 -0
  50. package/package.json +1 -1
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { ConceptDiagramGalleryItem } from './ConceptDiagramGalleryItem';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedConceptDiagrams
17
+ */
18
+ export interface PaginatedConceptDiagrams {
19
+ /**
20
+ *
21
+ * @type {Array<ConceptDiagramGalleryItem>}
22
+ * @memberof PaginatedConceptDiagrams
23
+ */
24
+ data: Array<ConceptDiagramGalleryItem>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedConceptDiagrams
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedConceptDiagrams interface.
34
+ */
35
+ export declare function instanceOfPaginatedConceptDiagrams(value: object): value is PaginatedConceptDiagrams;
36
+ export declare function PaginatedConceptDiagramsFromJSON(json: any): PaginatedConceptDiagrams;
37
+ export declare function PaginatedConceptDiagramsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConceptDiagrams;
38
+ export declare function PaginatedConceptDiagramsToJSON(json: any): PaginatedConceptDiagrams;
39
+ export declare function PaginatedConceptDiagramsToJSONTyped(value?: PaginatedConceptDiagrams | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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 { ConceptDiagramGalleryItemFromJSON, ConceptDiagramGalleryItemToJSON, } from './ConceptDiagramGalleryItem';
15
+ /**
16
+ * Check if a given object implements the PaginatedConceptDiagrams interface.
17
+ */
18
+ export function instanceOfPaginatedConceptDiagrams(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PaginatedConceptDiagramsFromJSON(json) {
26
+ return PaginatedConceptDiagramsFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedConceptDiagramsFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(ConceptDiagramGalleryItemFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedConceptDiagramsToJSON(json) {
38
+ return PaginatedConceptDiagramsToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedConceptDiagramsToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(ConceptDiagramGalleryItemToJSON)),
46
+ 'nextCursor': value['nextCursor'],
47
+ };
48
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 { ConceptImageGalleryItem } from './ConceptImageGalleryItem';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedConceptImages
17
+ */
18
+ export interface PaginatedConceptImages {
19
+ /**
20
+ *
21
+ * @type {Array<ConceptImageGalleryItem>}
22
+ * @memberof PaginatedConceptImages
23
+ */
24
+ data: Array<ConceptImageGalleryItem>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedConceptImages
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedConceptImages interface.
34
+ */
35
+ export declare function instanceOfPaginatedConceptImages(value: object): value is PaginatedConceptImages;
36
+ export declare function PaginatedConceptImagesFromJSON(json: any): PaginatedConceptImages;
37
+ export declare function PaginatedConceptImagesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedConceptImages;
38
+ export declare function PaginatedConceptImagesToJSON(json: any): PaginatedConceptImages;
39
+ export declare function PaginatedConceptImagesToJSONTyped(value?: PaginatedConceptImages | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Athena API
5
+ * REST API for the Athena system
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ *
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 { ConceptImageGalleryItemFromJSON, ConceptImageGalleryItemToJSON, } from './ConceptImageGalleryItem';
15
+ /**
16
+ * Check if a given object implements the PaginatedConceptImages interface.
17
+ */
18
+ export function instanceOfPaginatedConceptImages(value) {
19
+ if (!('data' in value) || value['data'] === undefined)
20
+ return false;
21
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
22
+ return false;
23
+ return true;
24
+ }
25
+ export function PaginatedConceptImagesFromJSON(json) {
26
+ return PaginatedConceptImagesFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedConceptImagesFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(ConceptImageGalleryItemFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedConceptImagesToJSON(json) {
38
+ return PaginatedConceptImagesToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedConceptImagesToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(ConceptImageGalleryItemToJSON)),
46
+ 'nextCursor': value['nextCursor'],
47
+ };
48
+ }
@@ -52,6 +52,12 @@ export interface UserConcept {
52
52
  * @memberof UserConcept
53
53
  */
54
54
  concept: UserConceptConcept;
55
+ /**
56
+ * When Expert-level work on this concept was banked in a Level Up and not yet confirmed: the earliest such sitting since the last Expert certification. Expert is confirmed by a second sitting at least a day later; until then `strength` stays below Expert. Null when nothing is pending or the reading is already Expert.
57
+ * @type {Date}
58
+ * @memberof UserConcept
59
+ */
60
+ expertPendingSince: Date | null;
55
61
  }
56
62
  /**
57
63
  * Check if a given object implements the UserConcept interface.
@@ -28,6 +28,8 @@ export function instanceOfUserConcept(value) {
28
28
  return false;
29
29
  if (!('concept' in value) || value['concept'] === undefined)
30
30
  return false;
31
+ if (!('expertPendingSince' in value) || value['expertPendingSince'] === undefined)
32
+ return false;
31
33
  return true;
32
34
  }
33
35
  export function UserConceptFromJSON(json) {
@@ -44,6 +46,7 @@ export function UserConceptFromJSONTyped(json, ignoreDiscriminator) {
44
46
  'createdAt': (new Date(json['createdAt'])),
45
47
  'updatedAt': (new Date(json['updatedAt'])),
46
48
  'concept': UserConceptConceptFromJSON(json['concept']),
49
+ 'expertPendingSince': (json['expertPendingSince'] == null ? null : new Date(json['expertPendingSince'])),
47
50
  };
48
51
  }
49
52
  export function UserConceptToJSON(json) {
@@ -60,5 +63,6 @@ export function UserConceptToJSONTyped(value, ignoreDiscriminator = false) {
60
63
  'createdAt': value['createdAt'].toISOString(),
61
64
  'updatedAt': value['updatedAt'].toISOString(),
62
65
  'concept': UserConceptConceptToJSON(value['concept']),
66
+ 'expertPendingSince': value['expertPendingSince'] == null ? value['expertPendingSince'] : value['expertPendingSince'].toISOString(),
63
67
  };
64
68
  }
@@ -73,6 +73,9 @@ export * from './ChatRequestQuizSettings';
73
73
  export * from './ChatStudyPlanActivity';
74
74
  export * from './ConceptAssessmentEntity';
75
75
  export * from './ConceptChange';
76
+ export * from './ConceptDiagramDetail';
77
+ export * from './ConceptDiagramGalleryItem';
78
+ export * from './ConceptImageGalleryItem';
76
79
  export * from './CreateAccountRequest';
77
80
  export * from './CreateChatRequest';
78
81
  export * from './CreateFeatureDto';
@@ -102,12 +105,15 @@ export * from './LearningMoment';
102
105
  export * from './LearningMomentCount';
103
106
  export * from './LearningSessionEvaluation';
104
107
  export * from './LearningStreakResponse';
108
+ export * from './LevelUpClose';
105
109
  export * from './Message';
106
110
  export * from './MessageAttachment';
107
111
  export * from './MessageCountResponse';
108
112
  export * from './MessagePartsInner';
109
113
  export * from './ObjectiveResource';
110
114
  export * from './PaginatedChats';
115
+ export * from './PaginatedConceptDiagrams';
116
+ export * from './PaginatedConceptImages';
111
117
  export * from './PaginatedLearningMoments';
112
118
  export * from './PaginatedMessages';
113
119
  export * from './PaginatedObjectiveResources';
@@ -75,6 +75,9 @@ export * from './ChatRequestQuizSettings';
75
75
  export * from './ChatStudyPlanActivity';
76
76
  export * from './ConceptAssessmentEntity';
77
77
  export * from './ConceptChange';
78
+ export * from './ConceptDiagramDetail';
79
+ export * from './ConceptDiagramGalleryItem';
80
+ export * from './ConceptImageGalleryItem';
78
81
  export * from './CreateAccountRequest';
79
82
  export * from './CreateChatRequest';
80
83
  export * from './CreateFeatureDto';
@@ -104,12 +107,15 @@ export * from './LearningMoment';
104
107
  export * from './LearningMomentCount';
105
108
  export * from './LearningSessionEvaluation';
106
109
  export * from './LearningStreakResponse';
110
+ export * from './LevelUpClose';
107
111
  export * from './Message';
108
112
  export * from './MessageAttachment';
109
113
  export * from './MessageCountResponse';
110
114
  export * from './MessagePartsInner';
111
115
  export * from './ObjectiveResource';
112
116
  export * from './PaginatedChats';
117
+ export * from './PaginatedConceptDiagrams';
118
+ export * from './PaginatedConceptImages';
113
119
  export * from './PaginatedLearningMoments';
114
120
  export * from './PaginatedMessages';
115
121
  export * from './PaginatedObjectiveResources';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LevelUpClose } from './LevelUpClose';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -129,6 +130,12 @@ export interface Chat {
129
130
  * @memberof Chat
130
131
  */
131
132
  closedAt: Date | null;
133
+ /**
134
+ * Level Up only: the stored close the close screen shows. Null when the chat isn't a closed Level Up, or closed before closes were stored (read `goalAchieved` for those).
135
+ * @type {LevelUpClose}
136
+ * @memberof Chat
137
+ */
138
+ levelUpClose: LevelUpClose | null;
132
139
  }
133
140
  /**
134
141
  * @export
@@ -19,6 +19,7 @@ exports.ChatFromJSON = ChatFromJSON;
19
19
  exports.ChatFromJSONTyped = ChatFromJSONTyped;
20
20
  exports.ChatToJSON = ChatToJSON;
21
21
  exports.ChatToJSONTyped = ChatToJSONTyped;
22
+ const LevelUpClose_1 = require("./LevelUpClose");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -68,6 +69,8 @@ function instanceOfChat(value) {
68
69
  return false;
69
70
  if (!('closedAt' in value) || value['closedAt'] === undefined)
70
71
  return false;
72
+ if (!('levelUpClose' in value) || value['levelUpClose'] === undefined)
73
+ return false;
71
74
  return true;
72
75
  }
73
76
  function ChatFromJSON(json) {
@@ -97,6 +100,7 @@ function ChatFromJSONTyped(json, ignoreDiscriminator) {
97
100
  'initialStrength': json['initialStrength'],
98
101
  'primaryConceptId': json['primaryConceptId'],
99
102
  'closedAt': (json['closedAt'] == null ? null : new Date(json['closedAt'])),
103
+ 'levelUpClose': (0, LevelUpClose_1.LevelUpCloseFromJSON)(json['levelUpClose']),
100
104
  };
101
105
  }
102
106
  function ChatToJSON(json) {
@@ -126,5 +130,6 @@ function ChatToJSONTyped(value, ignoreDiscriminator = false) {
126
130
  'initialStrength': value['initialStrength'],
127
131
  'primaryConceptId': value['primaryConceptId'],
128
132
  'closedAt': value['closedAt'] == null ? value['closedAt'] : value['closedAt'].toISOString(),
133
+ 'levelUpClose': (0, LevelUpClose_1.LevelUpCloseToJSON)(value['levelUpClose']),
129
134
  };
130
135
  }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 ConceptDiagramDetail
16
+ */
17
+ export interface ConceptDiagramDetail {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConceptDiagramDetail
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConceptDiagramDetail
28
+ */
29
+ conceptId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConceptDiagramDetail
34
+ */
35
+ conceptName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConceptDiagramDetail
40
+ */
41
+ title: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ConceptDiagramDetail
46
+ */
47
+ description: string;
48
+ /**
49
+ * The chat the diagram was authored in. Null once that chat is deleted.
50
+ * @type {string}
51
+ * @memberof ConceptDiagramDetail
52
+ */
53
+ sourceChatId: string | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof ConceptDiagramDetail
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ * The complete assembled HTML document, to render in a sandboxed iframe
62
+ * @type {string}
63
+ * @memberof ConceptDiagramDetail
64
+ */
65
+ document: string;
66
+ }
67
+ /**
68
+ * Check if a given object implements the ConceptDiagramDetail interface.
69
+ */
70
+ export declare function instanceOfConceptDiagramDetail(value: object): value is ConceptDiagramDetail;
71
+ export declare function ConceptDiagramDetailFromJSON(json: any): ConceptDiagramDetail;
72
+ export declare function ConceptDiagramDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConceptDiagramDetail;
73
+ export declare function ConceptDiagramDetailToJSON(json: any): ConceptDiagramDetail;
74
+ export declare function ConceptDiagramDetailToJSONTyped(value?: ConceptDiagramDetail | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,78 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfConceptDiagramDetail = instanceOfConceptDiagramDetail;
17
+ exports.ConceptDiagramDetailFromJSON = ConceptDiagramDetailFromJSON;
18
+ exports.ConceptDiagramDetailFromJSONTyped = ConceptDiagramDetailFromJSONTyped;
19
+ exports.ConceptDiagramDetailToJSON = ConceptDiagramDetailToJSON;
20
+ exports.ConceptDiagramDetailToJSONTyped = ConceptDiagramDetailToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ConceptDiagramDetail interface.
23
+ */
24
+ function instanceOfConceptDiagramDetail(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
28
+ return false;
29
+ if (!('conceptName' in value) || value['conceptName'] === undefined)
30
+ return false;
31
+ if (!('title' in value) || value['title'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ if (!('document' in value) || value['document'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function ConceptDiagramDetailFromJSON(json) {
44
+ return ConceptDiagramDetailFromJSONTyped(json, false);
45
+ }
46
+ function ConceptDiagramDetailFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'conceptId': json['conceptId'],
53
+ 'conceptName': json['conceptName'],
54
+ 'title': json['title'],
55
+ 'description': json['description'],
56
+ 'sourceChatId': json['sourceChatId'],
57
+ 'createdAt': (new Date(json['createdAt'])),
58
+ 'document': json['document'],
59
+ };
60
+ }
61
+ function ConceptDiagramDetailToJSON(json) {
62
+ return ConceptDiagramDetailToJSONTyped(json, false);
63
+ }
64
+ function ConceptDiagramDetailToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'conceptId': value['conceptId'],
71
+ 'conceptName': value['conceptName'],
72
+ 'title': value['title'],
73
+ 'description': value['description'],
74
+ 'sourceChatId': value['sourceChatId'],
75
+ 'createdAt': value['createdAt'].toISOString(),
76
+ 'document': value['document'],
77
+ };
78
+ }
@@ -0,0 +1,68 @@
1
+ /**
2
+ * Athena API
3
+ * REST API for the Athena system
4
+ *
5
+ * The version of the OpenAPI document: 1.0.0
6
+ *
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 ConceptDiagramGalleryItem
16
+ */
17
+ export interface ConceptDiagramGalleryItem {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConceptDiagramGalleryItem
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ConceptDiagramGalleryItem
28
+ */
29
+ conceptId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConceptDiagramGalleryItem
34
+ */
35
+ conceptName: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConceptDiagramGalleryItem
40
+ */
41
+ title: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ConceptDiagramGalleryItem
46
+ */
47
+ description: string;
48
+ /**
49
+ * The chat the diagram was authored in. Null once that chat is deleted.
50
+ * @type {string}
51
+ * @memberof ConceptDiagramGalleryItem
52
+ */
53
+ sourceChatId: string | null;
54
+ /**
55
+ *
56
+ * @type {Date}
57
+ * @memberof ConceptDiagramGalleryItem
58
+ */
59
+ createdAt: Date;
60
+ }
61
+ /**
62
+ * Check if a given object implements the ConceptDiagramGalleryItem interface.
63
+ */
64
+ export declare function instanceOfConceptDiagramGalleryItem(value: object): value is ConceptDiagramGalleryItem;
65
+ export declare function ConceptDiagramGalleryItemFromJSON(json: any): ConceptDiagramGalleryItem;
66
+ export declare function ConceptDiagramGalleryItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConceptDiagramGalleryItem;
67
+ export declare function ConceptDiagramGalleryItemToJSON(json: any): ConceptDiagramGalleryItem;
68
+ export declare function ConceptDiagramGalleryItemToJSONTyped(value?: ConceptDiagramGalleryItem | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Athena API
6
+ * REST API for the Athena system
7
+ *
8
+ * The version of the OpenAPI document: 1.0.0
9
+ *
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.instanceOfConceptDiagramGalleryItem = instanceOfConceptDiagramGalleryItem;
17
+ exports.ConceptDiagramGalleryItemFromJSON = ConceptDiagramGalleryItemFromJSON;
18
+ exports.ConceptDiagramGalleryItemFromJSONTyped = ConceptDiagramGalleryItemFromJSONTyped;
19
+ exports.ConceptDiagramGalleryItemToJSON = ConceptDiagramGalleryItemToJSON;
20
+ exports.ConceptDiagramGalleryItemToJSONTyped = ConceptDiagramGalleryItemToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ConceptDiagramGalleryItem interface.
23
+ */
24
+ function instanceOfConceptDiagramGalleryItem(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
28
+ return false;
29
+ if (!('conceptName' in value) || value['conceptName'] === undefined)
30
+ return false;
31
+ if (!('title' in value) || value['title'] === undefined)
32
+ return false;
33
+ if (!('description' in value) || value['description'] === undefined)
34
+ return false;
35
+ if (!('sourceChatId' in value) || value['sourceChatId'] === undefined)
36
+ return false;
37
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function ConceptDiagramGalleryItemFromJSON(json) {
42
+ return ConceptDiagramGalleryItemFromJSONTyped(json, false);
43
+ }
44
+ function ConceptDiagramGalleryItemFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'conceptId': json['conceptId'],
51
+ 'conceptName': json['conceptName'],
52
+ 'title': json['title'],
53
+ 'description': json['description'],
54
+ 'sourceChatId': json['sourceChatId'],
55
+ 'createdAt': (new Date(json['createdAt'])),
56
+ };
57
+ }
58
+ function ConceptDiagramGalleryItemToJSON(json) {
59
+ return ConceptDiagramGalleryItemToJSONTyped(json, false);
60
+ }
61
+ function ConceptDiagramGalleryItemToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'conceptId': value['conceptId'],
68
+ 'conceptName': value['conceptName'],
69
+ 'title': value['title'],
70
+ 'description': value['description'],
71
+ 'sourceChatId': value['sourceChatId'],
72
+ 'createdAt': value['createdAt'].toISOString(),
73
+ };
74
+ }