@instructure/athena-api-client 2.14.4 → 2.15.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.
Files changed (38) hide show
  1. package/README.md +8 -0
  2. package/dist/apis/LearningSessionEvaluationsApi.d.ts +32 -0
  3. package/dist/apis/LearningSessionEvaluationsApi.js +74 -0
  4. package/dist/apis/UserConceptsApi.d.ts +57 -0
  5. package/dist/apis/UserConceptsApi.js +129 -0
  6. package/dist/apis/index.d.ts +2 -0
  7. package/dist/apis/index.js +2 -0
  8. package/dist/esm/apis/LearningSessionEvaluationsApi.d.ts +32 -0
  9. package/dist/esm/apis/LearningSessionEvaluationsApi.js +70 -0
  10. package/dist/esm/apis/UserConceptsApi.d.ts +57 -0
  11. package/dist/esm/apis/UserConceptsApi.js +125 -0
  12. package/dist/esm/apis/index.d.ts +2 -0
  13. package/dist/esm/apis/index.js +2 -0
  14. package/dist/esm/models/LearningSessionEvaluation.d.ts +80 -0
  15. package/dist/esm/models/LearningSessionEvaluation.js +75 -0
  16. package/dist/esm/models/PaginatedUserConcepts.d.ts +39 -0
  17. package/dist/esm/models/PaginatedUserConcepts.js +48 -0
  18. package/dist/esm/models/UpsertUserConceptByNameRequest.d.ts +32 -0
  19. package/dist/esm/models/UpsertUserConceptByNameRequest.js +43 -0
  20. package/dist/esm/models/UserConcept.d.ts +63 -0
  21. package/dist/esm/models/UserConcept.js +64 -0
  22. package/dist/esm/models/UserConceptConcept.d.ts +44 -0
  23. package/dist/esm/models/UserConceptConcept.js +51 -0
  24. package/dist/esm/models/index.d.ts +5 -0
  25. package/dist/esm/models/index.js +5 -0
  26. package/dist/models/LearningSessionEvaluation.d.ts +80 -0
  27. package/dist/models/LearningSessionEvaluation.js +82 -0
  28. package/dist/models/PaginatedUserConcepts.d.ts +39 -0
  29. package/dist/models/PaginatedUserConcepts.js +55 -0
  30. package/dist/models/UpsertUserConceptByNameRequest.d.ts +32 -0
  31. package/dist/models/UpsertUserConceptByNameRequest.js +50 -0
  32. package/dist/models/UserConcept.d.ts +63 -0
  33. package/dist/models/UserConcept.js +71 -0
  34. package/dist/models/UserConceptConcept.d.ts +44 -0
  35. package/dist/models/UserConceptConcept.js +58 -0
  36. package/dist/models/index.d.ts +5 -0
  37. package/dist/models/index.js +5 -0
  38. package/package.json +1 -1
@@ -0,0 +1,51 @@
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 UserConceptConcept interface.
16
+ */
17
+ export function instanceOfUserConceptConcept(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('name' in value) || value['name'] === undefined)
21
+ return false;
22
+ if (!('description' in value) || value['description'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function UserConceptConceptFromJSON(json) {
27
+ return UserConceptConceptFromJSONTyped(json, false);
28
+ }
29
+ export function UserConceptConceptFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'name': json['name'],
36
+ 'description': json['description'],
37
+ };
38
+ }
39
+ export function UserConceptConceptToJSON(json) {
40
+ return UserConceptConceptToJSONTyped(json, false);
41
+ }
42
+ export function UserConceptConceptToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'id': value['id'],
48
+ 'name': value['name'],
49
+ 'description': value['description'],
50
+ };
51
+ }
@@ -36,6 +36,7 @@ export * from './HealthCheck';
36
36
  export * from './LearningDaysResponse';
37
37
  export * from './LearningMoment';
38
38
  export * from './LearningMomentCount';
39
+ export * from './LearningSessionEvaluation';
39
40
  export * from './LearningStreakResponse';
40
41
  export * from './Message';
41
42
  export * from './MessageAttachment';
@@ -47,6 +48,7 @@ export * from './PaginatedMessages';
47
48
  export * from './PaginatedQuizSessions';
48
49
  export * from './PaginatedQuizzes';
49
50
  export * from './PaginatedTaxonomies';
51
+ export * from './PaginatedUserConcepts';
50
52
  export * from './Plan';
51
53
  export * from './Quiz';
52
54
  export * from './QuizListItem';
