@instructure/athena-api-client 3.37.11 → 3.38.1

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.
@@ -68,12 +68,12 @@ export declare class StudyPlansApi extends runtime.BaseAPI {
68
68
  */
69
69
  getStudyObjectiveStudyPlan(requestParameters: GetStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyPlan>;
70
70
  /**
71
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
71
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
72
72
  * Save (or replace) a study objective\'s plan
73
73
  */
74
74
  saveStudyObjectiveStudyPlanRaw(requestParameters: SaveStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyPlan>>;
75
75
  /**
76
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
76
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
77
77
  * Save (or replace) a study objective\'s plan
78
78
  */
79
79
  saveStudyObjectiveStudyPlan(requestParameters: SaveStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyPlan>;
@@ -152,7 +152,7 @@ class StudyPlansApi extends runtime.BaseAPI {
152
152
  });
153
153
  }
154
154
  /**
155
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
155
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
156
156
  * Save (or replace) a study objective\'s plan
157
157
  */
158
158
  saveStudyObjectiveStudyPlanRaw(requestParameters, initOverrides) {
@@ -188,7 +188,7 @@ class StudyPlansApi extends runtime.BaseAPI {
188
188
  });
189
189
  }
190
190
  /**
191
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
191
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
192
192
  * Save (or replace) a study objective\'s plan
193
193
  */
194
194
  saveStudyObjectiveStudyPlan(requestParameters, initOverrides) {
@@ -68,12 +68,12 @@ export declare class StudyPlansApi extends runtime.BaseAPI {
68
68
  */
69
69
  getStudyObjectiveStudyPlan(requestParameters: GetStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyPlan>;
70
70
  /**
71
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
71
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
72
72
  * Save (or replace) a study objective\'s plan
73
73
  */
74
74
  saveStudyObjectiveStudyPlanRaw(requestParameters: SaveStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StudyPlan>>;
75
75
  /**
76
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
76
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
77
77
  * Save (or replace) a study objective\'s plan
78
78
  */
79
79
  saveStudyObjectiveStudyPlan(requestParameters: SaveStudyObjectiveStudyPlanRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StudyPlan>;
@@ -149,7 +149,7 @@ export class StudyPlansApi extends runtime.BaseAPI {
149
149
  });
150
150
  }
151
151
  /**
152
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
152
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
153
153
  * Save (or replace) a study objective\'s plan
154
154
  */
155
155
  saveStudyObjectiveStudyPlanRaw(requestParameters, initOverrides) {
@@ -185,7 +185,7 @@ export class StudyPlansApi extends runtime.BaseAPI {
185
185
  });
186
186
  }
187
187
  /**
188
- * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated.
188
+ * Persists an ordered list of activities as the objective\'s plan. An objective has at most one plan, so this replaces any existing plan — the previous activities and their completion state are deleted in the same transaction. A payload over the 20-activity cap is rejected, never truncated. Each activity has a `kind` (default `chat`); a `tutor-me` activity must name a `conceptId` from the objective\'s concept roster.
189
189
  * Save (or replace) a study objective\'s plan
190
190
  */
191
191
  saveStudyObjectiveStudyPlan(requestParameters, initOverrides) {
@@ -45,7 +45,27 @@ export interface CreateStudyPlanDtoActivitiesInner {
45
45
  * @memberof CreateStudyPlanDtoActivitiesInner
46
46
  */
47
47
  description?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateStudyPlanDtoActivitiesInner
52
+ */
53
+ kind?: CreateStudyPlanDtoActivitiesInnerKindEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateStudyPlanDtoActivitiesInner
58
+ */
59
+ conceptId?: string | null;
48
60
  }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const CreateStudyPlanDtoActivitiesInnerKindEnum: {
65
+ readonly Chat: "chat";
66
+ readonly TutorMe: "tutor-me";
67
+ };
68
+ export type CreateStudyPlanDtoActivitiesInnerKindEnum = typeof CreateStudyPlanDtoActivitiesInnerKindEnum[keyof typeof CreateStudyPlanDtoActivitiesInnerKindEnum];
49
69
  /**
50
70
  * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
51
71
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const CreateStudyPlanDtoActivitiesInnerKindEnum = {
18
+ Chat: 'chat',
19
+ TutorMe: 'tutor-me'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
16
23
  */
@@ -34,6 +41,8 @@ export function CreateStudyPlanDtoActivitiesInnerFromJSONTyped(json, ignoreDiscr
34
41
  'duration': json['duration'] == null ? undefined : json['duration'],
35
42
  'title': json['title'],
36
43
  'description': json['description'] == null ? undefined : json['description'],
44
+ 'kind': json['kind'] == null ? undefined : json['kind'],
45
+ 'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
37
46
  };
38
47
  }
39
48
  export function CreateStudyPlanDtoActivitiesInnerToJSON(json) {
@@ -49,5 +58,7 @@ export function CreateStudyPlanDtoActivitiesInnerToJSONTyped(value, ignoreDiscri
49
58
  'duration': value['duration'],
50
59
  'title': value['title'],
51
60
  'description': value['description'],
61
+ 'kind': value['kind'],
62
+ 'conceptId': value['conceptId'],
52
63
  };
53
64
  }
@@ -63,6 +63,24 @@ export interface StudyPlanActivity {
63
63
  * @memberof StudyPlanActivity
64
64
  */
65
65
  completedAt: Date | null;
66
+ /**
67
+ * What starting the activity launches. `chat` is a regular chat that runs the activity; `tutor-me` is a Level Up session on `conceptId`. This is the effective kind: a `tutor-me` activity whose concept no longer exists is reported as `chat`, so a `tutor-me` activity always has a non-null `conceptId`. Treat any unrecognized value as `chat`.
68
+ * @type {string}
69
+ * @memberof StudyPlanActivity
70
+ */
71
+ kind: StudyPlanActivityKindEnum;
72
+ /**
73
+ * The concept a `tutor-me` activity tutors on. Always set for `tutor-me`, always null for `chat`.
74
+ * @type {string}
75
+ * @memberof StudyPlanActivity
76
+ */
77
+ conceptId: string | null;
78
+ /**
79
+ * Name of the concept named by `conceptId`, for labelling the activity without a second fetch. Null whenever `conceptId` is null.
80
+ * @type {string}
81
+ * @memberof StudyPlanActivity
82
+ */
83
+ conceptName: string | null;
66
84
  /**
67
85
  * 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
86
  * @type {string}
@@ -70,6 +88,14 @@ export interface StudyPlanActivity {
70
88
  */
71
89
  chatId: string | null;
72
90
  }
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const StudyPlanActivityKindEnum: {
95
+ readonly Chat: "chat";
96
+ readonly TutorMe: "tutor-me";
97
+ };
98
+ export type StudyPlanActivityKindEnum = typeof StudyPlanActivityKindEnum[keyof typeof StudyPlanActivityKindEnum];
73
99
  /**
74
100
  * Check if a given object implements the StudyPlanActivity interface.
75
101
  */
@@ -11,6 +11,13 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ /**
15
+ * @export
16
+ */
17
+ export const StudyPlanActivityKindEnum = {
18
+ Chat: 'chat',
19
+ TutorMe: 'tutor-me'
20
+ };
14
21
  /**
15
22
  * Check if a given object implements the StudyPlanActivity interface.
16
23
  */
@@ -31,6 +38,12 @@ export function instanceOfStudyPlanActivity(value) {
31
38
  return false;
32
39
  if (!('completedAt' in value) || value['completedAt'] === undefined)
33
40
  return false;
41
+ if (!('kind' in value) || value['kind'] === undefined)
42
+ return false;
43
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
44
+ return false;
45
+ if (!('conceptName' in value) || value['conceptName'] === undefined)
46
+ return false;
34
47
  if (!('chatId' in value) || value['chatId'] === undefined)
35
48
  return false;
36
49
  return true;
@@ -51,6 +64,9 @@ export function StudyPlanActivityFromJSONTyped(json, ignoreDiscriminator) {
51
64
  'title': json['title'],
52
65
  'description': json['description'],
53
66
  'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
67
+ 'kind': json['kind'],
68
+ 'conceptId': json['conceptId'],
69
+ 'conceptName': json['conceptName'],
54
70
  'chatId': json['chatId'],
55
71
  };
56
72
  }
@@ -70,6 +86,9 @@ export function StudyPlanActivityToJSONTyped(value, ignoreDiscriminator = false)
70
86
  'title': value['title'],
71
87
  'description': value['description'],
72
88
  'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
89
+ 'kind': value['kind'],
90
+ 'conceptId': value['conceptId'],
91
+ 'conceptName': value['conceptName'],
73
92
  'chatId': value['chatId'],
74
93
  };
75
94
  }
@@ -45,7 +45,27 @@ export interface CreateStudyPlanDtoActivitiesInner {
45
45
  * @memberof CreateStudyPlanDtoActivitiesInner
46
46
  */
47
47
  description?: string;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof CreateStudyPlanDtoActivitiesInner
52
+ */
53
+ kind?: CreateStudyPlanDtoActivitiesInnerKindEnum;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof CreateStudyPlanDtoActivitiesInner
58
+ */
59
+ conceptId?: string | null;
48
60
  }
61
+ /**
62
+ * @export
63
+ */
64
+ export declare const CreateStudyPlanDtoActivitiesInnerKindEnum: {
65
+ readonly Chat: "chat";
66
+ readonly TutorMe: "tutor-me";
67
+ };
68
+ export type CreateStudyPlanDtoActivitiesInnerKindEnum = typeof CreateStudyPlanDtoActivitiesInnerKindEnum[keyof typeof CreateStudyPlanDtoActivitiesInnerKindEnum];
49
69
  /**
50
70
  * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
51
71
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.CreateStudyPlanDtoActivitiesInnerKindEnum = void 0;
16
17
  exports.instanceOfCreateStudyPlanDtoActivitiesInner = instanceOfCreateStudyPlanDtoActivitiesInner;
17
18
  exports.CreateStudyPlanDtoActivitiesInnerFromJSON = CreateStudyPlanDtoActivitiesInnerFromJSON;
18
19
  exports.CreateStudyPlanDtoActivitiesInnerFromJSONTyped = CreateStudyPlanDtoActivitiesInnerFromJSONTyped;
19
20
  exports.CreateStudyPlanDtoActivitiesInnerToJSON = CreateStudyPlanDtoActivitiesInnerToJSON;
20
21
  exports.CreateStudyPlanDtoActivitiesInnerToJSONTyped = CreateStudyPlanDtoActivitiesInnerToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.CreateStudyPlanDtoActivitiesInnerKindEnum = {
26
+ Chat: 'chat',
27
+ TutorMe: 'tutor-me'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the CreateStudyPlanDtoActivitiesInner interface.
23
31
  */
@@ -41,6 +49,8 @@ function CreateStudyPlanDtoActivitiesInnerFromJSONTyped(json, ignoreDiscriminato
41
49
  'duration': json['duration'] == null ? undefined : json['duration'],
42
50
  'title': json['title'],
43
51
  'description': json['description'] == null ? undefined : json['description'],
52
+ 'kind': json['kind'] == null ? undefined : json['kind'],
53
+ 'conceptId': json['conceptId'] == null ? undefined : json['conceptId'],
44
54
  };
45
55
  }
