@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.
Files changed (122) hide show
  1. package/.openapi-generator/FILES +30 -0
  2. package/README.md +24 -2
  3. package/dist/apis/ChatApi.d.ts +98 -0
  4. package/dist/apis/ChatApi.js +255 -0
  5. package/dist/apis/EmailTemplateApi.d.ts +32 -0
  6. package/dist/apis/EmailTemplateApi.js +64 -1
  7. package/dist/esm/apis/ChatApi.d.ts +98 -0
  8. package/dist/esm/apis/ChatApi.js +255 -0
  9. package/dist/esm/apis/EmailTemplateApi.d.ts +32 -0
  10. package/dist/esm/apis/EmailTemplateApi.js +63 -0
  11. package/dist/esm/models/AdminChatMessage.d.ts +51 -0
  12. package/dist/esm/models/AdminChatMessage.js +54 -0
  13. package/dist/esm/models/AdminConversationDetail.d.ts +90 -0
  14. package/dist/esm/models/AdminConversationDetail.js +81 -0
  15. package/dist/esm/models/AdminConversationList.d.ts +57 -0
  16. package/dist/esm/models/AdminConversationList.js +60 -0
  17. package/dist/esm/models/AdminConversationSummary.d.ts +83 -0
  18. package/dist/esm/models/AdminConversationSummary.js +76 -0
  19. package/dist/esm/models/ChatDailyUsage.d.ts +39 -0
  20. package/dist/esm/models/ChatDailyUsage.js +48 -0
  21. package/dist/esm/models/ChatModelUsage.d.ts +68 -0
  22. package/dist/esm/models/ChatModelUsage.js +67 -0
  23. package/dist/esm/models/ChatQuota.d.ts +56 -0
  24. package/dist/esm/models/ChatQuota.js +59 -0
  25. package/dist/esm/models/ChatQuotaExceeded.d.ts +56 -0
  26. package/dist/esm/models/ChatQuotaExceeded.js +59 -0
  27. package/dist/esm/models/ChatTurnUsage.d.ts +82 -0
  28. package/dist/esm/models/ChatTurnUsage.js +78 -0
  29. package/dist/esm/models/ChatUsageTotals.d.ts +68 -0
  30. package/dist/esm/models/ChatUsageTotals.js +67 -0
  31. package/dist/esm/models/ChatUserIdentity.d.ts +50 -0
  32. package/dist/esm/models/ChatUserIdentity.js +55 -0
  33. package/dist/esm/models/GetChatSettings.d.ts +51 -0
  34. package/dist/esm/models/GetChatSettings.js +57 -0
  35. package/dist/esm/models/GetChatUsage.d.ts +59 -0
  36. package/dist/esm/models/GetChatUsage.js +62 -0
  37. package/dist/esm/models/GetEmailDelivery.d.ts +31 -0
  38. package/dist/esm/models/GetEmailDelivery.js +13 -0
  39. package/dist/esm/models/GetPortalInvitationSummary.d.ts +102 -0
  40. package/dist/esm/models/GetPortalInvitationSummary.js +87 -0
  41. package/dist/esm/models/GetPortalUser.d.ts +7 -0
  42. package/dist/esm/models/GetPortalUser.js +3 -0
  43. package/dist/esm/models/PutChatSettings.d.ts +32 -0
  44. package/dist/esm/models/PutChatSettings.js +43 -0
  45. package/dist/esm/models/index.d.ts +15 -0
  46. package/dist/esm/models/index.js +15 -0
  47. package/dist/models/AdminChatMessage.d.ts +51 -0
  48. package/dist/models/AdminChatMessage.js +61 -0
  49. package/dist/models/AdminConversationDetail.d.ts +90 -0
  50. package/dist/models/AdminConversationDetail.js +88 -0
  51. package/dist/models/AdminConversationList.d.ts +57 -0
  52. package/dist/models/AdminConversationList.js +67 -0
  53. package/dist/models/AdminConversationSummary.d.ts +83 -0
  54. package/dist/models/AdminConversationSummary.js +83 -0
  55. package/dist/models/ChatDailyUsage.d.ts +39 -0
  56. package/dist/models/ChatDailyUsage.js +55 -0
  57. package/dist/models/ChatModelUsage.d.ts +68 -0
  58. package/dist/models/ChatModelUsage.js +74 -0
  59. package/dist/models/ChatQuota.d.ts +56 -0
  60. package/dist/models/ChatQuota.js +66 -0
  61. package/dist/models/ChatQuotaExceeded.d.ts +56 -0
  62. package/dist/models/ChatQuotaExceeded.js +66 -0
  63. package/dist/models/ChatTurnUsage.d.ts +82 -0
  64. package/dist/models/ChatTurnUsage.js +86 -0
  65. package/dist/models/ChatUsageTotals.d.ts +68 -0
  66. package/dist/models/ChatUsageTotals.js +74 -0
  67. package/dist/models/ChatUserIdentity.d.ts +50 -0
  68. package/dist/models/ChatUserIdentity.js +62 -0
  69. package/dist/models/GetChatSettings.d.ts +51 -0
  70. package/dist/models/GetChatSettings.js +65 -0
  71. package/dist/models/GetChatUsage.d.ts +59 -0
  72. package/dist/models/GetChatUsage.js +69 -0
  73. package/dist/models/GetEmailDelivery.d.ts +31 -0
  74. package/dist/models/GetEmailDelivery.js +13 -0
  75. package/dist/models/GetPortalInvitationSummary.d.ts +102 -0
  76. package/dist/models/GetPortalInvitationSummary.js +95 -0
  77. package/dist/models/GetPortalUser.d.ts +7 -0
  78. package/dist/models/GetPortalUser.js +3 -0
  79. package/dist/models/PutChatSettings.d.ts +32 -0
  80. package/dist/models/PutChatSettings.js +50 -0
  81. package/dist/models/index.d.ts +15 -0
  82. package/dist/models/index.js +15 -0
  83. package/docs/AdminChatMessage.md +40 -0
  84. package/docs/AdminConversationDetail.md +52 -0
  85. package/docs/AdminConversationList.md +42 -0
  86. package/docs/AdminConversationSummary.md +50 -0
  87. package/docs/ChatApi.md +422 -0
  88. package/docs/ChatDailyUsage.md +36 -0
  89. package/docs/ChatModelUsage.md +46 -0
  90. package/docs/ChatQuota.md +42 -0
  91. package/docs/ChatQuotaExceeded.md +42 -0
  92. package/docs/ChatTurnUsage.md +48 -0
  93. package/docs/ChatUsageTotals.md +46 -0
  94. package/docs/ChatUserIdentity.md +40 -0
  95. package/docs/EmailTemplateApi.md +82 -1
  96. package/docs/GetChatSettings.md +38 -0
  97. package/docs/GetChatUsage.md +42 -0
  98. package/docs/GetEmailDelivery.md +10 -0
  99. package/docs/GetPortalInvitationSummary.md +51 -0
  100. package/docs/GetPortalUser.md +2 -0
  101. package/docs/PutChatSettings.md +34 -0
  102. package/package.json +1 -1
  103. package/src/apis/ChatApi.ts +339 -0
  104. package/src/apis/EmailTemplateApi.ts +83 -0
  105. package/src/models/AdminChatMessage.ts +100 -0
  106. package/src/models/AdminConversationDetail.ts +175 -0
  107. package/src/models/AdminConversationList.ts +110 -0
  108. package/src/models/AdminConversationSummary.ts +159 -0
  109. package/src/models/ChatDailyUsage.ts +83 -0
  110. package/src/models/ChatModelUsage.ts +120 -0
  111. package/src/models/ChatQuota.ts +102 -0
  112. package/src/models/ChatQuotaExceeded.ts +102 -0
  113. package/src/models/ChatTurnUsage.ts +140 -0
  114. package/src/models/ChatUsageTotals.ts +120 -0
  115. package/src/models/ChatUserIdentity.ts +93 -0
  116. package/src/models/GetChatSettings.ts +94 -0
  117. package/src/models/GetChatUsage.ts +124 -0
  118. package/src/models/GetEmailDelivery.ts +49 -0
  119. package/src/models/GetPortalInvitationSummary.ts +160 -0
  120. package/src/models/GetPortalUser.ts +16 -0
  121. package/src/models/PutChatSettings.ts +66 -0
  122. package/src/models/index.ts +15 -0
