@instructure/athena-api-client 3.20.4 → 3.22.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 (54) 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/StudyObjectivesApi.d.ts +2 -2
  5. package/dist/apis/StudyObjectivesApi.js +2 -2
  6. package/dist/apis/StudyPlansApi.d.ts +76 -0
  7. package/dist/apis/StudyPlansApi.js +206 -0
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +1 -0
  10. package/dist/esm/apis/FeaturesApi.d.ts +14 -1
  11. package/dist/esm/apis/FeaturesApi.js +38 -1
  12. package/dist/esm/apis/StudyObjectivesApi.d.ts +2 -2
  13. package/dist/esm/apis/StudyObjectivesApi.js +2 -2
  14. package/dist/esm/apis/StudyPlansApi.d.ts +76 -0
  15. package/dist/esm/apis/StudyPlansApi.js +202 -0
  16. package/dist/esm/apis/index.d.ts +1 -0
  17. package/dist/esm/apis/index.js +1 -0
  18. package/dist/esm/models/CreateObjectiveResourceDto.d.ts +7 -0
  19. package/dist/esm/models/CreateObjectiveResourceDto.js +4 -1
  20. package/dist/esm/models/CreateStudyPlanDto.d.ts +39 -0
  21. package/dist/esm/models/CreateStudyPlanDto.js +46 -0
  22. package/dist/esm/models/CreateStudyPlanDtoActivitiesInner.d.ts +56 -0
  23. package/dist/esm/models/CreateStudyPlanDtoActivitiesInner.js +53 -0
  24. package/dist/esm/models/ObjectiveResource.d.ts +7 -0
  25. package/dist/esm/models/ObjectiveResource.js +6 -1
  26. package/dist/esm/models/StudyPlan.d.ts +82 -0
  27. package/dist/esm/models/StudyPlan.js +78 -0
  28. package/dist/esm/models/StudyPlanActivity.d.ts +80 -0
  29. package/dist/esm/models/StudyPlanActivity.js +75 -0
  30. package/dist/esm/models/UpdateActivityCompletionDto.d.ts +32 -0
  31. package/dist/esm/models/UpdateActivityCompletionDto.js +43 -0
  32. package/dist/esm/models/UserFeatures.d.ts +32 -0
  33. package/dist/esm/models/UserFeatures.js +43 -0
  34. package/dist/esm/models/index.d.ts +6 -0
  35. package/dist/esm/models/index.js +6 -0
  36. package/dist/models/CreateObjectiveResourceDto.d.ts +7 -0
  37. package/dist/models/CreateObjectiveResourceDto.js +4 -1
  38. package/dist/models/CreateStudyPlanDto.d.ts +39 -0
  39. package/dist/models/CreateStudyPlanDto.js +53 -0
  40. package/dist/models/CreateStudyPlanDtoActivitiesInner.d.ts +56 -0
  41. package/dist/models/CreateStudyPlanDtoActivitiesInner.js +60 -0
  42. package/dist/models/ObjectiveResource.d.ts +7 -0
  43. package/dist/models/ObjectiveResource.js +6 -1
  44. package/dist/models/StudyPlan.d.ts +82 -0
  45. package/dist/models/StudyPlan.js +86 -0
  46. package/dist/models/StudyPlanActivity.d.ts +80 -0
  47. package/dist/models/StudyPlanActivity.js +82 -0
  48. package/dist/models/UpdateActivityCompletionDto.d.ts +32 -0
  49. package/dist/models/UpdateActivityCompletionDto.js +50 -0
  50. package/dist/models/UserFeatures.d.ts +32 -0
  51. package/dist/models/UserFeatures.js +50 -0
  52. package/dist/models/index.d.ts +6 -0
  53. package/dist/models/index.js +6 -0
  54. package/package.json +1 -1