@@ -82,8 +84,11 @@ export * from './UploadUrlRequest';
82
84
  export * from './UploadUrlRequestFilesInner';
83
85
  export * from './UploadUrlResponse';
84
86
  export * from './UpsertOverrideDto';
87
+ export * from './UpsertUserConceptByNameRequest';
85
88
  export * from './UpsertUserContextRequest';
86
89
  export * from './UpsertVoteRequest';
90
+ export * from './UserConcept';
91
+ export * from './UserConceptConcept';
87
92
  export * from './UserContext';
88
93
  export * from './Vote';
89
94
  export * from './VotesResponse';
@@ -38,6 +38,7 @@ export * from './HealthCheck';
38
38
  export * from './LearningDaysResponse';
39
39
  export * from './LearningMoment';
40
40
  export * from './LearningMomentCount';
41
+ export * from './LearningSessionEvaluation';
41
42
  export * from './LearningStreakResponse';
42
43
  export * from './Message';
43
44
  export * from './MessageAttachment';
@@ -49,6 +50,7 @@ export * from './PaginatedMessages';
49
50
  export * from './PaginatedQuizSessions';
50
51
  export * from './PaginatedQuizzes';
51
52
  export * from './PaginatedTaxonomies';
53
+ export * from './PaginatedUserConcepts';
52
54
  export * from './Plan';
53
55
  export * from './Quiz';
54
56
  export * from './QuizListItem';
@@ -84,8 +86,11 @@ export * from './UploadUrlRequest';
84
86
  export * from './UploadUrlRequestFilesInner';
85
87
  export * from './UploadUrlResponse';
86
88
  export * from './UpsertOverrideDto';
89
+ export * from './UpsertUserConceptByNameRequest';
87
90
  export * from './UpsertUserContextRequest';
88
91
  export * from './UpsertVoteRequest';
92
+ export * from './UserConcept';
93
+ export * from './UserConceptConcept';
89
94
  export * from './UserContext';
90
95
  export * from './Vote';
91
96
  export * from './VotesResponse';
