@easyedu/js-lsm-api 1.103.0 → 1.105.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/.openapi-generator/FILES +30 -0
- package/README.md +24 -2
- package/dist/apis/ChatApi.d.ts +98 -0
- package/dist/apis/ChatApi.js +255 -0
- package/dist/apis/EmailTemplateApi.d.ts +32 -0
- package/dist/apis/EmailTemplateApi.js +64 -1
- package/dist/esm/apis/ChatApi.d.ts +98 -0
- package/dist/esm/apis/ChatApi.js +255 -0
- package/dist/esm/apis/EmailTemplateApi.d.ts +32 -0
- package/dist/esm/apis/EmailTemplateApi.js +63 -0
- package/dist/esm/models/AdminChatMessage.d.ts +51 -0
- package/dist/esm/models/AdminChatMessage.js +54 -0
- package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
- package/dist/esm/models/AdminConversationDetail.js +81 -0
- package/dist/esm/models/AdminConversationList.d.ts +57 -0
- package/dist/esm/models/AdminConversationList.js +60 -0
- package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
- package/dist/esm/models/AdminConversationSummary.js +76 -0
- package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
- package/dist/esm/models/ChatDailyUsage.js +48 -0
- package/dist/esm/models/ChatModelUsage.d.ts +68 -0
- package/dist/esm/models/ChatModelUsage.js +67 -0
- package/dist/esm/models/ChatQuota.d.ts +56 -0
- package/dist/esm/models/ChatQuota.js +59 -0
- package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
- package/dist/esm/models/ChatQuotaExceeded.js +59 -0
- package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
- package/dist/esm/models/ChatTurnUsage.js +78 -0
- package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
- package/dist/esm/models/ChatUsageTotals.js +67 -0
- package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
- package/dist/esm/models/ChatUserIdentity.js +55 -0
- package/dist/esm/models/GetChatSettings.d.ts +51 -0
- package/dist/esm/models/GetChatSettings.js +57 -0
- package/dist/esm/models/GetChatUsage.d.ts +59 -0
- package/dist/esm/models/GetChatUsage.js +62 -0
- package/dist/esm/models/GetEmailDelivery.d.ts +31 -0
- package/dist/esm/models/GetEmailDelivery.js +13 -0
- package/dist/esm/models/GetPortalInvitationSummary.d.ts +102 -0
- package/dist/esm/models/GetPortalInvitationSummary.js +87 -0
- package/dist/esm/models/GetPortalUser.d.ts +7 -0
- package/dist/esm/models/GetPortalUser.js +3 -0
- package/dist/esm/models/PutChatSettings.d.ts +32 -0
- package/dist/esm/models/PutChatSettings.js +43 -0
- package/dist/esm/models/index.d.ts +15 -0
- package/dist/esm/models/index.js +15 -0
- package/dist/models/AdminChatMessage.d.ts +51 -0
- package/dist/models/AdminChatMessage.js +61 -0
- package/dist/models/AdminConversationDetail.d.ts +90 -0
- package/dist/models/AdminConversationDetail.js +88 -0
- package/dist/models/AdminConversationList.d.ts +57 -0
- package/dist/models/AdminConversationList.js +67 -0
- package/dist/models/AdminConversationSummary.d.ts +83 -0
- package/dist/models/AdminConversationSummary.js +83 -0
- package/dist/models/ChatDailyUsage.d.ts +39 -0
- package/dist/models/ChatDailyUsage.js +55 -0
- package/dist/models/ChatModelUsage.d.ts +68 -0
- package/dist/models/ChatModelUsage.js +74 -0
- package/dist/models/ChatQuota.d.ts +56 -0
- package/dist/models/ChatQuota.js +66 -0
- package/dist/models/ChatQuotaExceeded.d.ts +56 -0
- package/dist/models/ChatQuotaExceeded.js +66 -0
- package/dist/models/ChatTurnUsage.d.ts +82 -0
- package/dist/models/ChatTurnUsage.js +86 -0
- package/dist/models/ChatUsageTotals.d.ts +68 -0
- package/dist/models/ChatUsageTotals.js +74 -0
- package/dist/models/ChatUserIdentity.d.ts +50 -0
- package/dist/models/ChatUserIdentity.js +62 -0
- package/dist/models/GetChatSettings.d.ts +51 -0
- package/dist/models/GetChatSettings.js +65 -0
- package/dist/models/GetChatUsage.d.ts +59 -0
- package/dist/models/GetChatUsage.js +69 -0
- package/dist/models/GetEmailDelivery.d.ts +31 -0
- package/dist/models/GetEmailDelivery.js +13 -0
- package/dist/models/GetPortalInvitationSummary.d.ts +102 -0
- package/dist/models/GetPortalInvitationSummary.js +95 -0
- package/dist/models/GetPortalUser.d.ts +7 -0
- package/dist/models/GetPortalUser.js +3 -0
- package/dist/models/PutChatSettings.d.ts +32 -0
- package/dist/models/PutChatSettings.js +50 -0
- package/dist/models/index.d.ts +15 -0
- package/dist/models/index.js +15 -0
- package/docs/AdminChatMessage.md +40 -0
- package/docs/AdminConversationDetail.md +52 -0
- package/docs/AdminConversationList.md +42 -0
- package/docs/AdminConversationSummary.md +50 -0
- package/docs/ChatApi.md +422 -0
- package/docs/ChatDailyUsage.md +36 -0
- package/docs/ChatModelUsage.md +46 -0
- package/docs/ChatQuota.md +42 -0
- package/docs/ChatQuotaExceeded.md +42 -0
- package/docs/ChatTurnUsage.md +48 -0
- package/docs/ChatUsageTotals.md +46 -0
- package/docs/ChatUserIdentity.md +40 -0
- package/docs/EmailTemplateApi.md +82 -1
- package/docs/GetChatSettings.md +38 -0
- package/docs/GetChatUsage.md +42 -0
- package/docs/GetEmailDelivery.md +10 -0
- package/docs/GetPortalInvitationSummary.md +51 -0
- package/docs/GetPortalUser.md +2 -0
- package/docs/PutChatSettings.md +34 -0
- package/package.json +1 -1
- package/src/apis/ChatApi.ts +339 -0
- package/src/apis/EmailTemplateApi.ts +83 -0
- package/src/models/AdminChatMessage.ts +100 -0
- package/src/models/AdminConversationDetail.ts +175 -0
- package/src/models/AdminConversationList.ts +110 -0
- package/src/models/AdminConversationSummary.ts +159 -0
- package/src/models/ChatDailyUsage.ts +83 -0
- package/src/models/ChatModelUsage.ts +120 -0
- package/src/models/ChatQuota.ts +102 -0
- package/src/models/ChatQuotaExceeded.ts +102 -0
- package/src/models/ChatTurnUsage.ts +140 -0
- package/src/models/ChatUsageTotals.ts +120 -0
- package/src/models/ChatUserIdentity.ts +93 -0
- package/src/models/GetChatSettings.ts +94 -0
- package/src/models/GetChatUsage.ts +124 -0
- package/src/models/GetEmailDelivery.ts +49 -0
- package/src/models/GetPortalInvitationSummary.ts +160 -0
- package/src/models/GetPortalUser.ts +16 -0
- package/src/models/PutChatSettings.ts +66 -0
- package/src/models/index.ts +15 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { ChatDailyUsage } from './ChatDailyUsage';
|
|
17
|
+
import {
|
|
18
|
+
ChatDailyUsageFromJSON,
|
|
19
|
+
ChatDailyUsageFromJSONTyped,
|
|
20
|
+
ChatDailyUsageToJSON,
|
|
21
|
+
ChatDailyUsageToJSONTyped,
|
|
22
|
+
} from './ChatDailyUsage';
|
|
23
|
+
import type { ChatModelUsage } from './ChatModelUsage';
|
|
24
|
+
import {
|
|
25
|
+
ChatModelUsageFromJSON,
|
|
26
|
+
ChatModelUsageFromJSONTyped,
|
|
27
|
+
ChatModelUsageToJSON,
|
|
28
|
+
ChatModelUsageToJSONTyped,
|
|
29
|
+
} from './ChatModelUsage';
|
|
30
|
+
import type { ChatUsageTotals } from './ChatUsageTotals';
|
|
31
|
+
import {
|
|
32
|
+
ChatUsageTotalsFromJSON,
|
|
33
|
+
ChatUsageTotalsFromJSONTyped,
|
|
34
|
+
ChatUsageTotalsToJSON,
|
|
35
|
+
ChatUsageTotalsToJSONTyped,
|
|
36
|
+
} from './ChatUsageTotals';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface GetChatUsage
|
|
42
|
+
*/
|
|
43
|
+
export interface GetChatUsage {
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {number}
|
|
47
|
+
* @memberof GetChatUsage
|
|
48
|
+
*/
|
|
49
|
+
from: number;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {number}
|
|
53
|
+
* @memberof GetChatUsage
|
|
54
|
+
*/
|
|
55
|
+
to: number;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {ChatUsageTotals}
|
|
59
|
+
* @memberof GetChatUsage
|
|
60
|
+
*/
|
|
61
|
+
totals: ChatUsageTotals;
|
|
62
|
+
/**
|
|
63
|
+
*
|
|
64
|
+
* @type {Array<ChatDailyUsage>}
|
|
65
|
+
* @memberof GetChatUsage
|
|
66
|
+
*/
|
|
67
|
+
daily: Array<ChatDailyUsage>;
|
|
68
|
+
/**
|
|
69
|
+
*
|
|
70
|
+
* @type {Array<ChatModelUsage>}
|
|
71
|
+
* @memberof GetChatUsage
|
|
72
|
+
*/
|
|
73
|
+
modelUsage: Array<ChatModelUsage>;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Check if a given object implements the GetChatUsage interface.
|
|
78
|
+
*/
|
|
79
|
+
export function instanceOfGetChatUsage(value: object): value is GetChatUsage {
|
|
80
|
+
if (!('from' in value) || value['from'] === undefined) return false;
|
|
81
|
+
if (!('to' in value) || value['to'] === undefined) return false;
|
|
82
|
+
if (!('totals' in value) || value['totals'] === undefined) return false;
|
|
83
|
+
if (!('daily' in value) || value['daily'] === undefined) return false;
|
|
84
|
+
if (!('modelUsage' in value) || value['modelUsage'] === undefined) return false;
|
|
85
|
+
return true;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function GetChatUsageFromJSON(json: any): GetChatUsage {
|
|
89
|
+
return GetChatUsageFromJSONTyped(json, false);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function GetChatUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatUsage {
|
|
93
|
+
if (json == null) {
|
|
94
|
+
return json;
|
|
95
|
+
}
|
|
96
|
+
return {
|
|
97
|
+
|
|
98
|
+
'from': json['from'],
|
|
99
|
+
'to': json['to'],
|
|
100
|
+
'totals': ChatUsageTotalsFromJSON(json['totals']),
|
|
101
|
+
'daily': ((json['daily'] as Array<any>).map(ChatDailyUsageFromJSON)),
|
|
102
|
+
'modelUsage': ((json['model_usage'] as Array<any>).map(ChatModelUsageFromJSON)),
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function GetChatUsageToJSON(json: any): GetChatUsage {
|
|
107
|
+
return GetChatUsageToJSONTyped(json, false);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export function GetChatUsageToJSONTyped(value?: GetChatUsage | null, ignoreDiscriminator: boolean = false): any {
|
|
111
|
+
if (value == null) {
|
|
112
|
+
return value;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
return {
|
|
116
|
+
|
|
117
|
+
'from': value['from'],
|
|
118
|
+
'to': value['to'],
|
|
119
|
+
'totals': ChatUsageTotalsToJSON(value['totals']),
|
|
120
|
+
'daily': ((value['daily'] as Array<any>).map(ChatDailyUsageToJSON)),
|
|
121
|
+
'model_usage': ((value['modelUsage'] as Array<any>).map(ChatModelUsageToJSON)),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
|
|
17
|
+
import {
|
|
18
|
+
GetPortalInvitationSummaryFromJSON,
|
|
19
|
+
GetPortalInvitationSummaryFromJSONTyped,
|
|
20
|
+
GetPortalInvitationSummaryToJSON,
|
|
21
|
+
GetPortalInvitationSummaryToJSONTyped,
|
|
22
|
+
} from './GetPortalInvitationSummary';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -43,6 +51,12 @@ export interface GetEmailDelivery {
|
|
|
43
51
|
* @memberof GetEmailDelivery
|
|
44
52
|
*/
|
|
45
53
|
recipient: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GetEmailDelivery
|
|
58
|
+
*/
|
|
59
|
+
subject?: string | null;
|
|
46
60
|
/**
|
|
47
61
|
*
|
|
48
62
|
* @type {boolean}
|
|
@@ -103,6 +117,30 @@ export interface GetEmailDelivery {
|
|
|
103
117
|
* @memberof GetEmailDelivery
|
|
104
118
|
*/
|
|
105
119
|
failedAt?: number | null;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
* @type {string}
|
|
123
|
+
* @memberof GetEmailDelivery
|
|
124
|
+
*/
|
|
125
|
+
resendOfDeliveryId?: string | null;
|
|
126
|
+
/**
|
|
127
|
+
*
|
|
128
|
+
* @type {boolean}
|
|
129
|
+
* @memberof GetEmailDelivery
|
|
130
|
+
*/
|
|
131
|
+
canResend: boolean;
|
|
132
|
+
/**
|
|
133
|
+
*
|
|
134
|
+
* @type {string}
|
|
135
|
+
* @memberof GetEmailDelivery
|
|
136
|
+
*/
|
|
137
|
+
resendBlockedReason?: string | null;
|
|
138
|
+
/**
|
|
139
|
+
*
|
|
140
|
+
* @type {GetPortalInvitationSummary}
|
|
141
|
+
* @memberof GetEmailDelivery
|
|
142
|
+
*/
|
|
143
|
+
invitation?: GetPortalInvitationSummary | null;
|
|
106
144
|
}
|
|
107
145
|
|
|
108
146
|
|
|
@@ -132,6 +170,7 @@ export function instanceOfGetEmailDelivery(value: object): value is GetEmailDeli
|
|
|
132
170
|
if (!('status' in value) || value['status'] === undefined) return false;
|
|
133
171
|
if (!('attempts' in value) || value['attempts'] === undefined) return false;
|
|
134
172
|
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
173
|
+
if (!('canResend' in value) || value['canResend'] === undefined) return false;
|
|
135
174
|
return true;
|
|
136
175
|
}
|
|
137
176
|
|
|
@@ -149,6 +188,7 @@ export function GetEmailDeliveryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
149
188
|
'templateKey': json['template_key'],
|
|
150
189
|
'templateVersionId': json['template_version_id'] == null ? undefined : json['template_version_id'],
|
|
151
190
|
'recipient': json['recipient'],
|
|
191
|
+
'subject': json['subject'] == null ? undefined : json['subject'],
|
|
152
192
|
'isTest': json['is_test'],
|
|
153
193
|
'status': json['status'],
|
|
154
194
|
'attempts': json['attempts'],
|
|
@@ -159,6 +199,10 @@ export function GetEmailDeliveryFromJSONTyped(json: any, ignoreDiscriminator: bo
|
|
|
159
199
|
'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
|
|
160
200
|
'deliveredAt': json['delivered_at'] == null ? undefined : json['delivered_at'],
|
|
161
201
|
'failedAt': json['failed_at'] == null ? undefined : json['failed_at'],
|
|
202
|
+
'resendOfDeliveryId': json['resend_of_delivery_id'] == null ? undefined : json['resend_of_delivery_id'],
|
|
203
|
+
'canResend': json['can_resend'],
|
|
204
|
+
'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
|
|
205
|
+
'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
|
|
162
206
|
};
|
|
163
207
|
}
|
|
164
208
|
|
|
@@ -177,6 +221,7 @@ export function GetEmailDeliveryToJSONTyped(value?: GetEmailDelivery | null, ign
|
|
|
177
221
|
'template_key': value['templateKey'],
|
|
178
222
|
'template_version_id': value['templateVersionId'],
|
|
179
223
|
'recipient': value['recipient'],
|
|
224
|
+
'subject': value['subject'],
|
|
180
225
|
'is_test': value['isTest'],
|
|
181
226
|
'status': value['status'],
|
|
182
227
|
'attempts': value['attempts'],
|
|
@@ -187,6 +232,10 @@ export function GetEmailDeliveryToJSONTyped(value?: GetEmailDelivery | null, ign
|
|
|
187
232
|
'accepted_at': value['acceptedAt'],
|
|
188
233
|
'delivered_at': value['deliveredAt'],
|
|
189
234
|
'failed_at': value['failedAt'],
|
|
235
|
+
'resend_of_delivery_id': value['resendOfDeliveryId'],
|
|
236
|
+
'can_resend': value['canResend'],
|
|
237
|
+
'resend_blocked_reason': value['resendBlockedReason'],
|
|
238
|
+
'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
|
|
190
239
|
};
|
|
191
240
|
}
|
|
192
241
|
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
* Invitation lifecycle and latest email delivery state for a portal user.
|
|
18
|
+
* @export
|
|
19
|
+
* @interface GetPortalInvitationSummary
|
|
20
|
+
*/
|
|
21
|
+
export interface GetPortalInvitationSummary {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof GetPortalInvitationSummary
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {GetPortalInvitationSummaryStatusEnum}
|
|
31
|
+
* @memberof GetPortalInvitationSummary
|
|
32
|
+
*/
|
|
33
|
+
status: GetPortalInvitationSummaryStatusEnum;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {number}
|
|
37
|
+
* @memberof GetPortalInvitationSummary
|
|
38
|
+
*/
|
|
39
|
+
invitedAt: number;
|
|
40
|
+
/**
|
|
41
|
+
*
|
|
42
|
+
* @type {number}
|
|
43
|
+
* @memberof GetPortalInvitationSummary
|
|
44
|
+
*/
|
|
45
|
+
expiresAt: number;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {number}
|
|
49
|
+
* @memberof GetPortalInvitationSummary
|
|
50
|
+
*/
|
|
51
|
+
acceptedAt?: number | null;
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
* @type {number}
|
|
55
|
+
* @memberof GetPortalInvitationSummary
|
|
56
|
+
*/
|
|
57
|
+
lastSentAt?: number | null;
|
|
58
|
+
/**
|
|
59
|
+
*
|
|
60
|
+
* @type {GetPortalInvitationSummaryLatestDeliveryStatusEnum}
|
|
61
|
+
* @memberof GetPortalInvitationSummary
|
|
62
|
+
*/
|
|
63
|
+
latestDeliveryStatus?: GetPortalInvitationSummaryLatestDeliveryStatusEnum | null;
|
|
64
|
+
/**
|
|
65
|
+
*
|
|
66
|
+
* @type {boolean}
|
|
67
|
+
* @memberof GetPortalInvitationSummary
|
|
68
|
+
*/
|
|
69
|
+
canResend: boolean;
|
|
70
|
+
/**
|
|
71
|
+
*
|
|
72
|
+
* @type {string}
|
|
73
|
+
* @memberof GetPortalInvitationSummary
|
|
74
|
+
*/
|
|
75
|
+
resendBlockedReason?: string | null;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* @export
|
|
81
|
+
*/
|
|
82
|
+
export const GetPortalInvitationSummaryStatusEnum = {
|
|
83
|
+
Pending: 'pending',
|
|
84
|
+
Expired: 'expired',
|
|
85
|
+
Accepted: 'accepted'
|
|
86
|
+
} as const;
|
|
87
|
+
export type GetPortalInvitationSummaryStatusEnum = typeof GetPortalInvitationSummaryStatusEnum[keyof typeof GetPortalInvitationSummaryStatusEnum];
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
export const GetPortalInvitationSummaryLatestDeliveryStatusEnum = {
|
|
93
|
+
Queued: 'queued',
|
|
94
|
+
Processing: 'processing',
|
|
95
|
+
Accepted: 'accepted',
|
|
96
|
+
Delivered: 'delivered',
|
|
97
|
+
Deferred: 'deferred',
|
|
98
|
+
Failed: 'failed',
|
|
99
|
+
Complained: 'complained'
|
|
100
|
+
} as const;
|
|
101
|
+
export type GetPortalInvitationSummaryLatestDeliveryStatusEnum = typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum[keyof typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum];
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Check if a given object implements the GetPortalInvitationSummary interface.
|
|
106
|
+
*/
|
|
107
|
+
export function instanceOfGetPortalInvitationSummary(value: object): value is GetPortalInvitationSummary {
|
|
108
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
109
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
110
|
+
if (!('invitedAt' in value) || value['invitedAt'] === undefined) return false;
|
|
111
|
+
if (!('expiresAt' in value) || value['expiresAt'] === undefined) return false;
|
|
112
|
+
if (!('canResend' in value) || value['canResend'] === undefined) return false;
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function GetPortalInvitationSummaryFromJSON(json: any): GetPortalInvitationSummary {
|
|
117
|
+
return GetPortalInvitationSummaryFromJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function GetPortalInvitationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalInvitationSummary {
|
|
121
|
+
if (json == null) {
|
|
122
|
+
return json;
|
|
123
|
+
}
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'id': json['id'],
|
|
127
|
+
'status': json['status'],
|
|
128
|
+
'invitedAt': json['invited_at'],
|
|
129
|
+
'expiresAt': json['expires_at'],
|
|
130
|
+
'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
|
|
131
|
+
'lastSentAt': json['last_sent_at'] == null ? undefined : json['last_sent_at'],
|
|
132
|
+
'latestDeliveryStatus': json['latest_delivery_status'] == null ? undefined : json['latest_delivery_status'],
|
|
133
|
+
'canResend': json['can_resend'],
|
|
134
|
+
'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
|
|
135
|
+
};
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export function GetPortalInvitationSummaryToJSON(json: any): GetPortalInvitationSummary {
|
|
139
|
+
return GetPortalInvitationSummaryToJSONTyped(json, false);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function GetPortalInvitationSummaryToJSONTyped(value?: GetPortalInvitationSummary | null, ignoreDiscriminator: boolean = false): any {
|
|
143
|
+
if (value == null) {
|
|
144
|
+
return value;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
return {
|
|
148
|
+
|
|
149
|
+
'id': value['id'],
|
|
150
|
+
'status': value['status'],
|
|
151
|
+
'invited_at': value['invitedAt'],
|
|
152
|
+
'expires_at': value['expiresAt'],
|
|
153
|
+
'accepted_at': value['acceptedAt'],
|
|
154
|
+
'last_sent_at': value['lastSentAt'],
|
|
155
|
+
'latest_delivery_status': value['latestDeliveryStatus'],
|
|
156
|
+
'can_resend': value['canResend'],
|
|
157
|
+
'resend_blocked_reason': value['resendBlockedReason'],
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
|
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime';
|
|
16
|
+
import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
|
|
17
|
+
import {
|
|
18
|
+
GetPortalInvitationSummaryFromJSON,
|
|
19
|
+
GetPortalInvitationSummaryFromJSONTyped,
|
|
20
|
+
GetPortalInvitationSummaryToJSON,
|
|
21
|
+
GetPortalInvitationSummaryToJSONTyped,
|
|
22
|
+
} from './GetPortalInvitationSummary';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
* A user with their portal access information
|
|
18
26
|
* @export
|
|
@@ -55,6 +63,12 @@ export interface GetPortalUser {
|
|
|
55
63
|
* @memberof GetPortalUser
|
|
56
64
|
*/
|
|
57
65
|
isActive: boolean;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @type {GetPortalInvitationSummary}
|
|
69
|
+
* @memberof GetPortalUser
|
|
70
|
+
*/
|
|
71
|
+
invitation?: GetPortalInvitationSummary | null;
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
/**
|
|
@@ -86,6 +100,7 @@ export function GetPortalUserFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
86
100
|
'lastName': json['last_name'],
|
|
87
101
|
'role': json['role'],
|
|
88
102
|
'isActive': json['is_active'],
|
|
103
|
+
'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
|
|
89
104
|
};
|
|
90
105
|
}
|
|
91
106
|
|
|
@@ -106,6 +121,7 @@ export function GetPortalUserToJSONTyped(value?: GetPortalUser | null, ignoreDis
|
|
|
106
121
|
'last_name': value['lastName'],
|
|
107
122
|
'role': value['role'],
|
|
108
123
|
'is_active': value['isActive'],
|
|
124
|
+
'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
|
|
109
125
|
};
|
|
110
126
|
}
|
|
111
127
|
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* LMS API
|
|
5
|
+
* LMS API
|
|
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
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface PutChatSettings
|
|
20
|
+
*/
|
|
21
|
+
export interface PutChatSettings {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {number}
|
|
25
|
+
* @memberof PutChatSettings
|
|
26
|
+
*/
|
|
27
|
+
learnerDailyMessageLimit: number;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the PutChatSettings interface.
|
|
32
|
+
*/
|
|
33
|
+
export function instanceOfPutChatSettings(value: object): value is PutChatSettings {
|
|
34
|
+
if (!('learnerDailyMessageLimit' in value) || value['learnerDailyMessageLimit'] === undefined) return false;
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function PutChatSettingsFromJSON(json: any): PutChatSettings {
|
|
39
|
+
return PutChatSettingsFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function PutChatSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutChatSettings {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
|
|
48
|
+
'learnerDailyMessageLimit': json['learner_daily_message_limit'],
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function PutChatSettingsToJSON(json: any): PutChatSettings {
|
|
53
|
+
return PutChatSettingsToJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function PutChatSettingsToJSONTyped(value?: PutChatSettings | null, ignoreDiscriminator: boolean = false): any {
|
|
57
|
+
if (value == null) {
|
|
58
|
+
return value;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
|
|
63
|
+
'learner_daily_message_limit': value['learnerDailyMessageLimit'],
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
package/src/models/index.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
+
export * from './AdminChatMessage';
|
|
4
|
+
export * from './AdminConversationDetail';
|
|
5
|
+
export * from './AdminConversationList';
|
|
6
|
+
export * from './AdminConversationSummary';
|
|
3
7
|
export * from './ArtifactConflict';
|
|
4
8
|
export * from './BadgeIssuer';
|
|
5
9
|
export * from './Certificate';
|
|
@@ -22,6 +26,13 @@ export * from './CertificatePublic';
|
|
|
22
26
|
export * from './CertificateRenewalPolicy';
|
|
23
27
|
export * from './CertificateTemplate';
|
|
24
28
|
export * from './CertificateTemplateVersion';
|
|
29
|
+
export * from './ChatDailyUsage';
|
|
30
|
+
export * from './ChatModelUsage';
|
|
31
|
+
export * from './ChatQuota';
|
|
32
|
+
export * from './ChatQuotaExceeded';
|
|
33
|
+
export * from './ChatTurnUsage';
|
|
34
|
+
export * from './ChatUsageTotals';
|
|
35
|
+
export * from './ChatUserIdentity';
|
|
25
36
|
export * from './ContentLaunchMode';
|
|
26
37
|
export * from './ContentLibraryVersionStatus';
|
|
27
38
|
export * from './CourseCatalog';
|
|
@@ -41,6 +52,8 @@ export * from './GetCertificateTemplateList';
|
|
|
41
52
|
export * from './GetChangelogEntry';
|
|
42
53
|
export * from './GetChangelogList';
|
|
43
54
|
export * from './GetChatMessage';
|
|
55
|
+
export * from './GetChatSettings';
|
|
56
|
+
export * from './GetChatUsage';
|
|
44
57
|
export * from './GetContentLibraryVersion';
|
|
45
58
|
export * from './GetConversation';
|
|
46
59
|
export * from './GetConversationList';
|
|
@@ -83,6 +96,7 @@ export * from './GetLibraryQuizVersion';
|
|
|
83
96
|
export * from './GetPermission';
|
|
84
97
|
export * from './GetPortal';
|
|
85
98
|
export * from './GetPortalFaviconUpload';
|
|
99
|
+
export * from './GetPortalInvitationSummary';
|
|
86
100
|
export * from './GetPortalList';
|
|
87
101
|
export * from './GetPortalLogoUpload';
|
|
88
102
|
export * from './GetPortalUser';
|
|
@@ -220,6 +234,7 @@ export * from './PutBadgeIssuer';
|
|
|
220
234
|
export * from './PutCertificateConfig';
|
|
221
235
|
export * from './PutCertificateTemplate';
|
|
222
236
|
export * from './PutCertificateTemplateDraft';
|
|
237
|
+
export * from './PutChatSettings';
|
|
223
238
|
export * from './PutCourse';
|
|
224
239
|
export * from './PutCourseCatalog';
|
|
225
240
|
export * from './PutCourseEnrollment';
|