@@ -0,0 +1,55 @@
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
+ * Check if a given object implements the ChatUserIdentity interface.
16
+ */
17
+ export function instanceOfChatUserIdentity(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('firstName' in value) || value['firstName'] === undefined)
21
+ return false;
22
+ if (!('lastName' in value) || value['lastName'] === undefined)
23
+ return false;
24
+ if (!('email' in value) || value['email'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function ChatUserIdentityFromJSON(json) {
29
+ return ChatUserIdentityFromJSONTyped(json, false);
30
+ }
31
+ export function ChatUserIdentityFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'id': json['id'],
37
+ 'firstName': json['first_name'],
38
+ 'lastName': json['last_name'],
39
+ 'email': json['email'],
40
+ };
41
+ }
42
+ export function ChatUserIdentityToJSON(json) {
43
+ return ChatUserIdentityToJSONTyped(json, false);
44
+ }
45
+ export function ChatUserIdentityToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'id': value['id'],
51
+ 'first_name': value['firstName'],
52
+ 'last_name': value['lastName'],
53
+ 'email': value['email'],
54
+ };
55
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
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 GetChatSettings
16
+ */
17
+ export interface GetChatSettings {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof GetChatSettings
22
+ */
23
+ learnerDailyMessageLimit: number;
24
+ /**
25
+ *
26
+ * @type {GetChatSettingsResetPolicyEnum}
27
+ * @memberof GetChatSettings
28
+ */
29
+ resetPolicy: GetChatSettingsResetPolicyEnum;
30
+ /**
31
+ * Unix timestamp for the last settings update
32
+ * @type {number}
33
+ * @memberof GetChatSettings
34
+ */
35
+ updatedAt: number;
36
+ }
37
+ /**
38
+ * @export
39
+ */
40
+ export declare const GetChatSettingsResetPolicyEnum: {
41
+ readonly UtcMidnight: "utc_midnight";
42
+ };
43
+ export type GetChatSettingsResetPolicyEnum = typeof GetChatSettingsResetPolicyEnum[keyof typeof GetChatSettingsResetPolicyEnum];
44
+ /**
45
+ * Check if a given object implements the GetChatSettings interface.
46
+ */
47
+ export declare function instanceOfGetChatSettings(value: object): value is GetChatSettings;
48
+ export declare function GetChatSettingsFromJSON(json: any): GetChatSettings;
49
+ export declare function GetChatSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatSettings;
50
+ export declare function GetChatSettingsToJSON(json: any): GetChatSettings;
51
+ export declare function GetChatSettingsToJSONTyped(value?: GetChatSettings | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,57 @@
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
+ * @export
16
+ */
17
+ export const GetChatSettingsResetPolicyEnum = {
18
+ UtcMidnight: 'utc_midnight'
19
+ };
20
+ /**
21
+ * Check if a given object implements the GetChatSettings interface.
22
+ */
23
+ export function instanceOfGetChatSettings(value) {
24
+ if (!('learnerDailyMessageLimit' in value) || value['learnerDailyMessageLimit'] === undefined)
25
+ return false;
26
+ if (!('resetPolicy' in value) || value['resetPolicy'] === undefined)
27
+ return false;
28
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function GetChatSettingsFromJSON(json) {
33
+ return GetChatSettingsFromJSONTyped(json, false);
34
+ }
35
+ export function GetChatSettingsFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'learnerDailyMessageLimit': json['learner_daily_message_limit'],
41
+ 'resetPolicy': json['reset_policy'],
42
+ 'updatedAt': json['updated_at'],
43
+ };
44
+ }
45
+ export function GetChatSettingsToJSON(json) {
46
+ return GetChatSettingsToJSONTyped(json, false);
47
+ }
48
+ export function GetChatSettingsToJSONTyped(value, ignoreDiscriminator = false) {
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'learner_daily_message_limit': value['learnerDailyMessageLimit'],
54
+ 'reset_policy': value['resetPolicy'],
55
+ 'updated_at': value['updatedAt'],
56
+ };
57
+ }
@@ -0,0 +1,59 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
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 { ChatDailyUsage } from './ChatDailyUsage';
13
+ import type { ChatModelUsage } from './ChatModelUsage';
14
+ import type { ChatUsageTotals } from './ChatUsageTotals';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface GetChatUsage
19
+ */
20
+ export interface GetChatUsage {
21
+ /**
22
+ *
23
+ * @type {number}
24
+ * @memberof GetChatUsage
25
+ */
26
+ from: number;
27
+ /**
28
+ *
29
+ * @type {number}
30
+ * @memberof GetChatUsage
31
+ */
32
+ to: number;
33
+ /**
34
+ *
35
+ * @type {ChatUsageTotals}
36
+ * @memberof GetChatUsage
37
+ */
38
+ totals: ChatUsageTotals;
39
+ /**
40
+ *
41
+ * @type {Array<ChatDailyUsage>}
42
+ * @memberof GetChatUsage
43
+ */
44
+ daily: Array<ChatDailyUsage>;
45
+ /**
46
+ *
47
+ * @type {Array<ChatModelUsage>}
48
+ * @memberof GetChatUsage
49
+ */
50
+ modelUsage: Array<ChatModelUsage>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the GetChatUsage interface.
54
+ */
55
+ export declare function instanceOfGetChatUsage(value: object): value is GetChatUsage;
56
+ export declare function GetChatUsageFromJSON(json: any): GetChatUsage;
57
+ export declare function GetChatUsageFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetChatUsage;
58
+ export declare function GetChatUsageToJSON(json: any): GetChatUsage;
59
+ export declare function GetChatUsageToJSONTyped(value?: GetChatUsage | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,62 @@
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
+ import { ChatDailyUsageFromJSON, ChatDailyUsageToJSON, } from './ChatDailyUsage';
15
+ import { ChatModelUsageFromJSON, ChatModelUsageToJSON, } from './ChatModelUsage';
16
+ import { ChatUsageTotalsFromJSON, ChatUsageTotalsToJSON, } from './ChatUsageTotals';
17
+ /**
18
+ * Check if a given object implements the GetChatUsage interface.
19
+ */
20
+ export function instanceOfGetChatUsage(value) {
21
+ if (!('from' in value) || value['from'] === undefined)
22
+ return false;
23
+ if (!('to' in value) || value['to'] === undefined)
24
+ return false;
25
+ if (!('totals' in value) || value['totals'] === undefined)
26
+ return false;
27
+ if (!('daily' in value) || value['daily'] === undefined)
28
+ return false;
29
+ if (!('modelUsage' in value) || value['modelUsage'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ export function GetChatUsageFromJSON(json) {
34
+ return GetChatUsageFromJSONTyped(json, false);
35
+ }
36
+ export function GetChatUsageFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'from': json['from'],
42
+ 'to': json['to'],
43
+ 'totals': ChatUsageTotalsFromJSON(json['totals']),
44
+ 'daily': (json['daily'].map(ChatDailyUsageFromJSON)),
45
+ 'modelUsage': (json['model_usage'].map(ChatModelUsageFromJSON)),
46
+ };
47
+ }
48
+ export function GetChatUsageToJSON(json) {
49
+ return GetChatUsageToJSONTyped(json, false);
50
+ }
51
+ export function GetChatUsageToJSONTyped(value, ignoreDiscriminator = false) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'from': value['from'],
57
+ 'to': value['to'],
58
+ 'totals': ChatUsageTotalsToJSON(value['totals']),
59
+ 'daily': (value['daily'].map(ChatDailyUsageToJSON)),
60
+ 'model_usage': (value['modelUsage'].map(ChatModelUsageToJSON)),
61
+ };
62
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
12
13
  /**
13
14
  *
14
15
  * @export
@@ -39,6 +40,12 @@ export interface GetEmailDelivery {
39
40
  * @memberof GetEmailDelivery
40
41
  */
41
42
  recipient: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof GetEmailDelivery
47
+ */
48
+ subject?: string | null;
42
49
  /**
43
50
  *
44
51
  * @type {boolean}
@@ -99,6 +106,30 @@ export interface GetEmailDelivery {
99
106
  * @memberof GetEmailDelivery
100
107
  */
101
108
  failedAt?: number | null;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof GetEmailDelivery
113
+ */
114
+ resendOfDeliveryId?: string | null;
115
+ /**
116
+ *
117
+ * @type {boolean}
118
+ * @memberof GetEmailDelivery
119
+ */
120
+ canResend: boolean;
121
+ /**
122
+ *
123
+ * @type {string}
124
+ * @memberof GetEmailDelivery
125
+ */
126
+ resendBlockedReason?: string | null;
127
+ /**
128
+ *
129
+ * @type {GetPortalInvitationSummary}
130
+ * @memberof GetEmailDelivery
131
+ */
132
+ invitation?: GetPortalInvitationSummary | null;
102
133
  }
103
134
  /**
104
135
  * @export
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GetPortalInvitationSummaryFromJSON, GetPortalInvitationSummaryToJSON, } from './GetPortalInvitationSummary';
14
15
  /**
15
16
  * @export
16
17
  */
@@ -41,6 +42,8 @@ export function instanceOfGetEmailDelivery(value) {
41
42
  return false;
42
43
  if (!('createdAt' in value) || value['createdAt'] === undefined)
43
44
  return false;
45
+ if (!('canResend' in value) || value['canResend'] === undefined)
46
+ return false;
44
47
  return true;
45
48
  }
46
49
  export function GetEmailDeliveryFromJSON(json) {
@@ -55,6 +58,7 @@ export function GetEmailDeliveryFromJSONTyped(json, ignoreDiscriminator) {
55
58
  'templateKey': json['template_key'],
56
59
  'templateVersionId': json['template_version_id'] == null ? undefined : json['template_version_id'],
57
60
  'recipient': json['recipient'],
61
+ 'subject': json['subject'] == null ? undefined : json['subject'],
58
62
  'isTest': json['is_test'],
59
63
  'status': json['status'],
60
64
  'attempts': json['attempts'],
@@ -65,6 +69,10 @@ export function GetEmailDeliveryFromJSONTyped(json, ignoreDiscriminator) {
65
69
  'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
66
70
  'deliveredAt': json['delivered_at'] == null ? undefined : json['delivered_at'],
67
71
  'failedAt': json['failed_at'] == null ? undefined : json['failed_at'],
72
+ 'resendOfDeliveryId': json['resend_of_delivery_id'] == null ? undefined : json['resend_of_delivery_id'],
73
+ 'canResend': json['can_resend'],
74
+ 'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
75
+ 'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
68
76
  };
69
77
  }
70
78
  export function GetEmailDeliveryToJSON(json) {
@@ -79,6 +87,7 @@ export function GetEmailDeliveryToJSONTyped(value, ignoreDiscriminator = false)
79
87
  'template_key': value['templateKey'],
80
88
  'template_version_id': value['templateVersionId'],
81
89
  'recipient': value['recipient'],
90
+ 'subject': value['subject'],
82
91
  'is_test': value['isTest'],
83
92
  'status': value['status'],
84
93
  'attempts': value['attempts'],
@@ -89,5 +98,9 @@ export function GetEmailDeliveryToJSONTyped(value, ignoreDiscriminator = false)
89
98
  'accepted_at': value['acceptedAt'],
90
99
  'delivered_at': value['deliveredAt'],
91
100
  'failed_at': value['failedAt'],
101
+ 'resend_of_delivery_id': value['resendOfDeliveryId'],
102
+ 'can_resend': value['canResend'],
103
+ 'resend_blocked_reason': value['resendBlockedReason'],
104
+ 'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
92
105
  };
93
106
  }
@@ -0,0 +1,102 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
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
+ * Invitation lifecycle and latest email delivery state for a portal user.
14
+ * @export
15
+ * @interface GetPortalInvitationSummary
16
+ */
17
+ export interface GetPortalInvitationSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof GetPortalInvitationSummary
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {GetPortalInvitationSummaryStatusEnum}
27
+ * @memberof GetPortalInvitationSummary
28
+ */
29
+ status: GetPortalInvitationSummaryStatusEnum;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof GetPortalInvitationSummary
34
+ */
35
+ invitedAt: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof GetPortalInvitationSummary
40
+ */
41
+ expiresAt: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof GetPortalInvitationSummary
46
+ */
47
+ acceptedAt?: number | null;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof GetPortalInvitationSummary
52
+ */
53
+ lastSentAt?: number | null;
54
+ /**
55
+ *
56
+ * @type {GetPortalInvitationSummaryLatestDeliveryStatusEnum}
57
+ * @memberof GetPortalInvitationSummary
58
+ */
59
+ latestDeliveryStatus?: GetPortalInvitationSummaryLatestDeliveryStatusEnum | null;
60
+ /**
61
+ *
62
+ * @type {boolean}
63
+ * @memberof GetPortalInvitationSummary
64
+ */
65
+ canResend: boolean;
66
+ /**
67
+ *
68
+ * @type {string}
69
+ * @memberof GetPortalInvitationSummary
70
+ */
71
+ resendBlockedReason?: string | null;
72
+ }
73
+ /**
74
+ * @export
75
+ */
76
+ export declare const GetPortalInvitationSummaryStatusEnum: {
77
+ readonly Pending: "pending";
78
+ readonly Expired: "expired";
79
+ readonly Accepted: "accepted";
80
+ };
81
+ export type GetPortalInvitationSummaryStatusEnum = typeof GetPortalInvitationSummaryStatusEnum[keyof typeof GetPortalInvitationSummaryStatusEnum];
82
+ /**
83
+ * @export
84
+ */
85
+ export declare const GetPortalInvitationSummaryLatestDeliveryStatusEnum: {
86
+ readonly Queued: "queued";
87
+ readonly Processing: "processing";
88
+ readonly Accepted: "accepted";
89
+ readonly Delivered: "delivered";
90
+ readonly Deferred: "deferred";
91
+ readonly Failed: "failed";
92
+ readonly Complained: "complained";
93
+ };
94
+ export type GetPortalInvitationSummaryLatestDeliveryStatusEnum = typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum[keyof typeof GetPortalInvitationSummaryLatestDeliveryStatusEnum];
95
+ /**
96
+ * Check if a given object implements the GetPortalInvitationSummary interface.
97
+ */
98
+ export declare function instanceOfGetPortalInvitationSummary(value: object): value is GetPortalInvitationSummary;
99
+ export declare function GetPortalInvitationSummaryFromJSON(json: any): GetPortalInvitationSummary;
100
+ export declare function GetPortalInvitationSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetPortalInvitationSummary;
101
+ export declare function GetPortalInvitationSummaryToJSON(json: any): GetPortalInvitationSummary;
102
+ export declare function GetPortalInvitationSummaryToJSONTyped(value?: GetPortalInvitationSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,87 @@
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
+ * @export
16
+ */
17
+ export const GetPortalInvitationSummaryStatusEnum = {
18
+ Pending: 'pending',
19
+ Expired: 'expired',
20
+ Accepted: 'accepted'
21
+ };
22
+ /**
23
+ * @export
24
+ */
25
+ export const GetPortalInvitationSummaryLatestDeliveryStatusEnum = {
26
+ Queued: 'queued',
27
+ Processing: 'processing',
28
+ Accepted: 'accepted',
29
+ Delivered: 'delivered',
30
+ Deferred: 'deferred',
31
+ Failed: 'failed',
32
+ Complained: 'complained'
33
+ };
34
+ /**
35
+ * Check if a given object implements the GetPortalInvitationSummary interface.
36
+ */
37
+ export function instanceOfGetPortalInvitationSummary(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('status' in value) || value['status'] === undefined)
41
+ return false;
42
+ if (!('invitedAt' in value) || value['invitedAt'] === undefined)
43
+ return false;
44
+ if (!('expiresAt' in value) || value['expiresAt'] === undefined)
45
+ return false;
46
+ if (!('canResend' in value) || value['canResend'] === undefined)
47
+ return false;
48
+ return true;
49
+ }
50
+ export function GetPortalInvitationSummaryFromJSON(json) {
51
+ return GetPortalInvitationSummaryFromJSONTyped(json, false);
52
+ }
53
+ export function GetPortalInvitationSummaryFromJSONTyped(json, ignoreDiscriminator) {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+ 'id': json['id'],
59
+ 'status': json['status'],
60
+ 'invitedAt': json['invited_at'],
61
+ 'expiresAt': json['expires_at'],
62
+ 'acceptedAt': json['accepted_at'] == null ? undefined : json['accepted_at'],
63
+ 'lastSentAt': json['last_sent_at'] == null ? undefined : json['last_sent_at'],
64
+ 'latestDeliveryStatus': json['latest_delivery_status'] == null ? undefined : json['latest_delivery_status'],
65
+ 'canResend': json['can_resend'],
66
+ 'resendBlockedReason': json['resend_blocked_reason'] == null ? undefined : json['resend_blocked_reason'],
67
+ };
68
+ }
69
+ export function GetPortalInvitationSummaryToJSON(json) {
70
+ return GetPortalInvitationSummaryToJSONTyped(json, false);
71
+ }
72
+ export function GetPortalInvitationSummaryToJSONTyped(value, ignoreDiscriminator = false) {
73
+ if (value == null) {
74
+ return value;
75
+ }
76
+ return {
77
+ 'id': value['id'],
78
+ 'status': value['status'],
79
+ 'invited_at': value['invitedAt'],
80
+ 'expires_at': value['expiresAt'],
81
+ 'accepted_at': value['acceptedAt'],
82
+ 'last_sent_at': value['lastSentAt'],
83
+ 'latest_delivery_status': value['latestDeliveryStatus'],
84
+ 'can_resend': value['canResend'],
85
+ 'resend_blocked_reason': value['resendBlockedReason'],
86
+ };
87
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { GetPortalInvitationSummary } from './GetPortalInvitationSummary';
12
13
  /**
13
14
  * A user with their portal access information
14
15
  * @export
@@ -51,6 +52,12 @@ export interface GetPortalUser {
51
52
  * @memberof GetPortalUser
52
53
  */
53
54
  isActive: boolean;
55
+ /**
56
+ *
57
+ * @type {GetPortalInvitationSummary}
58
+ * @memberof GetPortalUser
59
+ */
60
+ invitation?: GetPortalInvitationSummary | null;
54
61
  }
55
62
  /**
56
63
  * Check if a given object implements the GetPortalUser interface.
@@ -11,6 +11,7 @@
11
11
  * https://openapi-generator.tech
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { GetPortalInvitationSummaryFromJSON, GetPortalInvitationSummaryToJSON, } from './GetPortalInvitationSummary';
14
15
  /**
15
16
  * Check if a given object implements the GetPortalUser interface.
16
17
  */
@@ -43,6 +44,7 @@ export function GetPortalUserFromJSONTyped(json, ignoreDiscriminator) {
43
44
  'lastName': json['last_name'],
44
45
  'role': json['role'],
45
46
  'isActive': json['is_active'],
47
+ 'invitation': json['invitation'] == null ? undefined : GetPortalInvitationSummaryFromJSON(json['invitation']),
46
48
  };
47
49
  }
48
50
  export function GetPortalUserToJSON(json) {
@@ -59,5 +61,6 @@ export function GetPortalUserToJSONTyped(value, ignoreDiscriminator = false) {
59
61
  'last_name': value['lastName'],
60
62
  'role': value['role'],
61
63
  'is_active': value['isActive'],
64
+ 'invitation': GetPortalInvitationSummaryToJSON(value['invitation']),
62
65
  };
63
66
  }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * LMS API
3
+ * LMS API
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 PutChatSettings
16
+ */
17
+ export interface PutChatSettings {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof PutChatSettings
22
+ */
23
+ learnerDailyMessageLimit: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the PutChatSettings interface.
27
+ */
28
+ export declare function instanceOfPutChatSettings(value: object): value is PutChatSettings;
29
+ export declare function PutChatSettingsFromJSON(json: any): PutChatSettings;
30
+ export declare function PutChatSettingsFromJSONTyped(json: any, ignoreDiscriminator: boolean): PutChatSettings;
31
+ export declare function PutChatSettingsToJSON(json: any): PutChatSettings;
32
+ export declare function PutChatSettingsToJSONTyped(value?: PutChatSettings | null, ignoreDiscriminator?: boolean): any;