@instructure/athena-api-client 3.23.0 → 3.24.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.
package/README.md CHANGED
@@ -147,6 +147,8 @@ All URIs are relative to *http://localhost:3000*
147
147
  *StudyPrepApi* | [**assessCanvasKnowledge**](docs/StudyPrepApi.md#assesscanvasknowledge) | **POST** /api/v1/study-prep/knowledge-assessment | Assess user knowledge from Canvas course grades
148
148
  *StudyPrepApi* | [**generateCanvasTaxonomy**](docs/StudyPrepApi.md#generatecanvastaxonomy) | **POST** /api/v1/study-prep/taxonomies | Generate a taxonomy from a Canvas course
149
149
  *StudyPrepApi* | [**syncCanvasUserProfile**](docs/StudyPrepApi.md#synccanvasuserprofile) | **POST** /api/v1/study-prep/user-profile | Sync user profile from Canvas
150
+ *StudySpacesApi* | [**listStudySpaces**](docs/StudySpacesApi.md#liststudyspaces) | **GET** /api/v1/study-spaces | List the authenticated user\'s study spaces
151
+ *StudySpacesApi* | [**updateStudySpace**](docs/StudySpacesApi.md#updatestudyspace) | **PATCH** /api/v1/study-spaces/{studySpaceId} | Update a study space title
150
152
  *SyllabusAnalysisApi* | [**getSyllabusAnalysisStatus**](docs/SyllabusAnalysisApi.md#getsyllabusanalysisstatus) | **GET** /api/v1/syllabus-analysis | Get syllabus analysis status
151
153
  *SyllabusAnalysisApi* | [**triggerSyllabusAnalysis**](docs/SyllabusAnalysisApi.md#triggersyllabusanalysisoperation) | **POST** /api/v1/syllabus-analysis | Trigger syllabus analysis
152
154
  *TagsApi* | [**listTags**](docs/TagsApi.md#listtags) | **GET** /api/v1/tags | List all tags
@@ -287,6 +289,7 @@ All URIs are relative to *http://localhost:3000*
287
289
  - [StudyObjectiveFileAttachment](docs/StudyObjectiveFileAttachment.md)
288
290
  - [StudyPlan](docs/StudyPlan.md)
289
291
  - [StudyPlanActivity](docs/StudyPlanActivity.md)
292
+ - [StudySpace](docs/StudySpace.md)
290
293
  - [SubmitQuizResponseRequest](docs/SubmitQuizResponseRequest.md)
291
294
  - [SyllabusAnalysisObjective](docs/SyllabusAnalysisObjective.md)
292
295
  - [SyllabusAnalysisStatus](docs/SyllabusAnalysisStatus.md)
@@ -312,6 +315,7 @@ All URIs are relative to *http://localhost:3000*
312
315
  - [UpdatePlanDto](docs/UpdatePlanDto.md)
313
316
  - [UpdateQuizSessionRequest](docs/UpdateQuizSessionRequest.md)
314
317
  - [UpdateStudyObjectiveDto](docs/UpdateStudyObjectiveDto.md)
318
+ - [UpdateStudySpaceDto](docs/UpdateStudySpaceDto.md)
315
319
  - [UpdateTokenRequest](docs/UpdateTokenRequest.md)
316
320
  - [UpdateTokenResponse](docs/UpdateTokenResponse.md)
317
321
  - [UploadUrlFile](docs/UploadUrlFile.md)
@@ -0,0 +1,46 @@
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 * as runtime from '../runtime';
13
+ import type { StudySpace, UpdateStudySpaceDto } from '../models/index';
14
+ export interface ListStudySpacesRequest {
15
+ xUserId: string;
16
+ }
17
+ export interface UpdateStudySpaceRequest {
18
+ xUserId: string;
19
+ studySpaceId: string;
20
+ updateStudySpaceDto: UpdateStudySpaceDto;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class StudySpacesApi extends runtime.BaseAPI {
26
+ /**
27
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
28
+ * List the authenticated user\'s study spaces
29
+ */
30
+ listStudySpacesRaw(requestParameters: ListStudySpacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StudySpace>>>;
31
+ /**
32
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
33
+ * List the authenticated user\'s study spaces
34
+ */
35
+ listStudySpaces(requestParameters: ListStudySpacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StudySpace>>;
36
+ /**
37
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
38
+ * Update a study space title
39
+ */
40
+ updateStudySpaceRaw(requestParameters: UpdateStudySpaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudySpace>>;
41
+ /**
42
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
43
+ * Update a study space title
44
+ */
45
+ updateStudySpace(requestParameters: UpdateStudySpaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudySpace>;
46
+ }
@@ -0,0 +1,116 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
16
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
17
+ return new (P || (P = Promise))(function (resolve, reject) {
18
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
19
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
20
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
21
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
22
+ });
23
+ };
24
+ Object.defineProperty(exports, "__esModule", { value: true });
25
+ exports.StudySpacesApi = void 0;
26
+ const runtime = require("../runtime");
27
+ const index_1 = require("../models/index");
28
+ /**
29
+ *
30
+ */
31
+ class StudySpacesApi extends runtime.BaseAPI {
32
+ /**
33
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
34
+ * List the authenticated user\'s study spaces
35
+ */
36
+ listStudySpacesRaw(requestParameters, initOverrides) {
37
+ return __awaiter(this, void 0, void 0, function* () {
38
+ if (requestParameters['xUserId'] == null) {
39
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudySpaces().');
40
+ }
41
+ const queryParameters = {};
42
+ const headerParameters = {};
43
+ if (requestParameters['xUserId'] != null) {
44
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
45
+ }
46
+ if (this.configuration && this.configuration.apiKey) {
47
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
48
+ }
49
+ let urlPath = `/api/v1/study-spaces`;
50
+ const response = yield this.request({
51
+ path: urlPath,
52
+ method: 'GET',
53
+ headers: headerParameters,
54
+ query: queryParameters,
55
+ }, initOverrides);
56
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.StudySpaceFromJSON));
57
+ });
58
+ }
59
+ /**
60
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
61
+ * List the authenticated user\'s study spaces
62
+ */
63
+ listStudySpaces(requestParameters, initOverrides) {
64
+ return __awaiter(this, void 0, void 0, function* () {
65
+ const response = yield this.listStudySpacesRaw(requestParameters, initOverrides);
66
+ return yield response.value();
67
+ });
68
+ }
69
+ /**
70
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
71
+ * Update a study space title
72
+ */
73
+ updateStudySpaceRaw(requestParameters, initOverrides) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ if (requestParameters['xUserId'] == null) {
76
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling updateStudySpace().');
77
+ }
78
+ if (requestParameters['studySpaceId'] == null) {
79
+ throw new runtime.RequiredError('studySpaceId', 'Required parameter "studySpaceId" was null or undefined when calling updateStudySpace().');
80
+ }
81
+ if (requestParameters['updateStudySpaceDto'] == null) {
82
+ throw new runtime.RequiredError('updateStudySpaceDto', 'Required parameter "updateStudySpaceDto" was null or undefined when calling updateStudySpace().');
83
+ }
84
+ const queryParameters = {};
85
+ const headerParameters = {};
86
+ headerParameters['Content-Type'] = 'application/json';
87
+ if (requestParameters['xUserId'] != null) {
88
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
89
+ }
90
+ if (this.configuration && this.configuration.apiKey) {
91
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
92
+ }
93
+ let urlPath = `/api/v1/study-spaces/{studySpaceId}`;
94
+ urlPath = urlPath.replace(`{${"studySpaceId"}}`, encodeURIComponent(String(requestParameters['studySpaceId'])));
95
+ const response = yield this.request({
96
+ path: urlPath,
97
+ method: 'PATCH',
98
+ headers: headerParameters,
99
+ query: queryParameters,
100
+ body: (0, index_1.UpdateStudySpaceDtoToJSON)(requestParameters['updateStudySpaceDto']),
101
+ }, initOverrides);
102
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StudySpaceFromJSON)(jsonValue));
103
+ });
104
+ }
105
+ /**
106
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
107
+ * Update a study space title
108
+ */
109
+ updateStudySpace(requestParameters, initOverrides) {
110
+ return __awaiter(this, void 0, void 0, function* () {
111
+ const response = yield this.updateStudySpaceRaw(requestParameters, initOverrides);
112
+ return yield response.value();
113
+ });
114
+ }
115
+ }
116
+ exports.StudySpacesApi = StudySpacesApi;
@@ -22,6 +22,7 @@ export * from './StudyObjectiveConceptsApi';
22
22
  export * from './StudyObjectivesApi';
23
23
  export * from './StudyPlansApi';
24
24
  export * from './StudyPrepApi';
25
+ export * from './StudySpacesApi';
25
26
  export * from './SyllabusAnalysisApi';
26
27
  export * from './TagsApi';
27
28
  export * from './TaxonomiesApi';
@@ -40,6 +40,7 @@ __exportStar(require("./StudyObjectiveConceptsApi"), exports);
40
40
  __exportStar(require("./StudyObjectivesApi"), exports);
41
41
  __exportStar(require("./StudyPlansApi"), exports);
42
42
  __exportStar(require("./StudyPrepApi"), exports);
43
+ __exportStar(require("./StudySpacesApi"), exports);
43
44
  __exportStar(require("./SyllabusAnalysisApi"), exports);
44
45
  __exportStar(require("./TagsApi"), exports);
45
46
  __exportStar(require("./TaxonomiesApi"), exports);
@@ -0,0 +1,46 @@
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 * as runtime from '../runtime';
13
+ import type { StudySpace, UpdateStudySpaceDto } from '../models/index';
14
+ export interface ListStudySpacesRequest {
15
+ xUserId: string;
16
+ }
17
+ export interface UpdateStudySpaceRequest {
18
+ xUserId: string;
19
+ studySpaceId: string;
20
+ updateStudySpaceDto: UpdateStudySpaceDto;
21
+ }
22
+ /**
23
+ *
24
+ */
25
+ export declare class StudySpacesApi extends runtime.BaseAPI {
26
+ /**
27
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
28
+ * List the authenticated user\'s study spaces
29
+ */
30
+ listStudySpacesRaw(requestParameters: ListStudySpacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StudySpace>>>;
31
+ /**
32
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
33
+ * List the authenticated user\'s study spaces
34
+ */
35
+ listStudySpaces(requestParameters: ListStudySpacesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StudySpace>>;
36
+ /**
37
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
38
+ * Update a study space title
39
+ */
40
+ updateStudySpaceRaw(requestParameters: UpdateStudySpaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudySpace>>;
41
+ /**
42
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
43
+ * Update a study space title
44
+ */
45
+ updateStudySpace(requestParameters: UpdateStudySpaceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudySpace>;
46
+ }
@@ -0,0 +1,112 @@
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
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ import * as runtime from '../runtime';
24
+ import { StudySpaceFromJSON, UpdateStudySpaceDtoToJSON, } from '../models/index';
25
+ /**
26
+ *
27
+ */
28
+ export class StudySpacesApi extends runtime.BaseAPI {
29
+ /**
30
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
31
+ * List the authenticated user\'s study spaces
32
+ */
33
+ listStudySpacesRaw(requestParameters, initOverrides) {
34
+ return __awaiter(this, void 0, void 0, function* () {
35
+ if (requestParameters['xUserId'] == null) {
36
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling listStudySpaces().');
37
+ }
38
+ const queryParameters = {};
39
+ const headerParameters = {};
40
+ if (requestParameters['xUserId'] != null) {
41
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
42
+ }
43
+ if (this.configuration && this.configuration.apiKey) {
44
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
45
+ }
46
+ let urlPath = `/api/v1/study-spaces`;
47
+ const response = yield this.request({
48
+ path: urlPath,
49
+ method: 'GET',
50
+ headers: headerParameters,
51
+ query: queryParameters,
52
+ }, initOverrides);
53
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StudySpaceFromJSON));
54
+ });
55
+ }
56
+ /**
57
+ * Returns the persisted study spaces of the authenticated user, oldest first, each with its count of non-archived objectives. Spaces with no objectives are included. Unpaginated: a learner holds at most one space per course, so the list is returned in full. A client that also renders live Canvas enrollments can merge these in, so a learner still sees the courses they have study history for when their Canvas connection is unavailable.
58
+ * List the authenticated user\'s study spaces
59
+ */
60
+ listStudySpaces(requestParameters, initOverrides) {
61
+ return __awaiter(this, void 0, void 0, function* () {
62
+ const response = yield this.listStudySpacesRaw(requestParameters, initOverrides);
63
+ return yield response.value();
64
+ });
65
+ }
66
+ /**
67
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
68
+ * Update a study space title
69
+ */
70
+ updateStudySpaceRaw(requestParameters, initOverrides) {
71
+ return __awaiter(this, void 0, void 0, function* () {
72
+ if (requestParameters['xUserId'] == null) {
73
+ throw new runtime.RequiredError('xUserId', 'Required parameter "xUserId" was null or undefined when calling updateStudySpace().');
74
+ }
75
+ if (requestParameters['studySpaceId'] == null) {
76
+ throw new runtime.RequiredError('studySpaceId', 'Required parameter "studySpaceId" was null or undefined when calling updateStudySpace().');
77
+ }
78
+ if (requestParameters['updateStudySpaceDto'] == null) {
79
+ throw new runtime.RequiredError('updateStudySpaceDto', 'Required parameter "updateStudySpaceDto" was null or undefined when calling updateStudySpace().');
80
+ }
81
+ const queryParameters = {};
82
+ const headerParameters = {};
83
+ headerParameters['Content-Type'] = 'application/json';
84
+ if (requestParameters['xUserId'] != null) {
85
+ headerParameters['X-User-Id'] = String(requestParameters['xUserId']);
86
+ }
87
+ if (this.configuration && this.configuration.apiKey) {
88
+ headerParameters["X-Auth-Token"] = yield this.configuration.apiKey("X-Auth-Token"); // AuthToken authentication
89
+ }
90
+ let urlPath = `/api/v1/study-spaces/{studySpaceId}`;
91
+ urlPath = urlPath.replace(`{${"studySpaceId"}}`, encodeURIComponent(String(requestParameters['studySpaceId'])));
92
+ const response = yield this.request({
93
+ path: urlPath,
94
+ method: 'PATCH',
95
+ headers: headerParameters,
96
+ query: queryParameters,
97
+ body: UpdateStudySpaceDtoToJSON(requestParameters['updateStudySpaceDto']),
98
+ }, initOverrides);
99
+ return new runtime.JSONApiResponse(response, (jsonValue) => StudySpaceFromJSON(jsonValue));
100
+ });
101
+ }
102
+ /**
103
+ * Sets the title of one of the authenticated user\'s study spaces. Titles are trimmed and must be non-empty.
104
+ * Update a study space title
105
+ */
106
+ updateStudySpace(requestParameters, initOverrides) {
107
+ return __awaiter(this, void 0, void 0, function* () {
108
+ const response = yield this.updateStudySpaceRaw(requestParameters, initOverrides);
109
+ return yield response.value();
110
+ });
111
+ }
112
+ }
@@ -22,6 +22,7 @@ export * from './StudyObjectiveConceptsApi';
22
22
  export * from './StudyObjectivesApi';
23
23
  export * from './StudyPlansApi';
24
24
  export * from './StudyPrepApi';
25
+ export * from './StudySpacesApi';
25
26
  export * from './SyllabusAnalysisApi';
26
27
  export * from './TagsApi';
27
28
  export * from './TaxonomiesApi';
@@ -24,6 +24,7 @@ export * from './StudyObjectiveConceptsApi';
24
24
  export * from './StudyObjectivesApi';
25
25
  export * from './StudyPlansApi';
26
26
  export * from './StudyPrepApi';
27
+ export * from './StudySpacesApi';
27
28
  export * from './SyllabusAnalysisApi';
28
29
  export * from './TagsApi';
29
30
  export * from './TaxonomiesApi';
@@ -0,0 +1,62 @@
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 StudySpace
16
+ */
17
+ export interface StudySpace {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StudySpace
22
+ */
23
+ id: string;
24
+ /**
25
+ * External course identifier (e.g. a Canvas course id) this space is backed by, or null for a space with no course.
26
+ * @type {string}
27
+ * @memberof StudySpace
28
+ */
29
+ courseId: string | null;
30
+ /**
31
+ * Display title. Empty when no title has been set, so clients need a fallback (e.g. the course name).
32
+ * @type {string}
33
+ * @memberof StudySpace
34
+ */
35
+ title: string;
36
+ /**
37
+ * Number of non-archived study objectives in this space.
38
+ * @type {number}
39
+ * @memberof StudySpace
40
+ */
41
+ activeObjectiveCount: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof StudySpace
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof StudySpace
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the StudySpace interface.
57
+ */
58
+ export declare function instanceOfStudySpace(value: object): value is StudySpace;
59
+ export declare function StudySpaceFromJSON(json: any): StudySpace;
60
+ export declare function StudySpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudySpace;
61
+ export declare function StudySpaceToJSON(json: any): StudySpace;
62
+ export declare function StudySpaceToJSONTyped(value?: StudySpace | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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 StudySpace interface.
16
+ */
17
+ export function instanceOfStudySpace(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('courseId' in value) || value['courseId'] === undefined)
21
+ return false;
22
+ if (!('title' in value) || value['title'] === undefined)
23
+ return false;
24
+ if (!('activeObjectiveCount' in value) || value['activeObjectiveCount'] === undefined)
25
+ return false;
26
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function StudySpaceFromJSON(json) {
33
+ return StudySpaceFromJSONTyped(json, false);
34
+ }
35
+ export function StudySpaceFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'courseId': json['courseId'],
42
+ 'title': json['title'],
43
+ 'activeObjectiveCount': json['activeObjectiveCount'],
44
+ 'createdAt': (new Date(json['createdAt'])),
45
+ 'updatedAt': (new Date(json['updatedAt'])),
46
+ };
47
+ }
48
+ export function StudySpaceToJSON(json) {
49
+ return StudySpaceToJSONTyped(json, false);
50
+ }
51
+ export function StudySpaceToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'id': value['id'],
57
+ 'courseId': value['courseId'],
58
+ 'title': value['title'],
59
+ 'activeObjectiveCount': value['activeObjectiveCount'],
60
+ 'createdAt': value['createdAt'].toISOString(),
61
+ 'updatedAt': value['updatedAt'].toISOString(),
62
+ };
63
+ }
@@ -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 UpdateStudySpaceDto
16
+ */
17
+ export interface UpdateStudySpaceDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateStudySpaceDto
22
+ */
23
+ title: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateStudySpaceDto interface.
27
+ */
28
+ export declare function instanceOfUpdateStudySpaceDto(value: object): value is UpdateStudySpaceDto;
29
+ export declare function UpdateStudySpaceDtoFromJSON(json: any): UpdateStudySpaceDto;
30
+ export declare function UpdateStudySpaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStudySpaceDto;
31
+ export declare function UpdateStudySpaceDtoToJSON(json: any): UpdateStudySpaceDto;
32
+ export declare function UpdateStudySpaceDtoToJSONTyped(value?: UpdateStudySpaceDto | 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 UpdateStudySpaceDto interface.
16
+ */
17
+ export function instanceOfUpdateStudySpaceDto(value) {
18
+ if (!('title' in value) || value['title'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function UpdateStudySpaceDtoFromJSON(json) {
23
+ return UpdateStudySpaceDtoFromJSONTyped(json, false);
24
+ }
25
+ export function UpdateStudySpaceDtoFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'title': json['title'],
31
+ };
32
+ }
33
+ export function UpdateStudySpaceDtoToJSON(json) {
34
+ return UpdateStudySpaceDtoToJSONTyped(json, false);
35
+ }
36
+ export function UpdateStudySpaceDtoToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'title': value['title'],
42
+ };
43
+ }
@@ -109,6 +109,7 @@ export * from './StudyObjectiveConceptSummary';
109
109
  export * from './StudyObjectiveFileAttachment';
110
110
  export * from './StudyPlan';
111
111
  export * from './StudyPlanActivity';
112
+ export * from './StudySpace';
112
113
  export * from './SubmitQuizResponseRequest';
113
114
  export * from './SyllabusAnalysisObjective';
114
115
  export * from './SyllabusAnalysisStatus';
@@ -134,6 +135,7 @@ export * from './UpdateFeatureDto';
134
135
  export * from './UpdatePlanDto';
135
136
  export * from './UpdateQuizSessionRequest';
136
137
  export * from './UpdateStudyObjectiveDto';
138
+ export * from './UpdateStudySpaceDto';
137
139
  export * from './UpdateTokenRequest';
138
140
  export * from './UpdateTokenResponse';
139
141
  export * from './UploadUrlFile';
@@ -111,6 +111,7 @@ export * from './StudyObjectiveConceptSummary';
111
111
  export * from './StudyObjectiveFileAttachment';
112
112
  export * from './StudyPlan';
113
113
  export * from './StudyPlanActivity';
114
+ export * from './StudySpace';
114
115
  export * from './SubmitQuizResponseRequest';
115
116
  export * from './SyllabusAnalysisObjective';
116
117
  export * from './SyllabusAnalysisStatus';
@@ -136,6 +137,7 @@ export * from './UpdateFeatureDto';
136
137
  export * from './UpdatePlanDto';
137
138
  export * from './UpdateQuizSessionRequest';
138
139
  export * from './UpdateStudyObjectiveDto';
140
+ export * from './UpdateStudySpaceDto';
139
141
  export * from './UpdateTokenRequest';
140
142
  export * from './UpdateTokenResponse';
141
143
  export * from './UploadUrlFile';
@@ -0,0 +1,62 @@
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 StudySpace
16
+ */
17
+ export interface StudySpace {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof StudySpace
22
+ */
23
+ id: string;
24
+ /**
25
+ * External course identifier (e.g. a Canvas course id) this space is backed by, or null for a space with no course.
26
+ * @type {string}
27
+ * @memberof StudySpace
28
+ */
29
+ courseId: string | null;
30
+ /**
31
+ * Display title. Empty when no title has been set, so clients need a fallback (e.g. the course name).
32
+ * @type {string}
33
+ * @memberof StudySpace
34
+ */
35
+ title: string;
36
+ /**
37
+ * Number of non-archived study objectives in this space.
38
+ * @type {number}
39
+ * @memberof StudySpace
40
+ */
41
+ activeObjectiveCount: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof StudySpace
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof StudySpace
52
+ */
53
+ updatedAt: Date;
54
+ }
55
+ /**
56
+ * Check if a given object implements the StudySpace interface.
57
+ */
58
+ export declare function instanceOfStudySpace(value: object): value is StudySpace;
59
+ export declare function StudySpaceFromJSON(json: any): StudySpace;
60
+ export declare function StudySpaceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StudySpace;
61
+ export declare function StudySpaceToJSON(json: any): StudySpace;
62
+ export declare function StudySpaceToJSONTyped(value?: StudySpace | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfStudySpace = instanceOfStudySpace;
17
+ exports.StudySpaceFromJSON = StudySpaceFromJSON;
18
+ exports.StudySpaceFromJSONTyped = StudySpaceFromJSONTyped;
19
+ exports.StudySpaceToJSON = StudySpaceToJSON;
20
+ exports.StudySpaceToJSONTyped = StudySpaceToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the StudySpace interface.
23
+ */
24
+ function instanceOfStudySpace(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('courseId' in value) || value['courseId'] === undefined)
28
+ return false;
29
+ if (!('title' in value) || value['title'] === undefined)
30
+ return false;
31
+ if (!('activeObjectiveCount' in value) || value['activeObjectiveCount'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function StudySpaceFromJSON(json) {
40
+ return StudySpaceFromJSONTyped(json, false);
41
+ }
42
+ function StudySpaceFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'courseId': json['courseId'],
49
+ 'title': json['title'],
50
+ 'activeObjectiveCount': json['activeObjectiveCount'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ };
54
+ }
55
+ function StudySpaceToJSON(json) {
56
+ return StudySpaceToJSONTyped(json, false);
57
+ }
58
+ function StudySpaceToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'courseId': value['courseId'],
65
+ 'title': value['title'],
66
+ 'activeObjectiveCount': value['activeObjectiveCount'],
67
+ 'createdAt': value['createdAt'].toISOString(),
68
+ 'updatedAt': value['updatedAt'].toISOString(),
69
+ };
70
+ }
@@ -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 UpdateStudySpaceDto
16
+ */
17
+ export interface UpdateStudySpaceDto {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof UpdateStudySpaceDto
22
+ */
23
+ title: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateStudySpaceDto interface.
27
+ */
28
+ export declare function instanceOfUpdateStudySpaceDto(value: object): value is UpdateStudySpaceDto;
29
+ export declare function UpdateStudySpaceDtoFromJSON(json: any): UpdateStudySpaceDto;
30
+ export declare function UpdateStudySpaceDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateStudySpaceDto;
31
+ export declare function UpdateStudySpaceDtoToJSON(json: any): UpdateStudySpaceDto;
32
+ export declare function UpdateStudySpaceDtoToJSONTyped(value?: UpdateStudySpaceDto | 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.instanceOfUpdateStudySpaceDto = instanceOfUpdateStudySpaceDto;
17
+ exports.UpdateStudySpaceDtoFromJSON = UpdateStudySpaceDtoFromJSON;
18
+ exports.UpdateStudySpaceDtoFromJSONTyped = UpdateStudySpaceDtoFromJSONTyped;
19
+ exports.UpdateStudySpaceDtoToJSON = UpdateStudySpaceDtoToJSON;
20
+ exports.UpdateStudySpaceDtoToJSONTyped = UpdateStudySpaceDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateStudySpaceDto interface.
23
+ */
24
+ function instanceOfUpdateStudySpaceDto(value) {
25
+ if (!('title' in value) || value['title'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateStudySpaceDtoFromJSON(json) {
30
+ return UpdateStudySpaceDtoFromJSONTyped(json, false);
31
+ }
32
+ function UpdateStudySpaceDtoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'title': json['title'],
38
+ };
39
+ }
40
+ function UpdateStudySpaceDtoToJSON(json) {
41
+ return UpdateStudySpaceDtoToJSONTyped(json, false);
42
+ }
43
+ function UpdateStudySpaceDtoToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'title': value['title'],
49
+ };
50
+ }
@@ -109,6 +109,7 @@ export * from './StudyObjectiveConceptSummary';
109
109
  export * from './StudyObjectiveFileAttachment';
110
110
  export * from './StudyPlan';
111
111
  export * from './StudyPlanActivity';
112
+ export * from './StudySpace';
112
113
  export * from './SubmitQuizResponseRequest';
113
114
  export * from './SyllabusAnalysisObjective';
114
115
  export * from './SyllabusAnalysisStatus';
@@ -134,6 +135,7 @@ export * from './UpdateFeatureDto';
134
135
  export * from './UpdatePlanDto';
135
136
  export * from './UpdateQuizSessionRequest';
136
137
  export * from './UpdateStudyObjectiveDto';
138
+ export * from './UpdateStudySpaceDto';
137
139
  export * from './UpdateTokenRequest';
138
140
  export * from './UpdateTokenResponse';
139
141
  export * from './UploadUrlFile';
@@ -127,6 +127,7 @@ __exportStar(require("./StudyObjectiveConceptSummary"), exports);
127
127
  __exportStar(require("./StudyObjectiveFileAttachment"), exports);
128
128
  __exportStar(require("./StudyPlan"), exports);
129
129
  __exportStar(require("./StudyPlanActivity"), exports);
130
+ __exportStar(require("./StudySpace"), exports);
130
131
  __exportStar(require("./SubmitQuizResponseRequest"), exports);
131
132
  __exportStar(require("./SyllabusAnalysisObjective"), exports);
132
133
  __exportStar(require("./SyllabusAnalysisStatus"), exports);
@@ -152,6 +153,7 @@ __exportStar(require("./UpdateFeatureDto"), exports);
152
153
  __exportStar(require("./UpdatePlanDto"), exports);
153
154
  __exportStar(require("./UpdateQuizSessionRequest"), exports);
154
155
  __exportStar(require("./UpdateStudyObjectiveDto"), exports);
156
+ __exportStar(require("./UpdateStudySpaceDto"), exports);
155
157
  __exportStar(require("./UpdateTokenRequest"), exports);
156
158
  __exportStar(require("./UpdateTokenResponse"), exports);
157
159
  __exportStar(require("./UploadUrlFile"), 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.23.0",
4
+ "version": "3.24.0",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {