@instructure/athena-api-client 1.0.12 → 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.
- package/README.md +12 -0
- package/dist/apis/AdminApi.d.ts +92 -0
- package/dist/apis/AdminApi.js +271 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/esm/apis/AdminApi.d.ts +92 -0
- package/dist/esm/apis/AdminApi.js +267 -0
- package/dist/esm/apis/index.d.ts +1 -0
- package/dist/esm/apis/index.js +1 -0
- package/dist/esm/models/AdminChat.d.ts +112 -0
- package/dist/esm/models/AdminChat.js +98 -0
- package/dist/esm/models/AdminChatAnalysis.d.ts +68 -0
- package/dist/esm/models/AdminChatAnalysis.js +67 -0
- package/dist/esm/models/AdminChatWithStats.d.ts +62 -0
- package/dist/esm/models/AdminChatWithStats.js +63 -0
- package/dist/esm/models/AdminPaginatedChats.d.ts +39 -0
- package/dist/esm/models/AdminPaginatedChats.js +48 -0
- package/dist/esm/models/AdminStreak.d.ts +62 -0
- package/dist/esm/models/AdminStreak.js +63 -0
- package/dist/esm/models/AdminUserEngagement.d.ts +38 -0
- package/dist/esm/models/AdminUserEngagement.js +47 -0
- package/dist/esm/models/index.d.ts +6 -0
- package/dist/esm/models/index.js +6 -0
- package/dist/models/AdminChat.d.ts +112 -0
- package/dist/models/AdminChat.js +106 -0
- package/dist/models/AdminChatAnalysis.d.ts +68 -0
- package/dist/models/AdminChatAnalysis.js +74 -0
- package/dist/models/AdminChatWithStats.d.ts +62 -0
- package/dist/models/AdminChatWithStats.js +70 -0
- package/dist/models/AdminPaginatedChats.d.ts +39 -0
- package/dist/models/AdminPaginatedChats.js +55 -0
- package/dist/models/AdminStreak.d.ts +62 -0
- package/dist/models/AdminStreak.js +70 -0
- package/dist/models/AdminUserEngagement.d.ts +38 -0
- package/dist/models/AdminUserEngagement.js +54 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
|
@@ -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;
|
|
@@ -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.instanceOfAdminStreak = instanceOfAdminStreak;
|
|
17
|
+
exports.AdminStreakFromJSON = AdminStreakFromJSON;
|
|
18
|
+
exports.AdminStreakFromJSONTyped = AdminStreakFromJSONTyped;
|
|
19
|
+
exports.AdminStreakToJSON = AdminStreakToJSON;
|
|
20
|
+
exports.AdminStreakToJSONTyped = AdminStreakToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminStreak interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminStreak(value) {
|
|
25
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('currentDays' in value) || value['currentDays'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('longestDays' in value) || value['longestDays'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AdminStreakFromJSON(json) {
|
|
40
|
+
return AdminStreakFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AdminStreakFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'userId': json['userId'],
|
|
48
|
+
'currentDays': json['currentDays'],
|
|
49
|
+
'longestDays': json['longestDays'],
|
|
50
|
+
'totalMissedDays': json['totalMissedDays'],
|
|
51
|
+
'missedDaysInCycle': json['missedDaysInCycle'],
|
|
52
|
+
'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
function AdminStreakToJSON(json) {
|
|
56
|
+
return AdminStreakToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
function AdminStreakToJSONTyped(value, ignoreDiscriminator = false) {
|
|
59
|
+
if (value == null) {
|
|
60
|
+
return value;
|
|
61
|
+
}
|
|
62
|
+
return {
|
|
63
|
+
'userId': value['userId'],
|
|
64
|
+
'currentDays': value['currentDays'],
|
|
65
|
+
'longestDays': value['longestDays'],
|
|
66
|
+
'totalMissedDays': value['totalMissedDays'],
|
|
67
|
+
'missedDaysInCycle': value['missedDaysInCycle'],
|
|
68
|
+
'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
|
|
69
|
+
};
|
|
70
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
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 AdminUserEngagement
|
|
16
|
+
*/
|
|
17
|
+
export interface AdminUserEngagement {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {Date}
|
|
21
|
+
* @memberof AdminUserEngagement
|
|
22
|
+
*/
|
|
23
|
+
lastViewedChatAt: Date | null;
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {Date}
|
|
27
|
+
* @memberof AdminUserEngagement
|
|
28
|
+
*/
|
|
29
|
+
lastMessageCreatedAt: Date | null;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Check if a given object implements the AdminUserEngagement interface.
|
|
33
|
+
*/
|
|
34
|
+
export declare function instanceOfAdminUserEngagement(value: object): value is AdminUserEngagement;
|
|
35
|
+
export declare function AdminUserEngagementFromJSON(json: any): AdminUserEngagement;
|
|
36
|
+
export declare function AdminUserEngagementFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminUserEngagement;
|
|
37
|
+
export declare function AdminUserEngagementToJSON(json: any): AdminUserEngagement;
|
|
38
|
+
export declare function AdminUserEngagementToJSONTyped(value?: AdminUserEngagement | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
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.instanceOfAdminUserEngagement = instanceOfAdminUserEngagement;
|
|
17
|
+
exports.AdminUserEngagementFromJSON = AdminUserEngagementFromJSON;
|
|
18
|
+
exports.AdminUserEngagementFromJSONTyped = AdminUserEngagementFromJSONTyped;
|
|
19
|
+
exports.AdminUserEngagementToJSON = AdminUserEngagementToJSON;
|
|
20
|
+
exports.AdminUserEngagementToJSONTyped = AdminUserEngagementToJSONTyped;
|
|
21
|
+
/**
|
|
22
|
+
* Check if a given object implements the AdminUserEngagement interface.
|
|
23
|
+
*/
|
|
24
|
+
function instanceOfAdminUserEngagement(value) {
|
|
25
|
+
if (!('lastViewedChatAt' in value) || value['lastViewedChatAt'] === undefined)
|
|
26
|
+
return false;
|
|
27
|
+
if (!('lastMessageCreatedAt' in value) || value['lastMessageCreatedAt'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
function AdminUserEngagementFromJSON(json) {
|
|
32
|
+
return AdminUserEngagementFromJSONTyped(json, false);
|
|
33
|
+
}
|
|
34
|
+
function AdminUserEngagementFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if (json == null) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'lastViewedChatAt': (json['lastViewedChatAt'] == null ? null : new Date(json['lastViewedChatAt'])),
|
|
40
|
+
'lastMessageCreatedAt': (json['lastMessageCreatedAt'] == null ? null : new Date(json['lastMessageCreatedAt'])),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function AdminUserEngagementToJSON(json) {
|
|
44
|
+
return AdminUserEngagementToJSONTyped(json, false);
|
|
45
|
+
}
|
|
46
|
+
function AdminUserEngagementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'lastViewedChatAt': value['lastViewedChatAt'] == null ? value['lastViewedChatAt'] : value['lastViewedChatAt'].toISOString(),
|
|
52
|
+
'lastMessageCreatedAt': value['lastMessageCreatedAt'] == null ? value['lastMessageCreatedAt'] : value['lastMessageCreatedAt'].toISOString(),
|
|
53
|
+
};
|
|
54
|
+
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
export * from './Account';
|
|
2
|
+
export * from './AdminChat';
|
|
3
|
+
export * from './AdminChatAnalysis';
|
|
4
|
+
export * from './AdminChatWithStats';
|
|
5
|
+
export * from './AdminPaginatedChats';
|
|
6
|
+
export * from './AdminStreak';
|
|
7
|
+
export * from './AdminUserEngagement';
|
|
2
8
|
export * from './Chat';
|
|
3
9
|
export * from './ChatAnalysis';
|
|
4
10
|
export * from './ChatRequest';
|
package/dist/models/index.js
CHANGED
|
@@ -17,6 +17,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
/* tslint:disable */
|
|
18
18
|
/* eslint-disable */
|
|
19
19
|
__exportStar(require("./Account"), exports);
|
|
20
|
+
__exportStar(require("./AdminChat"), exports);
|
|
21
|
+
__exportStar(require("./AdminChatAnalysis"), exports);
|
|
22
|
+
__exportStar(require("./AdminChatWithStats"), exports);
|
|
23
|
+
__exportStar(require("./AdminPaginatedChats"), exports);
|
|
24
|
+
__exportStar(require("./AdminStreak"), exports);
|
|
25
|
+
__exportStar(require("./AdminUserEngagement"), exports);
|
|
20
26
|
__exportStar(require("./Chat"), exports);
|
|
21
27
|
__exportStar(require("./ChatAnalysis"), exports);
|
|
22
28
|
__exportStar(require("./ChatRequest"), exports);
|