@instructure/athena-api-client 1.0.11 → 1.0.13-rc.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 (58) hide show
  1. package/README.md +18 -0
  2. package/dist/apis/AdminApi.d.ts +92 -0
  3. package/dist/apis/AdminApi.js +271 -0
  4. package/dist/apis/ChatAnalysisApi.d.ts +32 -0
  5. package/dist/apis/ChatAnalysisApi.js +74 -0
  6. package/dist/apis/UserContextApi.d.ts +45 -0
  7. package/dist/apis/UserContextApi.js +112 -0
  8. package/dist/apis/index.d.ts +3 -0
  9. package/dist/apis/index.js +3 -0
  10. package/dist/esm/apis/AdminApi.d.ts +92 -0
  11. package/dist/esm/apis/AdminApi.js +267 -0
  12. package/dist/esm/apis/ChatAnalysisApi.d.ts +32 -0
  13. package/dist/esm/apis/ChatAnalysisApi.js +70 -0
  14. package/dist/esm/apis/UserContextApi.d.ts +45 -0
  15. package/dist/esm/apis/UserContextApi.js +108 -0
  16. package/dist/esm/apis/index.d.ts +3 -0
  17. package/dist/esm/apis/index.js +3 -0
  18. package/dist/esm/models/AdminChat.d.ts +112 -0
  19. package/dist/esm/models/AdminChat.js +98 -0
  20. package/dist/esm/models/AdminChatAnalysis.d.ts +68 -0
  21. package/dist/esm/models/AdminChatAnalysis.js +67 -0
  22. package/dist/esm/models/AdminChatWithStats.d.ts +62 -0
  23. package/dist/esm/models/AdminChatWithStats.js +63 -0
  24. package/dist/esm/models/AdminPaginatedChats.d.ts +39 -0
  25. package/dist/esm/models/AdminPaginatedChats.js +48 -0
  26. package/dist/esm/models/AdminStreak.d.ts +62 -0
  27. package/dist/esm/models/AdminStreak.js +63 -0
  28. package/dist/esm/models/AdminUserEngagement.d.ts +38 -0
  29. package/dist/esm/models/AdminUserEngagement.js +47 -0
  30. package/dist/esm/models/ChatAnalysis.d.ts +68 -0
  31. package/dist/esm/models/ChatAnalysis.js +67 -0
  32. package/dist/esm/models/UpsertUserContextRequest.d.ts +56 -0
  33. package/dist/esm/models/UpsertUserContextRequest.js +49 -0
  34. package/dist/esm/models/UserContext.d.ts +80 -0
  35. package/dist/esm/models/UserContext.js +75 -0
  36. package/dist/esm/models/index.d.ts +9 -0
  37. package/dist/esm/models/index.js +9 -0
  38. package/dist/models/AdminChat.d.ts +112 -0
  39. package/dist/models/AdminChat.js +106 -0
  40. package/dist/models/AdminChatAnalysis.d.ts +68 -0
  41. package/dist/models/AdminChatAnalysis.js +74 -0
  42. package/dist/models/AdminChatWithStats.d.ts +62 -0
  43. package/dist/models/AdminChatWithStats.js +70 -0
  44. package/dist/models/AdminPaginatedChats.d.ts +39 -0
  45. package/dist/models/AdminPaginatedChats.js +55 -0
  46. package/dist/models/AdminStreak.d.ts +62 -0
  47. package/dist/models/AdminStreak.js +70 -0
  48. package/dist/models/AdminUserEngagement.d.ts +38 -0
  49. package/dist/models/AdminUserEngagement.js +54 -0
  50. package/dist/models/ChatAnalysis.d.ts +68 -0
  51. package/dist/models/ChatAnalysis.js +74 -0
  52. package/dist/models/UpsertUserContextRequest.d.ts +56 -0
  53. package/dist/models/UpsertUserContextRequest.js +56 -0
  54. package/dist/models/UserContext.d.ts +80 -0
  55. package/dist/models/UserContext.js +82 -0
  56. package/dist/models/index.d.ts +9 -0
  57. package/dist/models/index.js +9 -0
  58. package/package.json +1 -1
@@ -1,7 +1,14 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './Account';
4
+ export * from './AdminChat';
5
+ export * from './AdminChatAnalysis';
6
+ export * from './AdminChatWithStats';
7
+ export * from './AdminPaginatedChats';
8
+ export * from './AdminStreak';
9
+ export * from './AdminUserEngagement';
4
10
  export * from './Chat';
11
+ export * from './ChatAnalysis';
5
12
  export * from './ChatRequest';
6
13
  export * from './ChatRequestAttachmentsInner';
7
14
  export * from './CreateAccountRequest';
@@ -50,6 +57,8 @@ export * from './UploadUrlRequest';
50
57
  export * from './UploadUrlRequestFilesInner';
51
58
  export * from './UploadUrlResponse';
52
59
  export * from './UpsertOverrideDto';
60
+ export * from './UpsertUserContextRequest';
53
61
  export * from './UpsertVoteRequest';
62
+ export * from './UserContext';
54
63
  export * from './Vote';
55
64
  export * from './VotesResponse';
@@ -0,0 +1,112 @@
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 AdminChat
16
+ */
17
+ export interface AdminChat {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChat
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {Date}
27
+ * @memberof AdminChat
28
+ */
29
+ createdAt: Date;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminChat
34
+ */
35
+ title: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AdminChat
40
+ */
41
+ chatType: string | null;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AdminChat
46
+ */
47
+ lastViewedAt: Date | null;
48
+ /**
49
+ * External user ID (externalId), null if not set
50
+ * @type {string}
51
+ * @memberof AdminChat
52
+ */
53
+ userId: string | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof AdminChat
58
+ */
59
+ visibility: AdminChatVisibilityEnum;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AdminChat
64
+ */
65
+ subjectId: string | null;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof AdminChat
70
+ */
71
+ latestJobId: string | null;
72
+ /**
73
+ *
74
+ * @type {Date}
75
+ * @memberof AdminChat
76
+ */
77
+ analysisScheduledFor: Date | null;
78
+ /**
79
+ *
80
+ * @type {string}
81
+ * @memberof AdminChat
82
+ */
83
+ goal: string | null;
84
+ /**
85
+ *
86
+ * @type {boolean}
87
+ * @memberof AdminChat
88
+ */
89
+ goalAchieved: boolean | null;
90
+ /**
91
+ *
92
+ * @type {boolean}
93
+ * @memberof AdminChat
94
+ */
95
+ forReview: boolean;
96
+ }
97
+ /**
98
+ * @export
99
+ */
100
+ export declare const AdminChatVisibilityEnum: {
101
+ readonly Public: "public";
102
+ readonly Private: "private";
103
+ };
104
+ export type AdminChatVisibilityEnum = typeof AdminChatVisibilityEnum[keyof typeof AdminChatVisibilityEnum];
105
+ /**
106
+ * Check if a given object implements the AdminChat interface.
107
+ */
108
+ export declare function instanceOfAdminChat(value: object): value is AdminChat;
109
+ export declare function AdminChatFromJSON(json: any): AdminChat;
110
+ export declare function AdminChatFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChat;
111
+ export declare function AdminChatToJSON(json: any): AdminChat;
112
+ export declare function AdminChatToJSONTyped(value?: AdminChat | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,106 @@
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.AdminChatVisibilityEnum = void 0;
17
+ exports.instanceOfAdminChat = instanceOfAdminChat;
18
+ exports.AdminChatFromJSON = AdminChatFromJSON;
19
+ exports.AdminChatFromJSONTyped = AdminChatFromJSONTyped;
20
+ exports.AdminChatToJSON = AdminChatToJSON;
21
+ exports.AdminChatToJSONTyped = AdminChatToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AdminChatVisibilityEnum = {
26
+ Public: 'public',
27
+ Private: 'private'
28
+ };
29
+ /**
30
+ * Check if a given object implements the AdminChat interface.
31
+ */
32
+ function instanceOfAdminChat(value) {
33
+ if (!('id' in value) || value['id'] === undefined)
34
+ return false;
35
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
36
+ return false;
37
+ if (!('title' in value) || value['title'] === undefined)
38
+ return false;
39
+ if (!('chatType' in value) || value['chatType'] === undefined)
40
+ return false;
41
+ if (!('lastViewedAt' in value) || value['lastViewedAt'] === undefined)
42
+ return false;
43
+ if (!('userId' in value) || value['userId'] === undefined)
44
+ return false;
45
+ if (!('visibility' in value) || value['visibility'] === undefined)
46
+ return false;
47
+ if (!('subjectId' in value) || value['subjectId'] === undefined)
48
+ return false;
49
+ if (!('latestJobId' in value) || value['latestJobId'] === undefined)
50
+ return false;
51
+ if (!('analysisScheduledFor' in value) || value['analysisScheduledFor'] === undefined)
52
+ return false;
53
+ if (!('goal' in value) || value['goal'] === undefined)
54
+ return false;
55
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
56
+ return false;
57
+ if (!('forReview' in value) || value['forReview'] === undefined)
58
+ return false;
59
+ return true;
60
+ }
61
+ function AdminChatFromJSON(json) {
62
+ return AdminChatFromJSONTyped(json, false);
63
+ }
64
+ function AdminChatFromJSONTyped(json, ignoreDiscriminator) {
65
+ if (json == null) {
66
+ return json;
67
+ }
68
+ return {
69
+ 'id': json['id'],
70
+ 'createdAt': (new Date(json['createdAt'])),
71
+ 'title': json['title'],
72
+ 'chatType': json['chatType'],
73
+ 'lastViewedAt': (json['lastViewedAt'] == null ? null : new Date(json['lastViewedAt'])),
74
+ 'userId': json['userId'],
75
+ 'visibility': json['visibility'],
76
+ 'subjectId': json['subjectId'],
77
+ 'latestJobId': json['latestJobId'],
78
+ 'analysisScheduledFor': (json['analysisScheduledFor'] == null ? null : new Date(json['analysisScheduledFor'])),
79
+ 'goal': json['goal'],
80
+ 'goalAchieved': json['goalAchieved'],
81
+ 'forReview': json['forReview'],
82
+ };
83
+ }
84
+ function AdminChatToJSON(json) {
85
+ return AdminChatToJSONTyped(json, false);
86
+ }
87
+ function AdminChatToJSONTyped(value, ignoreDiscriminator = false) {
88
+ if (value == null) {
89
+ return value;
90
+ }
91
+ return {
92
+ 'id': value['id'],
93
+ 'createdAt': value['createdAt'].toISOString(),
94
+ 'title': value['title'],
95
+ 'chatType': value['chatType'],
96
+ 'lastViewedAt': value['lastViewedAt'] == null ? value['lastViewedAt'] : value['lastViewedAt'].toISOString(),
97
+ 'userId': value['userId'],
98
+ 'visibility': value['visibility'],
99
+ 'subjectId': value['subjectId'],
100
+ 'latestJobId': value['latestJobId'],
101
+ 'analysisScheduledFor': value['analysisScheduledFor'] == null ? value['analysisScheduledFor'] : value['analysisScheduledFor'].toISOString(),
102
+ 'goal': value['goal'],
103
+ 'goalAchieved': value['goalAchieved'],
104
+ 'forReview': value['forReview'],
105
+ };
106
+ }
@@ -0,0 +1,68 @@
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 AdminChatAnalysis
16
+ */
17
+ export interface AdminChatAnalysis {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChatAnalysis
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminChatAnalysis
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AdminChatAnalysis
34
+ */
35
+ goal: string | null;
36
+ /**
37
+ *
38
+ * @type {boolean}
39
+ * @memberof AdminChatAnalysis
40
+ */
41
+ goalAchieved: boolean | null;
42
+ /**
43
+ *
44
+ * @type {string}
45
+ * @memberof AdminChatAnalysis
46
+ */
47
+ subject: string | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AdminChatAnalysis
52
+ */
53
+ summary: string | null;
54
+ /**
55
+ *
56
+ * @type {Array<string>}
57
+ * @memberof AdminChatAnalysis
58
+ */
59
+ concepts: Array<string>;
60
+ }
61
+ /**
62
+ * Check if a given object implements the AdminChatAnalysis interface.
63
+ */
64
+ export declare function instanceOfAdminChatAnalysis(value: object): value is AdminChatAnalysis;
65
+ export declare function AdminChatAnalysisFromJSON(json: any): AdminChatAnalysis;
66
+ export declare function AdminChatAnalysisFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatAnalysis;
67
+ export declare function AdminChatAnalysisToJSON(json: any): AdminChatAnalysis;
68
+ export declare function AdminChatAnalysisToJSONTyped(value?: AdminChatAnalysis | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,74 @@
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.instanceOfAdminChatAnalysis = instanceOfAdminChatAnalysis;
17
+ exports.AdminChatAnalysisFromJSON = AdminChatAnalysisFromJSON;
18
+ exports.AdminChatAnalysisFromJSONTyped = AdminChatAnalysisFromJSONTyped;
19
+ exports.AdminChatAnalysisToJSON = AdminChatAnalysisToJSON;
20
+ exports.AdminChatAnalysisToJSONTyped = AdminChatAnalysisToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminChatAnalysis interface.
23
+ */
24
+ function instanceOfAdminChatAnalysis(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ if (!('goal' in value) || value['goal'] === undefined)
30
+ return false;
31
+ if (!('goalAchieved' in value) || value['goalAchieved'] === undefined)
32
+ return false;
33
+ if (!('subject' in value) || value['subject'] === undefined)
34
+ return false;
35
+ if (!('summary' in value) || value['summary'] === undefined)
36
+ return false;
37
+ if (!('concepts' in value) || value['concepts'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function AdminChatAnalysisFromJSON(json) {
42
+ return AdminChatAnalysisFromJSONTyped(json, false);
43
+ }
44
+ function AdminChatAnalysisFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'id': json['id'],
50
+ 'title': json['title'],
51
+ 'goal': json['goal'],
52
+ 'goalAchieved': json['goalAchieved'],
53
+ 'subject': json['subject'],
54
+ 'summary': json['summary'],
55
+ 'concepts': json['concepts'],
56
+ };
57
+ }
58
+ function AdminChatAnalysisToJSON(json) {
59
+ return AdminChatAnalysisToJSONTyped(json, false);
60
+ }
61
+ function AdminChatAnalysisToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'id': value['id'],
67
+ 'title': value['title'],
68
+ 'goal': value['goal'],
69
+ 'goalAchieved': value['goalAchieved'],
70
+ 'subject': value['subject'],
71
+ 'summary': value['summary'],
72
+ 'concepts': value['concepts'],
73
+ };
74
+ }
@@ -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 AdminChatWithStats
16
+ */
17
+ export interface AdminChatWithStats {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AdminChatWithStats
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AdminChatWithStats
28
+ */
29
+ title: string;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof AdminChatWithStats
34
+ */
35
+ createdAt: Date;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AdminChatWithStats
40
+ */
41
+ messageCount: number;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AdminChatWithStats
46
+ */
47
+ lastMessageAt: Date | null;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AdminChatWithStats
52
+ */
53
+ subjectName: string | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AdminChatWithStats interface.
57
+ */
58
+ export declare function instanceOfAdminChatWithStats(value: object): value is AdminChatWithStats;
59
+ export declare function AdminChatWithStatsFromJSON(json: any): AdminChatWithStats;
60
+ export declare function AdminChatWithStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminChatWithStats;
61
+ export declare function AdminChatWithStatsToJSON(json: any): AdminChatWithStats;
62
+ export declare function AdminChatWithStatsToJSONTyped(value?: AdminChatWithStats | 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.instanceOfAdminChatWithStats = instanceOfAdminChatWithStats;
17
+ exports.AdminChatWithStatsFromJSON = AdminChatWithStatsFromJSON;
18
+ exports.AdminChatWithStatsFromJSONTyped = AdminChatWithStatsFromJSONTyped;
19
+ exports.AdminChatWithStatsToJSON = AdminChatWithStatsToJSON;
20
+ exports.AdminChatWithStatsToJSONTyped = AdminChatWithStatsToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AdminChatWithStats interface.
23
+ */
24
+ function instanceOfAdminChatWithStats(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('title' in value) || value['title'] === undefined)
28
+ return false;
29
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
30
+ return false;
31
+ if (!('messageCount' in value) || value['messageCount'] === undefined)
32
+ return false;
33
+ if (!('lastMessageAt' in value) || value['lastMessageAt'] === undefined)
34
+ return false;
35
+ if (!('subjectName' in value) || value['subjectName'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function AdminChatWithStatsFromJSON(json) {
40
+ return AdminChatWithStatsFromJSONTyped(json, false);
41
+ }
42
+ function AdminChatWithStatsFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'id': json['id'],
48
+ 'title': json['title'],
49
+ 'createdAt': (new Date(json['createdAt'])),
50
+ 'messageCount': json['messageCount'],
51
+ 'lastMessageAt': (json['lastMessageAt'] == null ? null : new Date(json['lastMessageAt'])),
52
+ 'subjectName': json['subjectName'],
53
+ };
54
+ }
55
+ function AdminChatWithStatsToJSON(json) {
56
+ return AdminChatWithStatsToJSONTyped(json, false);
57
+ }
58
+ function AdminChatWithStatsToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'id': value['id'],
64
+ 'title': value['title'],
65
+ 'createdAt': value['createdAt'].toISOString(),
66
+ 'messageCount': value['messageCount'],
67
+ 'lastMessageAt': value['lastMessageAt'] == null ? value['lastMessageAt'] : value['lastMessageAt'].toISOString(),
68
+ 'subjectName': value['subjectName'],
69
+ };
70
+ }
@@ -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 { AdminChat } from './AdminChat';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AdminPaginatedChats
17
+ */
18
+ export interface AdminPaginatedChats {
19
+ /**
20
+ *
21
+ * @type {Array<AdminChat>}
22
+ * @memberof AdminPaginatedChats
23
+ */
24
+ data: Array<AdminChat>;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AdminPaginatedChats
29
+ */
30
+ nextCursor: string | null;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AdminPaginatedChats interface.
34
+ */
35
+ export declare function instanceOfAdminPaginatedChats(value: object): value is AdminPaginatedChats;
36
+ export declare function AdminPaginatedChatsFromJSON(json: any): AdminPaginatedChats;
37
+ export declare function AdminPaginatedChatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminPaginatedChats;
38
+ export declare function AdminPaginatedChatsToJSON(json: any): AdminPaginatedChats;
39
+ export declare function AdminPaginatedChatsToJSONTyped(value?: AdminPaginatedChats | 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.instanceOfAdminPaginatedChats = instanceOfAdminPaginatedChats;
17
+ exports.AdminPaginatedChatsFromJSON = AdminPaginatedChatsFromJSON;
18
+ exports.AdminPaginatedChatsFromJSONTyped = AdminPaginatedChatsFromJSONTyped;
19
+ exports.AdminPaginatedChatsToJSON = AdminPaginatedChatsToJSON;
20
+ exports.AdminPaginatedChatsToJSONTyped = AdminPaginatedChatsToJSONTyped;
21
+ const AdminChat_1 = require("./AdminChat");
22
+ /**
23
+ * Check if a given object implements the AdminPaginatedChats interface.
24
+ */
25
+ function instanceOfAdminPaginatedChats(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 AdminPaginatedChatsFromJSON(json) {
33
+ return AdminPaginatedChatsFromJSONTyped(json, false);
34
+ }
35
+ function AdminPaginatedChatsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'data': (json['data'].map(AdminChat_1.AdminChatFromJSON)),
41
+ 'nextCursor': json['nextCursor'],
42
+ };
43
+ }
44
+ function AdminPaginatedChatsToJSON(json) {
45
+ return AdminPaginatedChatsToJSONTyped(json, false);
46
+ }
47
+ function AdminPaginatedChatsToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'data': (value['data'].map(AdminChat_1.AdminChatToJSON)),
53
+ 'nextCursor': value['nextCursor'],
54
+ };
55
+ }
@@ -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 AdminStreak
16
+ */
17
+ export interface AdminStreak {
18
+ /**
19
+ * External user ID
20
+ * @type {string}
21
+ * @memberof AdminStreak
22
+ */
23
+ userId: string | null;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AdminStreak
28
+ */
29
+ currentDays: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AdminStreak
34
+ */
35
+ longestDays: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AdminStreak
40
+ */
41
+ totalMissedDays: number;
42
+ /**
43
+ *
44
+ * @type {Array<number>}
45
+ * @memberof AdminStreak
46
+ */
47
+ missedDaysInCycle: Array<number>;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof AdminStreak
52
+ */
53
+ lastMomentDate: Date | null;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AdminStreak interface.
57
+ */
58
+ export declare function instanceOfAdminStreak(value: object): value is AdminStreak;
59
+ export declare function AdminStreakFromJSON(json: any): AdminStreak;
60
+ export declare function AdminStreakFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminStreak;
61
+ export declare function AdminStreakToJSON(json: any): AdminStreak;
62
+ export declare function AdminStreakToJSONTyped(value?: AdminStreak | null, ignoreDiscriminator?: boolean): any;