@instructure/athena-api-client 3.0.3 → 3.0.5

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 (134) hide show
  1. package/README.md +39 -0
  2. package/dist/apis/ChatsApi.d.ts +2 -0
  3. package/dist/apis/ChatsApi.js +6 -0
  4. package/dist/apis/DailyQuizApi.d.ts +1 -0
  5. package/dist/apis/DailyQuizApi.js +3 -0
  6. package/dist/apis/MessagesApi.d.ts +1 -0
  7. package/dist/apis/MessagesApi.js +3 -0
  8. package/dist/apis/PracticeQuizzesApi.d.ts +1 -0
  9. package/dist/apis/PracticeQuizzesApi.js +3 -0
  10. package/dist/apis/StudyObjectiveConceptsApi.d.ts +50 -0
  11. package/dist/apis/StudyObjectiveConceptsApi.js +133 -0
  12. package/dist/apis/StudyObjectivesApi.d.ts +127 -0
  13. package/dist/apis/StudyObjectivesApi.js +378 -0
  14. package/dist/apis/UserFilesApi.d.ts +90 -0
  15. package/dist/apis/UserFilesApi.js +246 -0
  16. package/dist/apis/index.d.ts +3 -0
  17. package/dist/apis/index.js +3 -0
  18. package/dist/esm/apis/ChatsApi.d.ts +2 -0
  19. package/dist/esm/apis/ChatsApi.js +6 -0
  20. package/dist/esm/apis/DailyQuizApi.d.ts +1 -0
  21. package/dist/esm/apis/DailyQuizApi.js +3 -0
  22. package/dist/esm/apis/MessagesApi.d.ts +1 -0
  23. package/dist/esm/apis/MessagesApi.js +3 -0
  24. package/dist/esm/apis/PracticeQuizzesApi.d.ts +1 -0
  25. package/dist/esm/apis/PracticeQuizzesApi.js +3 -0
  26. package/dist/esm/apis/StudyObjectiveConceptsApi.d.ts +50 -0
  27. package/dist/esm/apis/StudyObjectiveConceptsApi.js +129 -0
  28. package/dist/esm/apis/StudyObjectivesApi.d.ts +127 -0
  29. package/dist/esm/apis/StudyObjectivesApi.js +374 -0
  30. package/dist/esm/apis/UserFilesApi.d.ts +90 -0
  31. package/dist/esm/apis/UserFilesApi.js +242 -0
  32. package/dist/esm/apis/index.d.ts +3 -0
  33. package/dist/esm/apis/index.js +3 -0
  34. package/dist/esm/models/AssociateUserFileRequest.d.ts +48 -0
  35. package/dist/esm/models/AssociateUserFileRequest.js +56 -0
  36. package/dist/esm/models/CreateObjectiveResourceDto.d.ts +47 -0
  37. package/dist/esm/models/CreateObjectiveResourceDto.js +55 -0
  38. package/dist/esm/models/CreateStudyObjectiveDto.d.ts +57 -0
  39. package/dist/esm/models/CreateStudyObjectiveDto.js +54 -0
  40. package/dist/esm/models/CreateStudyObjectiveDtoCanvasDocumentsInner.d.ts +50 -0
  41. package/dist/esm/models/CreateStudyObjectiveDtoCanvasDocumentsInner.js +55 -0
  42. package/dist/esm/models/ObjectiveResource.d.ts +71 -0
  43. package/dist/esm/models/ObjectiveResource.js +71 -0
  44. package/dist/esm/models/PaginatedObjectiveResources.d.ts +39 -0
  45. package/dist/esm/models/PaginatedObjectiveResources.js +48 -0
  46. package/dist/esm/models/PaginatedStudyObjectives.d.ts +39 -0
  47. package/dist/esm/models/PaginatedStudyObjectives.js +48 -0
  48. package/dist/esm/models/StudyObjective.d.ts +88 -0
  49. package/dist/esm/models/StudyObjective.js +81 -0
  50. package/dist/esm/models/StudyObjectiveCanvasDocument.d.ts +50 -0
  51. package/dist/esm/models/StudyObjectiveCanvasDocument.js +55 -0
  52. package/dist/esm/models/StudyObjectiveConceptAttachment.d.ts +76 -0
  53. package/dist/esm/models/StudyObjectiveConceptAttachment.js +77 -0
  54. package/dist/esm/models/StudyObjectiveConceptAttachmentList.d.ts +33 -0
  55. package/dist/esm/models/StudyObjectiveConceptAttachmentList.js +44 -0
  56. package/dist/esm/models/StudyObjectiveConceptSummary.d.ts +56 -0
  57. package/dist/esm/models/StudyObjectiveConceptSummary.js +59 -0
  58. package/dist/esm/models/StudyObjectiveFileAttachment.d.ts +56 -0
  59. package/dist/esm/models/StudyObjectiveFileAttachment.js +59 -0
  60. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +50 -0
  61. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +58 -0
  62. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +39 -0
  63. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequest.js +48 -0
  64. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.d.ts +32 -0
  65. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.js +43 -0
  66. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionResponse.d.ts +33 -0
  67. package/dist/esm/models/TriggerStudyObjectiveConceptExtractionResponse.js +44 -0
  68. package/dist/esm/models/UpdateStudyObjectiveDto.d.ts +51 -0
  69. package/dist/esm/models/UpdateStudyObjectiveDto.js +48 -0
  70. package/dist/esm/models/UserFile.d.ts +75 -0
  71. package/dist/esm/models/UserFile.js +72 -0
  72. package/dist/esm/models/UserFileAssociation.d.ts +60 -0
  73. package/dist/esm/models/UserFileAssociation.js +64 -0
  74. package/dist/esm/models/UserFileUploadUrlFile.d.ts +56 -0
  75. package/dist/esm/models/UserFileUploadUrlFile.js +59 -0
  76. package/dist/esm/models/UserFileUploadUrlRequest.d.ts +33 -0
  77. package/dist/esm/models/UserFileUploadUrlRequest.js +44 -0
  78. package/dist/esm/models/UserFileUploadUrlRequestFilesInner.d.ts +52 -0
  79. package/dist/esm/models/UserFileUploadUrlRequestFilesInner.js +58 -0
  80. package/dist/esm/models/UserFileUploadUrlResponse.d.ts +33 -0
  81. package/dist/esm/models/UserFileUploadUrlResponse.js +44 -0
  82. package/dist/esm/models/index.d.ts +24 -0
  83. package/dist/esm/models/index.js +24 -0
  84. package/dist/models/AssociateUserFileRequest.d.ts +48 -0
  85. package/dist/models/AssociateUserFileRequest.js +64 -0
  86. package/dist/models/CreateObjectiveResourceDto.d.ts +47 -0
  87. package/dist/models/CreateObjectiveResourceDto.js +63 -0
  88. package/dist/models/CreateStudyObjectiveDto.d.ts +57 -0
  89. package/dist/models/CreateStudyObjectiveDto.js +61 -0
  90. package/dist/models/CreateStudyObjectiveDtoCanvasDocumentsInner.d.ts +50 -0
  91. package/dist/models/CreateStudyObjectiveDtoCanvasDocumentsInner.js +62 -0
  92. package/dist/models/ObjectiveResource.d.ts +71 -0
  93. package/dist/models/ObjectiveResource.js +79 -0
  94. package/dist/models/PaginatedObjectiveResources.d.ts +39 -0
  95. package/dist/models/PaginatedObjectiveResources.js +55 -0
  96. package/dist/models/PaginatedStudyObjectives.d.ts +39 -0
  97. package/dist/models/PaginatedStudyObjectives.js +55 -0
  98. package/dist/models/StudyObjective.d.ts +88 -0
  99. package/dist/models/StudyObjective.js +88 -0
  100. package/dist/models/StudyObjectiveCanvasDocument.d.ts +50 -0
  101. package/dist/models/StudyObjectiveCanvasDocument.js +62 -0
  102. package/dist/models/StudyObjectiveConceptAttachment.d.ts +76 -0
  103. package/dist/models/StudyObjectiveConceptAttachment.js +85 -0
  104. package/dist/models/StudyObjectiveConceptAttachmentList.d.ts +33 -0
  105. package/dist/models/StudyObjectiveConceptAttachmentList.js +51 -0
  106. package/dist/models/StudyObjectiveConceptSummary.d.ts +56 -0
  107. package/dist/models/StudyObjectiveConceptSummary.js +66 -0
  108. package/dist/models/StudyObjectiveFileAttachment.d.ts +56 -0
  109. package/dist/models/StudyObjectiveFileAttachment.js +66 -0
  110. package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.d.ts +50 -0
  111. package/dist/models/TriggerStudyObjectiveConceptExtractionItemStatus.js +66 -0
  112. package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.d.ts +39 -0
  113. package/dist/models/TriggerStudyObjectiveConceptExtractionRequest.js +55 -0
  114. package/dist/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.d.ts +32 -0
  115. package/dist/models/TriggerStudyObjectiveConceptExtractionRequestItemsInner.js +50 -0
  116. package/dist/models/TriggerStudyObjectiveConceptExtractionResponse.d.ts +33 -0
  117. package/dist/models/TriggerStudyObjectiveConceptExtractionResponse.js +51 -0
  118. package/dist/models/UpdateStudyObjectiveDto.d.ts +51 -0
  119. package/dist/models/UpdateStudyObjectiveDto.js +55 -0
  120. package/dist/models/UserFile.d.ts +75 -0
  121. package/dist/models/UserFile.js +79 -0
  122. package/dist/models/UserFileAssociation.d.ts +60 -0
  123. package/dist/models/UserFileAssociation.js +72 -0
  124. package/dist/models/UserFileUploadUrlFile.d.ts +56 -0
  125. package/dist/models/UserFileUploadUrlFile.js +66 -0
  126. package/dist/models/UserFileUploadUrlRequest.d.ts +33 -0
  127. package/dist/models/UserFileUploadUrlRequest.js +51 -0
  128. package/dist/models/UserFileUploadUrlRequestFilesInner.d.ts +52 -0
  129. package/dist/models/UserFileUploadUrlRequestFilesInner.js +66 -0
  130. package/dist/models/UserFileUploadUrlResponse.d.ts +33 -0
  131. package/dist/models/UserFileUploadUrlResponse.js +51 -0
  132. package/dist/models/index.d.ts +24 -0
  133. package/dist/models/index.js +24 -0
  134. package/package.json +1 -1
