@instructure/athena-api-client 3.20.4 → 3.21.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 (42) hide show
  1. package/README.md +11 -0
  2. package/dist/apis/FeaturesApi.d.ts +14 -1
  3. package/dist/apis/FeaturesApi.js +37 -0
  4. package/dist/apis/StudyPlansApi.d.ts +76 -0
  5. package/dist/apis/StudyPlansApi.js +206 -0
  6. package/dist/apis/index.d.ts +1 -0
  7. package/dist/apis/index.js +1 -0
  8. package/dist/esm/apis/FeaturesApi.d.ts +14 -1
  9. package/dist/esm/apis/FeaturesApi.js +38 -1
  10. package/dist/esm/apis/StudyPlansApi.d.ts +76 -0
  11. package/dist/esm/apis/StudyPlansApi.js +202 -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/CreateStudyPlanDto.d.ts +39 -0
  15. package/dist/esm/models/CreateStudyPlanDto.js +46 -0
  16. package/dist/esm/models/CreateStudyPlanDtoActivitiesInner.d.ts +56 -0
  17. package/dist/esm/models/CreateStudyPlanDtoActivitiesInner.js +53 -0
  18. package/dist/esm/models/StudyPlan.d.ts +82 -0
  19. package/dist/esm/models/StudyPlan.js +78 -0
  20. package/dist/esm/models/StudyPlanActivity.d.ts +74 -0
  21. package/dist/esm/models/StudyPlanActivity.js +71 -0
  22. package/dist/esm/models/UpdateActivityCompletionDto.d.ts +32 -0
  23. package/dist/esm/models/UpdateActivityCompletionDto.js +43 -0
  24. package/dist/esm/models/UserFeatures.d.ts +32 -0
  25. package/dist/esm/models/UserFeatures.js +43 -0
  26. package/dist/esm/models/index.d.ts +6 -0
  27. package/dist/esm/models/index.js +6 -0
  28. package/dist/models/CreateStudyPlanDto.d.ts +39 -0
  29. package/dist/models/CreateStudyPlanDto.js +53 -0
  30. package/dist/models/CreateStudyPlanDtoActivitiesInner.d.ts +56 -0
  31. package/dist/models/CreateStudyPlanDtoActivitiesInner.js +60 -0
  32. package/dist/models/StudyPlan.d.ts +82 -0
  33. package/dist/models/StudyPlan.js +86 -0
  34. package/dist/models/StudyPlanActivity.d.ts +74 -0
  35. package/dist/models/StudyPlanActivity.js +78 -0
  36. package/dist/models/UpdateActivityCompletionDto.d.ts +32 -0
  37. package/dist/models/UpdateActivityCompletionDto.js +50 -0
  38. package/dist/models/UserFeatures.d.ts +32 -0
  39. package/dist/models/UserFeatures.js +50 -0
  40. package/dist/models/index.d.ts +6 -0
  41. package/dist/models/index.js +6 -0
  42. package/package.json +1 -1
