@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,63 @@
|
|
|
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 AdminChatWithStats interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminChatWithStats(value) {
|
|
18
|
+
if (!('id' in value) || value['id'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('title' in value) || value['title'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('messageCount' in value) || value['messageCount'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('lastMessageAt' in value) || value['lastMessageAt'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('subjectName' in value) || value['subjectName'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function AdminChatWithStatsFromJSON(json) {
|
|
33
|
+
return AdminChatWithStatsFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function AdminChatWithStatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'id': json['id'],
|
|
41
|
+
'title': json['title'],
|
|
42
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
43
|
+
'messageCount': json['messageCount'],
|
|
44
|
+
'lastMessageAt': (json['lastMessageAt'] == null ? null : new Date(json['lastMessageAt'])),
|
|
45
|
+
'subjectName': json['subjectName'],
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function AdminChatWithStatsToJSON(json) {
|
|
49
|
+
return AdminChatWithStatsToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function AdminChatWithStatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'id': value['id'],
|
|
57
|
+
'title': value['title'],
|
|
58
|
+
'createdAt': value['createdAt'].toISOString(),
|
|
59
|
+
'messageCount': value['messageCount'],
|
|
60
|
+
'lastMessageAt': value['lastMessageAt'] == null ? value['lastMessageAt'] : value['lastMessageAt'].toISOString(),
|
|
61
|
+
'subjectName': value['subjectName'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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,48 @@
|
|
|
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 { AdminChatFromJSON, AdminChatToJSON, } from './AdminChat';
|
|
15
|
+
/**
|
|
16
|
+
* Check if a given object implements the AdminPaginatedChats interface.
|
|
17
|
+
*/
|
|
18
|
+
export function instanceOfAdminPaginatedChats(value) {
|
|
19
|
+
if (!('data' in value) || value['data'] === undefined)
|
|
20
|
+
return false;
|
|
21
|
+
if (!('nextCursor' in value) || value['nextCursor'] === undefined)
|
|
22
|
+
return false;
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
export function AdminPaginatedChatsFromJSON(json) {
|
|
26
|
+
return AdminPaginatedChatsFromJSONTyped(json, false);
|
|
27
|
+
}
|
|
28
|
+
export function AdminPaginatedChatsFromJSONTyped(json, ignoreDiscriminator) {
|
|
29
|
+
if (json == null) {
|
|
30
|
+
return json;
|
|
31
|
+
}
|
|
32
|
+
return {
|
|
33
|
+
'data': (json['data'].map(AdminChatFromJSON)),
|
|
34
|
+
'nextCursor': json['nextCursor'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function AdminPaginatedChatsToJSON(json) {
|
|
38
|
+
return AdminPaginatedChatsToJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
export function AdminPaginatedChatsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
41
|
+
if (value == null) {
|
|
42
|
+
return value;
|
|
43
|
+
}
|
|
44
|
+
return {
|
|
45
|
+
'data': (value['data'].map(AdminChatToJSON)),
|
|
46
|
+
'nextCursor': value['nextCursor'],
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -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,63 @@
|
|
|
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 AdminStreak interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminStreak(value) {
|
|
18
|
+
if (!('userId' in value) || value['userId'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('currentDays' in value) || value['currentDays'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
if (!('longestDays' in value) || value['longestDays'] === undefined)
|
|
23
|
+
return false;
|
|
24
|
+
if (!('totalMissedDays' in value) || value['totalMissedDays'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('missedDaysInCycle' in value) || value['missedDaysInCycle'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('lastMomentDate' in value) || value['lastMomentDate'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
export function AdminStreakFromJSON(json) {
|
|
33
|
+
return AdminStreakFromJSONTyped(json, false);
|
|
34
|
+
}
|
|
35
|
+
export function AdminStreakFromJSONTyped(json, ignoreDiscriminator) {
|
|
36
|
+
if (json == null) {
|
|
37
|
+
return json;
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
'userId': json['userId'],
|
|
41
|
+
'currentDays': json['currentDays'],
|
|
42
|
+
'longestDays': json['longestDays'],
|
|
43
|
+
'totalMissedDays': json['totalMissedDays'],
|
|
44
|
+
'missedDaysInCycle': json['missedDaysInCycle'],
|
|
45
|
+
'lastMomentDate': (json['lastMomentDate'] == null ? null : new Date(json['lastMomentDate'])),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
export function AdminStreakToJSON(json) {
|
|
49
|
+
return AdminStreakToJSONTyped(json, false);
|
|
50
|
+
}
|
|
51
|
+
export function AdminStreakToJSONTyped(value, ignoreDiscriminator = false) {
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'userId': value['userId'],
|
|
57
|
+
'currentDays': value['currentDays'],
|
|
58
|
+
'longestDays': value['longestDays'],
|
|
59
|
+
'totalMissedDays': value['totalMissedDays'],
|
|
60
|
+
'missedDaysInCycle': value['missedDaysInCycle'],
|
|
61
|
+
'lastMomentDate': value['lastMomentDate'] == null ? value['lastMomentDate'] : value['lastMomentDate'].toISOString().substring(0, 10),
|
|
62
|
+
};
|
|
63
|
+
}
|
|
@@ -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,47 @@
|
|
|
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 AdminUserEngagement interface.
|
|
16
|
+
*/
|
|
17
|
+
export function instanceOfAdminUserEngagement(value) {
|
|
18
|
+
if (!('lastViewedChatAt' in value) || value['lastViewedChatAt'] === undefined)
|
|
19
|
+
return false;
|
|
20
|
+
if (!('lastMessageCreatedAt' in value) || value['lastMessageCreatedAt'] === undefined)
|
|
21
|
+
return false;
|
|
22
|
+
return true;
|
|
23
|
+
}
|
|
24
|
+
export function AdminUserEngagementFromJSON(json) {
|
|
25
|
+
return AdminUserEngagementFromJSONTyped(json, false);
|
|
26
|
+
}
|
|
27
|
+
export function AdminUserEngagementFromJSONTyped(json, ignoreDiscriminator) {
|
|
28
|
+
if (json == null) {
|
|
29
|
+
return json;
|
|
30
|
+
}
|
|
31
|
+
return {
|
|
32
|
+
'lastViewedChatAt': (json['lastViewedChatAt'] == null ? null : new Date(json['lastViewedChatAt'])),
|
|
33
|
+
'lastMessageCreatedAt': (json['lastMessageCreatedAt'] == null ? null : new Date(json['lastMessageCreatedAt'])),
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
export function AdminUserEngagementToJSON(json) {
|
|
37
|
+
return AdminUserEngagementToJSONTyped(json, false);
|
|
38
|
+
}
|
|
39
|
+
export function AdminUserEngagementToJSONTyped(value, ignoreDiscriminator = false) {
|
|
40
|
+
if (value == null) {
|
|
41
|
+
return value;
|
|
42
|
+
}
|
|
43
|
+
return {
|
|
44
|
+
'lastViewedChatAt': value['lastViewedChatAt'] == null ? value['lastViewedChatAt'] : value['lastViewedChatAt'].toISOString(),
|
|
45
|
+
'lastMessageCreatedAt': value['lastMessageCreatedAt'] == null ? value['lastMessageCreatedAt'] : value['lastMessageCreatedAt'].toISOString(),
|
|
46
|
+
};
|
|
47
|
+
}
|
|
@@ -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/esm/models/index.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
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';
|
|
5
11
|
export * from './ChatAnalysis';
|
|
6
12
|
export * from './ChatRequest';
|
|
@@ -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;
|