@@ -0,0 +1,55 @@
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
+ /**
15
+ * Check if a given object implements the CreateStudyObjectiveDtoCanvasDocumentsInner interface.
16
+ */
17
+ export function instanceOfCreateStudyObjectiveDtoCanvasDocumentsInner(value) {
18
+ if (!('canonicalId' in value) || value['canonicalId'] === undefined)
19
+ return false;
20
+ if (!('displayName' in value) || value['displayName'] === undefined)
21
+ return false;
22
+ if (!('filename' in value) || value['filename'] === undefined)
23
+ return false;
24
+ if (!('contentType' in value) || value['contentType'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSON(json) {
29
+ return CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSONTyped(json, false);
30
+ }
31
+ export function CreateStudyObjectiveDtoCanvasDocumentsInnerFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'canonicalId': json['canonicalId'],
37
+ 'displayName': json['displayName'],
38
+ 'filename': json['filename'],
39
+ 'contentType': json['contentType'],
40
+ };
41
+ }
42
+ export function CreateStudyObjectiveDtoCanvasDocumentsInnerToJSON(json) {
43
+ return CreateStudyObjectiveDtoCanvasDocumentsInnerToJSONTyped(json, false);
44
+ }
45
+ export function CreateStudyObjectiveDtoCanvasDocumentsInnerToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'canonicalId': value['canonicalId'],
51
+ 'displayName': value['displayName'],
52
+ 'filename': value['filename'],
53
+ 'contentType': value['contentType'],
54
+ };
55
+ }
@@ -0,0 +1,71 @@
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 ObjectiveResource
16
+ */
17
+ export interface ObjectiveResource {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ObjectiveResource
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof ObjectiveResource
28
+ */
29
+ studyObjectiveId: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ObjectiveResource
34
+ */
35
+ accountUserId: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ObjectiveResource
40
+ */
41
+ chatId: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof ObjectiveResource
46
+ */
47
+ resourceType: ObjectiveResourceResourceTypeEnum;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof ObjectiveResource
52
+ */
53
+ createdAt: Date;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const ObjectiveResourceResourceTypeEnum: {
59
+ readonly Chat: "chat";
60
+ readonly Quiz: "quiz";
61
+ readonly Flashcard: "flashcard";
62
+ };
63
+ export type ObjectiveResourceResourceTypeEnum = typeof ObjectiveResourceResourceTypeEnum[keyof typeof ObjectiveResourceResourceTypeEnum];
64
+ /**
65
+ * Check if a given object implements the ObjectiveResource interface.
66
+ */
67
+ export declare function instanceOfObjectiveResource(value: object): value is ObjectiveResource;
68
+ export declare function ObjectiveResourceFromJSON(json: any): ObjectiveResource;
69
+ export declare function ObjectiveResourceFromJSONTyped(json: any, ignoreDiscriminator: boolean): ObjectiveResource;
70
+ export declare function ObjectiveResourceToJSON(json: any): ObjectiveResource;
71
+ export declare function ObjectiveResourceToJSONTyped(value?: ObjectiveResource | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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
+ /**
15
+ * @export
16
+ */
17
+ export const ObjectiveResourceResourceTypeEnum = {
18
+ Chat: 'chat',
19
+ Quiz: 'quiz',
20
+ Flashcard: 'flashcard'
21
+ };
22
+ /**
23
+ * Check if a given object implements the ObjectiveResource interface.
24
+ */
25
+ export function instanceOfObjectiveResource(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('studyObjectiveId' in value) || value['studyObjectiveId'] === undefined)
29
+ return false;
30
+ if (!('accountUserId' in value) || value['accountUserId'] === undefined)
31
+ return false;
32
+ if (!('chatId' in value) || value['chatId'] === undefined)
33
+ return false;
34
+ if (!('resourceType' in value) || value['resourceType'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ export function ObjectiveResourceFromJSON(json) {
41
+ return ObjectiveResourceFromJSONTyped(json, false);
42
+ }
43
+ export function ObjectiveResourceFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'id': json['id'],
49
+ 'studyObjectiveId': json['studyObjectiveId'],
50
+ 'accountUserId': json['accountUserId'],
51
+ 'chatId': json['chatId'],
52
+ 'resourceType': json['resourceType'],
53
+ 'createdAt': (new Date(json['createdAt'])),
54
+ };
55
+ }
56
+ export function ObjectiveResourceToJSON(json) {
57
+ return ObjectiveResourceToJSONTyped(json, false);
58
+ }
59
+ export function ObjectiveResourceToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'id': value['id'],
65
+ 'studyObjectiveId': value['studyObjectiveId'],
66
+ 'accountUserId': value['accountUserId'],
67
+ 'chatId': value['chatId'],
68
+ 'resourceType': value['resourceType'],
69
+ 'createdAt': value['createdAt'].toISOString(),
70
+ };
71
+ }
@@ -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 { ObjectiveResource } from './ObjectiveResource';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedObjectiveResources
17
+ */
18
+ export interface PaginatedObjectiveResources {
19
+ /**
20
+ * Array of objective resources
21
+ * @type {Array<ObjectiveResource>}
22
+ * @memberof PaginatedObjectiveResources
23
+ */
24
+ data: Array<ObjectiveResource>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedObjectiveResources
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedObjectiveResources interface.
34
+ */
35
+ export declare function instanceOfPaginatedObjectiveResources(value: object): value is PaginatedObjectiveResources;
36
+ export declare function PaginatedObjectiveResourcesFromJSON(json: any): PaginatedObjectiveResources;
37
+ export declare function PaginatedObjectiveResourcesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedObjectiveResources;
38
+ export declare function PaginatedObjectiveResourcesToJSON(json: any): PaginatedObjectiveResources;
39
+ export declare function PaginatedObjectiveResourcesToJSONTyped(value?: PaginatedObjectiveResources | 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 { ObjectiveResourceFromJSON, ObjectiveResourceToJSON, } from './ObjectiveResource';
15
+ /**
16
+ * Check if a given object implements the PaginatedObjectiveResources interface.
17
+ */
18
+ export function instanceOfPaginatedObjectiveResources(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 PaginatedObjectiveResourcesFromJSON(json) {
26
+ return PaginatedObjectiveResourcesFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedObjectiveResourcesFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(ObjectiveResourceFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedObjectiveResourcesToJSON(json) {
38
+ return PaginatedObjectiveResourcesToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedObjectiveResourcesToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(ObjectiveResourceToJSON)),
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 { StudyObjective } from './StudyObjective';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedStudyObjectives
17
+ */
18
+ export interface PaginatedStudyObjectives {
19
+ /**
20
+ * Array of study objectives
21
+ * @type {Array<StudyObjective>}
22
+ * @memberof PaginatedStudyObjectives
23
+ */
24
+ data: Array<StudyObjective>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedStudyObjectives
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedStudyObjectives interface.
34
+ */
35
+ export declare function instanceOfPaginatedStudyObjectives(value: object): value is PaginatedStudyObjectives;
36
+ export declare function PaginatedStudyObjectivesFromJSON(json: any): PaginatedStudyObjectives;
37
+ export declare function PaginatedStudyObjectivesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedStudyObjectives;
38
+ export declare function PaginatedStudyObjectivesToJSON(json: any): PaginatedStudyObjectives;
39
+ export declare function PaginatedStudyObjectivesToJSONTyped(value?: PaginatedStudyObjectives | 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 { StudyObjectiveFromJSON, StudyObjectiveToJSON, } from './StudyObjective';
15
+ /**
16
+ * Check if a given object implements the PaginatedStudyObjectives interface.
17
+ */
18
+ export function instanceOfPaginatedStudyObjectives(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 PaginatedStudyObjectivesFromJSON(json) {
26
+ return PaginatedStudyObjectivesFromJSONTyped(json, false);
27
+ }
28
+ export function PaginatedStudyObjectivesFromJSONTyped(json, ignoreDiscriminator) {
29
+ if (json == null) {
30
+ return json;
31
+ }
32
+ return {
33
+ 'data': (json['data'].map(StudyObjectiveFromJSON)),
34
+ 'nextCursor': json['nextCursor'],
35
+ };
36
+ }
37
+ export function PaginatedStudyObjectivesToJSON(json) {
38
+ return PaginatedStudyObjectivesToJSONTyped(json, false);
39
+ }
40
+ export function PaginatedStudyObjectivesToJSONTyped(value, ignoreDiscriminator = false) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'data': (value['data'].map(StudyObjectiveToJSON)),
46
+ 'nextCursor': value['nextCursor'],
47
+ };
48
+ }
@@ -0,0 +1,88 @@
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 { StudyObjectiveFileAttachment } from './StudyObjectiveFileAttachment';
13
+ import type { StudyObjectiveCanvasDocument } from './StudyObjectiveCanvasDocument';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface StudyObjective
18
+ */
19
+ export interface StudyObjective {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof StudyObjective
24
+ */
25
+ id: string;
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof StudyObjective
30
+ */
31
+ accountUserId: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof StudyObjective
36
+ */
37
+ courseId: string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof StudyObjective
42
+ */
43
+ title: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof StudyObjective
48
+ */
49
+ notes: string | null;
50
+ /**
51
+ *
52
+ * @type {Array<StudyObjectiveFileAttachment>}
53
+ * @memberof StudyObjective
54
+ */
55
+ fileAttachments: Array<StudyObjectiveFileAttachment>;
56
+ /**
57
+ *
58
+ * @type {Array<StudyObjectiveCanvasDocument>}
59
+ * @memberof StudyObjective
60
+ */
61
+ canvasDocuments: Array<StudyObjectiveCanvasDocument>;
62
+ /**
63
+ *
64
+ * @type {Date}
65
+ * @memberof StudyObjective
66
+ */
67
+ dueAt: Date | null;
68
+ /**
69
+ *
70
+ * @type {Date}
71
+ * @memberof StudyObjective
72
+ */
73
+ createdAt: Date;
74
+ /**
75
+ *
76
+ * @type {Date}
77
+ * @memberof StudyObjective
78
+ */
79
+ updatedAt: Date;
80
+ }
81
+ /**
82
+ * Check if a given object implements the StudyObjective interface.
83
+ */
84
+ export declare function instanceOfStudyObjective(value: object): value is StudyObjective;
85
+ export declare function StudyObjectiveFromJSON(json: any): StudyObjective;
86
+ export declare function StudyObjectiveFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyObjective;
87
+ export declare function StudyObjectiveToJSON(json: any): StudyObjective;
88
+ export declare function StudyObjectiveToJSONTyped(value?: StudyObjective | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,81 @@
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 { StudyObjectiveFileAttachmentFromJSON, StudyObjectiveFileAttachmentToJSON, } from './StudyObjectiveFileAttachment';
15
+ import { StudyObjectiveCanvasDocumentFromJSON, StudyObjectiveCanvasDocumentToJSON, } from './StudyObjectiveCanvasDocument';
16
+ /**
17
+ * Check if a given object implements the StudyObjective interface.
18
+ */
19
+ export function instanceOfStudyObjective(value) {
20
+ if (!('id' in value) || value['id'] === undefined)
21
+ return false;
22
+ if (!('accountUserId' in value) || value['accountUserId'] === undefined)
23
+ return false;
24
+ if (!('courseId' in value) || value['courseId'] === undefined)
25
+ return false;
26
+ if (!('title' in value) || value['title'] === undefined)
27
+ return false;
28
+ if (!('notes' in value) || value['notes'] === undefined)
29
+ return false;
30
+ if (!('fileAttachments' in value) || value['fileAttachments'] === undefined)
31
+ return false;
32
+ if (!('canvasDocuments' in value) || value['canvasDocuments'] === undefined)
33
+ return false;
34
+ if (!('dueAt' in value) || value['dueAt'] === undefined)
35
+ return false;
36
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
37
+ return false;
38
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
39
+ return false;
40
+ return true;
41
+ }
42
+ export function StudyObjectiveFromJSON(json) {
43
+ return StudyObjectiveFromJSONTyped(json, false);
44
+ }
45
+ export function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
46
+ if (json == null) {
47
+ return json;
48
+ }
49
+ return {
50
+ 'id': json['id'],
51
+ 'accountUserId': json['accountUserId'],
52
+ 'courseId': json['courseId'],
53
+ 'title': json['title'],
54
+ 'notes': json['notes'],
55
+ 'fileAttachments': (json['fileAttachments'].map(StudyObjectiveFileAttachmentFromJSON)),
56
+ 'canvasDocuments': (json['canvasDocuments'].map(StudyObjectiveCanvasDocumentFromJSON)),
57
+ 'dueAt': (json['dueAt'] == null ? null : new Date(json['dueAt'])),
58
+ 'createdAt': (new Date(json['createdAt'])),
59
+ 'updatedAt': (new Date(json['updatedAt'])),
60
+ };
61
+ }
62
+ export function StudyObjectiveToJSON(json) {
63
+ return StudyObjectiveToJSONTyped(json, false);
64
+ }
65
+ export function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'id': value['id'],
71
+ 'accountUserId': value['accountUserId'],
72
+ 'courseId': value['courseId'],
73
+ 'title': value['title'],
74
+ 'notes': value['notes'],
75
+ 'fileAttachments': (value['fileAttachments'].map(StudyObjectiveFileAttachmentToJSON)),
76
+ 'canvasDocuments': (value['canvasDocuments'].map(StudyObjectiveCanvasDocumentToJSON)),
77
+ 'dueAt': value['dueAt'] == null ? value['dueAt'] : value['dueAt'].toISOString(),
78
+ 'createdAt': value['createdAt'].toISOString(),
79
+ 'updatedAt': value['updatedAt'].toISOString(),
80
+ };
81
+ }
@@ -0,0 +1,50 @@
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 StudyObjectiveCanvasDocument
16
+ */
17
+ export interface StudyObjectiveCanvasDocument {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StudyObjectiveCanvasDocument
22
+ */
23
+ canonicalId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StudyObjectiveCanvasDocument
28
+ */
29
+ displayName: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof StudyObjectiveCanvasDocument
34
+ */
35
+ filename: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof StudyObjectiveCanvasDocument
40
+ */
41
+ contentType: string;
42
+ }
43
+ /**
44
+ * Check if a given object implements the StudyObjectiveCanvasDocument interface.
45
+ */
46
+ export declare function instanceOfStudyObjectiveCanvasDocument(value: object): value is StudyObjectiveCanvasDocument;
47
+ export declare function StudyObjectiveCanvasDocumentFromJSON(json: any): StudyObjectiveCanvasDocument;
48
+ export declare function StudyObjectiveCanvasDocumentFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyObjectiveCanvasDocument;
49
+ export declare function StudyObjectiveCanvasDocumentToJSON(json: any): StudyObjectiveCanvasDocument;
50
+ export declare function StudyObjectiveCanvasDocumentToJSONTyped(value?: StudyObjectiveCanvasDocument | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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
+ /**
15
+ * Check if a given object implements the StudyObjectiveCanvasDocument interface.
16
+ */
17
+ export function instanceOfStudyObjectiveCanvasDocument(value) {
18
+ if (!('canonicalId' in value) || value['canonicalId'] === undefined)
19
+ return false;
20
+ if (!('displayName' in value) || value['displayName'] === undefined)
21
+ return false;
22
+ if (!('filename' in value) || value['filename'] === undefined)
23
+ return false;
24
+ if (!('contentType' in value) || value['contentType'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function StudyObjectiveCanvasDocumentFromJSON(json) {
29
+ return StudyObjectiveCanvasDocumentFromJSONTyped(json, false);
30
+ }
31
+ export function StudyObjectiveCanvasDocumentFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'canonicalId': json['canonicalId'],
37
+ 'displayName': json['displayName'],
38
+ 'filename': json['filename'],
39
+ 'contentType': json['contentType'],
40
+ };
41
+ }
42
+ export function StudyObjectiveCanvasDocumentToJSON(json) {
43
+ return StudyObjectiveCanvasDocumentToJSONTyped(json, false);
44
+ }
45
+ export function StudyObjectiveCanvasDocumentToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'canonicalId': value['canonicalId'],
51
+ 'displayName': value['displayName'],
52
+ 'filename': value['filename'],
53
+ 'contentType': value['contentType'],
54
+ };
55
+ }