@instructure/athena-api-client 3.20.3 → 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,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 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
+ /**
68
+ * Check if a given object implements the StudyPlanActivity interface.
69
+ */
70
+ export declare function instanceOfStudyPlanActivity(value: object): value is StudyPlanActivity;
71
+ export declare function StudyPlanActivityFromJSON(json: any): StudyPlanActivity;
72
+ export declare function StudyPlanActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudyPlanActivity;
73
+ export declare function StudyPlanActivityToJSON(json: any): StudyPlanActivity;
74
+ export declare function StudyPlanActivityToJSONTyped(value?: StudyPlanActivity | 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.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
+ return true;
42
+ }
43
+ function StudyPlanActivityFromJSON(json) {
44
+ return StudyPlanActivityFromJSONTyped(json, false);
45
+ }
46
+ function StudyPlanActivityFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'studyPlanId': json['studyPlanId'],
53
+ 'position': json['position'],
54
+ 'label': json['label'],
55
+ 'duration': json['duration'],
56
+ 'title': json['title'],
57
+ 'description': json['description'],
58
+ 'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
59
+ };
60
+ }
61
+ function StudyPlanActivityToJSON(json) {
62
+ return StudyPlanActivityToJSONTyped(json, false);
63
+ }
64
+ function StudyPlanActivityToJSONTyped(value, ignoreDiscriminator = false) {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+ return {
69
+ 'id': value['id'],
70
+ 'studyPlanId': value['studyPlanId'],
71
+ 'position': value['position'],
72
+ 'label': value['label'],
73
+ 'duration': value['duration'],
74
+ 'title': value['title'],
75
+ 'description': value['description'],
76
+ 'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
77
+ };
78
+ }
@@ -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
+ }
@@ -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';
@@ -71,6 +71,8 @@ __exportStar(require("./CreatePracticeQuizRequest"), exports);
71
71
  __exportStar(require("./CreateStudyObjectiveDto"), exports);
72
72
  __exportStar(require("./CreateStudyObjectiveDtoCanvasDocumentsInner"), exports);
73
73
  __exportStar(require("./CreateStudyObjectiveDtoCanvasObject"), exports);
74
+ __exportStar(require("./CreateStudyPlanDto"), exports);
75
+ __exportStar(require("./CreateStudyPlanDtoActivitiesInner"), exports);
74
76
  __exportStar(require("./CreateTokenRequest"), exports);
75
77
  __exportStar(require("./CreateTokenResponse"), exports);
76
78
  __exportStar(require("./DailyQuizStatus"), exports);
@@ -123,6 +125,8 @@ __exportStar(require("./StudyObjectiveConceptAttachment"), exports);
123
125
  __exportStar(require("./StudyObjectiveConceptAttachmentList"), exports);
124
126
  __exportStar(require("./StudyObjectiveConceptSummary"), exports);
125
127
  __exportStar(require("./StudyObjectiveFileAttachment"), exports);
128
+ __exportStar(require("./StudyPlan"), exports);
129
+ __exportStar(require("./StudyPlanActivity"), exports);
126
130
  __exportStar(require("./SubmitQuizResponseRequest"), exports);
127
131
  __exportStar(require("./SyllabusAnalysisObjective"), exports);
128
132
  __exportStar(require("./SyllabusAnalysisStatus"), exports);
@@ -142,6 +146,7 @@ __exportStar(require("./TriggerStudyObjectiveConceptExtractionResponse"), export
142
146
  __exportStar(require("./TriggerSyllabusAnalysisRequest"), exports);
143
147
  __exportStar(require("./TriggerSyllabusAnalysisRequestFile"), exports);
144
148
  __exportStar(require("./UpdateAccountDto"), exports);
149
+ __exportStar(require("./UpdateActivityCompletionDto"), exports);
145
150
  __exportStar(require("./UpdateChatRequest"), exports);
146
151
  __exportStar(require("./UpdateFeatureDto"), exports);
147
152
  __exportStar(require("./UpdatePlanDto"), exports);
@@ -160,6 +165,7 @@ __exportStar(require("./UpsertVoteRequest"), exports);
160
165
  __exportStar(require("./UserConcept"), exports);
161
166
  __exportStar(require("./UserConceptConcept"), exports);
162
167
  __exportStar(require("./UserContext"), exports);
168
+ __exportStar(require("./UserFeatures"), exports);
163
169
  __exportStar(require("./UserFile"), exports);
164
170
  __exportStar(require("./UserFileAssociation"), exports);
165
171
  __exportStar(require("./UserFileUploadUrlFile"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.20.3",
4
+ "version": "3.21.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {