@instructure/athena-api-client 2.4.1 → 2.6.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 (34) hide show
  1. package/README.md +8 -0
  2. package/dist/apis/TaxonomiesApi.d.ts +62 -0
  3. package/dist/apis/TaxonomiesApi.js +147 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/esm/apis/TaxonomiesApi.d.ts +62 -0
  7. package/dist/esm/apis/TaxonomiesApi.js +143 -0
  8. package/dist/esm/apis/index.d.ts +1 -0
  9. package/dist/esm/apis/index.js +1 -0
  10. package/dist/esm/models/PaginatedTaxonomies.d.ts +39 -0
  11. package/dist/esm/models/PaginatedTaxonomies.js +48 -0
  12. package/dist/esm/models/TaxonomyDetail.d.ts +89 -0
  13. package/dist/esm/models/TaxonomyDetail.js +83 -0
  14. package/dist/esm/models/TaxonomyNode.d.ts +63 -0
  15. package/dist/esm/models/TaxonomyNode.js +64 -0
  16. package/dist/esm/models/TaxonomyNodeConcept.d.ts +32 -0
  17. package/dist/esm/models/TaxonomyNodeConcept.js +43 -0
  18. package/dist/esm/models/TaxonomySummary.d.ts +70 -0
  19. package/dist/esm/models/TaxonomySummary.js +70 -0
  20. package/dist/esm/models/index.d.ts +5 -0
  21. package/dist/esm/models/index.js +5 -0
  22. package/dist/models/PaginatedTaxonomies.d.ts +39 -0
  23. package/dist/models/PaginatedTaxonomies.js +55 -0
  24. package/dist/models/TaxonomyDetail.d.ts +89 -0
  25. package/dist/models/TaxonomyDetail.js +91 -0
  26. package/dist/models/TaxonomyNode.d.ts +63 -0
  27. package/dist/models/TaxonomyNode.js +71 -0
  28. package/dist/models/TaxonomyNodeConcept.d.ts +32 -0
  29. package/dist/models/TaxonomyNodeConcept.js +50 -0
  30. package/dist/models/TaxonomySummary.d.ts +70 -0
  31. package/dist/models/TaxonomySummary.js +78 -0
  32. package/dist/models/index.d.ts +5 -0
  33. package/dist/models/index.js +5 -0
  34. package/package.json +1 -1
