@instructure/athena-api-client 3.7.3 → 3.8.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.
|
@@ -41,6 +41,12 @@ export interface StudyObjective {
|
|
|
41
41
|
* @memberof StudyObjective
|
|
42
42
|
*/
|
|
43
43
|
canvasObjectId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Canvas-native reference of the mirrored object ('{type}:{local_id}', e.g. 'assignment:67890'), or null for custom/syllabus objectives. A stable join key for pairing a read-back objective with its live Canvas candidate without an upsert round-trip.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof StudyObjective
|
|
48
|
+
*/
|
|
49
|
+
canvasObjectRef: string | null;
|
|
44
50
|
/**
|
|
45
51
|
* Origin of the objective: 'user' (client-created) or 'syllabus' (derived internally). Read-only.
|
|
46
52
|
* @type {string}
|
|
@@ -32,6 +32,8 @@ export function instanceOfStudyObjective(value) {
|
|
|
32
32
|
return false;
|
|
33
33
|
if (!('canvasObjectId' in value) || value['canvasObjectId'] === undefined)
|
|
34
34
|
return false;
|
|
35
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
36
|
+
return false;
|
|
35
37
|
if (!('source' in value) || value['source'] === undefined)
|
|
36
38
|
return false;
|
|
37
39
|
if (!('title' in value) || value['title'] === undefined)
|
|
@@ -64,6 +66,7 @@ export function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
64
66
|
'accountUserId': json['accountUserId'],
|
|
65
67
|
'courseId': json['courseId'],
|
|
66
68
|
'canvasObjectId': json['canvasObjectId'],
|
|
69
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
67
70
|
'source': json['source'],
|
|
68
71
|
'title': json['title'],
|
|
69
72
|
'notes': json['notes'],
|
|
@@ -87,6 +90,7 @@ export function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
87
90
|
'accountUserId': value['accountUserId'],
|
|
88
91
|
'courseId': value['courseId'],
|
|
89
92
|
'canvasObjectId': value['canvasObjectId'],
|
|
93
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
90
94
|
'source': value['source'],
|
|
91
95
|
'title': value['title'],
|
|
92
96
|
'notes': value['notes'],
|
|
@@ -41,6 +41,12 @@ export interface StudyObjective {
|
|
|
41
41
|
* @memberof StudyObjective
|
|
42
42
|
*/
|
|
43
43
|
canvasObjectId: string | null;
|
|
44
|
+
/**
|
|
45
|
+
* Canvas-native reference of the mirrored object ('{type}:{local_id}', e.g. 'assignment:67890'), or null for custom/syllabus objectives. A stable join key for pairing a read-back objective with its live Canvas candidate without an upsert round-trip.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof StudyObjective
|
|
48
|
+
*/
|
|
49
|
+
canvasObjectRef: string | null;
|
|
44
50
|
/**
|
|
45
51
|
* Origin of the objective: 'user' (client-created) or 'syllabus' (derived internally). Read-only.
|
|
46
52
|
* @type {string}
|
|
@@ -40,6 +40,8 @@ function instanceOfStudyObjective(value) {
|
|
|
40
40
|
return false;
|
|
41
41
|
if (!('canvasObjectId' in value) || value['canvasObjectId'] === undefined)
|
|
42
42
|
return false;
|
|
43
|
+
if (!('canvasObjectRef' in value) || value['canvasObjectRef'] === undefined)
|
|
44
|
+
return false;
|
|
43
45
|
if (!('source' in value) || value['source'] === undefined)
|
|
44
46
|
return false;
|
|
45
47
|
if (!('title' in value) || value['title'] === undefined)
|
|
@@ -72,6 +74,7 @@ function StudyObjectiveFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
72
74
|
'accountUserId': json['accountUserId'],
|
|
73
75
|
'courseId': json['courseId'],
|
|
74
76
|
'canvasObjectId': json['canvasObjectId'],
|
|
77
|
+
'canvasObjectRef': json['canvasObjectRef'],
|
|
75
78
|
'source': json['source'],
|
|
76
79
|
'title': json['title'],
|
|
77
80
|
'notes': json['notes'],
|
|
@@ -95,6 +98,7 @@ function StudyObjectiveToJSONTyped(value, ignoreDiscriminator = false) {
|
|
|
95
98
|
'accountUserId': value['accountUserId'],
|
|
96
99
|
'courseId': value['courseId'],
|
|
97
100
|
'canvasObjectId': value['canvasObjectId'],
|
|
101
|
+
'canvasObjectRef': value['canvasObjectRef'],
|
|
98
102
|
'source': value['source'],
|
|
99
103
|
'title': value['title'],
|
|
100
104
|
'notes': value['notes'],
|