46
56
  function CreateStudyPlanDtoActivitiesInnerToJSON(json) {
@@ -56,5 +66,7 @@ function CreateStudyPlanDtoActivitiesInnerToJSONTyped(value, ignoreDiscriminator
56
66
  'duration': value['duration'],
57
67
  'title': value['title'],
58
68
  'description': value['description'],
69
+ 'kind': value['kind'],
70
+ 'conceptId': value['conceptId'],
59
71
  };
60
72
  }
@@ -63,6 +63,24 @@ export interface StudyPlanActivity {
63
63
  * @memberof StudyPlanActivity
64
64
  */
65
65
  completedAt: Date | null;
66
+ /**
67
+ * What starting the activity launches. `chat` is a regular chat that runs the activity; `tutor-me` is a Level Up session on `conceptId`. This is the effective kind: a `tutor-me` activity whose concept no longer exists is reported as `chat`, so a `tutor-me` activity always has a non-null `conceptId`. Treat any unrecognized value as `chat`.
68
+ * @type {string}
69
+ * @memberof StudyPlanActivity
70
+ */
71
+ kind: StudyPlanActivityKindEnum;
72
+ /**
73
+ * The concept a `tutor-me` activity tutors on. Always set for `tutor-me`, always null for `chat`.
74
+ * @type {string}
75
+ * @memberof StudyPlanActivity
76
+ */
77
+ conceptId: string | null;
78
+ /**
79
+ * Name of the concept named by `conceptId`, for labelling the activity without a second fetch. Null whenever `conceptId` is null.
80
+ * @type {string}
81
+ * @memberof StudyPlanActivity
82
+ */
83
+ conceptName: string | null;
66
84
  /**
67
85
  * 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
86
  * @type {string}
@@ -70,6 +88,14 @@ export interface StudyPlanActivity {
70
88
  */
71
89
  chatId: string | null;
72
90
  }