@@ -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 LearningSessionEvaluation
16
+ */
17
+ export interface LearningSessionEvaluation {
18
+ /**
19
+ * Unique identifier for this evaluation row
20
+ * @type {string}
21
+ * @memberof LearningSessionEvaluation
22
+ */
23
+ id: string;
24
+ /**
25
+ * Chat the evaluation belongs to
26
+ * @type {string}
27
+ * @memberof LearningSessionEvaluation
28
+ */
29
+ chatId: string;
30
+ /**
31
+ * Message whose user turn this evaluation scored
32
+ * @type {string}
33
+ * @memberof LearningSessionEvaluation
34
+ */
35
+ messageId: string;
36
+ /**
37
+ * Evaluator-produced mastery strength for this turn, as a fixed-point string in [0, 1].
38
+ * @type {string}
39
+ * @memberof LearningSessionEvaluation
40
+ */
41
+ strength: string;
42
+ /**
43
+ * Evaluator-produced confidence weight for this turn's signal, as a fixed-point string in [0, 1].
44
+ * @type {string}
45
+ * @memberof LearningSessionEvaluation
46
+ */
47
+ confidence: string;
48
+ /**
49
+ * Short human-readable label for the evidence the evaluator surfaced (e.g. 'retrieval-correct').
50
+ * @type {string}
51
+ * @memberof LearningSessionEvaluation
52
+ */
53
+ evidenceLabel: string | null;
54
+ /**
55
+ * Free-form evaluator rationale.
56
+ * @type {string}
57
+ * @memberof LearningSessionEvaluation
58
+ */
59
+ reason: string | null;
60
+ /**
61
+ * Session beat the turn landed in (Level Up: 'orient' | 'warmup' | 'teach' | 'practice' | 'stretch' | 'teachback' | 'wrap'; Quick Practice: 'anchor' | 'retrieval' | 'commit').
62
+ * @type {string}
63
+ * @memberof LearningSessionEvaluation
64
+ */
65
+ sessionBeat: string;
66
+ /**
67
+ * When this evaluation was persisted
68
+ * @type {Date}
69
+ * @memberof LearningSessionEvaluation
70
+ */
71
+ createdAt: Date;
72
+ }
73
+ /**
74
+ * Check if a given object implements the LearningSessionEvaluation interface.
75
+ */
76
+ export declare function instanceOfLearningSessionEvaluation(value: object): value is LearningSessionEvaluation;
77
+ export declare function LearningSessionEvaluationFromJSON(json: any): LearningSessionEvaluation;
78
+ export declare function LearningSessionEvaluationFromJSONTyped(json: any, ignoreDiscriminator: boolean): LearningSessionEvaluation;
79
+ export declare function LearningSessionEvaluationToJSON(json: any): LearningSessionEvaluation;
80
+ export declare function LearningSessionEvaluationToJSONTyped(value?: LearningSessionEvaluation | 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.instanceOfLearningSessionEvaluation = instanceOfLearningSessionEvaluation;
17
+ exports.LearningSessionEvaluationFromJSON = LearningSessionEvaluationFromJSON;
18
+ exports.LearningSessionEvaluationFromJSONTyped = LearningSessionEvaluationFromJSONTyped;
19
+ exports.LearningSessionEvaluationToJSON = LearningSessionEvaluationToJSON;
20
+ exports.LearningSessionEvaluationToJSONTyped = LearningSessionEvaluationToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the LearningSessionEvaluation interface.
23
+ */
24
+ function instanceOfLearningSessionEvaluation(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('chatId' in value) || value['chatId'] === undefined)
28
+ return false;
29
+ if (!('messageId' in value) || value['messageId'] === undefined)
30
+ return false;
31
+ if (!('strength' in value) || value['strength'] === undefined)
32
+ return false;
33
+ if (!('confidence' in value) || value['confidence'] === undefined)
34
+ return false;
35
+ if (!('evidenceLabel' in value) || value['evidenceLabel'] === undefined)
36
+ return false;
37
+ if (!('reason' in value) || value['reason'] === undefined)
38
+ return false;
39
+ if (!('sessionBeat' in value) || value['sessionBeat'] === undefined)
40
+ return false;
41
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
42
+ return false;
43
+ return true;
44
+ }
45
+ function LearningSessionEvaluationFromJSON(json) {
46
+ return LearningSessionEvaluationFromJSONTyped(json, false);
47
+ }
48
+ function LearningSessionEvaluationFromJSONTyped(json, ignoreDiscriminator) {
49
+ if (json == null) {
50
+ return json;
51
+ }
52
+ return {
53
+ 'id': json['id'],
54
+ 'chatId': json['chatId'],
55
+ 'messageId': json['messageId'],
56
+ 'strength': json['strength'],
57
+ 'confidence': json['confidence'],
58
+ 'evidenceLabel': json['evidenceLabel'],
59
+ 'reason': json['reason'],
60
+ 'sessionBeat': json['sessionBeat'],
61
+ 'createdAt': (new Date(json['createdAt'])),
62
+ };
63
+ }
64
+ function LearningSessionEvaluationToJSON(json) {
65
+ return LearningSessionEvaluationToJSONTyped(json, false);
66
+ }
67
+ function LearningSessionEvaluationToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'chatId': value['chatId'],
74
+ 'messageId': value['messageId'],
75
+ 'strength': value['strength'],
76
+ 'confidence': value['confidence'],
77
+ 'evidenceLabel': value['evidenceLabel'],
78
+ 'reason': value['reason'],
79
+ 'sessionBeat': value['sessionBeat'],
80
+ 'createdAt': value['createdAt'].toISOString(),
81
+ };
82
+ }
@@ -0,0 +1,39 @@
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 { UserConcept } from './UserConcept';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedUserConcepts
17
+ */
18
+ export interface PaginatedUserConcepts {
19
+ /**
20
+ * Array of user-concept rows for the current page
21
+ * @type {Array<UserConcept>}
22
+ * @memberof PaginatedUserConcepts
23
+ */
24
+ data: Array<UserConcept>;
25
+ /**
26
+ * Opaque cursor for fetching the next page. Null when there are no more results.
27
+ * @type {string}
28
+ * @memberof PaginatedUserConcepts
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedUserConcepts interface.
34
+ */
35
+ export declare function instanceOfPaginatedUserConcepts(value: object): value is PaginatedUserConcepts;
36
+ export declare function PaginatedUserConceptsFromJSON(json: any): PaginatedUserConcepts;
37
+ export declare function PaginatedUserConceptsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserConcepts;
38
+ export declare function PaginatedUserConceptsToJSON(json: any): PaginatedUserConcepts;
39
+ export declare function PaginatedUserConceptsToJSONTyped(value?: PaginatedUserConcepts | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfPaginatedUserConcepts = instanceOfPaginatedUserConcepts;
17
+ exports.PaginatedUserConceptsFromJSON = PaginatedUserConceptsFromJSON;
18
+ exports.PaginatedUserConceptsFromJSONTyped = PaginatedUserConceptsFromJSONTyped;
19
+ exports.PaginatedUserConceptsToJSON = PaginatedUserConceptsToJSON;
20
+ exports.PaginatedUserConceptsToJSONTyped = PaginatedUserConceptsToJSONTyped;
21
+ const UserConcept_1 = require("./UserConcept");
22
+ /**
23
+ * Check if a given object implements the PaginatedUserConcepts interface.
24
+ */
25
+ function instanceOfPaginatedUserConcepts(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('nextCursor' in value) || value['nextCursor'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function PaginatedUserConceptsFromJSON(json) {
33
+ return PaginatedUserConceptsFromJSONTyped(json, false);
34
+ }
35
+ function PaginatedUserConceptsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(UserConcept_1.UserConceptFromJSON)),
41
+ 'nextCursor': json['nextCursor'],
42
+ };
43
+ }
44
+ function PaginatedUserConceptsToJSON(json) {
45
+ return PaginatedUserConceptsToJSONTyped(json, false);
46
+ }
47
+ function PaginatedUserConceptsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(UserConcept_1.UserConceptToJSON)),
53
+ 'nextCursor': value['nextCursor'],
54
+ };
55
+ }
@@ -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 UpsertUserConceptByNameRequest
16
+ */
17
+ export interface UpsertUserConceptByNameRequest {
18
+ /**
19
+ * Learner-supplied concept name. Leading/trailing whitespace is trimmed and internal runs of whitespace are collapsed before lookup; matching is case-insensitive. When a new concept row is created, the caller's original casing is preserved.
20
+ * @type {string}
21
+ * @memberof UpsertUserConceptByNameRequest
22
+ */
23
+ name: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpsertUserConceptByNameRequest interface.
27
+ */
28
+ export declare function instanceOfUpsertUserConceptByNameRequest(value: object): value is UpsertUserConceptByNameRequest;
29
+ export declare function UpsertUserConceptByNameRequestFromJSON(json: any): UpsertUserConceptByNameRequest;
30
+ export declare function UpsertUserConceptByNameRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpsertUserConceptByNameRequest;
31
+ export declare function UpsertUserConceptByNameRequestToJSON(json: any): UpsertUserConceptByNameRequest;
32
+ export declare function UpsertUserConceptByNameRequestToJSONTyped(value?: UpsertUserConceptByNameRequest | 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.instanceOfUpsertUserConceptByNameRequest = instanceOfUpsertUserConceptByNameRequest;
17
+ exports.UpsertUserConceptByNameRequestFromJSON = UpsertUserConceptByNameRequestFromJSON;
18
+ exports.UpsertUserConceptByNameRequestFromJSONTyped = UpsertUserConceptByNameRequestFromJSONTyped;
19
+ exports.UpsertUserConceptByNameRequestToJSON = UpsertUserConceptByNameRequestToJSON;
20
+ exports.UpsertUserConceptByNameRequestToJSONTyped = UpsertUserConceptByNameRequestToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpsertUserConceptByNameRequest interface.
23
+ */
24
+ function instanceOfUpsertUserConceptByNameRequest(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpsertUserConceptByNameRequestFromJSON(json) {
30
+ return UpsertUserConceptByNameRequestFromJSONTyped(json, false);
31
+ }
32
+ function UpsertUserConceptByNameRequestFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'name': json['name'],
38
+ };
39
+ }
40
+ function UpsertUserConceptByNameRequestToJSON(json) {
41
+ return UpsertUserConceptByNameRequestToJSONTyped(json, false);
42
+ }
43
+ function UpsertUserConceptByNameRequestToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'name': value['name'],
49
+ };
50
+ }
@@ -0,0 +1,63 @@
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 { UserConceptConcept } from './UserConceptConcept';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UserConcept
17
+ */
18
+ export interface UserConcept {
19
+ /**
20
+ * Foreign key to the concept row
21
+ * @type {string}
22
+ * @memberof UserConcept
23
+ */
24
+ conceptId: string;
25
+ /**
26
+ * Current mastery strength for this learner + concept, expressed as a fixed-point string in [0, 1].
27
+ * @type {string}
28
+ * @memberof UserConcept
29
+ */
30
+ strength: string;
31
+ /**
32
+ * Current confidence weight for the strength signal, expressed as a fixed-point string in [0, 1].
33
+ * @type {string}
34
+ * @memberof UserConcept
35
+ */
36
+ confidence: string;
37
+ /**
38
+ * When this user-concept row was first created
39
+ * @type {Date}
40
+ * @memberof UserConcept
41
+ */
42
+ createdAt: Date;
43
+ /**
44
+ * When this user-concept row's strength/confidence last changed
45
+ * @type {Date}
46
+ * @memberof UserConcept
47
+ */
48
+ updatedAt: Date;
49
+ /**
50
+ * Concept metadata joined in for convenience
51
+ * @type {UserConceptConcept}
52
+ * @memberof UserConcept
53
+ */
54
+ concept: UserConceptConcept;
55
+ }
56
+ /**
57
+ * Check if a given object implements the UserConcept interface.
58
+ */
59
+ export declare function instanceOfUserConcept(value: object): value is UserConcept;
60
+ export declare function UserConceptFromJSON(json: any): UserConcept;
61
+ export declare function UserConceptFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConcept;
62
+ export declare function UserConceptToJSON(json: any): UserConcept;
63
+ export declare function UserConceptToJSONTyped(value?: UserConcept | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,71 @@
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.instanceOfUserConcept = instanceOfUserConcept;
17
+ exports.UserConceptFromJSON = UserConceptFromJSON;
18
+ exports.UserConceptFromJSONTyped = UserConceptFromJSONTyped;
19
+ exports.UserConceptToJSON = UserConceptToJSON;
20
+ exports.UserConceptToJSONTyped = UserConceptToJSONTyped;
21
+ const UserConceptConcept_1 = require("./UserConceptConcept");
22
+ /**
23
+ * Check if a given object implements the UserConcept interface.
24
+ */
25
+ function instanceOfUserConcept(value) {
26
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
27
+ return false;
28
+ if (!('strength' in value) || value['strength'] === undefined)
29
+ return false;
30
+ if (!('confidence' in value) || value['confidence'] === undefined)
31
+ return false;
32
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
33
+ return false;
34
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
35
+ return false;
36
+ if (!('concept' in value) || value['concept'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function UserConceptFromJSON(json) {
41
+ return UserConceptFromJSONTyped(json, false);
42
+ }
43
+ function UserConceptFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'conceptId': json['conceptId'],
49
+ 'strength': json['strength'],
50
+ 'confidence': json['confidence'],
51
+ 'createdAt': (new Date(json['createdAt'])),
52
+ 'updatedAt': (new Date(json['updatedAt'])),
53
+ 'concept': (0, UserConceptConcept_1.UserConceptConceptFromJSON)(json['concept']),
54
+ };
55
+ }
56
+ function UserConceptToJSON(json) {
57
+ return UserConceptToJSONTyped(json, false);
58
+ }
59
+ function UserConceptToJSONTyped(value, ignoreDiscriminator = false) {
60
+ if (value == null) {
61
+ return value;
62
+ }
63
+ return {
64
+ 'conceptId': value['conceptId'],
65
+ 'strength': value['strength'],
66
+ 'confidence': value['confidence'],
67
+ 'createdAt': value['createdAt'].toISOString(),
68
+ 'updatedAt': value['updatedAt'].toISOString(),
69
+ 'concept': (0, UserConceptConcept_1.UserConceptConceptToJSON)(value['concept']),
70
+ };
71
+ }
@@ -0,0 +1,44 @@
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 UserConceptConcept
16
+ */
17
+ export interface UserConceptConcept {
18
+ /**
19
+ * Unique identifier of the concept
20
+ * @type {string}
21
+ * @memberof UserConceptConcept
22
+ */
23
+ id: string;
24
+ /**
25
+ * Human-readable concept name
26
+ * @type {string}
27
+ * @memberof UserConceptConcept
28
+ */
29
+ name: string;
30
+ /**
31
+ * Optional free-form description
32
+ * @type {string}
33
+ * @memberof UserConceptConcept
34
+ */
35
+ description: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the UserConceptConcept interface.
39
+ */
40
+ export declare function instanceOfUserConceptConcept(value: object): value is UserConceptConcept;
41
+ export declare function UserConceptConceptFromJSON(json: any): UserConceptConcept;
42
+ export declare function UserConceptConceptFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserConceptConcept;
43
+ export declare function UserConceptConceptToJSON(json: any): UserConceptConcept;
44
+ export declare function UserConceptConceptToJSONTyped(value?: UserConceptConcept | null, ignoreDiscriminator?: boolean): any;