@@ -0,0 +1,83 @@
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
+ import { TaxonomyNodeFromJSON, TaxonomyNodeToJSON, } from './TaxonomyNode';
15
+ /**
16
+ * @export
17
+ */
18
+ export const TaxonomyDetailStatusEnum = {
19
+ Draft: 'draft',
20
+ Active: 'active'
21
+ };
22
+ /**
23
+ * Check if a given object implements the TaxonomyDetail interface.
24
+ */
25
+ export function instanceOfTaxonomyDetail(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('slug' in value) || value['slug'] === undefined)
29
+ return false;
30
+ if (!('name' in value) || value['name'] === undefined)
31
+ return false;
32
+ if (!('description' in value) || value['description'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ if (!('masteryThreshold' in value) || value['masteryThreshold'] === undefined)
37
+ return false;
38
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
39
+ return false;
40
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
41
+ return false;
42
+ if (!('nodes' in value) || value['nodes'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ export function TaxonomyDetailFromJSON(json) {
47
+ return TaxonomyDetailFromJSONTyped(json, false);
48
+ }
49
+ export function TaxonomyDetailFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'id': json['id'],
55
+ 'slug': json['slug'],
56
+ 'name': json['name'],
57
+ 'description': json['description'],
58
+ 'status': json['status'],
59
+ 'masteryThreshold': json['masteryThreshold'],
60
+ 'createdAt': (new Date(json['createdAt'])),
61
+ 'updatedAt': (new Date(json['updatedAt'])),
62
+ 'nodes': (json['nodes'].map(TaxonomyNodeFromJSON)),
63
+ };
64
+ }
65
+ export function TaxonomyDetailToJSON(json) {
66
+ return TaxonomyDetailToJSONTyped(json, false);
67
+ }
68
+ export function TaxonomyDetailToJSONTyped(value, ignoreDiscriminator = false) {
69
+ if (value == null) {
70
+ return value;
71
+ }
72
+ return {
73
+ 'id': value['id'],
74
+ 'slug': value['slug'],
75
+ 'name': value['name'],
76
+ 'description': value['description'],
77
+ 'status': value['status'],
78
+ 'masteryThreshold': value['masteryThreshold'],
79
+ 'createdAt': value['createdAt'].toISOString(),
80
+ 'updatedAt': value['updatedAt'].toISOString(),
81
+ 'nodes': (value['nodes'].map(TaxonomyNodeToJSON)),
82
+ };
83
+ }
@@ -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 { TaxonomyNodeConcept } from './TaxonomyNodeConcept';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TaxonomyNode
17
+ */
18
+ export interface TaxonomyNode {
19
+ /**
20
+ * Node ID
21
+ * @type {string}
22
+ * @memberof TaxonomyNode
23
+ */
24
+ id: string;
25
+ /**
26
+ * Node name
27
+ * @type {string}
28
+ * @memberof TaxonomyNode
29
+ */
30
+ name: string;
31
+ /**
32
+ * Node description
33
+ * @type {string}
34
+ * @memberof TaxonomyNode
35
+ */
36
+ description: string;
37
+ /**
38
+ * Node weight (decimal)
39
+ * @type {string}
40
+ * @memberof TaxonomyNode
41
+ */
42
+ weight: string | null;
43
+ /**
44
+ * Concepts mapped to this node
45
+ * @type {Array<TaxonomyNodeConcept>}
46
+ * @memberof TaxonomyNode
47
+ */
48
+ concepts: Array<TaxonomyNodeConcept>;
49
+ /**
50
+ * Child nodes
51
+ * @type {Array<TaxonomyNode>}
52
+ * @memberof TaxonomyNode
53
+ */
54
+ children: Array<TaxonomyNode>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the TaxonomyNode interface.
58
+ */
59
+ export declare function instanceOfTaxonomyNode(value: object): value is TaxonomyNode;
60
+ export declare function TaxonomyNodeFromJSON(json: any): TaxonomyNode;
61
+ export declare function TaxonomyNodeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxonomyNode;
62
+ export declare function TaxonomyNodeToJSON(json: any): TaxonomyNode;
63
+ export declare function TaxonomyNodeToJSONTyped(value?: TaxonomyNode | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
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
+ import { TaxonomyNodeConceptFromJSON, TaxonomyNodeConceptToJSON, } from './TaxonomyNodeConcept';
15
+ /**
16
+ * Check if a given object implements the TaxonomyNode interface.
17
+ */
18
+ export function instanceOfTaxonomyNode(value) {
19
+ if (!('id' in value) || value['id'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('description' in value) || value['description'] === undefined)
24
+ return false;
25
+ if (!('weight' in value) || value['weight'] === undefined)
26
+ return false;
27
+ if (!('concepts' in value) || value['concepts'] === undefined)
28
+ return false;
29
+ if (!('children' in value) || value['children'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function TaxonomyNodeFromJSON(json) {
34
+ return TaxonomyNodeFromJSONTyped(json, false);
35
+ }
36
+ export function TaxonomyNodeFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'description': json['description'],
44
+ 'weight': json['weight'],
45
+ 'concepts': (json['concepts'].map(TaxonomyNodeConceptFromJSON)),
46
+ 'children': (json['children'].map(TaxonomyNodeFromJSON)),
47
+ };
48
+ }
49
+ export function TaxonomyNodeToJSON(json) {
50
+ return TaxonomyNodeToJSONTyped(json, false);
51
+ }
52
+ export function TaxonomyNodeToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'id': value['id'],
58
+ 'name': value['name'],
59
+ 'description': value['description'],
60
+ 'weight': value['weight'],
61
+ 'concepts': (value['concepts'].map(TaxonomyNodeConceptToJSON)),
62
+ 'children': (value['children'].map(TaxonomyNodeToJSON)),
63
+ };
64
+ }
@@ -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 TaxonomyNodeConcept
16
+ */
17
+ export interface TaxonomyNodeConcept {
18
+ /**
19
+ * Concept ID
20
+ * @type {string}
21
+ * @memberof TaxonomyNodeConcept
22
+ */
23
+ conceptId: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the TaxonomyNodeConcept interface.
27
+ */
28
+ export declare function instanceOfTaxonomyNodeConcept(value: object): value is TaxonomyNodeConcept;
29
+ export declare function TaxonomyNodeConceptFromJSON(json: any): TaxonomyNodeConcept;
30
+ export declare function TaxonomyNodeConceptFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxonomyNodeConcept;
31
+ export declare function TaxonomyNodeConceptToJSON(json: any): TaxonomyNodeConcept;
32
+ export declare function TaxonomyNodeConceptToJSONTyped(value?: TaxonomyNodeConcept | 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 TaxonomyNodeConcept interface.
16
+ */
17
+ export function instanceOfTaxonomyNodeConcept(value) {
18
+ if (!('conceptId' in value) || value['conceptId'] === undefined)
19
+ return false;
20
+ return true;
21
+ }
22
+ export function TaxonomyNodeConceptFromJSON(json) {
23
+ return TaxonomyNodeConceptFromJSONTyped(json, false);
24
+ }
25
+ export function TaxonomyNodeConceptFromJSONTyped(json, ignoreDiscriminator) {
26
+ if (json == null) {
27
+ return json;
28
+ }
29
+ return {
30
+ 'conceptId': json['conceptId'],
31
+ };
32
+ }
33
+ export function TaxonomyNodeConceptToJSON(json) {
34
+ return TaxonomyNodeConceptToJSONTyped(json, false);
35
+ }
36
+ export function TaxonomyNodeConceptToJSONTyped(value, ignoreDiscriminator = false) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'conceptId': value['conceptId'],
42
+ };
43
+ }
@@ -0,0 +1,70 @@
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 TaxonomySummary
16
+ */
17
+ export interface TaxonomySummary {
18
+ /**
19
+ * Taxonomy ID
20
+ * @type {string}
21
+ * @memberof TaxonomySummary
22
+ */
23
+ id: string;
24
+ /**
25
+ * URL slug
26
+ * @type {string}
27
+ * @memberof TaxonomySummary
28
+ */
29
+ slug: string;
30
+ /**
31
+ * Taxonomy name
32
+ * @type {string}
33
+ * @memberof TaxonomySummary
34
+ */
35
+ name: string;
36
+ /**
37
+ * Taxonomy description
38
+ * @type {string}
39
+ * @memberof TaxonomySummary
40
+ */
41
+ description: string;
42
+ /**
43
+ * Taxonomy status
44
+ * @type {string}
45
+ * @memberof TaxonomySummary
46
+ */
47
+ status: TaxonomySummaryStatusEnum;
48
+ /**
49
+ * Mastery threshold (decimal)
50
+ * @type {string}
51
+ * @memberof TaxonomySummary
52
+ */
53
+ masteryThreshold: string | null;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const TaxonomySummaryStatusEnum: {
59
+ readonly Draft: "draft";
60
+ readonly Active: "active";
61
+ };
62
+ export type TaxonomySummaryStatusEnum = typeof TaxonomySummaryStatusEnum[keyof typeof TaxonomySummaryStatusEnum];
63
+ /**
64
+ * Check if a given object implements the TaxonomySummary interface.
65
+ */
66
+ export declare function instanceOfTaxonomySummary(value: object): value is TaxonomySummary;
67
+ export declare function TaxonomySummaryFromJSON(json: any): TaxonomySummary;
68
+ export declare function TaxonomySummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxonomySummary;
69
+ export declare function TaxonomySummaryToJSON(json: any): TaxonomySummary;
70
+ export declare function TaxonomySummaryToJSONTyped(value?: TaxonomySummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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
+ * @export
16
+ */
17
+ export const TaxonomySummaryStatusEnum = {
18
+ Draft: 'draft',
19
+ Active: 'active'
20
+ };
21
+ /**
22
+ * Check if a given object implements the TaxonomySummary interface.
23
+ */
24
+ export function instanceOfTaxonomySummary(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('slug' in value) || value['slug'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('description' in value) || value['description'] === undefined)
32
+ return false;
33
+ if (!('status' in value) || value['status'] === undefined)
34
+ return false;
35
+ if (!('masteryThreshold' in value) || value['masteryThreshold'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function TaxonomySummaryFromJSON(json) {
40
+ return TaxonomySummaryFromJSONTyped(json, false);
41
+ }
42
+ export function TaxonomySummaryFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'slug': json['slug'],
49
+ 'name': json['name'],
50
+ 'description': json['description'],
51
+ 'status': json['status'],
52
+ 'masteryThreshold': json['masteryThreshold'],
53
+ };
54
+ }
55
+ export function TaxonomySummaryToJSON(json) {
56
+ return TaxonomySummaryToJSONTyped(json, false);
57
+ }
58
+ export function TaxonomySummaryToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'slug': value['slug'],
65
+ 'name': value['name'],
66
+ 'description': value['description'],
67
+ 'status': value['status'],
68
+ 'masteryThreshold': value['masteryThreshold'],
69
+ };
70
+ }
@@ -42,6 +42,7 @@ export * from './MessagePartsInner';
42
42
  export * from './PaginatedChats';
43
43
  export * from './PaginatedLearningMoments';
44
44
  export * from './PaginatedMessages';
45
+ export * from './PaginatedTaxonomies';
45
46
  export * from './Plan';
46
47
  export * from './Quiz';
47
48
  export * from './QuizQuestion';
@@ -54,6 +55,10 @@ export * from './ScoreByTypeValue';
54
55
  export * from './ServiceToken';
55
56
  export * from './SubmitQuizResponseRequest';
56
57
  export * from './Tag';
58
+ export * from './TaxonomyDetail';
59
+ export * from './TaxonomyNode';
60
+ export * from './TaxonomyNodeConcept';
61
+ export * from './TaxonomySummary';
57
62
  export * from './UpdateAccountDto';
58
63
  export * from './UpdateChatRequest';
59
64
  export * from './UpdateFeatureDto';
@@ -44,6 +44,7 @@ export * from './MessagePartsInner';
44
44
  export * from './PaginatedChats';
45
45
  export * from './PaginatedLearningMoments';
46
46
  export * from './PaginatedMessages';
47
+ export * from './PaginatedTaxonomies';
47
48
  export * from './Plan';
48
49
  export * from './Quiz';
49
50
  export * from './QuizQuestion';
@@ -56,6 +57,10 @@ export * from './ScoreByTypeValue';
56
57
  export * from './ServiceToken';
57
58
  export * from './SubmitQuizResponseRequest';
58
59
  export * from './Tag';
60
+ export * from './TaxonomyDetail';
61
+ export * from './TaxonomyNode';
62
+ export * from './TaxonomyNodeConcept';
63
+ export * from './TaxonomySummary';
59
64
  export * from './UpdateAccountDto';
60
65
  export * from './UpdateChatRequest';
61
66
  export * from './UpdateFeatureDto';
@@ -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 { TaxonomySummary } from './TaxonomySummary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface PaginatedTaxonomies
17
+ */
18
+ export interface PaginatedTaxonomies {
19
+ /**
20
+ * Array of taxonomy summaries
21
+ * @type {Array<TaxonomySummary>}
22
+ * @memberof PaginatedTaxonomies
23
+ */
24
+ data: Array<TaxonomySummary>;
25
+ /**
26
+ * Total count of matching taxonomies
27
+ * @type {number}
28
+ * @memberof PaginatedTaxonomies
29
+ */
30
+ total: number;
31
+ }
32
+ /**
33
+ * Check if a given object implements the PaginatedTaxonomies interface.
34
+ */
35
+ export declare function instanceOfPaginatedTaxonomies(value: object): value is PaginatedTaxonomies;
36
+ export declare function PaginatedTaxonomiesFromJSON(json: any): PaginatedTaxonomies;
37
+ export declare function PaginatedTaxonomiesFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedTaxonomies;
38
+ export declare function PaginatedTaxonomiesToJSON(json: any): PaginatedTaxonomies;
39
+ export declare function PaginatedTaxonomiesToJSONTyped(value?: PaginatedTaxonomies | 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.instanceOfPaginatedTaxonomies = instanceOfPaginatedTaxonomies;
17
+ exports.PaginatedTaxonomiesFromJSON = PaginatedTaxonomiesFromJSON;
18
+ exports.PaginatedTaxonomiesFromJSONTyped = PaginatedTaxonomiesFromJSONTyped;
19
+ exports.PaginatedTaxonomiesToJSON = PaginatedTaxonomiesToJSON;
20
+ exports.PaginatedTaxonomiesToJSONTyped = PaginatedTaxonomiesToJSONTyped;
21
+ const TaxonomySummary_1 = require("./TaxonomySummary");
22
+ /**
23
+ * Check if a given object implements the PaginatedTaxonomies interface.
24
+ */
25
+ function instanceOfPaginatedTaxonomies(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function PaginatedTaxonomiesFromJSON(json) {
33
+ return PaginatedTaxonomiesFromJSONTyped(json, false);
34
+ }
35
+ function PaginatedTaxonomiesFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(TaxonomySummary_1.TaxonomySummaryFromJSON)),
41
+ 'total': json['total'],
42
+ };
43
+ }
44
+ function PaginatedTaxonomiesToJSON(json) {
45
+ return PaginatedTaxonomiesToJSONTyped(json, false);
46
+ }
47
+ function PaginatedTaxonomiesToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(TaxonomySummary_1.TaxonomySummaryToJSON)),
53
+ 'total': value['total'],
54
+ };
55
+ }
@@ -0,0 +1,89 @@
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 { TaxonomyNode } from './TaxonomyNode';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TaxonomyDetail
17
+ */
18
+ export interface TaxonomyDetail {
19
+ /**
20
+ * Taxonomy ID
21
+ * @type {string}
22
+ * @memberof TaxonomyDetail
23
+ */
24
+ id: string;
25
+ /**
26
+ * URL slug
27
+ * @type {string}
28
+ * @memberof TaxonomyDetail
29
+ */
30
+ slug: string;
31
+ /**
32
+ * Taxonomy name
33
+ * @type {string}
34
+ * @memberof TaxonomyDetail
35
+ */
36
+ name: string;
37
+ /**
38
+ * Taxonomy description
39
+ * @type {string}
40
+ * @memberof TaxonomyDetail
41
+ */
42
+ description: string;
43
+ /**
44
+ * Taxonomy status
45
+ * @type {string}
46
+ * @memberof TaxonomyDetail
47
+ */
48
+ status: TaxonomyDetailStatusEnum;
49
+ /**
50
+ * Mastery threshold (decimal)
51
+ * @type {string}
52
+ * @memberof TaxonomyDetail
53
+ */
54
+ masteryThreshold: string | null;
55
+ /**
56
+ * Creation timestamp
57
+ * @type {Date}
58
+ * @memberof TaxonomyDetail
59
+ */
60
+ createdAt: Date;
61
+ /**
62
+ * Last update timestamp
63
+ * @type {Date}
64
+ * @memberof TaxonomyDetail
65
+ */
66
+ updatedAt: Date;
67
+ /**
68
+ * Root-level nodes of the taxonomy tree
69
+ * @type {Array<TaxonomyNode>}
70
+ * @memberof TaxonomyDetail
71
+ */
72
+ nodes: Array<TaxonomyNode>;
73
+ }
74
+ /**
75
+ * @export
76
+ */
77
+ export declare const TaxonomyDetailStatusEnum: {
78
+ readonly Draft: "draft";
79
+ readonly Active: "active";
80
+ };
81
+ export type TaxonomyDetailStatusEnum = typeof TaxonomyDetailStatusEnum[keyof typeof TaxonomyDetailStatusEnum];
82
+ /**
83
+ * Check if a given object implements the TaxonomyDetail interface.
84
+ */
85
+ export declare function instanceOfTaxonomyDetail(value: object): value is TaxonomyDetail;
86
+ export declare function TaxonomyDetailFromJSON(json: any): TaxonomyDetail;
87
+ export declare function TaxonomyDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaxonomyDetail;
88
+ export declare function TaxonomyDetailToJSON(json: any): TaxonomyDetail;
89
+ export declare function TaxonomyDetailToJSONTyped(value?: TaxonomyDetail | null, ignoreDiscriminator?: boolean): any;