@@ -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
+ }
@@ -45,6 +45,12 @@ export interface ObjectiveResource {
45
45
  * @memberof ObjectiveResource
46
46
  */
47
47
  resourceType: ObjectiveResourceResourceTypeEnum;
48
+ /**
49
+ * The study plan activity this chat was started from, or null when it was not launched from one. Goes null if that plan is later replaced or deleted — the resource itself survives.
50
+ * @type {string}
51
+ * @memberof ObjectiveResource
52
+ */
53
+ studyPlanActivityId: string | null;
48
54
  /**
49
55
  *
50
56
  * @type {Date}
@@ -59,6 +65,7 @@ export declare const ObjectiveResourceResourceTypeEnum: {
59
65
  readonly Chat: "chat";
60
66
  readonly Quiz: "quiz";
61
67
  readonly Flashcard: "flashcard";
68
+ readonly PlanActivity: "plan-activity";
62
69
  };
63
70
  export type ObjectiveResourceResourceTypeEnum = typeof ObjectiveResourceResourceTypeEnum[keyof typeof ObjectiveResourceResourceTypeEnum];
64
71
  /**
@@ -25,7 +25,8 @@ exports.ObjectiveResourceToJSONTyped = ObjectiveResourceToJSONTyped;
25
25
  exports.ObjectiveResourceResourceTypeEnum = {
26
26
  Chat: 'chat',
27
27
  Quiz: 'quiz',
28
- Flashcard: 'flashcard'
28
+ Flashcard: 'flashcard',
29
+ PlanActivity: 'plan-activity'
29
30
  };
30
31
  /**
31
32
  * Check if a given object implements the ObjectiveResource interface.
@@ -41,6 +42,8 @@ function instanceOfObjectiveResource(value) {
41
42
  return false;
42
43
  if (!('resourceType' in value) || value['resourceType'] === undefined)
43
44
  return false;
45
+ if (!('studyPlanActivityId' in value) || value['studyPlanActivityId'] === undefined)
46
+ return false;
44
47
  if (!('createdAt' in value) || value['createdAt'] === undefined)
45
48
  return false;
46
49
  return true;
@@ -58,6 +61,7 @@ function ObjectiveResourceFromJSONTyped(json, ignoreDiscriminator) {
58
61
  'accountUserId': json['accountUserId'],
59
62
  'chatId': json['chatId'],
60
63
  'resourceType': json['resourceType'],
64
+ 'studyPlanActivityId': json['studyPlanActivityId'],
61
65
  'createdAt': (new Date(json['createdAt'])),
62
66
  };
63
67
  }
@@ -74,6 +78,7 @@ function ObjectiveResourceToJSONTyped(value, ignoreDiscriminator = false) {
74
78
  'accountUserId': value['accountUserId'],
75
79
  'chatId': value['chatId'],
76
80
  'resourceType': value['resourceType'],
81
+ 'studyPlanActivityId': value['studyPlanActivityId'],
77
82
  'createdAt': value['createdAt'].toISOString(),
78
83
  };
79
84
  }
@@ -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
+ }
@@ -0,0 +1,80 @@
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 StudyPlanActivity
16
+ */
17
+ export interface StudyPlanActivity {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StudyPlanActivity
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof StudyPlanActivity
28
+ */
29
+ studyPlanId: string;
30
+ /**
31
+ * Sort key within the plan. Activities are returned in ascending order.
32
+ * @type {number}
33
+ * @memberof StudyPlanActivity
34
+ */
35
+ position: number;
36
+ /**
37
+ * Display-only label such as "Day 1" or "Aug 1". May be empty; it is never parsed for ordering.
38
+ * @type {string}
39
+ * @memberof StudyPlanActivity
40
+ */
41
+ label: string;
42
+ /**
43
+ * Free-form duration such as "30 min".
44
+ * @type {string}
45
+ * @memberof StudyPlanActivity
46
+ */
47
+ duration: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof StudyPlanActivity
52
+ */
53
+ title: string;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof StudyPlanActivity
58
+ */
59
+ description: string;
60
+ /**
61
+ * When the activity was completed, or null if it is not done.
62
+ * @type {Date}
63
+ * @memberof StudyPlanActivity
64
+ */
65
+ completedAt: Date | null;
66
+ /**
67
+ * The most recent chat started from this activity, or null when it has never been started. Reopen this chat rather than starting a second one.
68
+ * @type {string}
69
+ * @memberof StudyPlanActivity
70
+ */
71
+ chatId: string | null;
72
+ }
73
+ /**
74
+ * Check if a given object implements the StudyPlanActivity interface.
75
+ */
76
+ export declare function instanceOfStudyPlanActivity(value: object): value is StudyPlanActivity;
77
+ export declare function StudyPlanActivityFromJSON(json: any): StudyPlanActivity;
78
+ export declare function StudyPlanActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyPlanActivity;
79
+ export declare function StudyPlanActivityToJSON(json: any): StudyPlanActivity;
80
+ export declare function StudyPlanActivityToJSONTyped(value?: StudyPlanActivity | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.instanceOfStudyPlanActivity = instanceOfStudyPlanActivity;
17
+ exports.StudyPlanActivityFromJSON = StudyPlanActivityFromJSON;
18
+ exports.StudyPlanActivityFromJSONTyped = StudyPlanActivityFromJSONTyped;
19
+ exports.StudyPlanActivityToJSON = StudyPlanActivityToJSON;
20
+ exports.StudyPlanActivityToJSONTyped = StudyPlanActivityToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StudyPlanActivity interface.
23
+ */
24
+ function instanceOfStudyPlanActivity(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('studyPlanId' in value) || value['studyPlanId'] === undefined)
28
+ return false;
29
+ if (!('position' in value) || value['position'] === undefined)
30
+ return false;
31
+ if (!('label' in value) || value['label'] === undefined)
32
+ return false;
33
+ if (!('duration' in value) || value['duration'] === undefined)
34
+ return false;
35
+ if (!('title' in value) || value['title'] === undefined)
36
+ return false;
37
+ if (!('description' in value) || value['description'] === undefined)
38
+ return false;
39
+ if (!('completedAt' in value) || value['completedAt'] === undefined)
40
+ return false;
41
+ if (!('chatId' in value) || value['chatId'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function StudyPlanActivityFromJSON(json) {
46
+ return StudyPlanActivityFromJSONTyped(json, false);
47
+ }
48
+ function StudyPlanActivityFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'studyPlanId': json['studyPlanId'],
55
+ 'position': json['position'],
56
+ 'label': json['label'],
57
+ 'duration': json['duration'],
58
+ 'title': json['title'],
59
+ 'description': json['description'],
60
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
61
+ 'chatId': json['chatId'],
62
+ };
63
+ }
64
+ function StudyPlanActivityToJSON(json) {
65
+ return StudyPlanActivityToJSONTyped(json, false);
66
+ }
67
+ function StudyPlanActivityToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'studyPlanId': value['studyPlanId'],
74
+ 'position': value['position'],
75
+ 'label': value['label'],
76
+ 'duration': value['duration'],
77
+ 'title': value['title'],
78
+ 'description': value['description'],
79
+ 'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
80
+ 'chatId': value['chatId'],
81
+ };
82
+ }
@@ -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,50 @@
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.instanceOfUpdateActivityCompletionDto = instanceOfUpdateActivityCompletionDto;
17
+ exports.UpdateActivityCompletionDtoFromJSON = UpdateActivityCompletionDtoFromJSON;
18
+ exports.UpdateActivityCompletionDtoFromJSONTyped = UpdateActivityCompletionDtoFromJSONTyped;
19
+ exports.UpdateActivityCompletionDtoToJSON = UpdateActivityCompletionDtoToJSON;
20
+ exports.UpdateActivityCompletionDtoToJSONTyped = UpdateActivityCompletionDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateActivityCompletionDto interface.
23
+ */
24
+ function instanceOfUpdateActivityCompletionDto(value) {
25
+ if (!('completed' in value) || value['completed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateActivityCompletionDtoFromJSON(json) {
30
+ return UpdateActivityCompletionDtoFromJSONTyped(json, false);
31
+ }
32
+ function UpdateActivityCompletionDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'completed': json['completed'],
38
+ };
39
+ }
40
+ function UpdateActivityCompletionDtoToJSON(json) {
41
+ return UpdateActivityCompletionDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateActivityCompletionDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'completed': value['completed'],
49
+ };
50
+ }
@@ -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,50 @@
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.instanceOfUserFeatures = instanceOfUserFeatures;
17
+ exports.UserFeaturesFromJSON = UserFeaturesFromJSON;
18
+ exports.UserFeaturesFromJSONTyped = UserFeaturesFromJSONTyped;
19
+ exports.UserFeaturesToJSON = UserFeaturesToJSON;
20
+ exports.UserFeaturesToJSONTyped = UserFeaturesToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UserFeatures interface.
23
+ */
24
+ function instanceOfUserFeatures(value) {
25
+ if (!('features' in value) || value['features'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UserFeaturesFromJSON(json) {
30
+ return UserFeaturesFromJSONTyped(json, false);
31
+ }
32
+ function UserFeaturesFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'features': json['features'],
38
+ };
39
+ }
40
+ function UserFeaturesToJSON(json) {
41
+ return UserFeaturesToJSONTyped(json, false);
42
+ }
43
+ function UserFeaturesToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'features': value['features'],
49
+ };
50
+ }