91
+ /**
92
+ * @export
93
+ */
94
+ export declare const StudyPlanActivityKindEnum: {
95
+ readonly Chat: "chat";
96
+ readonly TutorMe: "tutor-me";
97
+ };
98
+ export type StudyPlanActivityKindEnum = typeof StudyPlanActivityKindEnum[keyof typeof StudyPlanActivityKindEnum];
73
99
  /**
74
100
  * Check if a given object implements the StudyPlanActivity interface.
75
101
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.StudyPlanActivityKindEnum = void 0;
16
17
  exports.instanceOfStudyPlanActivity = instanceOfStudyPlanActivity;
17
18
  exports.StudyPlanActivityFromJSON = StudyPlanActivityFromJSON;
18
19
  exports.StudyPlanActivityFromJSONTyped = StudyPlanActivityFromJSONTyped;
19
20
  exports.StudyPlanActivityToJSON = StudyPlanActivityToJSON;
20
21
  exports.StudyPlanActivityToJSONTyped = StudyPlanActivityToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.StudyPlanActivityKindEnum = {
26
+ Chat: 'chat',
27
+ TutorMe: 'tutor-me'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the StudyPlanActivity interface.
23
31
  */
@@ -38,6 +46,12 @@ function instanceOfStudyPlanActivity(value) {
38
46
  return false;
39
47
  if (!('completedAt' in value) || value['completedAt'] === undefined)
40
48
  return false;
49
+ if (!('kind' in value) || value['kind'] === undefined)
50
+ return false;
51
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
52
+ return false;
53
+ if (!('conceptName' in value) || value['conceptName'] === undefined)
54
+ return false;
41
55
  if (!('chatId' in value) || value['chatId'] === undefined)
42
56
  return false;
43
57
  return true;
@@ -58,6 +72,9 @@ function StudyPlanActivityFromJSONTyped(json, ignoreDiscriminator) {
58
72
  'title': json['title'],
59
73
  'description': json['description'],
60
74
  'completedAt': (json['completedAt'] == null ? null : new Date(json['completedAt'])),
75
+ 'kind': json['kind'],
76
+ 'conceptId': json['conceptId'],
77
+ 'conceptName': json['conceptName'],
61
78
  'chatId': json['chatId'],
62
79
  };
63
80
  }
@@ -77,6 +94,9 @@ function StudyPlanActivityToJSONTyped(value, ignoreDiscriminator = false) {
77
94
  'title': value['title'],
78
95
  'description': value['description'],
79
96
  'completedAt': value['completedAt'] == null ? value['completedAt'] : value['completedAt'].toISOString(),
97
+ 'kind': value['kind'],
98
+ 'conceptId': value['conceptId'],
99
+ 'conceptName': value['conceptName'],
80
100
  'chatId': value['chatId'],
81
101
  };
82
102
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@instructure/athena-api-client",
3
3
  "private": false,
4
- "version": "3.37.11",
4
+ "version": "3.38.1",
5
5
  "description": "OpenAPI client for the Athena API",
6
6
  "author": "Instructure",
7
7
  "repository": {