@@ -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
+ * Check if a given object implements the StudyPlanActivity interface.
16
+ */
17
+ export function instanceOfStudyPlanActivity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('studyPlanId' in value) || value['studyPlanId'] === undefined)
21
+ return false;
22
+ if (!('position' in value) || value['position'] === undefined)
23
+ return false;
24
+ if (!('label' in value) || value['label'] === undefined)
25
+ return false;
26
+ if (!('duration' in value) || value['duration'] === undefined)
27
+ return false;
28
+ if (!('title' in value) || value['title'] === undefined)
29
+ return false;
30
+ if (!('description' in value) || value['description'] === undefined)
31
+ return false;
32
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ export function StudyPlanActivityFromJSON(json) {
37
+ return StudyPlanActivityFromJSONTyped(json, false);
38
+ }
39
+ export function StudyPlanActivityFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'studyPlanId': json['studyPlanId'],
46
+ 'position': json['position'],
47
+ 'label': json['label'],
48
+ 'duration': json['duration'],
49
+ 'title': json['title'],
50
+ 'description': json['description'],
51
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
52
+ };
53
+ }
54
+ export function StudyPlanActivityToJSON(json) {
55
+ return StudyPlanActivityToJSONTyped(json, false);
56
+ }
57
+ export function StudyPlanActivityToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'id': value['id'],
63
+ 'studyPlanId': value['studyPlanId'],
64
+ 'position': value['position'],
65
+ 'label': value['label'],
66
+ 'duration': value['duration'],
67
+ 'title': value['title'],
68
+ 'description': value['description'],
69
+ 'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
70
+ };
71
+ }
@@ -0,0 +1,32 @@
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 UpdateActivityCompletionDto
16
+ */
17
+ export interface UpdateActivityCompletionDto {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof UpdateActivityCompletionDto
22
+ */
23
+ completed: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateActivityCompletionDto interface.
27
+ */
28
+ export declare function instanceOfUpdateActivityCompletionDto(value: object): value is UpdateActivityCompletionDto;
29
+ export declare function UpdateActivityCompletionDtoFromJSON(json: any): UpdateActivityCompletionDto;
30
+ export declare function UpdateActivityCompletionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateActivityCompletionDto;
31
+ export declare function UpdateActivityCompletionDtoToJSON(json: any): UpdateActivityCompletionDto;
32
+ export declare function UpdateActivityCompletionDtoToJSONTyped(value?: UpdateActivityCompletionDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 UpdateActivityCompletionDto interface.
16
+ */
17
+ export function instanceOfUpdateActivityCompletionDto(value) {
18
+ if (!('completed' in value) || value['completed'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateActivityCompletionDtoFromJSON(json) {
23
+ return UpdateActivityCompletionDtoFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateActivityCompletionDtoFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'completed': json['completed'],
31
+ };
32
+ }
33
+ export function UpdateActivityCompletionDtoToJSON(json) {
34
+ return UpdateActivityCompletionDtoToJSONTyped(json, false);
35
+ }
36
+ export function UpdateActivityCompletionDtoToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'completed': value['completed'],
42
+ };
43
+ }
@@ -0,0 +1,32 @@
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 UserFeatures
16
+ */
17
+ export interface UserFeatures {
18
+ /**
19
+ * Names of the features the calling user is entitled to, sorted alphabetically.
20
+ * @type {Array<string>}
21
+ * @memberof UserFeatures
22
+ */
23
+ features: Array<string>;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UserFeatures interface.
27
+ */
28
+ export declare function instanceOfUserFeatures(value: object): value is UserFeatures;
29
+ export declare function UserFeaturesFromJSON(json: any): UserFeatures;
30
+ export declare function UserFeaturesFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserFeatures;
31
+ export declare function UserFeaturesToJSON(json: any): UserFeatures;
32
+ export declare function UserFeaturesToJSONTyped(value?: UserFeatures | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,43 @@
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 UserFeatures interface.
16
+ */
17
+ export function instanceOfUserFeatures(value) {
18
+ if (!('features' in value) || value['features'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UserFeaturesFromJSON(json) {
23
+ return UserFeaturesFromJSONTyped(json, false);
24
+ }
25
+ export function UserFeaturesFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'features': json['features'],
31
+ };
32
+ }
33
+ export function UserFeaturesToJSON(json) {
34
+ return UserFeaturesToJSONTyped(json, false);
35
+ }
36
+ export function UserFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'features': value['features'],
42
+ };
43
+ }
@@ -53,6 +53,8 @@ export * from './CreatePracticeQuizRequest';
53
53
  export * from './CreateStudyObjectiveDto';
54
54
  export * from './CreateStudyObjectiveDtoCanvasDocumentsInner';
55
55
  export * from './CreateStudyObjectiveDtoCanvasObject';
56
+ export * from './CreateStudyPlanDto';
57
+ export * from './CreateStudyPlanDtoActivitiesInner';
56
58
  export * from './CreateTokenRequest';
57
59
  export * from './CreateTokenResponse';
58
60
  export * from './DailyQuizStatus';
@@ -105,6 +107,8 @@ export * from './StudyObjectiveConceptAttachment';
105
107
  export * from './StudyObjectiveConceptAttachmentList';
106
108
  export * from './StudyObjectiveConceptSummary';
107
109
  export * from './StudyObjectiveFileAttachment';
110
+ export * from './StudyPlan';
111
+ export * from './StudyPlanActivity';
108
112
  export * from './SubmitQuizResponseRequest';
109
113
  export * from './SyllabusAnalysisObjective';
110
114
  export * from './SyllabusAnalysisStatus';
@@ -124,6 +128,7 @@ export * from './TriggerStudyObjectiveConceptExtractionResponse';
124
128
  export * from './TriggerSyllabusAnalysisRequest';
125
129
  export * from './TriggerSyllabusAnalysisRequestFile';
126
130
  export * from './UpdateAccountDto';
131
+ export * from './UpdateActivityCompletionDto';
127
132
  export * from './UpdateChatRequest';
128
133
  export * from './UpdateFeatureDto';
129
134
  export * from './UpdatePlanDto';
@@ -142,6 +147,7 @@ export * from './UpsertVoteRequest';
142
147
  export * from './UserConcept';
143
148
  export * from './UserConceptConcept';
144
149
  export * from './UserContext';
150
+ export * from './UserFeatures';
145
151
  export * from './UserFile';
146
152
  export * from './UserFileAssociation';
147
153
  export * from './UserFileUploadUrlFile';
@@ -55,6 +55,8 @@ export * from './CreatePracticeQuizRequest';
55
55
  export * from './CreateStudyObjectiveDto';
56
56
  export * from './CreateStudyObjectiveDtoCanvasDocumentsInner';
57
57
  export * from './CreateStudyObjectiveDtoCanvasObject';
58
+ export * from './CreateStudyPlanDto';
59
+ export * from './CreateStudyPlanDtoActivitiesInner';
58
60
  export * from './CreateTokenRequest';
59
61
  export * from './CreateTokenResponse';
60
62
  export * from './DailyQuizStatus';
@@ -107,6 +109,8 @@ export * from './StudyObjectiveConceptAttachment';
107
109
  export * from './StudyObjectiveConceptAttachmentList';
108
110
  export * from './StudyObjectiveConceptSummary';
109
111
  export * from './StudyObjectiveFileAttachment';
112
+ export * from './StudyPlan';
113
+ export * from './StudyPlanActivity';
110
114
  export * from './SubmitQuizResponseRequest';
111
115
  export * from './SyllabusAnalysisObjective';
112
116
  export * from './SyllabusAnalysisStatus';
@@ -126,6 +130,7 @@ export * from './TriggerStudyObjectiveConceptExtractionResponse';
126
130
  export * from './TriggerSyllabusAnalysisRequest';
127
131
  export * from './TriggerSyllabusAnalysisRequestFile';
128
132
  export * from './UpdateAccountDto';
133
+ export * from './UpdateActivityCompletionDto';
129
134
  export * from './UpdateChatRequest';
130
135
  export * from './UpdateFeatureDto';
131
136
  export * from './UpdatePlanDto';
@@ -144,6 +149,7 @@ export * from './UpsertVoteRequest';
144
149
  export * from './UserConcept';
145
150
  export * from './UserConceptConcept';
146
151
  export * from './UserContext';
152
+ export * from './UserFeatures';
147
153
  export * from './UserFile';
148
154
  export * from './UserFileAssociation';
149
155
  export * from './UserFileUploadUrlFile';
@@ -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 { CreateStudyPlanDtoActivitiesInner } from './CreateStudyPlanDtoActivitiesInner';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface CreateStudyPlanDto
17
+ */
18
+ export interface CreateStudyPlanDto {
19
+ /**
20
+ *
21
+ * @type {Array<CreateStudyPlanDtoActivitiesInner>}
22
+ * @memberof CreateStudyPlanDto
23
+ */
24
+ activities: Array<CreateStudyPlanDtoActivitiesInner>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof CreateStudyPlanDto
29
+ */
30
+ sourceToolCallId?: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the CreateStudyPlanDto interface.
34
+ */
35
+ export declare function instanceOfCreateStudyPlanDto(value: object): value is CreateStudyPlanDto;
36
+ export declare function CreateStudyPlanDtoFromJSON(json: any): CreateStudyPlanDto;
37
+ export declare function CreateStudyPlanDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyPlanDto;
38
+ export declare function CreateStudyPlanDtoToJSON(json: any): CreateStudyPlanDto;
39
+ export declare function CreateStudyPlanDtoToJSONTyped(value?: CreateStudyPlanDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfCreateStudyPlanDto = instanceOfCreateStudyPlanDto;
17
+ exports.CreateStudyPlanDtoFromJSON = CreateStudyPlanDtoFromJSON;
18
+ exports.CreateStudyPlanDtoFromJSONTyped = CreateStudyPlanDtoFromJSONTyped;
19
+ exports.CreateStudyPlanDtoToJSON = CreateStudyPlanDtoToJSON;
20
+ exports.CreateStudyPlanDtoToJSONTyped = CreateStudyPlanDtoToJSONTyped;
21
+ const CreateStudyPlanDtoActivitiesInner_1 = require("./CreateStudyPlanDtoActivitiesInner");
22
+ /**
23
+ * Check if a given object implements the CreateStudyPlanDto interface.
24
+ */
25
+ function instanceOfCreateStudyPlanDto(value) {
26
+ if (!('activities' in value) || value['activities'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function CreateStudyPlanDtoFromJSON(json) {
31
+ return CreateStudyPlanDtoFromJSONTyped(json, false);
32
+ }
33
+ function CreateStudyPlanDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'activities': (json['activities'].map(CreateStudyPlanDtoActivitiesInner_1.CreateStudyPlanDtoActivitiesInnerFromJSON)),
39
+ 'sourceToolCallId': json['sourceToolCallId'] == null ? undefined : json['sourceToolCallId'],
40
+ };
41
+ }
42
+ function CreateStudyPlanDtoToJSON(json) {
43
+ return CreateStudyPlanDtoToJSONTyped(json, false);
44
+ }
45
+ function CreateStudyPlanDtoToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'activities': (value['activities'].map(CreateStudyPlanDtoActivitiesInner_1.CreateStudyPlanDtoActivitiesInnerToJSON)),
51
+ 'sourceToolCallId': value['sourceToolCallId'],
52
+ };
53
+ }
@@ -0,0 +1,56 @@
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 CreateStudyPlanDtoActivitiesInner
16
+ */
17
+ export interface CreateStudyPlanDtoActivitiesInner {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof CreateStudyPlanDtoActivitiesInner
22
+ */
23
+ position: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof CreateStudyPlanDtoActivitiesInner
28
+ */
29
+ label?: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof CreateStudyPlanDtoActivitiesInner
34
+ */
35
+ duration?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof CreateStudyPlanDtoActivitiesInner
40
+ */
41
+ title: string;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof CreateStudyPlanDtoActivitiesInner
46
+ */
47
+ description?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
51
+ */
52
+ export declare function instanceOfCreateStudyPlanDtoActivitiesInner(value: object): value is CreateStudyPlanDtoActivitiesInner;
53
+ export declare function CreateStudyPlanDtoActivitiesInnerFromJSON(json: any): CreateStudyPlanDtoActivitiesInner;
54
+ export declare function CreateStudyPlanDtoActivitiesInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateStudyPlanDtoActivitiesInner;
55
+ export declare function CreateStudyPlanDtoActivitiesInnerToJSON(json: any): CreateStudyPlanDtoActivitiesInner;
56
+ export declare function CreateStudyPlanDtoActivitiesInnerToJSONTyped(value?: CreateStudyPlanDtoActivitiesInner | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
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.instanceOfCreateStudyPlanDtoActivitiesInner = instanceOfCreateStudyPlanDtoActivitiesInner;
17
+ exports.CreateStudyPlanDtoActivitiesInnerFromJSON = CreateStudyPlanDtoActivitiesInnerFromJSON;
18
+ exports.CreateStudyPlanDtoActivitiesInnerFromJSONTyped = CreateStudyPlanDtoActivitiesInnerFromJSONTyped;
19
+ exports.CreateStudyPlanDtoActivitiesInnerToJSON = CreateStudyPlanDtoActivitiesInnerToJSON;
20
+ exports.CreateStudyPlanDtoActivitiesInnerToJSONTyped = CreateStudyPlanDtoActivitiesInnerToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
23
+ */
24
+ function instanceOfCreateStudyPlanDtoActivitiesInner(value) {
25
+ if (!('position' in value) || value['position'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreateStudyPlanDtoActivitiesInnerFromJSON(json) {
32
+ return CreateStudyPlanDtoActivitiesInnerFromJSONTyped(json, false);
33
+ }
34
+ function CreateStudyPlanDtoActivitiesInnerFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'position': json['position'],
40
+ 'label': json['label'] == null ? undefined : json['label'],
41
+ 'duration': json['duration'] == null ? undefined : json['duration'],
42
+ 'title': json['title'],
43
+ 'description': json['description'] == null ? undefined : json['description'],
44
+ };
45
+ }
46
+ function CreateStudyPlanDtoActivitiesInnerToJSON(json) {
47
+ return CreateStudyPlanDtoActivitiesInnerToJSONTyped(json, false);
48
+ }
49
+ function CreateStudyPlanDtoActivitiesInnerToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'position': value['position'],
55
+ 'label': value['label'],
56
+ 'duration': value['duration'],
57
+ 'title': value['title'],
58
+ 'description': value['description'],
59
+ };
60
+ }
@@ -0,0 +1,82 @@
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 { StudyPlanActivity } from './StudyPlanActivity';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface StudyPlan
17
+ */
18
+ export interface StudyPlan {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof StudyPlan
23
+ */
24
+ id: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof StudyPlan
29
+ */
30
+ accountUserId: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof StudyPlan
35
+ */
36
+ ownerType: StudyPlanOwnerTypeEnum;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof StudyPlan
41
+ */
42
+ ownerId: string;
43
+ /**
44
+ * Tool call id of the proposal this plan was saved from, when it came from one.
45
+ * @type {string}
46
+ * @memberof StudyPlan
47
+ */
48
+ sourceToolCallId: string | null;
49
+ /**
50
+ *
51
+ * @type {Date}
52
+ * @memberof StudyPlan
53
+ */
54
+ createdAt: Date;
55
+ /**
56
+ *
57
+ * @type {Date}
58
+ * @memberof StudyPlan
59
+ */
60
+ updatedAt: Date;
61
+ /**
62
+ *
63
+ * @type {Array<StudyPlanActivity>}
64
+ * @memberof StudyPlan
65
+ */
66
+ activities: Array<StudyPlanActivity>;
67
+ }
68
+ /**
69
+ * @export
70
+ */
71
+ export declare const StudyPlanOwnerTypeEnum: {
72
+ readonly StudyObjective: "study_objective";
73
+ };
74
+ export type StudyPlanOwnerTypeEnum = typeof StudyPlanOwnerTypeEnum[keyof typeof StudyPlanOwnerTypeEnum];
75
+ /**
76
+ * Check if a given object implements the StudyPlan interface.
77
+ */
78
+ export declare function instanceOfStudyPlan(value: object): value is StudyPlan;
79
+ export declare function StudyPlanFromJSON(json: any): StudyPlan;
80
+ export declare function StudyPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyPlan;
81
+ export declare function StudyPlanToJSON(json: any): StudyPlan;
82
+ export declare function StudyPlanToJSONTyped(value?: StudyPlan | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
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.StudyPlanOwnerTypeEnum = void 0;
17
+ exports.instanceOfStudyPlan = instanceOfStudyPlan;
18
+ exports.StudyPlanFromJSON = StudyPlanFromJSON;
19
+ exports.StudyPlanFromJSONTyped = StudyPlanFromJSONTyped;
20
+ exports.StudyPlanToJSON = StudyPlanToJSON;
21
+ exports.StudyPlanToJSONTyped = StudyPlanToJSONTyped;
22
+ const StudyPlanActivity_1 = require("./StudyPlanActivity");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.StudyPlanOwnerTypeEnum = {
27
+ StudyObjective: 'study_objective'
28
+ };
29
+ /**
30
+ * Check if a given object implements the StudyPlan interface.
31
+ */
32
+ function instanceOfStudyPlan(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('accountUserId' in value) || value['accountUserId'] === undefined)
36
+ return false;
37
+ if (!('ownerType' in value) || value['ownerType'] === undefined)
38
+ return false;
39
+ if (!('ownerId' in value) || value['ownerId'] === undefined)
40
+ return false;
41
+ if (!('sourceToolCallId' in value) || value['sourceToolCallId'] === undefined)
42
+ return false;
43
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
44
+ return false;
45
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
46
+ return false;
47
+ if (!('activities' in value) || value['activities'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function StudyPlanFromJSON(json) {
52
+ return StudyPlanFromJSONTyped(json, false);
53
+ }
54
+ function StudyPlanFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'id': json['id'],
60
+ 'accountUserId': json['accountUserId'],
61
+ 'ownerType': json['ownerType'],
62
+ 'ownerId': json['ownerId'],
63
+ 'sourceToolCallId': json['sourceToolCallId'],
64
+ 'createdAt': (new Date(json['createdAt'])),
65
+ 'updatedAt': (new Date(json['updatedAt'])),
66
+ 'activities': (json['activities'].map(StudyPlanActivity_1.StudyPlanActivityFromJSON)),
67
+ };
68
+ }
69
+ function StudyPlanToJSON(json) {
70
+ return StudyPlanToJSONTyped(json, false);
71
+ }
72
+ function StudyPlanToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'accountUserId': value['accountUserId'],
79
+ 'ownerType': value['ownerType'],
80
+ 'ownerId': value['ownerId'],
81
+ 'sourceToolCallId': value['sourceToolCallId'],
82
+ 'createdAt': value['createdAt'].toISOString(),
83
+ 'updatedAt': value['updatedAt'].toISOString(),
84
+ 'activities': (value['activities'].map(StudyPlanActivity_1.StudyPlanActivityToJSON)),
85
+ };
86
+ }